{
  "$schema": "http://json-schema.org/draft-04/hyper-schema",
  "type": [
    "object"
  ],
  "definitions": {
    "office": {
      "$schema": "http://json-schema.org/draft-04/hyper-schema",
      "title": "Office",
      "description": "マネーフォワード クラウド給与における、会社に相当するリソースです。",
      "strictProperties": true,
      "type": [
        "object"
      ],
      "properties": {},
      "definitions": {},
      "links": [
        {
          "rel": "employees",
          "href": "/offices/{office_api_key}/employees",
          "method": "GET",
          "title": "従業員一覧",
          "description": "マネーフォワード クラウド給与に登録されている、全ての従業員を返却します。<br> ※退職済みの従業員も含まれます。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "employees": {
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "employee_id": {
                      "type": [
                        "string"
                      ],
                      "description": "従業員識別子",
                      "example": "1W1V4e_QqVrROmY1nXTOOA"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "従業員番号",
                      "example": "A0001"
                    },
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "従業員氏名",
                      "example": "財前 太郎"
                    },
                    "name_kana": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "従業員氏名 フリガナ",
                      "example": "ザイマエ タロウ"
                    },
                    "joined_at": {
                      "type": [
                        "string"
                      ],
                      "format": "date",
                      "description": "入社日",
                      "example": "2015-04-01"
                    },
                    "retired_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date",
                      "description": "退職日",
                      "example": "2019-03-31"
                    }
                  },
                  "required": [
                    "employee_id",
                    "number",
                    "name",
                    "name_kana",
                    "joined_at",
                    "retired_at"
                  ]
                }
              }
            },
            "required": [
              "employees"
            ]
          }
        },
        {
          "rel": "employee",
          "href": "/offices/{office_api_key}/employees/{employee_id}",
          "method": "GET",
          "title": "従業員詳細",
          "description": "マネーフォワード クラウド給与に登録されている、全ての従業員のうち、`employee_id` で指定された従業員の詳細情報を返却します。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "employee_id": {
                "type": [
                  "string"
                ],
                "description": "従業員識別子",
                "example": "1W1V4e_QqVrROmY1nXTOOA"
              },
              "name": {
                "type": [
                  "string"
                ],
                "description": "氏名",
                "example": "財前 太郎"
              },
              "name_kana": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "氏名 フリガナ",
                "example": "ザイマエ タロウ"
              },
              "gender": {
                "type": [
                  "string"
                ],
                "description": "性別 <br> <table> <thead><tr><th>識別子</th><th>性別</th></tr></thead> <tbody> <tr><td>`male`</td><td>`男`</td></tr> <tr><td>`female`</td><td>`女`</td></tr> </tbody> </table>",
                "example": "male"
              },
              "birthday": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "生年月日",
                "example": "1987-01-23"
              },
              "tel": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "電話番号",
                "example": "03-1234-5678"
              },
              "address": {
                "type": [
                  "object"
                ],
                "description": "住所",
                "properties": {
                  "zip_code": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "郵便番号",
                    "example": "108-0023"
                  },
                  "prefecture_code": {
                    "type": [
                      "string"
                    ],
                    "description": "都道府県番号 <br> ※0埋めした上で必ず2桁の文字列として出力されます。（例:北海道は \"01\" となります）",
                    "example": 13
                  },
                  "address1": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "住所1",
                    "example": "港区芝浦 3-1-21"
                  },
                  "address1_kana": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "住所1 フリガナ",
                    "example": "ミナトクシバウラ 3-1-21"
                  },
                  "address2": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "住所2",
                    "example": "msb Tamachi 田町ステーションタワーS 21F"
                  },
                  "address2_kana": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "住所2 フリガナ",
                    "example": "ムスブタマチステーションタワーS 21F"
                  },
                  "municipality": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "市区町村 フリガナ",
                    "example": "港区"
                  },
                  "municipality_kana": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "市区町村（フリガナ） フリガナ",
                    "example": "ミナトク"
                  },
                  "house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "丁目・番地 フリガナ",
                    "example": "芝浦3-1-21"
                  },
                  "house_number_kana": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "丁目・番地（フリガナ） フリガナ",
                    "example": "シバウラ 3-1-21"
                  },
                  "building": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "マンション/ビル等 フリガナ",
                    "example": "msb Tamachi 田町ステーションタワーS 21F"
                  },
                  "building_kana": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "マンション/ビル等（フリガナ） フリガナ",
                    "example": "ムスブタマチステーションタワーS 21F"
                  }
                },
                "required": [
                  "zip_code",
                  "prefecture_code",
                  "address1",
                  "address1_kana",
                  "address2",
                  "address2_kana",
                  "municipality",
                  "municipality_kana",
                  "house_number",
                  "house_number_kana",
                  "building",
                  "building_kana"
                ]
              },
              "joined_at": {
                "type": [
                  "string"
                ],
                "format": "date",
                "description": "入社日",
                "example": "2015-04-01"
              },
              "retired_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "退職日",
                "example": "2019-03-31"
              },
              "retirement_type": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "退職区分 <br> <table> <thead><tr><th>識別子</th><th>退職区分</th></tr></thead> <tbody> <tr><td>`general`</td><td>`一般退職`</td></tr> <tr><td>`disability`</td><td>`障害退職`</td></tr> <tr><td>`dead`</td><td>`死亡退職`</td></tr> </tbody> </table>",
                "example": "general"
              },
              "retirement_reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "退職理由",
                "example": "一身上の都合"
              },
              "number": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "従業員番号",
                "example": "A0001"
              },
              "contract_type": {
                "type": [
                  "string"
                ],
                "description": "契約種別 <br> <table> <thead><tr><th>識別子</th><th>契約種別</th></tr></thead> <tbody> <tr><td>`executive`</td><td>`役員`</td></tr> <tr><td>`director_employee`</td><td>`使用人兼務役員`</td></tr> <tr><td>`regular`</td><td>`正社員`</td></tr> <tr><td>`contract`</td><td>`契約社員`</td></tr> <tr><td>`nonregular`</td><td>`嘱託社員`</td></tr> <tr><td>`parttime`</td><td>`パート`</td></tr> <tr><td>`arbeit`</td><td>`アルバイト`</td></tr> <tr><td>`etc`</td><td>`その他`</td></tr> </tbody> </table>",
                "example": "regular"
              },
              "salary_form": {
                "type": [
                  "string"
                ],
                "description": "給与区分 <br> <table> <thead><tr><th>識別子</th><th>給与区分</th></tr></thead> <tbody> <tr><td>`monthly`</td><td>`月給制`</td></tr> <tr><td>`hourly`</td><td>`時給制`</td></tr> <tr><td>`daily`</td><td>`日給制`</td></tr> </tbody> </table>",
                "example": "monthly"
              },
              "group": {
                "type": [
                  "string"
                ],
                "description": "所属事業所",
                "example": "東京本社"
              },
              "department": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "部門",
                "example": "開発部門"
              },
              "occupation": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "職種",
                "example": "エンジニア"
              },
              "resident_tax": {
                "type": [
                  "object"
                ],
                "properties": {
                  "municipality_of_payroll_payment_report_submission": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "給与支払報告書提出先市区町村",
                    "example": "東京都港区"
                  },
                  "municipality_of_resident_tax_payment": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "住民税納付先市区町村",
                    "example": "東京都中野区"
                  },
                  "resident_tax_identification_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "宛名番号",
                    "example": 12345678
                  }
                },
                "required": [
                  "municipality_of_payroll_payment_report_submission",
                  "municipality_of_resident_tax_payment",
                  "resident_tax_identification_number"
                ]
              },
              "income_tax": {
                "type": [
                  "object"
                ],
                "properties": {
                  "tax_list_type": {
                    "type": [
                      "string"
                    ],
                    "description": "税額表区分 <br> <table> <thead><tr><th>識別子</th><th>税額表区分</th></tr></thead> <tbody> <tr><td>`one`</td><td>`甲`</td></tr> <tr><td>`two`</td><td>`乙`</td></tr> <tr><td>`three`</td><td>`丙`</td></tr> </tbody> </table>",
                    "example": "one"
                  },
                  "widow_type": {
                    "type": [
                      "string"
                    ],
                    "description": "寡婦(夫)区分 <br> <table> <thead><tr><th>識別子</th><th>寡婦(夫)区分</th></tr></thead> <tbody> <tr><td>`not_covered`</td><td>`対象外`</td></tr> <tr><td>`general`</td><td>`寡婦(夫)`</td></tr> <tr><td>`special`</td><td>`特別寡婦`</td></tr> </tbody> </table>",
                    "example": "not_covered"
                  },
                  "handicap_type": {
                    "type": [
                      "string"
                    ],
                    "description": "障害者区分 <br> <table> <thead><tr><th>識別子</th><th>障害者区分</th></tr></thead> <tbody> <tr><td>`not_covered`</td><td>`対象外`</td></tr> <tr><td>`general`</td><td>`一般障がい者`</td></tr> <tr><td>`special`</td><td>`特別障がい者`</td></tr> </tbody> </table>",
                    "example": "not_covered"
                  },
                  "working_student_type": {
                    "type": [
                      "string"
                    ],
                    "description": "勤労学生区分 <br> <table> <thead><tr><th>識別子</th><th>勤労学生区分</th></tr></thead> <tbody> <tr><td>`not_covered`</td><td>`対象外`</td></tr> <tr><td>`working_student`</td><td>`勤労学生`</td></tr> </tbody> </table>",
                    "example": "not_covered"
                  },
                  "minor_type": {
                    "type": [
                      "string"
                    ],
                    "description": "未成年者区分 <br> <table> <thead><tr><th>識別子</th><th>未成年者区分</th></tr></thead> <tbody> <tr><td>`not_covered`</td><td>`対象外`</td></tr> <tr><td>`minor`</td><td>`未成年者`</td></tr> </tbody> </table>",
                    "example": "not_covered"
                  },
                  "victim_type": {
                    "type": [
                      "string"
                    ],
                    "description": "災害者区分 <br> <table> <thead><tr><th>識別子</th><th>災害者区分</th></tr></thead> <tbody> <tr><td>`not_covered`</td><td>`対象外`</td></tr> <tr><td>`victim`</td><td>`災害者`</td></tr> </tbody> </table>",
                    "example": "not_covered"
                  },
                  "foreigner_type": {
                    "type": [
                      "string"
                    ],
                    "description": "外国人区分 <br> <table> <thead><tr><th>識別子</th><th>外国人区分</th></tr></thead> <tbody> <tr><td>`not_covered`</td><td>`対象外`</td></tr> <tr><td>`foreigner`</td><td>`外国人`</td></tr> </tbody> </table>",
                    "example": "not_covered"
                  },
                  "resident_type": {
                    "type": [
                      "string"
                    ],
                    "description": "居住者区分 <br> <table> <thead><tr><th>識別子</th><th>居住者区分</th></tr></thead> <tbody> <tr><td>`resident`</td><td>`居住者`</td></tr> <tr><td>`nonresident`</td><td>`非居住者`</td></tr> </tbody> </table>",
                    "example": "resident"
                  }
                },
                "required": [
                  "tax_list_type",
                  "widow_type",
                  "handicap_type",
                  "working_student_type",
                  "minor_type",
                  "victim_type",
                  "foreigner_type",
                  "resident_type"
                ]
              },
              "dependents": {
                "description": "従業員詳細画面で設定されている扶養親族のリスト",
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "扶養親族氏名",
                      "example": "財前 花子"
                    },
                    "name_kana": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "扶養親族氏名 フリガナ",
                      "example": "ザイマエ ハナコ"
                    },
                    "birthday": {
                      "type": [
                        "string"
                      ],
                      "format": "date",
                      "description": "生年月日",
                      "example": "1987-03-21"
                    },
                    "relationship": {
                      "type": [
                        "string"
                      ],
                      "description": "続柄 <br> <table> <thead><tr><th>識別子</th><th>続柄</th></tr></thead> <tbody> <tr><td>`husband`</td><td>`夫`</td></tr> <tr><td>`wife`</td><td>`妻`</td></tr> <tr><td>`son`</td><td>`息子`</td></tr> <tr><td>`daughter`</td><td>`娘`</td></tr> <tr><td>`father`</td><td>`父`</td></tr> <tr><td>`mother`</td><td>`母`</td></tr> <tr><td>`elder_brother`</td><td>`兄`</td></tr> <tr><td>`elder_sister`</td><td>`姉`</td></tr> <tr><td>`brother`</td><td>`弟`</td></tr> <tr><td>`sister`</td><td>`妹`</td></tr> <tr><td>`grandfather`</td><td>`祖父`</td></tr> <tr><td>`grandmother`</td><td>`祖母`</td></tr> <tr><td>`grandson`</td><td>`孫息子`</td></tr> <tr><td>`granddaughter`</td><td>`孫娘`</td></tr> <tr><td>`nephew`</td><td>`甥`</td></tr> <tr><td>`niece`</td><td>`姪`</td></tr> <tr><td>`uncle`</td><td>`叔父`</td></tr> <tr><td>`aunt`</td><td>`叔母`</td></tr> <tr><td>`father_in_law`</td><td>`義父`</td></tr> <tr><td>`mother_in_law`</td><td>`義母`</td></tr> </tbody> </table>",
                      "example": "wife"
                    },
                    "gender": {
                      "type": [
                        "string"
                      ],
                      "description": "性別 <br> <table> <thead><tr><th>識別子</th><th>性別</th></tr></thead> <tbody> <tr><td>`male`</td><td>`男`</td></tr> <tr><td>`female`</td><td>`女`</td></tr> </tbody> </table>",
                      "example": "male"
                    },
                    "is_dependent": {
                      "type": [
                        "string"
                      ],
                      "description": "扶養区分 <br> <table> <thead><tr><th>識別子</th><th>扶養区分</th></tr></thead> <tbody> <tr><td>`covered`</td><td>`対象`</td></tr> <tr><td>`not_covered`</td><td>`対象外`</td></tr> </tbody> </table>",
                      "example": "covered"
                    },
                    "lodger_type": {
                      "type": [
                        "string"
                      ],
                      "description": "同居区分 <br> <table> <thead><tr><th>識別子</th><th>同居区分</th></tr></thead> <tbody> <tr><td>`live_with`</td><td>`同居`</td></tr> <tr><td>`not_covered`</td><td>`対象外`</td></tr> <tr><td>`not_covered_overseas`</td><td>`対象外(国外)`</td></tr> </tbody> </table>",
                      "example": "live_with"
                    },
                    "handicap_type": {
                      "type": [
                        "string"
                      ],
                      "description": "障害者区分 <br> <table> <thead><tr><th>識別子</th><th>障害者区分</th></tr></thead> <tbody> <tr><td>`not_covered`</td><td>`対象外`</td></tr> <tr><td>`general`</td><td>`一般障がい者`</td></tr> <tr><td>`special`</td><td>`特別障がい者`</td></tr> </tbody> </table>",
                      "example": "not_covered"
                    },
                    "is_health_insurance_dependent": {
                      "type": [
                        "string"
                      ],
                      "description": "健保扶養区分 <br> <table> <thead><tr><th>識別子</th><th>健保扶養区分</th></tr></thead> <tbody> <tr><td>`joined`</td><td>`加入`</td></tr> <tr><td>`not_joined`</td><td>`未加入`</td></tr> </tbody> </table>",
                      "example": "joined"
                    },
                    "is_subject_to_withholding_tax": {
                      "type": [
                        "string"
                      ],
                      "description": "源泉控除対象区分 <br> <table> <thead><tr><th>識別子</th><th>源泉控除対象区分</th></tr></thead> <tbody> <tr><td>`covered`</td><td>`対象`</td></tr> <tr><td>`not_covered`</td><td>`対象外`</td></tr> </tbody> </table>",
                      "example": "covered"
                    }
                  },
                  "required": [
                    "name",
                    "name_kana",
                    "birthday",
                    "relationship",
                    "gender",
                    "is_dependent",
                    "lodger_type",
                    "handicap_type",
                    "is_health_insurance_dependent",
                    "is_subject_to_withholding_tax"
                  ]
                }
              },
              "payment_items": {
                "description": "従業員詳細画面で設定されている支給項目のリスト",
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "支給項目の名称",
                      "example": "基本給"
                    },
                    "amount": {
                      "type": [
                        "integer"
                      ],
                      "description": "金額",
                      "example": 500000
                    }
                  },
                  "required": [
                    "name",
                    "amount"
                  ]
                }
              },
              "commuting_allowance": {
                "type": [
                  "object"
                ],
                "properties": {
                  "payment_condition": {
                    "type": [
                      "string"
                    ],
                    "description": "<b>この情報は通勤手段に表示されます。</b> <br> 通勤手当 支給条件 <br> <table> <thead><tr><th>識別子</th><th>支給条件</th></tr></thead> <tbody> <tr><td>`flow_amount_payment`</td><td>`出勤日数に応じて支給`</td></tr> <tr><td>`fixed_amount_payment`</td><td>`定額で支給`</td></tr> </tbody> </table>",
                    "example": "fixed_amount_payment"
                  },
                  "office_attendance_item_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "通勤手当 使用勤怠項目",
                    "example": null
                  },
                  "allowance_interval": {
                    "type": [
                      "string"
                    ],
                    "description": "<b>この情報は通勤手段に表示されます。</b> <br> 通勤手当 支給間隔 <br> <table> <thead><tr><th>識別子</th><th>支給間隔</th></tr></thead> <tbody> <tr><td>`every_month`</td><td>`毎月`</td></tr> <tr><td>`every_second_months`</td><td>`2ヶ月毎`</td></tr> <tr><td>`every_three_months`</td><td>`3ヶ月毎`</td></tr> <tr><td>`every_six_months`</td><td>`6ヶ月毎`</td></tr> </tbody> </table>",
                    "example": "every_month"
                  },
                  "allowance_month": {
                    "type": [
                      "string"
                    ],
                    "description": "<b>この情報は通勤手段に表示されます。</b> <br> 通勤手当 支給月 <br> <table> <thead><tr><th>識別子</th><th>支給月</th></tr></thead> <tbody> <tr><td>`every`</td><td>`毎月`</td></tr> <tr><td>`odd`</td><td>`1,3,5,7,9,11月`</td></tr> <tr><td>`even`</td><td>`2,4,6,8,10,12月`</td></tr> <tr><td>`one_four_seven_ten`</td><td>`1,4,7,10月`</td></tr> <tr><td>`two_five_eight_eleven`</td><td>`2,5,8,11月`</td></tr> <tr><td>`three_six_nine_twelve`</td><td>`3,6,9,12月`</td></tr> <tr><td>`one_seven`</td><td>`1,7月`</td></tr> <tr><td>`two_eight`</td><td>`2,8月`</td></tr> <tr><td>`three_nine`</td><td>`3,9月`</td></tr> <tr><td>`four_ten`</td><td>`4,10月`</td></tr> <tr><td>`five_eleven`</td><td>`5,11月`</td></tr> <tr><td>`six_twelve`</td><td>`6,12月`</td></tr> </tbody> </table>",
                    "example": "every"
                  },
                  "commuting_methods": {
                    "description": "通勤手段",
                    "type": [
                      "array"
                    ],
                    "items": {
                      "type": [
                        "object"
                      ],
                      "properties": {
                        "type": {
                          "type": [
                            "string"
                          ],
                          "description": "通勤手段 <br> <table> <thead><tr><th>識別子</th><th>通勤手段</th></tr></thead> <tbody> <tr><td>`train`</td><td>`電車`</td></tr> <tr><td>`bus`</td><td>`バス`</td></tr> <tr><td>`car`</td><td>`車`</td></tr> <tr><td>`bicycle`</td><td>`自転車`</td></tr> <tr><td>`motorcycle`</td><td>`バイク`</td></tr> <tr><td>`walk`</td><td>`徒歩`</td></tr> </tbody> </table>",
                          "example": "transportation"
                        },
                        "allowance_method": {
                          "type": [
                            "string"
                          ],
                          "description": "通勤手当 支給方法 <br> <table> <thead><tr><th>識別子</th><th>支給方法</th></tr></thead> <tbody> <tr><td>`allowance_in_salary`</td><td>`金銭`</td></tr> <tr><td>`allowance_in_kind`</td><td>`現物`</td></tr> </tbody> </table>",
                          "example": "allowance_in_salary"
                        },
                        "departure_place": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "出発地点",
                          "example": "渋谷"
                        },
                        "arrival_place": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "到着地点",
                          "example": "田町"
                        },
                        "allowance": {
                          "type": [
                            "integer"
                          ],
                          "description": "支給額",
                          "example": 10000
                        },
                        "allowance_month": {
                          "type": [
                            "string"
                          ],
                          "description": "通勤手当 支給月 <br> <table> <thead><tr><th>識別子</th><th>支給月</th></tr></thead> <tbody> <tr><td>`every`</td><td>`毎月`</td></tr> <tr><td>`odd`</td><td>`1,3,5,7,9,11月`</td></tr> <tr><td>`even`</td><td>`2,4,6,8,10,12月`</td></tr> <tr><td>`one_four_seven_ten`</td><td>`1,4,7,10月`</td></tr> <tr><td>`two_five_eight_eleven`</td><td>`2,5,8,11月`</td></tr> <tr><td>`three_six_nine_twelve`</td><td>`3,6,9,12月`</td></tr> <tr><td>`one_seven`</td><td>`1,7月`</td></tr> <tr><td>`two_eight`</td><td>`2,8月`</td></tr> <tr><td>`three_nine`</td><td>`3,9月`</td></tr> <tr><td>`four_ten`</td><td>`4,10月`</td></tr> <tr><td>`five_eleven`</td><td>`5,11月`</td></tr> <tr><td>`six_twelve`</td><td>`6,12月`</td></tr> </tbody> </table>",
                          "example": "every"
                        },
                        "payment_condition": {
                          "type": [
                            "string"
                          ],
                          "description": "通勤手当 支給条件 <br> <table> <thead><tr><th>識別子</th><th>支給条件</th></tr></thead> <tbody> <tr><td>`flow_amount_payment`</td><td>`出勤日数に応じて支給`</td></tr> <tr><td>`fixed_amount_payment`</td><td>`定額で支給`</td></tr> </tbody> </table>",
                          "example": "fixed_amount_payment"
                        },
                        "max_allowance": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "上限支給額",
                          "example": 15000
                        },
                        "parking": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "description": "駐車場等料金支給条件",
                          "example": {
                            "payment_condition": "flow_amount_payment",
                            "allowance_method": "allowance_in_salary",
                            "allowance": 8000,
                            "allowance_month": "every",
                            "max_allowance": 10000
                          },
                          "properties": {
                            "payment_condition": {
                              "type": [
                                "string"
                              ],
                              "description": "駐車場等支給条件 <br> <table> <thead><tr><th>識別子</th><th>支給条件</th></tr></thead> <tbody> <tr><td>`flow_amount_payment`</td><td>`出勤日数に応じて支給`</td></tr> <tr><td>`fixed_amount_payment`</td><td>`定額で支給`</td></tr> </tbody> </table>",
                              "example": "fixed_amount_payment"
                            },
                            "allowance_method": {
                              "type": [
                                "string"
                              ],
                              "description": "駐車場等支払手段 <br> <table> <thead><tr><th>識別子</th><th>支払手段</th></tr></thead> <tbody> <tr><td>`allowance_in_salary`</td><td>`金銭`</td></tr> <tr><td>`allowance_in_kind`</td><td>`現物`</td></tr> </tbody> </table>",
                              "example": "allowance_in_salary"
                            },
                            "allowance": {
                              "type": [
                                "integer"
                              ],
                              "description": "駐車場等支給額",
                              "example": 8000
                            },
                            "allowance_month": {
                              "type": [
                                "string"
                              ],
                              "description": "駐車場等支給月 <br> <table> <thead><tr><th>識別子</th><th>支給月</th></tr></thead> <tbody> <tr><td>`every`</td><td>`毎月`</td></tr> <tr><td>`odd`</td><td>`1,3,5,7,9,11月`</td></tr> <tr><td>`even`</td><td>`2,4,6,8,10,12月`</td></tr> <tr><td>`one_four_seven_ten`</td><td>`1,4,7,10月`</td></tr> <tr><td>`two_five_eight_eleven`</td><td>`2,5,8,11月`</td></tr> <tr><td>`three_six_nine_twelve`</td><td>`3,6,9,12月`</td></tr> <tr><td>`one_seven`</td><td>`1,7月`</td></tr> <tr><td>`two_eight`</td><td>`2,8月`</td></tr> <tr><td>`three_nine`</td><td>`3,9月`</td></tr> <tr><td>`four_ten`</td><td>`4,10月`</td></tr> <tr><td>`five_eleven`</td><td>`5,11月`</td></tr> <tr><td>`six_twelve`</td><td>`6,12月`</td></tr> </tbody> </table>",
                              "example": "every"
                            },
                            "max_allowance": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "駐車場等上限支給額",
                              "example": 10000
                            }
                          }
                        }
                      },
                      "required": [
                        "type",
                        "allowance_method",
                        "departure_place",
                        "arrival_place",
                        "allowance"
                      ]
                    }
                  }
                },
                "required": [
                  "commuting_methods"
                ]
              },
              "health_insurance": {
                "type": [
                  "object"
                ],
                "properties": {
                  "standard_monthly_remuneration": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "健康保険 標準報酬月額 <br> ※対象となる報酬月額の範囲の最低値または標準報酬月額が返却されます。",
                    "example": 485000
                  },
                  "applied_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date",
                    "description": "健康保険 資格取得年月日",
                    "example": "2015-04-01"
                  },
                  "number1": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "健康保険 被保険者整理番号",
                    "example": 1
                  },
                  "expired_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date",
                    "description": "健康保険 資格喪失年月日",
                    "example": "2019-03-31"
                  },
                  "expired_reason": {
                    "type": [
                      "string"
                    ],
                    "description": "健康保険 資格資格喪失原因 <br> <table> <thead><tr><th>識別子</th><th>資格資格喪失原因</th></tr></thead> <tbody> <tr><td>`other`</td><td>`その他`</td></tr> <tr><td>`dead`</td><td>`死亡`</td></tr> <tr><td>`75years`</td><td>`75歳`</td></tr> <tr><td>`disability_determination`</td><td>`障がい者認定`</td></tr> </tbody> </table>",
                    "example": "other"
                  }
                },
                "required": [
                  "standard_monthly_remuneration",
                  "applied_at",
                  "number1",
                  "expired_at",
                  "expired_reason"
                ]
              },
              "welfare_annuity_insurance": {
                "type": [
                  "object"
                ],
                "properties": {
                  "standard_monthly_remuneration": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "厚生年金保険 標準報酬月額 <br> ※対象となる報酬月額の範囲の最低値または標準報酬月額が返却されます。",
                    "example": 485000
                  },
                  "applied_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date",
                    "description": "厚生年金保険 資格取得年月日",
                    "example": "2015-04-01"
                  },
                  "number1": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "厚生年金保険 被保険者整理番号",
                    "example": 1
                  },
                  "number2": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "厚生年金保険 被保険者整理番号",
                    "example": 2
                  },
                  "expired_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date",
                    "description": "厚生年金保険 資格喪失年月日",
                    "example": "2019-03-31"
                  },
                  "expired_reason": {
                    "type": [
                      "string"
                    ],
                    "description": "厚生年金保険 資格資格喪失原因 <br> <table> <thead><tr><th>識別子</th><th>資格資格喪失原因</th></tr></thead> <tbody> <tr><td>`other`</td><td>`その他`</td></tr> <tr><td>`dead`</td><td>`死亡`</td></tr> <tr><td>`75years`</td><td>`75歳`</td></tr> <tr><td>`disability_determination`</td><td>`障がい者認定`</td></tr> </tbody> </table>",
                    "example": "other"
                  }
                },
                "required": [
                  "standard_monthly_remuneration",
                  "applied_at",
                  "number1",
                  "number2",
                  "expired_at",
                  "expired_reason"
                ]
              },
              "compensation_insurance": {
                "type": [
                  "object"
                ],
                "properties": {
                  "employee_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "労災保険 従業員区分 <br> <table> <thead><tr><th>識別子</th><th>従業員区分</th></tr></thead> <tbody> <tr><td>`worker`</td><td>`常用`</td></tr> <tr><td>`temporary_worker`</td><td>`臨時`</td></tr> <tr><td>`director_employee`</td><td>`役員で労働者扱いの者`</td></tr> </tbody> </table>",
                    "example": "worker"
                  }
                },
                "required": [
                  "employee_type"
                ]
              },
              "unemployment_insurance": {
                "type": [
                  "object"
                ],
                "properties": {
                  "levy_exemption": {
                    "type": [
                      "string"
                    ],
                    "description": "雇用保険 免除対象高年齢労働者区分 <br> <table> <thead><tr><th>識別子</th><th>免除対象高年齢労働者</th></tr></thead> <tbody> <tr><td>`covered`</td><td>`対象`</td></tr> <tr><td>`not_covered`</td><td>`対象外`</td></tr> </tbody> </table>",
                    "example": "not_covered"
                  },
                  "number1": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "雇用保険 被保険者番号",
                    "example": 1234
                  },
                  "number2": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "雇用保険 被保険者番号",
                    "example": 567890
                  },
                  "number3": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "雇用保険 被保険者番号",
                    "example": 1
                  },
                  "applied_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date",
                    "description": "雇用保険 資格取得年月日",
                    "example": "2015-04-01"
                  },
                  "expired_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date",
                    "description": "雇用保険 離職等年月日",
                    "example": "2019-03-31"
                  },
                  "expired_reason": {
                    "type": [
                      "string"
                    ],
                    "description": "雇用保険 資格資格喪失原因 <br> <table> <thead><tr><th>識別子</th><th>資格資格喪失原因</th></tr></thead> <tbody> <tr><td>`other_entrepreneur_request`</td><td>`事業主都合以外の離職`</td></tr> <tr><td>`entrepreneur_request`</td><td>`事業主都合の離職`</td></tr> <tr><td>`other`</td><td>`離職以外の理由`</td></tr> </tbody> </table>",
                    "example": "other_entrepreneur_request"
                  }
                },
                "required": [
                  "levy_exemption",
                  "number1",
                  "number2",
                  "number3",
                  "applied_at",
                  "expired_at",
                  "expired_reason"
                ]
              },
              "accounts": {
                "description": "口座情報",
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "bank_name": {
                      "type": [
                        "string"
                      ],
                      "description": "金融機関名",
                      "example": "三井住友銀行"
                    },
                    "bank_branch_name": {
                      "type": [
                        "string"
                      ],
                      "description": "支店名",
                      "example": "三田支店"
                    },
                    "holder_name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "口座名義人",
                      "example": "財前太郎"
                    },
                    "holder_name_kana": {
                      "type": [
                        "string"
                      ],
                      "description": "口座名義人（フリガナ）",
                      "example": "ザイマエタロウ"
                    },
                    "number": {
                      "type": [
                        "string"
                      ],
                      "description": "口座番号",
                      "example": 123456
                    },
                    "memo": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "メモ",
                      "example": "給与振込用"
                    }
                  },
                  "required": [
                    "bank_name",
                    "bank_branch_name",
                    "holder_name",
                    "holder_name_kana",
                    "number"
                  ]
                }
              }
            },
            "required": [
              "employee_id",
              "name",
              "name_kana",
              "gender",
              "birthday",
              "tel",
              "address",
              "joined_at",
              "retired_at",
              "retirement_type",
              "retirement_reason",
              "number",
              "contract_type",
              "salary_form",
              "group",
              "department",
              "occupation",
              "resident_tax",
              "income_tax",
              "dependents",
              "payment_items",
              "commuting_allowance",
              "accounts"
            ]
          }
        },
        {
          "rel": "departments",
          "href": "/offices/{office_api_key}/departments",
          "method": "GET",
          "title": "部門一覧",
          "description": "マネーフォワード クラウド給与の基本設定ページで表示されている、全ての部門を返却します。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "departments": {
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "部門名",
                      "example": "営業部"
                    }
                  },
                  "required": [
                    "name"
                  ]
                }
              }
            },
            "required": [
              "departments"
            ]
          }
        },
        {
          "rel": "office_payment_items",
          "href": "/offices/{office_api_key}/office_payment_items",
          "method": "GET",
          "title": "支給項目一覧",
          "description": "マネーフォワード クラウド給与の支給項目設定ページで表示されている、全ての支給項目を返却します。<br> ※ユーザが追加した項目も出力対象です。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "office_payment_items": {
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "支給項目の名称",
                      "example": "基本給"
                    },
                    "type": {
                      "type": [
                        "string"
                      ],
                      "description": "支給項目の区分",
                      "example": "月給"
                    },
                    "is_active?": {
                      "type": [
                        "boolean"
                      ],
                      "description": "現在有効な項目であるか"
                    }
                  },
                  "required": [
                    "name",
                    "type",
                    "is_active?"
                  ]
                }
              }
            },
            "required": [
              "office_payment_items"
            ]
          }
        },
        {
          "rel": "office_deduction_items",
          "href": "/offices/{office_api_key}/office_deduction_items",
          "method": "GET",
          "title": "控除項目一覧",
          "description": "マネーフォワード クラウド給与の控除項目設定ページで表示されている、全ての控除項目を返却します。<br> ※ユーザが追加した項目も出力対象です。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "office_deduction_items": {
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "控除項目の名称",
                      "example": "健康保険料"
                    },
                    "is_active?": {
                      "type": [
                        "boolean"
                      ],
                      "description": "現在有効な項目であるか"
                    }
                  },
                  "required": [
                    "name",
                    "is_active?"
                  ]
                }
              }
            },
            "required": [
              "office_deduction_items"
            ]
          }
        },
        {
          "rel": "office_attendance_items",
          "href": "/offices/{office_api_key}/office_attendance_items",
          "method": "GET",
          "title": "勤怠項目一覧",
          "description": "マネーフォワード クラウド給与の勤怠項目設定ページで表示されている、全ての勤怠項目を返却します。<br> ※ユーザが追加した項目も出力対象です。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "office_attendance_items": {
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "attendance_category_id": {
                      "type": [
                        "integer"
                      ],
                      "description": "勤怠カテゴリID",
                      "example": 1
                    },
                    "attendance_category_name": {
                      "type": [
                        "string"
                      ],
                      "description": "勤怠カテゴリ名",
                      "example": "所定労働"
                    },
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "勤怠項目の名称",
                      "example": "1日の所定労働時間"
                    },
                    "is_active?": {
                      "type": [
                        "boolean"
                      ],
                      "description": "現在有効な項目であるか"
                    },
                    "unit": {
                      "type": [
                        "string"
                      ],
                      "description": "勤怠項目の単位 <table> <thead><tr><th>識別子</th><th>単位</th></tr></thead> <tbody> <tr><td>`days`</td><td>`0.0日`</td></tr> <tr><td>`hours`</td><td>`0時間`</td></tr> <tr><td>`hours_decimal_1`</td><td>`0.0時間`</td></tr> <tr><td>`hours_decimal_2`</td><td>`0.00時間`</td></tr> <tr><td>`number_of_times`</td><td>`0.0回`</td></tr> <tr><td>`minutes`</td><td>`000時間00分`</td></tr> </tbody> </table>",
                      "example": "hours_decimal_1"
                    }
                  },
                  "required": [
                    "attendance_category_id",
                    "attendance_category_name",
                    "name",
                    "is_active?",
                    "unit"
                  ]
                }
              }
            },
            "required": [
              "office_attendance_items"
            ]
          }
        },
        {
          "rel": "office_absorption_items",
          "href": "/offices/{office_api_key}/office_absorption_items",
          "method": "GET",
          "title": "会社負担額項目一覧",
          "description": "給与計算結果詳細、賞与計算結果詳細に含まれる会社負担額項目の一覧を返却します。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "office_absorption_items": {
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "会社負担額項目の名称",
                      "example": "健康保険料"
                    }
                  },
                  "required": [
                    "name"
                  ]
                }
              }
            },
            "required": [
              "office_absorption_items"
            ]
          }
        },
        {
          "rel": "payroll_groups",
          "href": "/offices/{office_api_key}/payroll_groups",
          "method": "GET",
          "title": "給与計算グループ一覧",
          "description": "給与計算グループの一覧を返却します。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "payroll_groups": {
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "payroll_group_id": {
                      "type": [
                        "string"
                      ],
                      "description": "給与計算グループの識別子",
                      "example": "L3oQZ4dBO7j9HdLGmBOjdw"
                    },
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "給与計算グループの名称",
                      "example": "末締翌25払"
                    },
                    "closing_day": {
                      "type": [
                        "string"
                      ],
                      "description": "給与計算グループの締め日設定",
                      "example": "末日"
                    },
                    "payday": {
                      "type": [
                        "string"
                      ],
                      "description": "給与計算グループの支給日設定",
                      "example": "翌月25日"
                    }
                  },
                  "required": [
                    "payroll_group_id",
                    "name",
                    "closing_day",
                    "payday"
                  ]
                }
              }
            },
            "required": [
              "payroll_groups"
            ]
          }
        },
        {
          "rel": "payrolls",
          "href": "/offices/{office_api_key}/payrolls",
          "method": "GET",
          "title": "給与計算結果一覧",
          "description": "「確定済み」となっている給与計算の一覧を返却します。<br> ※ 給与計算はキャンセルが可能なので、取得のタイミングによって、キャンセルされた給与計算が一覧に含まれない可能性があります。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "payrolls": {
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "payroll_id": {
                      "type": [
                        "string"
                      ],
                      "description": "給与計算の識別子",
                      "example": "L3oQZ4dBO7j9HdLGmBOjdw"
                    },
                    "payroll_group_id": {
                      "type": [
                        "string"
                      ],
                      "description": "給与計算グループの識別子",
                      "example": "L3oQZ4dBO7j9HdLGmBOjdw"
                    },
                    "closed_at": {
                      "type": [
                        "string"
                      ],
                      "format": "date",
                      "description": "給与計算の締め日",
                      "example": "2017-03-31"
                    },
                    "paid_at": {
                      "type": [
                        "string"
                      ],
                      "format": "date",
                      "description": "給与計算の支給日",
                      "example": "2017-04-20"
                    },
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "給与計算の名称",
                      "example": "平成29年01月度 給与"
                    }
                  },
                  "required": [
                    "payroll_id",
                    "payroll_group_id",
                    "closed_at",
                    "paid_at",
                    "name"
                  ]
                }
              }
            },
            "required": [
              "payrolls"
            ]
          }
        },
        {
          "rel": "payroll",
          "href": "/offices/{office_api_key}/payrolls/{payroll_id}",
          "method": "GET",
          "title": "給与計算結果詳細",
          "description": "「確定済み」となっている給与計算のうち、`payroll_id` で指定された給与計算の、従業員単位の「支給項目・控除項目・合計項目・勤怠項目」の計算結果の一覧を返却します。<br> ※ 給与計算はキャンセルが可能なので、取得のタイミングによって、`payroll_not_found_error` となる可能性があります。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "employees": {
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "id": {
                      "type": [
                        "string"
                      ],
                      "description": "従業員識別子",
                      "example": "1W1V4e_QqVrROmY1nXTOOA"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "従業員番号",
                      "example": "A0001"
                    },
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "従業員氏名",
                      "example": "財前 太郎"
                    },
                    "name_kana": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "従業員氏名 フリガナ",
                      "example": "ザイマエ タロウ"
                    },
                    "department": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "name": {
                          "type": [
                            "string"
                          ],
                          "description": "部門名",
                          "example": "営業部"
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "payment_items": {
                      "type": [
                        "array"
                      ],
                      "items": {
                        "type": [
                          "object"
                        ],
                        "properties": {
                          "name": {
                            "type": [
                              "string"
                            ],
                            "description": "支給項目名",
                            "example": "基本給(月給)"
                          },
                          "amount": {
                            "type": [
                              "integer"
                            ],
                            "description": "金額",
                            "example": 350000
                          }
                        },
                        "required": [
                          "name",
                          "amount"
                        ]
                      }
                    },
                    "deduction_items": {
                      "type": [
                        "array"
                      ],
                      "items": {
                        "type": [
                          "object"
                        ],
                        "properties": {
                          "name": {
                            "type": [
                              "string"
                            ],
                            "description": "控除項目名",
                            "example": "健康保険料"
                          },
                          "amount": {
                            "type": [
                              "integer"
                            ],
                            "description": "金額",
                            "example": 14865
                          }
                        },
                        "required": [
                          "name",
                          "amount"
                        ]
                      }
                    },
                    "attendance_items": {
                      "type": [
                        "array"
                      ],
                      "items": {
                        "type": [
                          "object"
                        ],
                        "properties": {
                          "name": {
                            "type": [
                              "string"
                            ],
                            "description": "勤怠項目名",
                            "example": "残業時間"
                          },
                          "unit": {
                            "type": [
                              "string"
                            ],
                            "description": "勤怠項目の単位 <table> <thead><tr><th>識別子</th><th>単位</th></tr></thead> <tbody> <tr><td>`days`</td><td>`0.0日`</td></tr> <tr><td>`hours`</td><td>`0時間`</td></tr> <tr><td>`hours_decimal_1`</td><td>`0.0時間`</td></tr> <tr><td>`hours_decimal_2`</td><td>`0.00時間`</td></tr> <tr><td>`number_of_times`</td><td>`0.0回`</td></tr> <tr><td>`minutes`</td><td>`000時間00分`</td></tr> </tbody> </table>",
                            "example": "hours_decimal_2"
                          },
                          "number": {
                            "type": [
                              "number"
                            ],
                            "description": "時間または日数（小数点2桁）",
                            "example": 21.34
                          }
                        },
                        "required": [
                          "name",
                          "unit",
                          "number"
                        ]
                      }
                    },
                    "absorption_items": {
                      "type": [
                        "array"
                      ],
                      "items": {
                        "type": [
                          "object"
                        ],
                        "properties": {
                          "name": {
                            "type": [
                              "string"
                            ],
                            "description": "会社負担額項目名",
                            "example": "健康保険料"
                          },
                          "amount": {
                            "type": [
                              "integer"
                            ],
                            "description": "金額",
                            "example": 14865
                          }
                        },
                        "required": [
                          "name",
                          "amount"
                        ]
                      }
                    },
                    "balances": {
                      "type": [
                        "array"
                      ],
                      "items": {
                        "type": [
                          "object"
                        ],
                        "properties": {
                          "name": {
                            "type": [
                              "string"
                            ],
                            "description": "合計項目名",
                            "example": "課税支給合計"
                          },
                          "amount": {
                            "type": [
                              "integer"
                            ],
                            "description": "金額",
                            "example": 500000
                          }
                        },
                        "required": [
                          "name",
                          "amount"
                        ]
                      }
                    },
                    "miscellaneous_information": {
                      "type": [
                        "object"
                      ],
                      "properties": {
                        "memo": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "備考欄",
                          "example": "今月もお疲れ様でした！"
                        }
                      },
                      "required": [
                        "memo"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "number",
                    "name",
                    "name_kana",
                    "payment_items",
                    "deduction_items",
                    "attendance_items",
                    "balances",
                    "miscellaneous_information"
                  ]
                }
              }
            },
            "required": [
              "employees"
            ]
          }
        },
        {
          "rel": "bonuses",
          "href": "/offices/{office_api_key}/bonuses",
          "method": "GET",
          "title": "賞与計算結果一覧",
          "description": "「確定済み」となっている賞与計算の一覧を返却します。<br> ※ 賞与計算はキャンセルが可能なので、取得のタイミングによって、キャンセルされた賞与計算が一覧に含まれない可能性があります。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "bonuses": {
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "bonus_id": {
                      "type": [
                        "string"
                      ],
                      "description": "賞与計算の識別子",
                      "example": "L3oQZ4dBO7j9HdLGmBOjdw"
                    },
                    "started_at": {
                      "type": [
                        "string"
                      ],
                      "format": "date",
                      "description": "賞与対象期間の開始日",
                      "example": "2017-01-01"
                    },
                    "expired_at": {
                      "type": [
                        "string"
                      ],
                      "format": "date",
                      "description": "賞与対象期間の満了日",
                      "example": "2017-05-31"
                    },
                    "paid_at": {
                      "type": [
                        "string"
                      ],
                      "format": "date",
                      "description": "賞与計算の支給日",
                      "example": "2017-06-20"
                    },
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "賞与計算の名称",
                      "example": "平成29年度夏季賞与"
                    }
                  },
                  "required": [
                    "bonus_id",
                    "started_at",
                    "expired_at",
                    "paid_at",
                    "name"
                  ]
                }
              }
            },
            "required": [
              "bonuses"
            ]
          }
        },
        {
          "rel": "bonus",
          "href": "/offices/{office_api_key}/bonuses/{bonus_id}",
          "method": "GET",
          "title": "賞与計算結果詳細",
          "description": "「確定済み」となっている賞与計算のうち、`bonus_id` で指定された賞与計算の、従業員単位の「支給項目・控除項目・合計項目」の計算結果の一覧を返却します。<br> ※ 賞与計算はキャンセル及び削除が可能なので、取得のタイミングによって、`bonus_not_found_error` となる可能性があります。",
          "schema": {
            "type": [
              "object"
            ],
            "properties": {
              "identifier": {
                "type": [
                  "string"
                ],
                "description": "連携識別子",
                "example": "be48858b-be33-4898-80ce-190bb87e089a"
              }
            },
            "required": [
              "identifier"
            ]
          },
          "targetSchema": {
            "type": [
              "object"
            ],
            "properties": {
              "employees": {
                "type": [
                  "array"
                ],
                "items": {
                  "type": [
                    "object"
                  ],
                  "properties": {
                    "id": {
                      "type": [
                        "string"
                      ],
                      "description": "従業員識別子",
                      "example": "1W1V4e_QqVrROmY1nXTOOA"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "従業員番号",
                      "example": "A0001"
                    },
                    "name": {
                      "type": [
                        "string"
                      ],
                      "description": "従業員氏名",
                      "example": "財前 太郎"
                    },
                    "name_kana": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "従業員氏名 フリガナ",
                      "example": "ザイマエ タロウ"
                    },
                    "department": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "name": {
                          "type": [
                            "string"
                          ],
                          "description": "部門名",
                          "example": "営業部"
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "payment_items": {
                      "type": [
                        "array"
                      ],
                      "items": {
                        "type": [
                          "object"
                        ],
                        "properties": {
                          "name": {
                            "type": [
                              "string"
                            ],
                            "description": "支給項目名",
                            "example": "賞与手当"
                          },
                          "amount": {
                            "type": [
                              "integer"
                            ],
                            "description": "金額",
                            "example": 500000
                          }
                        },
                        "required": [
                          "name",
                          "amount"
                        ]
                      }
                    },
                    "deduction_items": {
                      "type": [
                        "array"
                      ],
                      "items": {
                        "type": [
                          "object"
                        ],
                        "properties": {
                          "name": {
                            "type": [
                              "string"
                            ],
                            "description": "控除項目名",
                            "example": "健康保険料"
                          },
                          "amount": {
                            "type": [
                              "integer"
                            ],
                            "description": "金額",
                            "example": 14865
                          }
                        },
                        "required": [
                          "name",
                          "amount"
                        ]
                      }
                    },
                    "absorption_items": {
                      "type": [
                        "array"
                      ],
                      "items": {
                        "type": [
                          "object"
                        ],
                        "properties": {
                          "name": {
                            "type": [
                              "string"
                            ],
                            "description": "会社負担額項目名",
                            "example": "健康保険料"
                          },
                          "amount": {
                            "type": [
                              "integer"
                            ],
                            "description": "金額",
                            "example": 14865
                          }
                        },
                        "required": [
                          "name",
                          "amount"
                        ]
                      }
                    },
                    "balances": {
                      "type": [
                        "array"
                      ],
                      "items": {
                        "type": [
                          "object"
                        ],
                        "properties": {
                          "name": {
                            "type": [
                              "string"
                            ],
                            "description": "合計項目名<br> ※賞与計算には「固定賃金合計」「役員報酬合計」「割増基礎合計」「控除基礎合計」は含まれません",
                            "example": "課税支給合計"
                          },
                          "amount": {
                            "type": [
                              "integer"
                            ],
                            "description": "金額",
                            "example": 500000
                          }
                        },
                        "required": [
                          "name",
                          "amount"
                        ]
                      }
                    },
                    "miscellaneous_information": {
                      "type": [
                        "object"
                      ],
                      "properties": {
                        "memo": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "備考欄",
                          "example": "前期大活躍でしたね！今期もよろしくお願いします！"
                        }
                      },
                      "required": [
                        "memo"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "number",
                    "name",
                    "name_kana",
                    "payment_items",
                    "deduction_items",
                    "balances",
                    "miscellaneous_information"
                  ]
                }
              }
            },
            "required": [
              "employees"
            ]
          }
        }
      ]
    }
  },
  "properties": {
    "office": {
      "$ref": "#/definitions/office"
    }
  },
  "title": "マネーフォワード クラウド給与 API JSON Schema",
  "id": "meta",
  "links": [
    {
      "href": "https://payroll.moneyforward.com/api/v2",
      "rel": "self"
    }
  ]
}
