From 001ce2ad3c48798ffaa9f5be7d0925e422577fe0 Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Mon, 13 Dec 2021 09:13:44 +0000 Subject: [PATCH] Update schema files --- v2020_06_15/open-api-3/api-schema.json | 1229 ++++++++++++------------ v2020_06_15/open-api-3/api-schema.yml | 1143 +++++++++++----------- 2 files changed, 1193 insertions(+), 1179 deletions(-) diff --git a/v2020_06_15/open-api-3/api-schema.json b/v2020_06_15/open-api-3/api-schema.json index 613e8c5..6d4f0c8 100644 --- a/v2020_06_15/open-api-3/api-schema.json +++ b/v2020_06_15/open-api-3/api-schema.json @@ -3403,7 +3403,7 @@ "deals": { "type": "array", "items": { - "$ref": "#/components/schemas/dealResponse/properties/deal" + "$ref": "#/components/schemas/deal" } }, "meta": { @@ -7313,7 +7313,7 @@ "banks": { "type": "array", "items": { - "$ref": "#/components/schemas/bankResponse/properties/bank" + "$ref": "#/components/schemas/bank" } } } @@ -14019,7 +14019,7 @@ "expense_application_line_templates": { "type": "array", "items": { - "$ref": "#/components/schemas/expenseApplicationLineTemplateResponse/properties/expense_application_line_template" + "$ref": "#/components/schemas/expense_application_line_template" } } } @@ -19524,6 +19524,42 @@ } } }, + "bank": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "連携サービスID", + "example": 1 + }, + "name": { + "type": "string", + "description": "連携サービス名", + "example": "フリー銀行" + }, + "type": { + "type": "string", + "description": "連携サービス種別: (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet)", + "example": "bank_account", + "enum": [ + "bank_account", + "credit_card", + "wallet" + ] + }, + "name_kana": { + "type": "string", + "description": "連携サービス名(カナ)", + "example": "フリーギンコウ", + "nullable": true + } + } + }, "bankResponse": { "type": "object", "required": [ @@ -19531,40 +19567,7 @@ ], "properties": { "bank": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "連携サービスID", - "example": 1 - }, - "name": { - "type": "string", - "description": "連携サービス名", - "example": "フリー銀行" - }, - "type": { - "type": "string", - "description": "連携サービス種別: (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet)", - "example": "bank_account", - "enum": [ - "bank_account", - "credit_card", - "wallet" - ] - }, - "name_kana": { - "type": "string", - "description": "連携サービス名(カナ)", - "example": "フリーギンコウ", - "nullable": true - } - } + "$ref": "#/components/schemas/bank" } } }, @@ -27392,542 +27395,534 @@ } } }, - "dealResponse": { + "deal": { "type": "object", "required": [ - "deal" + "amount", + "company_id", + "id", + "issue_date", + "partner_id", + "status" ], "properties": { - "deal": { - "type": "object", - "required": [ - "amount", - "company_id", - "id", - "issue_date", - "partner_id", - "status" - ], - "properties": { - "id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "取引ID", - "example": 101 - }, - "company_id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "事業所ID", - "example": 1 - }, - "issue_date": { - "type": "string", - "description": "発生日 (yyyy-mm-dd)", - "example": "2019-12-17" - }, - "due_date": { - "type": "string", - "description": "支払期日 (yyyy-mm-dd)", - "example": "2019-12-17" - }, - "amount": { - "type": "integer", - "format": "int64", - "minimum": -9223372036854775808, - "maximum": 9223372036854775807, - "description": "金額", - "example": 5250 - }, - "due_amount": { - "type": "integer", - "description": "支払金額", - "example": 0 - }, - "type": { - "type": "string", - "description": "収支区分 (収入: income, 支出: expense)", - "example": "expense", - "enum": [ - "income", - "expense" - ] - }, - "partner_id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "取引先ID", - "example": 201 - }, - "partner_code": { - "type": "string", - "description": "取引先コード", - "example": "code001", - "nullable": true - }, - "ref_number": { - "type": "string", - "description": "管理番号", - "example": "123-456" - }, - "status": { - "type": "string", - "description": "決済状況 (未決済: unsettled, 完了: settled)", - "example": "settled", - "enum": [ - "unsettled", - "settled" - ] - }, - "details": { - "type": "array", - "description": "取引の明細行", - "items": { - "type": "object", - "required": [ - "account_item_id", - "amount", - "entry_side", - "id", - "tax_code", - "vat" - ], - "properties": { - "id": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 9223372036854775807, - "description": "取引行ID", - "example": 11 - }, - "account_item_id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "勘定科目ID", - "example": 803 - }, - "tax_code": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647, - "description": "税区分コード", - "example": 2 - }, - "item_id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "品目ID", - "example": 501, - "nullable": true - }, - "section_id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "部門ID", - "example": 1, - "nullable": true - }, - "tag_ids": { - "type": "array", - "description": "メモタグID", - "example": [ - 1, - 2, - 3 - ], - "items": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647 - } - }, - "segment_1_tag_id": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 9223372036854775807, - "description": "セグメント1ID", - "example": 1, - "nullable": true - }, - "segment_2_tag_id": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 9223372036854775807, - "description": "セグメント2ID", - "example": 1, - "nullable": true - }, - "segment_3_tag_id": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 9223372036854775807, - "description": "セグメント3ID", - "example": 1, - "nullable": true - }, - "amount": { - "type": "integer", - "format": "int64", - "minimum": -9223372036854775808, - "maximum": 9223372036854775807, - "description": "取引金額", - "example": 5250 - }, - "vat": { - "type": "integer", - "description": "消費税額", - "example": 250 - }, - "description": { - "type": "string", - "description": "備考", - "example": "備考" - }, - "entry_side": { - "type": "string", - "description": "貸借(貸方: credit, 借方: debit)", - "example": "debit", - "enum": [ - "credit", - "debit" - ] - } - } - } - }, - "renews": { - "type": "array", - "description": "取引の+更新行", - "items": { - "type": "object", - "required": [ - "details", - "id", - "renew_target_id", - "renew_target_type", - "update_date" + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "取引ID", + "example": 101 + }, + "company_id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "事業所ID", + "example": 1 + }, + "issue_date": { + "type": "string", + "description": "発生日 (yyyy-mm-dd)", + "example": "2019-12-17" + }, + "due_date": { + "type": "string", + "description": "支払期日 (yyyy-mm-dd)", + "example": "2019-12-17" + }, + "amount": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854775808, + "maximum": 9223372036854775807, + "description": "金額", + "example": 5250 + }, + "due_amount": { + "type": "integer", + "description": "支払金額", + "example": 0 + }, + "type": { + "type": "string", + "description": "収支区分 (収入: income, 支出: expense)", + "example": "expense", + "enum": [ + "income", + "expense" + ] + }, + "partner_id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "取引先ID", + "example": 201 + }, + "partner_code": { + "type": "string", + "description": "取引先コード", + "example": "code001", + "nullable": true + }, + "ref_number": { + "type": "string", + "description": "管理番号", + "example": "123-456" + }, + "status": { + "type": "string", + "description": "決済状況 (未決済: unsettled, 完了: settled)", + "example": "settled", + "enum": [ + "unsettled", + "settled" + ] + }, + "details": { + "type": "array", + "description": "取引の明細行", + "items": { + "type": "object", + "required": [ + "account_item_id", + "amount", + "entry_side", + "id", + "tax_code", + "vat" + ], + "properties": { + "id": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 9223372036854775807, + "description": "取引行ID", + "example": 11 + }, + "account_item_id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "勘定科目ID", + "example": 803 + }, + "tax_code": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "税区分コード", + "example": 2 + }, + "item_id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "品目ID", + "example": 501, + "nullable": true + }, + "section_id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "部門ID", + "example": 1, + "nullable": true + }, + "tag_ids": { + "type": "array", + "description": "メモタグID", + "example": [ + 1, + 2, + 3 ], - "properties": { - "id": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 9223372036854775807, - "description": "+更新行ID", - "example": 11 - }, - "update_date": { - "type": "string", - "description": "更新日 (yyyy-mm-dd)", - "example": "2019-12-17" - }, - "renew_target_id": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 9223372036854775807, - "description": "+更新の対象行ID", - "example": 12 - }, - "renew_target_type": { - "type": "string", - "description": "+更新の対象行タイプ", - "example": "detail", - "enum": [ - "detail", - "accrual", - "renew" - ] - }, - "details": { - "type": "array", - "description": "+更新の明細行一覧(配列)", - "items": { - "required": [ - "account_item_id", - "amount", - "entry_side", - "id", - "tag_ids", - "tax_code", - "vat" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 9223372036854775807, - "description": "+更新の明細行ID", - "example": 1 - }, - "entry_side": { - "type": "string", - "description": "貸借(貸方: credit, 借方: debit)", - "example": "debit", - "enum": [ - "credit", - "debit" - ] - }, - "account_item_id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "勘定科目ID", - "example": 1 - }, - "tax_code": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647, - "description": "税区分コード", - "example": 1 - }, - "item_id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "品目ID", - "example": 1, - "nullable": true - }, - "section_id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "部門ID", - "example": 1, - "nullable": true - }, - "tag_ids": { - "type": "array", - "items": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "メモタグID", - "example": 1 - } - }, - "segment_1_tag_id": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 9223372036854775807, - "description": "セグメント1ID", - "example": 1, - "nullable": true - }, - "segment_2_tag_id": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 9223372036854775807, - "description": "セグメント2ID", - "example": 1, - "nullable": true - }, - "segment_3_tag_id": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 9223372036854775807, - "description": "セグメント3ID", - "example": 1, - "nullable": true - }, - "amount": { - "type": "integer", - "format": "int64", - "minimum": -9223372036854775808, - "maximum": 9223372036854775807, - "description": "金額(税込で指定してください)", - "example": 108000 - }, - "vat": { - "type": "integer", - "description": "消費税額(指定しない場合は自動で計算されます)", - "example": 8000 - }, - "description": { - "type": "string", - "description": "備考", - "example": "備考", - "nullable": true - } - } - } - } + "items": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647 } + }, + "segment_1_tag_id": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 9223372036854775807, + "description": "セグメント1ID", + "example": 1, + "nullable": true + }, + "segment_2_tag_id": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 9223372036854775807, + "description": "セグメント2ID", + "example": 1, + "nullable": true + }, + "segment_3_tag_id": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 9223372036854775807, + "description": "セグメント3ID", + "example": 1, + "nullable": true + }, + "amount": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854775808, + "maximum": 9223372036854775807, + "description": "取引金額", + "example": 5250 + }, + "vat": { + "type": "integer", + "description": "消費税額", + "example": 250 + }, + "description": { + "type": "string", + "description": "備考", + "example": "備考" + }, + "entry_side": { + "type": "string", + "description": "貸借(貸方: credit, 借方: debit)", + "example": "debit", + "enum": [ + "credit", + "debit" + ] } - }, - "payments": { - "type": "array", - "description": "取引の支払行", - "items": { - "type": "object", - "required": [ - "amount", - "date", - "id" - ], - "properties": { - "id": { - "type": "integer", - "format": "int64", - "minimum": 1, - "maximum": 9223372036854775807, - "description": "取引行ID", - "example": 202 - }, - "date": { - "type": "string", - "description": "支払日", - "example": "2019-12-17" - }, - "from_walletable_type": { - "type": "string", - "description": "口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet, プライベート資金(法人の場合は役員借入金もしくは役員借入金、個人の場合は事業主貸もしくは事業主借): private_account_item)", - "example": "bank_account", - "enum": [ - "bank_account", - "credit_card", - "wallet", - "private_account_item" - ] - }, - "from_walletable_id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "口座ID(from_walletable_typeがprivate_account_itemの場合は勘定科目ID)", - "example": 103 - }, - "amount": { - "type": "integer", - "format": "int64", - "minimum": -9223372036854775808, - "maximum": 9223372036854775807, - "description": "支払金額", - "example": 5250 + } + } + }, + "renews": { + "type": "array", + "description": "取引の+更新行", + "items": { + "type": "object", + "required": [ + "details", + "id", + "renew_target_id", + "renew_target_type", + "update_date" + ], + "properties": { + "id": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 9223372036854775807, + "description": "+更新行ID", + "example": 11 + }, + "update_date": { + "type": "string", + "description": "更新日 (yyyy-mm-dd)", + "example": "2019-12-17" + }, + "renew_target_id": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 9223372036854775807, + "description": "+更新の対象行ID", + "example": 12 + }, + "renew_target_type": { + "type": "string", + "description": "+更新の対象行タイプ", + "example": "detail", + "enum": [ + "detail", + "accrual", + "renew" + ] + }, + "details": { + "type": "array", + "description": "+更新の明細行一覧(配列)", + "items": { + "required": [ + "account_item_id", + "amount", + "entry_side", + "id", + "tag_ids", + "tax_code", + "vat" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 9223372036854775807, + "description": "+更新の明細行ID", + "example": 1 + }, + "entry_side": { + "type": "string", + "description": "貸借(貸方: credit, 借方: debit)", + "example": "debit", + "enum": [ + "credit", + "debit" + ] + }, + "account_item_id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "勘定科目ID", + "example": 1 + }, + "tax_code": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "税区分コード", + "example": 1 + }, + "item_id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "品目ID", + "example": 1, + "nullable": true + }, + "section_id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "部門ID", + "example": 1, + "nullable": true + }, + "tag_ids": { + "type": "array", + "items": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "メモタグID", + "example": 1 + } + }, + "segment_1_tag_id": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 9223372036854775807, + "description": "セグメント1ID", + "example": 1, + "nullable": true + }, + "segment_2_tag_id": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 9223372036854775807, + "description": "セグメント2ID", + "example": 1, + "nullable": true + }, + "segment_3_tag_id": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 9223372036854775807, + "description": "セグメント3ID", + "example": 1, + "nullable": true + }, + "amount": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854775808, + "maximum": 9223372036854775807, + "description": "金額(税込で指定してください)", + "example": 108000 + }, + "vat": { + "type": "integer", + "description": "消費税額(指定しない場合は自動で計算されます)", + "example": 8000 + }, + "description": { + "type": "string", + "description": "備考", + "example": "備考", + "nullable": true + } } } } - }, - "receipts": { - "type": "array", - "description": "証憑ファイル(ファイルボックスのファイル)", - "items": { - "type": "object", + } + } + }, + "payments": { + "type": "array", + "description": "取引の支払行", + "items": { + "type": "object", + "required": [ + "amount", + "date", + "id" + ], + "properties": { + "id": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 9223372036854775807, + "description": "取引行ID", + "example": 202 + }, + "date": { + "type": "string", + "description": "支払日", + "example": "2019-12-17" + }, + "from_walletable_type": { + "type": "string", + "description": "口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet, プライベート資金(法人の場合は役員借入金もしくは役員借入金、個人の場合は事業主貸もしくは事業主借): private_account_item)", + "example": "bank_account", + "enum": [ + "bank_account", + "credit_card", + "wallet", + "private_account_item" + ] + }, + "from_walletable_id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "口座ID(from_walletable_typeがprivate_account_itemの場合は勘定科目ID)", + "example": 103 + }, + "amount": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854775808, + "maximum": 9223372036854775807, + "description": "支払金額", + "example": 5250 + } + } + } + }, + "receipts": { + "type": "array", + "description": "証憑ファイル(ファイルボックスのファイル)", + "items": { + "type": "object", + "required": [ + "created_at", + "file_src", + "id", + "mime_type", + "origin", + "status", + "user" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "証憑ファイルID(ファイルボックスのファイルID)", + "example": 1 + }, + "status": { + "type": "string", + "description": "ステータス(unconfirmed:確認待ち、confirmed:確認済み、deleted:削除済み、ignored:無視)", + "example": "unconfirmed", + "enum": [ + "unconfirmed", + "confirmed", + "deleted", + "ignored" + ] + }, + "description": { + "type": "string", + "description": "メモ", + "example": "タクシー利用" + }, + "mime_type": { + "type": "string", + "description": "MIMEタイプ", + "example": "image/png" + }, + "issue_date": { + "type": "string", + "description": "発生日", + "example": "2019-12-17" + }, + "origin": { + "type": "string", + "description": "アップロード元種別", + "example": "public_api", + "enum": [ + "unknown", + "web", + "mobile_camera", + "mobile_album", + "scansnap", + "scannable", + "dropbox", + "mail", + "safety_contact_file", + "public_api" + ] + }, + "created_at": { + "type": "string", + "description": "作成日時(ISO8601形式)", + "example": "2019-12-17T18:30:24+09:00" + }, + "file_src": { + "type": "string", + "description": "ファイルのダウンロードURL(freeeにログインした状態でのみ閲覧可能です。)\n
\n
\nfile_srcは廃止予定の属性になります。
\nfile_srcに替わり、証憑ファイル(ファイルボックスのファイル)のダウンロード APIをご利用ください。
\n証憑ファイル(ファイルボックスのファイル)のダウンロードAPIを利用することで、以下のようになります。\n", + "example": "https://www.freee.co.jp/api/p/receipts/revisions/1234xxxxx/download", + "deprecated": true + }, + "user": { "required": [ - "created_at", - "file_src", - "id", - "mime_type", - "origin", - "status", - "user" + "email", + "id" ], + "type": "object", "properties": { "id": { "type": "integer", "minimum": 1, "maximum": 2147483647, - "description": "証憑ファイルID(ファイルボックスのファイルID)", + "description": "ユーザーID", "example": 1 }, - "status": { - "type": "string", - "description": "ステータス(unconfirmed:確認待ち、confirmed:確認済み、deleted:削除済み、ignored:無視)", - "example": "unconfirmed", - "enum": [ - "unconfirmed", - "confirmed", - "deleted", - "ignored" - ] - }, - "description": { - "type": "string", - "description": "メモ", - "example": "タクシー利用" - }, - "mime_type": { - "type": "string", - "description": "MIMEタイプ", - "example": "image/png" - }, - "issue_date": { - "type": "string", - "description": "発生日", - "example": "2019-12-17" - }, - "origin": { - "type": "string", - "description": "アップロード元種別", - "example": "public_api", - "enum": [ - "unknown", - "web", - "mobile_camera", - "mobile_album", - "scansnap", - "scannable", - "dropbox", - "mail", - "safety_contact_file", - "public_api" - ] - }, - "created_at": { + "email": { "type": "string", - "description": "作成日時(ISO8601形式)", - "example": "2019-12-17T18:30:24+09:00" + "description": "メールアドレス", + "example": "contact@example.com" }, - "file_src": { + "display_name": { "type": "string", - "description": "ファイルのダウンロードURL(freeeにログインした状態でのみ閲覧可能です。)\n
\n
\nfile_srcは廃止予定の属性になります。
\nfile_srcに替わり、証憑ファイル(ファイルボックスのファイル)のダウンロード APIをご利用ください。
\n証憑ファイル(ファイルボックスのファイル)のダウンロードAPIを利用することで、以下のようになります。\n", - "example": "https://www.freee.co.jp/api/p/receipts/revisions/1234xxxxx/download", - "deprecated": true - }, - "user": { - "required": [ - "email", - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "ユーザーID", - "example": 1 - }, - "email": { - "type": "string", - "description": "メールアドレス", - "example": "contact@example.com" - }, - "display_name": { - "type": "string", - "description": "表示名", - "example": "フリー太郎", - "nullable": true - } - } + "description": "表示名", + "example": "フリー太郎", + "nullable": true } } } @@ -27936,6 +27931,17 @@ } } }, + "dealResponse": { + "type": "object", + "required": [ + "deal" + ], + "properties": { + "deal": { + "$ref": "#/components/schemas/deal" + } + } + }, "selectablesIndexResponse": { "type": "object", "properties": { @@ -31041,6 +31047,67 @@ } } }, + "expense_application_line_template": { + "type": "object", + "required": [ + "account_item_name", + "id", + "name", + "tax_name" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "経費科目ID", + "example": 1 + }, + "name": { + "type": "string", + "description": "経費科目名", + "example": "交通費" + }, + "account_item_id": { + "type": "integer", + "maximum": 2147483647, + "description": "勘定科目ID", + "example": 1 + }, + "account_item_name": { + "type": "string", + "description": "勘定科目名", + "example": "旅費交通費" + }, + "tax_code": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "税区分コード", + "example": 1 + }, + "tax_name": { + "type": "string", + "description": "税区分名", + "example": "課対仕入" + }, + "description": { + "type": "string", + "description": "経費科目の説明", + "example": "電車、バス、飛行機などの交通費" + }, + "line_description": { + "type": "string", + "description": "内容の補足", + "example": "移動区間" + }, + "required_receipt": { + "type": "boolean", + "description": "添付ファイルの必須/任意", + "example": true + } + } + }, "expenseApplicationLineTemplateResponse": { "type": "object", "required": [ @@ -31048,65 +31115,7 @@ ], "properties": { "expense_application_line_template": { - "type": "object", - "required": [ - "account_item_name", - "id", - "name", - "tax_name" - ], - "properties": { - "id": { - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "description": "経費科目ID", - "example": 1 - }, - "name": { - "type": "string", - "description": "経費科目名", - "example": "交通費" - }, - "account_item_id": { - "type": "integer", - "maximum": 2147483647, - "description": "勘定科目ID", - "example": 1 - }, - "account_item_name": { - "type": "string", - "description": "勘定科目名", - "example": "旅費交通費" - }, - "tax_code": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647, - "description": "税区分コード", - "example": 1 - }, - "tax_name": { - "type": "string", - "description": "税区分名", - "example": "課対仕入" - }, - "description": { - "type": "string", - "description": "経費科目の説明", - "example": "電車、バス、飛行機などの交通費" - }, - "line_description": { - "type": "string", - "description": "内容の補足", - "example": "移動区間" - }, - "required_receipt": { - "type": "boolean", - "description": "添付ファイルの必須/任意", - "example": true - } - } + "$ref": "#/components/schemas/expense_application_line_template" } } }, diff --git a/v2020_06_15/open-api-3/api-schema.yml b/v2020_06_15/open-api-3/api-schema.yml index 4f80dc7..a7d9121 100644 --- a/v2020_06_15/open-api-3/api-schema.yml +++ b/v2020_06_15/open-api-3/api-schema.yml @@ -1520,7 +1520,7 @@ paths: properties: banks: items: - "$ref": "#/components/schemas/bankResponse/properties/bank" + "$ref": "#/components/schemas/bank" type: array required: - banks @@ -1941,7 +1941,7 @@ paths: properties: deals: items: - "$ref": "#/components/schemas/dealResponse/properties/deal" + "$ref": "#/components/schemas/deal" type: array meta: properties: @@ -3033,7 +3033,7 @@ paths: properties: expense_application_line_templates: items: - "$ref": "#/components/schemas/expenseApplicationLineTemplateResponse/properties/expense_application_line_template" + "$ref": "#/components/schemas/expense_application_line_template" type: array required: - expense_application_line_templates @@ -16070,37 +16070,39 @@ components: example: 404 type: integer type: object + bank: + properties: + id: + description: 連携サービスID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 連携サービス名 + example: フリー銀行 + type: string + name_kana: + description: 連携サービス名(カナ) + example: フリーギンコウ + nullable: true + type: string + type: + description: '連携サービス種別: (銀行口座: bank_account, クレジットカード: credit_card, 現金: + wallet)' + enum: + - bank_account + - credit_card + - wallet + example: bank_account + type: string + required: + - id + type: object bankResponse: properties: bank: - properties: - id: - description: 連携サービスID - example: 1 - maximum: 2147483647 - minimum: 1 - type: integer - name: - description: 連携サービス名 - example: フリー銀行 - type: string - name_kana: - description: 連携サービス名(カナ) - example: フリーギンコウ - nullable: true - type: string - type: - description: '連携サービス種別: (銀行口座: bank_account, クレジットカード: credit_card, - 現金: wallet)' - enum: - - bank_account - - credit_card - - wallet - example: bank_account - type: string - required: - - id - type: object + "$ref": "#/components/schemas/bank" required: - bank type: object @@ -16567,8 +16569,15 @@ components: required: - company type: object - dealCreateParams: + deal: properties: + amount: + description: 金額 + example: 5250 + format: int64 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + type: integer company_id: description: 事業所ID example: 1 @@ -16576,17 +16585,18 @@ components: minimum: 1 type: integer details: + description: 取引の明細行 items: properties: account_item_id: description: 勘定科目ID - example: 1 + example: 803 maximum: 2147483647 minimum: 1 type: integer amount: - description: 取引金額(税込で指定してください) - example: 1 + description: 取引金額 + example: 5250 format: int64 maximum: 9223372036854775807 minimum: -9223372036854775808 @@ -16595,17 +16605,33 @@ components: description: 備考 example: 備考 type: string + entry_side: + description: '貸借(貸方: credit, 借方: debit)' + enum: + - credit + - debit + example: debit + type: string + id: + description: 取引行ID + example: 11 + format: int64 + maximum: 9223372036854775807 + minimum: 1 + type: integer item_id: description: 品目ID - example: 1 + example: 501 maximum: 2147483647 minimum: 1 + nullable: true type: integer section_id: description: 部門ID example: 1 maximum: 2147483647 minimum: 1 + nullable: true type: integer segment_1_tag_id: description: セグメント1ID @@ -16613,6 +16639,7 @@ components: format: int64 maximum: 9223372036854775807 minimum: 1 + nullable: true type: integer segment_2_tag_id: description: セグメント2ID @@ -16620,6 +16647,7 @@ components: format: int64 maximum: 9223372036854775807 minimum: 1 + nullable: true type: integer segment_3_tag_id: description: セグメント3ID @@ -16627,35 +16655,52 @@ components: format: int64 maximum: 9223372036854775807 minimum: 1 + nullable: true type: integer tag_ids: description: メモタグID + example: + - 1 + - 2 + - 3 items: - example: 1 maximum: 2147483647 minimum: 1 type: integer type: array tax_code: description: 税区分コード - example: 1 + example: 2 maximum: 2147483647 minimum: 0 type: integer vat: - description: 消費税額(指定しない場合は自動で計算されます) - example: 800 + description: 消費税額 + example: 250 type: integer required: - - tax_code - account_item_id - amount + - entry_side + - id + - tax_code + - vat type: object type: array + due_amount: + description: 支払金額 + example: 0 + type: integer due_date: - description: 支払期日(yyyy-mm-dd) + description: 支払期日 (yyyy-mm-dd) example: '2019-12-17' type: string + id: + description: 取引ID + example: 101 + maximum: 2147483647 + minimum: 1 + type: integer issue_date: description: 発生日 (yyyy-mm-dd) example: '2019-12-17' @@ -16663,37 +16708,38 @@ components: partner_code: description: 取引先コード example: code001 + nullable: true type: string partner_id: description: 取引先ID - example: 1 + example: 201 maximum: 2147483647 minimum: 1 type: integer payments: - description: 支払行一覧(配列):未指定の場合、未決済の取引を作成します。 + description: 取引の支払行 items: properties: amount: - description: 支払金額:payments指定時は必須 + description: 支払金額 example: 5250 format: int64 maximum: 9223372036854775807 minimum: -9223372036854775808 type: integer date: - description: 支払日:payments指定時は必須 + description: 支払日 example: '2019-12-17' type: string from_walletable_id: - description: 口座ID(from_walletable_typeがprivate_account_itemの場合は勘定科目ID):payments指定時は必須 - example: 1 + description: 口座ID(from_walletable_typeがprivate_account_itemの場合は勘定科目ID) + example: 103 maximum: 2147483647 minimum: 1 type: integer from_walletable_type: description: '口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: - wallet, プライベート資金(法人の場合は役員借入金もしくは役員借入金、個人の場合は事業主貸もしくは事業主借): private_account_item):payments指定時は必須' + wallet, プライベート資金(法人の場合は役員借入金もしくは役員借入金、個人の場合は事業主貸もしくは事業主借): private_account_item)' enum: - bank_account - credit_card @@ -16701,262 +16747,447 @@ components: - private_account_item example: bank_account type: string + id: + description: 取引行ID + example: 202 + format: int64 + maximum: 9223372036854775807 + minimum: 1 + type: integer required: - amount - date - - from_walletable_id - - from_walletable_type + - id type: object type: array - receipt_ids: - description: 証憑ファイルID(ファイルボックスのファイルID)(配列) + receipts: + description: 証憑ファイル(ファイルボックスのファイル) items: - example: 1 - maximum: 2147483647 - minimum: 1 - type: integer - type: array - ref_number: - description: 管理番号 - example: '1' - type: string - type: - description: '収支区分 (収入: income, 支出: expense)' - enum: - - income - - expense - example: income - type: string - required: - - company_id - - details - - issue_date - - type - type: object - dealCreateResponse: - properties: - deal: - properties: - amount: - description: 金額 - example: 5250 - format: int64 - maximum: 9223372036854775807 - minimum: -9223372036854775808 - type: integer - company_id: - description: 事業所ID - example: 1 - maximum: 2147483647 - minimum: 1 - type: integer - details: - description: 取引の明細行 - items: + properties: + created_at: + description: 作成日時(ISO8601形式) + example: '2019-12-17T18:30:24+09:00' + type: string + description: + description: メモ + example: タクシー利用 + type: string + file_src: + deprecated: true + description: |- + ファイルのダウンロードURL(freeeにログインした状態でのみ閲覧可能です。) +
+
+ file_srcは廃止予定の属性になります。
+ file_srcに替わり、証憑ファイル(ファイルボックスのファイル)のダウンロード APIをご利用ください。
+ 証憑ファイル(ファイルボックスのファイル)のダウンロードAPIを利用することで、以下のようになります。 + + example: https://www.freee.co.jp/api/p/receipts/revisions/1234xxxxx/download + type: string + id: + description: 証憑ファイルID(ファイルボックスのファイルID) + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + issue_date: + description: 発生日 + example: '2019-12-17' + type: string + mime_type: + description: MIMEタイプ + example: image/png + type: string + origin: + description: アップロード元種別 + enum: + - unknown + - web + - mobile_camera + - mobile_album + - scansnap + - scannable + - dropbox + - mail + - safety_contact_file + - public_api + example: public_api + type: string + status: + description: ステータス(unconfirmed:確認待ち、confirmed:確認済み、deleted:削除済み、ignored:無視) + enum: + - unconfirmed + - confirmed + - deleted + - ignored + example: unconfirmed + type: string + user: properties: - account_item_id: - description: 勘定科目ID - example: 803 - maximum: 2147483647 - minimum: 1 - type: integer - amount: - description: 取引金額 - example: 5250 - format: int64 - maximum: 9223372036854775807 - minimum: -9223372036854775808 - type: integer - description: - description: 備考 - example: 備考 + display_name: + description: 表示名 + example: フリー太郎 + nullable: true type: string - entry_side: - description: '貸借(貸方: credit, 借方: debit)' - enum: - - credit - - debit - example: debit + email: + description: メールアドレス + example: contact@example.com type: string id: - description: 取引行ID - example: 11 - format: int64 - maximum: 9223372036854775807 - minimum: 1 - type: integer - item_id: - description: 品目ID - example: 501 - maximum: 2147483647 - minimum: 1 - nullable: true - type: integer - section_id: - description: 部門ID + description: ユーザーID example: 1 maximum: 2147483647 minimum: 1 - nullable: true - type: integer - segment_1_tag_id: - description: セグメント1ID - example: 1 - format: int64 - maximum: 9223372036854775807 - minimum: 1 - nullable: true - type: integer - segment_2_tag_id: - description: セグメント2ID - example: 1 - format: int64 - maximum: 9223372036854775807 - minimum: 1 - nullable: true - type: integer - segment_3_tag_id: - description: セグメント3ID - example: 1 - format: int64 - maximum: 9223372036854775807 - minimum: 1 - nullable: true - type: integer - tag_ids: - description: メモタグID - example: - - 1 - - 2 - - 3 - items: - maximum: 2147483647 - minimum: 1 - type: integer - type: array - tax_code: - description: 税区分コード - example: 2 - maximum: 2147483647 - minimum: 0 - type: integer - vat: - description: 消費税額 - example: 250 - type: integer - required: - - account_item_id - - amount - - entry_side - - id - - tax_code - - vat - type: object - type: array - due_amount: - description: 支払金額 - example: 0 - type: integer - due_date: - description: 支払期日 (yyyy-mm-dd) - example: '2019-12-17' - type: string - id: - description: 取引ID - example: 101 - maximum: 2147483647 - minimum: 1 - type: integer - issue_date: - description: 発生日 (yyyy-mm-dd) - example: '2019-12-17' - type: string - partner_code: - description: 取引先コード - example: code001 - nullable: true - type: string - partner_id: - description: 取引先ID - example: 201 - maximum: 2147483647 - minimum: 1 - type: integer - payments: - description: 取引の支払行 - items: - properties: - amount: - description: 支払金額 - example: 5250 - format: int64 - maximum: 9223372036854775807 - minimum: -9223372036854775808 - type: integer - date: - description: 支払日 - example: '2019-12-17' - type: string - from_walletable_id: - description: 口座ID(from_walletable_typeがprivate_account_itemの場合は勘定科目ID) - example: 103 - maximum: 2147483647 - minimum: 1 - type: integer - from_walletable_type: - description: '口座区分 (銀行口座: bank_account, クレジットカード: credit_card, - 現金: wallet, プライベート資金(法人の場合は役員借入金もしくは役員借入金、個人の場合は事業主貸もしくは事業主借): - private_account_item)' - enum: - - bank_account - - credit_card - - wallet - - private_account_item - example: bank_account - type: string - id: - description: 取引行ID - example: 202 - format: int64 - maximum: 9223372036854775807 - minimum: 1 type: integer required: - - amount - - date + - email - id type: object - type: array - ref_number: - description: 管理番号 - example: 123-456 - type: string - status: - description: '決済状況 (未決済: unsettled, 完了: settled)' - enum: - - unsettled - - settled - example: settled - type: string - type: - description: '収支区分 (収入: income, 支出: expense)' - enum: - - income - - expense - example: expense - type: string - required: - - amount - - company_id - - id - - issue_date - - partner_id - - status - type: object + required: + - created_at + - file_src + - id + - mime_type + - origin + - status + - user + type: object + type: array + ref_number: + description: 管理番号 + example: 123-456 + type: string + renews: + description: 取引の+更新行 + items: + properties: + details: + description: "+更新の明細行一覧(配列)" + items: + properties: + account_item_id: + description: 勘定科目ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + amount: + description: 金額(税込で指定してください) + example: 108000 + format: int64 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + type: integer + description: + description: 備考 + example: 備考 + nullable: true + type: string + entry_side: + description: '貸借(貸方: credit, 借方: debit)' + enum: + - credit + - debit + example: debit + type: string + id: + description: "+更新の明細行ID" + example: 1 + format: int64 + maximum: 9223372036854775807 + minimum: 1 + type: integer + item_id: + description: 品目ID + example: 1 + maximum: 2147483647 + minimum: 1 + nullable: true + type: integer + section_id: + description: 部門ID + example: 1 + maximum: 2147483647 + minimum: 1 + nullable: true + type: integer + segment_1_tag_id: + description: セグメント1ID + example: 1 + format: int64 + maximum: 9223372036854775807 + minimum: 1 + nullable: true + type: integer + segment_2_tag_id: + description: セグメント2ID + example: 1 + format: int64 + maximum: 9223372036854775807 + minimum: 1 + nullable: true + type: integer + segment_3_tag_id: + description: セグメント3ID + example: 1 + format: int64 + maximum: 9223372036854775807 + minimum: 1 + nullable: true + type: integer + tag_ids: + items: + description: メモタグID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + type: array + tax_code: + description: 税区分コード + example: 1 + maximum: 2147483647 + minimum: 0 + type: integer + vat: + description: 消費税額(指定しない場合は自動で計算されます) + example: 8000 + type: integer + required: + - account_item_id + - amount + - entry_side + - id + - tag_ids + - tax_code + - vat + type: object + type: array + id: + description: "+更新行ID" + example: 11 + format: int64 + maximum: 9223372036854775807 + minimum: 1 + type: integer + renew_target_id: + description: "+更新の対象行ID" + example: 12 + format: int64 + maximum: 9223372036854775807 + minimum: 1 + type: integer + renew_target_type: + description: "+更新の対象行タイプ" + enum: + - detail + - accrual + - renew + example: detail + type: string + update_date: + description: 更新日 (yyyy-mm-dd) + example: '2019-12-17' + type: string + required: + - details + - id + - renew_target_id + - renew_target_type + - update_date + type: object + type: array + status: + description: '決済状況 (未決済: unsettled, 完了: settled)' + enum: + - unsettled + - settled + example: settled + type: string + type: + description: '収支区分 (収入: income, 支出: expense)' + enum: + - income + - expense + example: expense + type: string + required: + - amount + - company_id + - id + - issue_date + - partner_id + - status + type: object + dealCreateParams: + properties: + company_id: + description: 事業所ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + details: + items: + properties: + account_item_id: + description: 勘定科目ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + amount: + description: 取引金額(税込で指定してください) + example: 1 + format: int64 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + type: integer + description: + description: 備考 + example: 備考 + type: string + item_id: + description: 品目ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + section_id: + description: 部門ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + segment_1_tag_id: + description: セグメント1ID + example: 1 + format: int64 + maximum: 9223372036854775807 + minimum: 1 + type: integer + segment_2_tag_id: + description: セグメント2ID + example: 1 + format: int64 + maximum: 9223372036854775807 + minimum: 1 + type: integer + segment_3_tag_id: + description: セグメント3ID + example: 1 + format: int64 + maximum: 9223372036854775807 + minimum: 1 + type: integer + tag_ids: + description: メモタグID + items: + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + type: array + tax_code: + description: 税区分コード + example: 1 + maximum: 2147483647 + minimum: 0 + type: integer + vat: + description: 消費税額(指定しない場合は自動で計算されます) + example: 800 + type: integer + required: + - tax_code + - account_item_id + - amount + type: object + type: array + due_date: + description: 支払期日(yyyy-mm-dd) + example: '2019-12-17' + type: string + issue_date: + description: 発生日 (yyyy-mm-dd) + example: '2019-12-17' + type: string + partner_code: + description: 取引先コード + example: code001 + type: string + partner_id: + description: 取引先ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + payments: + description: 支払行一覧(配列):未指定の場合、未決済の取引を作成します。 + items: + properties: + amount: + description: 支払金額:payments指定時は必須 + example: 5250 + format: int64 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + type: integer + date: + description: 支払日:payments指定時は必須 + example: '2019-12-17' + type: string + from_walletable_id: + description: 口座ID(from_walletable_typeがprivate_account_itemの場合は勘定科目ID):payments指定時は必須 + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + from_walletable_type: + description: '口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: + wallet, プライベート資金(法人の場合は役員借入金もしくは役員借入金、個人の場合は事業主貸もしくは事業主借): private_account_item):payments指定時は必須' + enum: + - bank_account + - credit_card + - wallet + - private_account_item + example: bank_account + type: string + required: + - amount + - date + - from_walletable_id + - from_walletable_type + type: object + type: array + receipt_ids: + description: 証憑ファイルID(ファイルボックスのファイルID)(配列) + items: + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + type: array + ref_number: + description: 管理番号 + example: '1' + type: string + type: + description: '収支区分 (収入: income, 支出: expense)' + enum: + - income + - expense + example: income + type: string required: - - deal + - company_id + - details + - issue_date + - type type: object - dealResponse: + dealCreateResponse: properties: deal: properties: @@ -17150,245 +17381,10 @@ components: - id type: object type: array - receipts: - description: 証憑ファイル(ファイルボックスのファイル) - items: - properties: - created_at: - description: 作成日時(ISO8601形式) - example: '2019-12-17T18:30:24+09:00' - type: string - description: - description: メモ - example: タクシー利用 - type: string - file_src: - deprecated: true - description: |- - ファイルのダウンロードURL(freeeにログインした状態でのみ閲覧可能です。) -
-
- file_srcは廃止予定の属性になります。
- file_srcに替わり、証憑ファイル(ファイルボックスのファイル)のダウンロード APIをご利用ください。
- 証憑ファイル(ファイルボックスのファイル)のダウンロードAPIを利用することで、以下のようになります。 - - example: https://www.freee.co.jp/api/p/receipts/revisions/1234xxxxx/download - type: string - id: - description: 証憑ファイルID(ファイルボックスのファイルID) - example: 1 - maximum: 2147483647 - minimum: 1 - type: integer - issue_date: - description: 発生日 - example: '2019-12-17' - type: string - mime_type: - description: MIMEタイプ - example: image/png - type: string - origin: - description: アップロード元種別 - enum: - - unknown - - web - - mobile_camera - - mobile_album - - scansnap - - scannable - - dropbox - - mail - - safety_contact_file - - public_api - example: public_api - type: string - status: - description: ステータス(unconfirmed:確認待ち、confirmed:確認済み、deleted:削除済み、ignored:無視) - enum: - - unconfirmed - - confirmed - - deleted - - ignored - example: unconfirmed - type: string - user: - properties: - display_name: - description: 表示名 - example: フリー太郎 - nullable: true - type: string - email: - description: メールアドレス - example: contact@example.com - type: string - id: - description: ユーザーID - example: 1 - maximum: 2147483647 - minimum: 1 - type: integer - required: - - email - - id - type: object - required: - - created_at - - file_src - - id - - mime_type - - origin - - status - - user - type: object - type: array ref_number: description: 管理番号 example: 123-456 type: string - renews: - description: 取引の+更新行 - items: - properties: - details: - description: "+更新の明細行一覧(配列)" - items: - properties: - account_item_id: - description: 勘定科目ID - example: 1 - maximum: 2147483647 - minimum: 1 - type: integer - amount: - description: 金額(税込で指定してください) - example: 108000 - format: int64 - maximum: 9223372036854775807 - minimum: -9223372036854775808 - type: integer - description: - description: 備考 - example: 備考 - nullable: true - type: string - entry_side: - description: '貸借(貸方: credit, 借方: debit)' - enum: - - credit - - debit - example: debit - type: string - id: - description: "+更新の明細行ID" - example: 1 - format: int64 - maximum: 9223372036854775807 - minimum: 1 - type: integer - item_id: - description: 品目ID - example: 1 - maximum: 2147483647 - minimum: 1 - nullable: true - type: integer - section_id: - description: 部門ID - example: 1 - maximum: 2147483647 - minimum: 1 - nullable: true - type: integer - segment_1_tag_id: - description: セグメント1ID - example: 1 - format: int64 - maximum: 9223372036854775807 - minimum: 1 - nullable: true - type: integer - segment_2_tag_id: - description: セグメント2ID - example: 1 - format: int64 - maximum: 9223372036854775807 - minimum: 1 - nullable: true - type: integer - segment_3_tag_id: - description: セグメント3ID - example: 1 - format: int64 - maximum: 9223372036854775807 - minimum: 1 - nullable: true - type: integer - tag_ids: - items: - description: メモタグID - example: 1 - maximum: 2147483647 - minimum: 1 - type: integer - type: array - tax_code: - description: 税区分コード - example: 1 - maximum: 2147483647 - minimum: 0 - type: integer - vat: - description: 消費税額(指定しない場合は自動で計算されます) - example: 8000 - type: integer - required: - - account_item_id - - amount - - entry_side - - id - - tag_ids - - tax_code - - vat - type: object - type: array - id: - description: "+更新行ID" - example: 11 - format: int64 - maximum: 9223372036854775807 - minimum: 1 - type: integer - renew_target_id: - description: "+更新の対象行ID" - example: 12 - format: int64 - maximum: 9223372036854775807 - minimum: 1 - type: integer - renew_target_type: - description: "+更新の対象行タイプ" - enum: - - detail - - accrual - - renew - example: detail - type: string - update_date: - description: 更新日 (yyyy-mm-dd) - example: '2019-12-17' - type: string - required: - - details - - id - - renew_target_id - - renew_target_type - - update_date - type: object - type: array status: description: '決済状況 (未決済: unsettled, 完了: settled)' enum: @@ -17414,6 +17410,13 @@ components: required: - deal type: object + dealResponse: + properties: + deal: + "$ref": "#/components/schemas/deal" + required: + - deal + type: object dealUpdateParams: properties: company_id: @@ -17810,54 +17813,7 @@ components: expenseApplicationLineTemplateResponse: properties: expense_application_line_template: - properties: - account_item_id: - description: 勘定科目ID - example: 1 - maximum: 2147483647 - type: integer - account_item_name: - description: 勘定科目名 - example: 旅費交通費 - type: string - description: - description: 経費科目の説明 - example: 電車、バス、飛行機などの交通費 - type: string - id: - description: 経費科目ID - example: 1 - maximum: 2147483647 - minimum: 1 - type: integer - line_description: - description: 内容の補足 - example: 移動区間 - type: string - name: - description: 経費科目名 - example: 交通費 - type: string - required_receipt: - description: 添付ファイルの必須/任意 - example: true - type: boolean - tax_code: - description: 税区分コード - example: 1 - maximum: 2147483647 - minimum: 0 - type: integer - tax_name: - description: 税区分名 - example: 課対仕入 - type: string - required: - - account_item_name - - id - - name - - tax_name - type: object + "$ref": "#/components/schemas/expense_application_line_template" required: - expense_application_line_template type: object @@ -18515,6 +18471,55 @@ components: required: - expense_applications type: object + expense_application_line_template: + properties: + account_item_id: + description: 勘定科目ID + example: 1 + maximum: 2147483647 + type: integer + account_item_name: + description: 勘定科目名 + example: 旅費交通費 + type: string + description: + description: 経費科目の説明 + example: 電車、バス、飛行機などの交通費 + type: string + id: + description: 経費科目ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + line_description: + description: 内容の補足 + example: 移動区間 + type: string + name: + description: 経費科目名 + example: 交通費 + type: string + required_receipt: + description: 添付ファイルの必須/任意 + example: true + type: boolean + tax_code: + description: 税区分コード + example: 1 + maximum: 2147483647 + minimum: 0 + type: integer + tax_name: + description: 税区分名 + example: 課対仕入 + type: string + required: + - account_item_name + - id + - name + - tax_name + type: object fiscal_years: properties: depreciation_record_method: