{ "openapi": "3.0.1", "info": { "title": "freee会計 API", "description": "\n
freee API開発がはじめての方はfreee API スタートガイドを参照してください。
\n\n\nインボイス制度に伴い、freee会計の帳票機能がfreee請求書に移行します。これに伴い、2023年10月にfreee会計の「請求書の作成、見積書の作成」エンドポイントは廃止、freee請求書APIに移行する予定です。詳細は freee会計 APIの仕様変更(インボイス制度対応)についてをご確認ください。\n
\n\nhttps://api.freee.co.jp/ (httpsのみ)
\n\nOAuth2.0を利用します。詳細はリファレンスの認証に関する記載を参照してください。
\n\nリクエスト、レスポンスともにJSON形式をサポートしていますが、詳細は、API毎の説明欄(application/jsonなど)を確認してください。
\n\nfreeeでは、APIを改善していくために以下のような変更は後方互換性ありとして通知なく変更を入れることがあります。アプリケーション実装者は以下を踏まえて開発を行ってください。
\n\nすべてのAPIのレスポンスには以下のHTTPヘッダーが含まれます。
\n\nX-Freee-Request-ID
\nステータスコードはレスポンス内のJSONに含まれる他、HTTPヘッダにも含まれる
\n一部のエラーレスポンスにはエラーコードが含まれます。
詳細は、HTTPステータスコード400台エラー時のチェックポイントを参照してください
type
\n\nレスポンスの例
\n\n {\n "status_code" : 400,\n "errors" : [\n {\n "type" : "status",\n "messages" : ["不正なリクエストです。"]\n },\n {\n "type" : "validation",\n "messages" : ["Date は不正な日付フォーマットです。入力例:2019-12-17"]\n }\n ]\n }
\n\n\n\nfreeeは一定期間に過度のアクセスを検知した場合、APIアクセスをコントロールする場合があります。
\nその際のhttp status codeは403となります。制限がかかってから10分程度が過ぎると再度使用することができるようになります。
\n\nfreeeはエンドポイント毎に一定頻度以上のアクセスを検知した場合、APIアクセスをコントロールする場合があります。その際のhttp status codeは429(too many requests)となります。
\nhttp status codeが429となった場合、API使用ステータスはレスポンスヘッダに付与されます。
\nx-ratelimit-limit:10\nx-ratelimit-remaining:1\nx-ratelimit-reset:2023-01-13T10:22:29+09:00\n
\n\nヘッダ名 | \n説明 | \n
---|---|
x-ratelimit-limit | 使用回数の上限 |
x-ratelimit-remaining | 残り使用回数 |
x-ratelimit-reset | 使用回数がリセットされる時刻 |
freee会計プラン名 | \n事業所とアプリケーション毎に、1日のAPIコール数の上限 | \n
---|---|
法人エンタープライズプラン | \n10,000 | \n
法人アドバンスプラン(および旧法人プロフェッショナルプラン) | \n5,000 | \n
上記以外 | \n3,000 | \n
契約プランごとにご利用可能な freee 会計 API は異なります。 freee 会計の Web 版でご利用いただける機能について、 freee 会計 API でもご利用いただけます。
\n例えば法人スタータープラン、旧法人ベーシックプランをご契約いただいている場合、 Web 版では経費精算機能をご利用いただけますので、 API でも経費精算 API をご利用可能です。
\nただし以下の API は例外です。
\n詳しくは、【個人】freee会計のプランについて 並びに 【法人】freee会計のプランについてをご確認ください。
\n\nご利用可能な freee 会計 API であっても、契約プランごとに利用可能なパラメータは異なります。
\nパラメータ | \n説明 | \n利用可能プラン | \n
---|---|---|
segment_1_tag | \nセグメント1タグ | \n法人アドバンスプラン 法人エンタープライズプラン 旧法人プロフェッショナルプラン | \n
segment_2_tag | \nセグメント2タグ | \n法人アドバンスプラン 法人エンタープライズプラン | \n
segment_3_tag | \nセグメント3タグ | \n法人アドバンスプラン 法人エンタープライズプラン | \n
segment_1_tag_id | \nセグメント1タグID | \n法人アドバンスプラン 法人エンタープライズプラン 旧法人プロフェッショナルプラン | \n
segment_2_tag_id | \nセグメント2タグID | \n法人アドバンスプラン 法人エンタープライズプラン | \n
segment_3_tag_id | \nセグメント3タグID | \n法人アドバンスプラン 法人エンタープライズプラン | \n
segment_1_tag_name | \nセグメント1タグ名 | \n法人アドバンスプラン 法人エンタープライズプラン 旧法人プロフェッショナルプラン | \n
segment_2_tag_name | \nセグメント2タグ名 | \n法人アドバンスプラン 法人エンタープライズプラン | \n
segment_3_tag_name | \nセグメント3タグ名 | \n法人アドバンスプラン 法人エンタープライズプラン | \n
segment_id | \nセグメントID(1, 2, 3 のいずれか) | \n法人アドバンスプラン 法人エンタープライズプラン 旧法人プロフェッショナルプラン 旧法人プロフェッショナルプランにつきましては、 1 のみ指定可能です。 | \n
詳細は会計Webhook概要を参照してください。
\n\nご不明点、ご要望等は freee サポートデスクへのお問い合わせフォーム からご連絡ください。
\n取引先
" }, { "name": "Selectables", "description": "フォーム用選択項目情報
" }, { "name": "Account items", "description": "勘定科目
" }, { "name": "Tags", "description": "メモタグ
" }, { "name": "Sections", "description": "部門
" }, { "name": "Invoices", "description": "請求書
" }, { "name": "Deals", "description": "取引(収入・支出)
" }, { "name": "Payments", "description": "取引(収入・支出)の支払行
" }, { "name": "Renews", "description": "取引(収入・支出)の+更新
" }, { "name": "ManualJournals", "description": "振替伝票
" }, { "name": "Users", "description": "ユーザー
" }, { "name": "Companies", "description": "事業所
" }, { "name": "Items", "description": "品目
" }, { "name": "Taxes", "description": "税区分
" }, { "name": "Walletables", "description": "口座
" }, { "name": "Banks", "description": "連携サービス
" }, { "name": "Transfers", "description": "取引(振替)
" }, { "name": "Wallet txns", "description": "口座明細
" }, { "name": "Journals", "description": "仕訳帳
" }, { "name": "Trial balance", "description": "試算表
" }, { "name": "Receipts", "description": "ファイルボックス(証憑ファイル)
" }, { "name": "Expense applications", "description": "経費精算
" }, { "name": "Expense application line templates", "description": "経費科目
" }, { "name": "Payment requests", "description": "支払依頼
" }, { "name": "Approval requests", "description": "各種申請
" }, { "name": "Approval flow routes", "description": "申請経路
" }, { "name": "Segment tags", "description": "セグメントタグ
" }, { "name": "Quotations", "description": "見積書
" }, { "name": "Fixed assets", "description": "固定資産台帳
" }, { "name": "General ledgers", "description": "総勘定元帳
" }, { "name": "Account groups", "description": "決算書表示名
" } ], "paths": { "/api/1/partners": { "get": { "tags": [ "Partners" ], "summary": "取引先一覧の取得", "description": "\n指定した事業所の取引先一覧を取得する
\n指定した事業所の取引先を作成する
\n指定した事業所の取引先を取得する
\n指定した取引先の情報を更新する
\n指定した事業所の取引先を削除する
", "operationId": "destroy_partner", "parameters": [ { "name": "id", "in": "path", "description": "取引先ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/partners/code/{code}": { "put": { "tags": [ "Partners" ], "summary": "取引先の更新", "description": "\n取引先コードをキーに、指定した取引先の情報を更新する
\n指定した事業所のフォーム用選択項目情報を取得する
", "operationId": "get_forms_selectables", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "includes", "in": "query", "description": "取得する項目(項目: account_item)", "schema": { "type": "string", "enum": [ "account_item" ] } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/selectablesIndexResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/account_items/{id}": { "get": { "tags": [ "Account items" ], "summary": "勘定科目の取得", "description": "\n指定した勘定科目を取得する
\n事業所の設定で勘定科目コードを使用する設定にしている場合、レスポンスで勘定科目コード(code)を返します
", "operationId": "get_account_item", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "id", "in": "path", "description": "勘定科目ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/accountItemResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "put": { "tags": [ "Account items" ], "summary": "勘定科目の更新", "description": "\n指定した勘定科目を更新する
\n\ntax_codeは、指定した事業所の税区分一覧の取得APIでavailableの値がtrue、かつ経過措置税区分ではない5%の税区分を確認して、そのcodeを指定して勘定科目の更新をしてください。例 課対仕入の場合、34を指定してください
\ncodeを利用するには、事業所の設定で勘定科目コードを使用する設定にする必要があります。
", "operationId": "update_account_item", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "requestBody": { "description": "勘定科目の更新", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/accountItemUpdateParams" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/accountItemUpdateParams" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/accountItemResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } }, "503": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serviceUnavailableError" } } } } } }, "delete": { "tags": [ "Account items" ], "summary": "勘定科目の削除", "description": "\n指定した勘定科目を削除する
\n指定した事業所の勘定科目一覧を取得する
\n\ndefault_tax_code は勘定科目作成・更新時に利用するものではありません
\n事業所の設定で勘定科目コードを使用する設定にしている場合、レスポンスで勘定科目コード(code)を返します
", "operationId": "get_account_items", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "base_date", "in": "query", "description": "基準日:指定した場合、勘定科目に紐づく税区分(default_tax_code)が、基準日の税率に基づいて返ります。", "schema": { "type": "string" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/accountItemsResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "post": { "tags": [ "Account items" ], "summary": "勘定科目の作成", "description": "\n指定した事業所の勘定科目を作成する
\n\ntax_codeは、指定した事業所の税区分一覧の取得APIでavailableの値がtrue、かつ経過措置税区分ではない5%の税区分を確認して、そのcodeを指定して勘定科目の作成をしてください。例 課対仕入の場合、34を指定してください
\ncodeを利用するには、事業所の設定で勘定科目コードを使用する設定にする必要があります。
", "operationId": "create_account_item", "requestBody": { "description": "勘定科目の作成", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/accountItemCreateParams" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/accountItemCreateParams" } } }, "required": true }, "responses": { "201": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/accountItemResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/tags": { "get": { "tags": [ "Tags" ], "summary": "メモタグ一覧の取得", "description": "\n指定した事業所のメモタグ一覧を取得する
", "operationId": "get_tags", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "start_update_date", "in": "query", "description": "更新日で絞り込み:開始日(yyyy-mm-dd)", "schema": { "type": "string" } }, { "name": "end_update_date", "in": "query", "description": "更新日で絞り込み:終了日(yyyy-mm-dd)", "schema": { "type": "string" } }, { "name": "offset", "in": "query", "description": "取得レコードのオフセット (デフォルト: 0)", "schema": { "type": "integer", "format": "int64", "minimum": 0, "maximum": 2147483647 } }, { "name": "limit", "in": "query", "description": "取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 3000)", "schema": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 3000 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "tags" ], "properties": { "tags": { "type": "array", "items": { "$ref": "#/components/schemas/tag" } } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "post": { "tags": [ "Tags" ], "summary": "メモタグの作成", "description": "\n指定した事業所のメモタグを作成する
", "operationId": "create_tag", "requestBody": { "description": "メモタグの作成", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/tagParams" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/tagParams" } } }, "required": true }, "responses": { "201": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/tagResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/tags/{id}": { "get": { "tags": [ "Tags" ], "summary": "メモタグの取得", "description": "\n指定した事業所のメモタグを取得する
", "operationId": "get_tag", "parameters": [ { "name": "id", "in": "path", "description": "タグID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/tagResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "put": { "tags": [ "Tags" ], "summary": "メモタグの更新", "description": "\n指定した事業所のメモタグを更新する
", "operationId": "update_tag", "parameters": [ { "name": "id", "in": "path", "description": "メモタグID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "requestBody": { "description": "メモタグの更新", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/tagParams" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/tagParams" } } }, "required": false }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/tagResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "delete": { "tags": [ "Tags" ], "summary": "メモタグの削除", "description": "\n指定した事業所のメモタグを削除する
", "operationId": "destroy_tag", "parameters": [ { "name": "id", "in": "path", "description": "タグID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/sections": { "get": { "tags": [ "Sections" ], "summary": "部門一覧の取得", "description": "\n指定した事業所の部門一覧を取得する
\n事業所の設定で部門コードを使用する設定にしている場合、レスポンスで部門コード(code)を返します
\n\n\n\n\nGET https://api.freee.co.jp/api/1/sections?company_id=1
\n
// プレミアムプラン、法人スタンダードプラン(および旧法人ベーシックプラン)以上\n{\n "sections" : [\n {\n "id" : 101,\n "company_id" : 1,\n "name" : "開発部門",\n "long_name": "開発部門",\n "shortcut1" : "DEVELOPER",\n "shortcut2" : "123",\n "indent_count": 1,\n "parent_id": 11\n },\n ...\n ]\n}\n// それ以外のプラン\n{\n "sections" : [\n {\n "id" : 101,\n "company_id" : 1,\n "name" : "開発部門",\n "long_name": "開発部門",\n "shortcut1" : "DEVELOPER",\n "shortcut2" : "123"\n },\n ...\n ]\n}
\n",
"operationId": "get_sections",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"sections"
],
"properties": {
"sections": {
"type": "array",
"items": {
"$ref": "#/components/schemas/section"
}
}
}
}
}
}
},
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/badRequestError"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/unauthorizedError"
}
}
}
},
"403": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/forbiddenError"
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/internalServerError"
}
}
}
}
}
},
"post": {
"tags": [
"Sections"
],
"summary": "部門の作成",
"description": "\n指定した事業所の部門を作成する
\ncodeを利用するには、事業所の設定で部門コードを使用する設定にする必要があります。
\n\n// プレミアムプラン、法人スタンダードプラン(および旧法人ベーシックプラン)以上\n{\n "section" : {\n "id" : 102,\n "company_id" : 1,\n "name" : "開発部門",\n "shortcut1" : "DEVELOPER",\n "shortcut2" : "123",\n "indent_count": 1,\n "parent_id": 101\n }\n}\n// それ以外のプラン\n{\n "section" : {\n "id" : 102,\n "company_id" : 1,\n "name" : "開発部門",\n "shortcut1" : "DEVELOPER",\n "shortcut2" : "123"\n }\n}
\n",
"operationId": "create_section",
"requestBody": {
"description": "部門の作成",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/sectionParams"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/sectionParams"
}
}
},
"required": false
},
"responses": {
"201": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/sectionResponse"
}
}
}
},
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/badRequestError"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/unauthorizedError"
}
}
}
},
"403": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/forbiddenError"
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/internalServerError"
}
}
}
}
}
}
},
"/api/1/sections/{id}": {
"get": {
"tags": [
"Sections"
],
"summary": "部門の取得",
"description": "\n指定した事業所の部門を取得する
\n事業所の設定で部門コードを使用する設定にしている場合、レスポンスで部門コード(code)を返します
\n\n// プレミアムプラン、法人スタンダードプラン(および旧法人ベーシックプラン)以上\n{\n "section" : {\n "id" : 102,\n "company_id" : 1,\n "name" : "開発部門",\n "long_name": "開発部門",\n "shortcut1" : "DEVELOPER",\n "shortcut2" : "123",\n "indent_count": 1,\n "parent_id": 101\n }\n}\n// それ以外のプラン\n{\n "section" : {\n "id" : 102,\n "company_id" : 1,\n "name" : "開発部門",\n "long_name": "開発部門",\n "shortcut1" : "DEVELOPER",\n "shortcut2" : "123"\n }\n}
\n",
"operationId": "get_section",
"parameters": [
{
"name": "id",
"in": "path",
"description": "部門ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/sectionResponse"
}
}
}
},
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/badRequestError"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/unauthorizedError"
}
}
}
},
"403": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/forbiddenError"
}
}
}
},
"404": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/badRequestNotFoundError"
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/internalServerError"
}
}
}
}
}
},
"put": {
"tags": [
"Sections"
],
"summary": "部門の更新",
"description": "\n指定した事業所の部門を更新する
\ncodeを利用するには、事業所の設定で部門コードを使用する設定にする必要があります。
\n\n// プレミアムプラン、法人スタンダードプラン(および旧法人ベーシックプラン)以上\n{\n "section" : {\n "id" : 102,\n "company_id" : 1,\n "name" : "開発部門",\n "long_name": "開発部門",\n "shortcut1" : "DEVELOPER",\n "shortcut2" : "123",\n "indent_count": 1,\n "parent_id": 101\n }\n}\n// それ以外のプラン\n{\n "section" : {\n "id" : 102,\n "company_id" : 1,\n "name" : "開発部門",\n "long_name": "開発部門",\n "shortcut1" : "DEVELOPER",\n "shortcut2" : "123"\n }\n}
\n",
"operationId": "update_section",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"requestBody": {
"description": "部門の更新",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/sectionParams"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/sectionParams"
}
}
},
"required": false
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/sectionResponse"
}
}
}
},
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/badRequestError"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/unauthorizedError"
}
}
}
},
"403": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/forbiddenError"
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/internalServerError"
}
}
}
}
}
},
"delete": {
"tags": [
"Sections"
],
"summary": "部門の削除",
"description": "\n指定した事業所の部門を削除する
", "operationId": "destroy_section", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/invoices": { "get": { "tags": [ "Invoices" ], "summary": "請求書一覧の取得", "description": "\n指定した事業所の請求書一覧を取得する
\n", "operationId": "get_invoices", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "partner_id", "in": "query", "description": "取引先IDで絞込", "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "partner_code", "in": "query", "description": "取引先コードで絞込", "schema": { "type": "string" } }, { "name": "start_issue_date", "in": "query", "description": "請求日の開始日(yyyy-mm-dd)", "schema": { "type": "string" } }, { "name": "end_issue_date", "in": "query", "description": "請求日の終了日(yyyy-mm-dd)", "schema": { "type": "string" } }, { "name": "start_due_date", "in": "query", "description": "期日の開始日(yyyy-mm-dd)", "schema": { "type": "string" } }, { "name": "end_due_date", "in": "query", "description": "期日の終了日(yyyy-mm-dd)", "schema": { "type": "string" } }, { "name": "invoice_number", "in": "query", "description": "請求書番号", "schema": { "type": "string" } }, { "name": "description", "in": "query", "description": "概要", "schema": { "type": "string" } }, { "name": "invoice_status", "in": "query", "description": "請求書ステータス (draft: 下書き, applying: 申請中, remanded: 差し戻し, rejected: 却下, approved: 承認済み, unsubmitted: 送付待ち, submitted: 送付済み)", "schema": { "type": "string", "enum": [ "draft", "applying", "remanded", "rejected", "approved", "unsubmitted", "submitted" ] } }, { "name": "payment_status", "in": "query", "description": "入金ステータス (unsettled: 入金待ち, settled: 入金済み)", "schema": { "type": "string", "enum": [ "unsettled", "settled" ] } }, { "name": "offset", "in": "query", "description": "取得レコードのオフセット (デフォルト: 0)", "schema": { "type": "integer", "format": "int64", "minimum": 0, "maximum": 9223372036854775807 } }, { "name": "limit", "in": "query", "description": "取得レコードの件数 (デフォルト: 20, 最大: 100) ", "schema": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/invoiceIndexResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "post": { "tags": [ "Invoices" ], "summary": "請求書の作成(廃止)", "deprecated": true, "description": "\n指定した事業所の請求書を作成する
\n\npartner_code, partner_idはどちらかの指定が必須です。ただし両方同時に指定することはできません。
請求書ステータス(invoice_status)を下書き(draft)以外で作成する場合、請求内容の合計金額が0円以上になる必要があります。
partner_codeを利用するには、事業所の設定から取引先コードの利用を有効にする必要があります。
本APIでは請求内容(invoice_contents)は、最大100行までになります。
指定した事業所の請求書を取得する
", "operationId": "get_invoice", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "id", "in": "path", "description": "請求書ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/invoiceResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "put": { "tags": [ "Invoices" ], "summary": "請求書の更新", "description": "\n指定した事業所の請求書を更新する
\n\n入金済みの請求書に対する金額関連の変更はできません。
請求書WFを利用している場合、承認済み請求書は承認権限を持たないユーザーでは更新できません。
請求書ステータス(invoice_status)を下書き(draft)以外で更新する場合、請求内容の合計金額が0円以上になる必要があります。
partner_code, partner_idを両方同時に指定することはできません。
partner_codeを利用するには、事業所の設定から取引先コードの利用を有効にする必要があります。
本APIでは請求内容(invoice_contents)は、最大100行までになります。
指定した事業所の請求書を削除する
", "operationId": "destroy_invoice", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/quotations": { "get": { "tags": [ "Quotations" ], "summary": "見積書一覧の取得", "description": "\n指定した事業所の見積書一覧を取得する
\n", "operationId": "get_quotations", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "partner_id", "in": "query", "description": "取引先IDで絞込", "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "partner_code", "in": "query", "description": "取引先コードで絞込", "schema": { "type": "string" } }, { "name": "start_issue_date", "in": "query", "description": "見積日の開始日(yyyy-mm-dd)", "schema": { "type": "string" } }, { "name": "end_issue_date", "in": "query", "description": "見積日の終了日(yyyy-mm-dd)", "schema": { "type": "string" } }, { "name": "quotation_number", "in": "query", "description": "見積書番号", "schema": { "type": "string" } }, { "name": "description", "in": "query", "description": "概要", "schema": { "type": "string" } }, { "name": "quotation_status", "in": "query", "description": "見積書ステータス (unsubmitted: 送付待ち, submitted: 送付済み, all: 全て)", "schema": { "type": "string", "enum": [ "all", "unsubmitted", "submitted" ] } }, { "name": "offset", "in": "query", "description": "取得レコードのオフセット (デフォルト: 0)", "schema": { "type": "integer", "format": "int64", "minimum": 0, "maximum": 9223372036854775807 } }, { "name": "limit", "in": "query", "description": "取得レコードの件数 (デフォルト: 20, 最大: 100) ", "schema": { "maximum": 100, "minimum": 1, "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/quotationIndexResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "post": { "tags": [ "Quotations" ], "summary": "見積書の作成(廃止)", "deprecated": true, "description": "\n指定した事業所の見積書を作成する
\n\npartner_code, partner_idはどちらかの指定が必須です。ただし両方同時に指定することはできません。
partner_codeを利用するには、事業所の設定から取引先コードの利用を有効にする必要があります。
本APIでは見積内容(quotation_contents)は、最大100行までになります。
指定した事業所の見積書詳細を取得する
", "operationId": "get_quotation", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "id", "in": "path", "description": "見積書ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/quotationResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "put": { "tags": [ "Quotations" ], "summary": "見積書の更新", "description": "\n指定した事業所の見積書を更新する
\n\npartner_code, partner_idを両方同時に指定することはできません。
partner_codeを利用するには、事業所の設定から取引先コードの利用を有効にする必要があります。
本APIでは見積内容(quotation_contents)は、最大100行までになります。
指定した事業所の見積書を削除する
", "operationId": "destroy_quotation", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/deals": { "get": { "tags": [ "Deals" ], "summary": "取引(収入・支出)一覧の取得", "description": "指定した事業所の取引(収入・支出)一覧を取得する
\nissue_date : 発生日
\ndue_date : 支払期日
\namount : 金額
\ndue_amount : 支払残額
\ntype
\ndetails : 取引の明細行
\naccruals : 取引の債権債務行
\nrenews : 取引の+更新行
\npayments : 取引の支払行
\nfrom_walletable_type
\nregistered_from
\n指定した事業所の取引(収入・支出)を作成する
\nissue_date : 発生日
\ndue_date : 支払期日
\namount : 金額
\ndue_amount : 支払残額
\ntype
\nref_number : 管理番号
\ndetails : 取引の明細行(最大40行)
\npayments : 取引の支払行
\nreceipt_ids : ファイルボックス(証憑ファイル)ID
\nfrom_walletable_type
\n本APIでは+更新行(renews)の操作ができません。取引(収入・支出)の+更新の作成APIをご利用ください。
セグメントタグ情報は法人アドバンスプラン(および旧法人プロフェッショナルプラン)以上で利用可能です。利用可能なセグメントの数は、法人アドバンスプラン(および旧法人プロフェッショナルプラン)の場合は1つ、法人エンタープライズプランの場合は3つです。
partner_codeを利用するには、事業所の設定から取引先コードの利用を有効にする必要があります。またpartner_codeとpartner_idは同時に指定することはできません。
本APIでは取引の明細行(details)は、最大40行までになります。
\n指定した事業所の取引(収入・支出)を取得する
\nissue_date : 発生日
\ndue_date : 支払期日
\namount : 金額
\ndue_amount : 支払残額
\ntype
\ndetails : 取引の明細行
\naccruals : 取引の債権債務行
\nrenews : 取引の+更新行
\npayments : 取引の支払行
\nfrom_walletable_type
\n指定した事業所の取引(収入・支出)を更新する
\nissue_date : 発生日
\ndue_date : 支払期日
\namount : 金額
\ndue_amount : 支払残額
\ntype
\ndetails : 取引の明細行(最大40行)
\nrenews : 取引の+更新行
\npayments : 取引の支払行
\nfrom_walletable_type
\nreceipt_ids : ファイルボックス(証憑ファイル)ID
\n本APIでは支払行(payments)の操作ができません。取引(収入・支出)の支払行の作成・更新・削除APIをご利用ください。
本APIでは+更新行(renews)の操作ができません。取引(収入・支出)の+更新の作成・更新・削除APIをご利用ください。
本APIでは収入/支出の切替えができません。既存の取引を削除後、再度作成してください。
本APIで取引を更新すると、消費税の計算方法は必ず内税方式が選択されます。
セグメントタグ情報は法人アドバンスプラン(および旧法人プロフェッショナルプラン)以上で利用可能です。利用可能なセグメントの数は、法人アドバンスプラン(および旧法人プロフェッショナルプラン)の場合は1つ、法人エンタープライズプランの場合は3つです。
partner_codeを利用するには、事業所の設定から取引先コードの利用を有効にする必要があります。またpartner_codeとpartner_idは同時に指定することはできません。
freee請求書から登録された取引は品目・部門・メモタグ・セグメント1、2、3のみ更新可能です。
本APIでは取引の明細行(details)は、最大40行までになります。
\n指定した取引(収入・支出)を削除する
\n", "operationId": "destroy_deal", "parameters": [ { "name": "id", "in": "path", "description": "取引ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/deals/{id}/renews": { "post": { "tags": [ "Renews" ], "summary": "取引(収入・支出)の+更新の作成", "description": "指定した事業所の取引(収入・支出)の+更新を作成する
\nissue_date : 発生日
due_date : 支払期日
amount : 金額
due_amount : 支払残額
type
\ndetails : 取引の明細行
accruals : 取引の債権債務行
renews : 取引の+更新行
payments : 取引の支払行
from_walletable_type
\n指定した事業所の取引(収入・支出)の+更新を更新する
\nissue_date : 発生日
due_date : 支払期日
amount : 金額
due_amount : 支払残額
type
\ndetails : 取引の明細行
accruals : 取引の債権債務行
renews : 取引の+更新行
payments : 取引の支払行
from_walletable_type
\n指定した事業所の取引(収入・支出)の+更新を削除する
\n指定した事業所の取引(収入・支出)の支払行を作成する
\nissue_date : 発生日
\ndue_date : 支払期日
\namount : 金額
\ndue_amount : 支払残額
\ntype
\ndetails : 取引の明細行
renews : 取引の+更新行
payments : 取引の支払行
from_walletable_type
\n指定した事業所の取引(収入・支出)の支払行を更新する
\nissue_date : 発生日
\ndue_date : 支払期日
\namount : 金額
\ndue_amount : 支払残額
\ntype
\ndetails : 取引の明細行
\nrenews : 取引の+更新行
\npayments : 取引の支払行
\nfrom_walletable_type
\n指定した事業所の取引(収入・支出)の支払行を削除する
\nissue_date : 発生日
\ndue_date : 支払期日
\namount : 金額
\ndue_amount : 支払残額
\ntype
\ndetails : 取引の明細行
\n指定した事業所の振替伝票一覧を取得する
\n\nissue_date : 発生日
\nadjustment : 決算整理仕訳フラグ(true: 決算整理仕訳, false: 日常仕訳)
\ntxn_number : 仕訳番号
\ndetails : 振替伝票の貸借行
\nentry_side : 貸借区分
\n\namount : 金額
\n指定した事業所の振替伝票を作成する
\n\nissue_date : 発生日
\nadjustment : 決算整理仕訳フラグ(true: 決算整理仕訳, false: 日常仕訳)
\ntxn_number : 仕訳番号
\ndetails : 振替伝票の貸借行
\nentry_side : 貸借区分
\n\namount : 金額
\n指定した事業所の振替伝票を取得する
\n\nissue_date : 発生日
adjustment : 決算整理仕訳フラグ(true: 決算整理仕訳, false: 日常仕訳)
txn_number : 仕訳番号
details : 振替伝票の貸借行
entry_side : 貸借区分
\namount : 金額
指定した事業所の振替伝票を更新する
\n\nissue_date : 発生日
\nadjustment : 決算整理仕訳フラグ(true: 決算整理仕訳, false: 日常仕訳)
\ntxn_number : 仕訳番号
\ndetails : 振替伝票の貸借行
\nentry_side : 貸借区分
\n\namount : 金額
\n指定した事業所の振替伝票を削除する
", "operationId": "destroy_manual_journal", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/users": { "get": { "tags": [ "Users" ], "summary": "事業所に所属するユーザー一覧の取得", "description": "\n事業所に所属するユーザー一覧を取得する
", "operationId": "get_users", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "limit", "in": "query", "description": "取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 3000)", "schema": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 3000 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "users" ], "properties": { "users": { "type": "array", "items": { "$ref": "#/components/schemas/user" } } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/users/me": { "get": { "tags": [ "Users" ], "summary": "ログインユーザーの取得", "description": "\nログインユーザーを取得する
", "operationId": "get_users_me", "parameters": [ { "name": "companies", "in": "query", "description": "取得情報にユーザーが所属する事業所一覧を含める", "schema": { "type": "boolean", "enum": [ true, false ] } }, { "name": "advisor", "in": "query", "description": "取得情報に事業がアドバイザー事象所の場合は事業所毎の一意なプロフィールIDを含める", "schema": { "type": "boolean", "enum": [ true, false ] } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/meResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "put": { "tags": [ "Users" ], "summary": "ログインユーザーの更新", "description": "\nログインユーザーを更新する
", "operationId": "update_user", "requestBody": { "description": "ログインユーザーの更新", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/userParams" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/userParams" } } }, "required": false }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/userResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/users/capabilities": { "get": { "tags": [ "Users" ], "summary": "ログインユーザーの権限の取得", "description": "\nログインユーザーの権限を取得する
", "operationId": "get_users_capabilities", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "200": { "description": "レスポンスの各キーは以下の項目と対応しています。
\n詳細は https://support.freee.co.jp/hc/ja/articles/210265673 を参照してください。
\nキー | \n対応する項目 | \n
---|---|
wallet_txns | \n自動で経理 / 取得した明細 | \n
deals | \n取引 | \n
transfers | \n口座振替 | \n
docs | \n見積書・納品書・請求書・領収書・発注書 | \n
doc_postings | \n(請求書の)郵送 | \n
receipts | \nファイルボックス | \n
receipt_stream_editor | \n連続取引登録 | \n
spreadsheets | \nエクセルインポート | \n
expense_applications | \n経費精算 | \n
expense_application_sync_payroll | \n経費精算の給与連携 | \n
payment_requests | \n支払依頼 | \n
approval_requests | \n各種申請 | \n
reports | \n収益 / 費用レポート | \n
reports_income_expense | \n損益レポート | \n
reports_receivables | \n入金管理レポート | \n
reports_payables | \n支払管理レポート(一括振込ファイルを含む) | \n
reports_cash_balance | \n現預金レポート/資金繰りレポート | \n
reports_managements_planning | \n経営プランニング | \n
reports_managements_navigation | \n経営ナビゲーション | \n
reports_custom_reports_aggregate | \nカスタムレポート | \n
reports_pl | \n損益計算書(月次推移/試算表) | \n
reports_bs | \n貸借対照表(月次推移/試算表) | \n
reports_general_ledgers | \n総勘定元帳 | \n
reports_journals | \n仕訳帳 | \n
manual_journals | \n振替伝票 | \n
fixed_assets | \n固定資産台帳 | \n
inventory_refreshes | \n在庫棚卸 | \n
biz_allocations | \n家事按分 | \n
payment_records | \n支払調書 | \n
annual_reports | \n決算書、確定申告書類 | \n
tax_reports | \n消費税区分別表・消費税集計表 | \n
consumption_entries | \n消費税申告書 | \n
tax_return | \n連携用データ | \n
account_item_statements | \n勘定科目内訳明細書 | \n
month_end | \n月締め | \n
year_end | \n年度締め | \n
walletables | \n口座 / 口座の同期 | \n
companies | \n事業所の設定 | \n
invitations | \nメンバー招待 | \n
access_controls | \n権限管理 | \n
sign_in_logs | \nログイン履歴 | \n
user_attribute_logs | \nユーザー更新履歴 | \n
app_role_logs | \n権限変更履歴 | \n
txn_relationship_logs | \n仕訳関連履歴 | \n
backups | \nバックアップ | \n
opening_balances | \n開始残高の設定 | \n
system_conversion | \n乗り換え設定 | \n
resets | \nリセット | \n
partners | \n取引先 | \n
items | \n品目 | \n
sections | \n部門 | \n
tags | \nメモタグ | \n
account_items | \n勘定科目 | \n
taxes | \n税区分 | \n
payroll_item_sets | \n給与連携の設定 | \n
user_matchers | \n自動登録ルール | \n
deal_templates | \n取引テンプレート | \n
manual_journal_templates | \n振替伝票テンプレート | \n
cost_allocations | \n部門配賦 | \n
approval_flow_routes | \n承認経路 | \n
expense_application_templates | \n経費科目 | \n
request_forms | \n申請フォーム | \n
system_messages_for_admin | \n管理者向けお知らせ | \n
company_internal_announcements | \nアナウンス | \n
doc_change_logs | \n受発注書類変更履歴 | \n
workflows | \n仕訳承認 | \n
oauth_applications | \nアプリ利用 | \n
oauth_authorizations | \nアプリ認可 | \n
bank_accountant_staff_users | \nアドバイザー事業所内でのメンバー管理 | \n
ユーザーが所属する事業所一覧を取得する
", "operationId": "get_companies", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/companyIndexResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/companies/{id}": { "get": { "tags": [ "Companies" ], "summary": "事業所の取得", "description": "\nユーザーが所属する事業所を取得する
", "operationId": "get_company", "parameters": [ { "name": "id", "in": "path", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64" } }, { "name": "details", "in": "query", "description": "取得情報に勘定科目・税区分コード・品目・取引先・部門・メモタグ・口座の一覧を含める", "schema": { "type": "boolean", "enum": [ true ] } }, { "name": "account_items", "in": "query", "description": "取得情報に勘定科目一覧を含める", "schema": { "type": "boolean", "enum": [ true ] } }, { "name": "taxes", "in": "query", "description": "取得情報に税区分コード一覧を含める", "schema": { "type": "boolean", "enum": [ true ] } }, { "name": "items", "in": "query", "description": "取得情報に品目一覧を含める", "schema": { "type": "boolean", "enum": [ true ] } }, { "name": "partners", "in": "query", "description": "取得情報に取引先一覧を含める", "schema": { "type": "boolean", "enum": [ true ] } }, { "name": "sections", "in": "query", "description": "取得情報に部門一覧を含める", "schema": { "type": "boolean", "enum": [ true ] } }, { "name": "tags", "in": "query", "description": "取得情報にメモタグ一覧を含める", "schema": { "type": "boolean", "enum": [ true ] } }, { "name": "walletables", "in": "query", "description": "取得情報に口座一覧を含める", "schema": { "type": "boolean", "enum": [ true ] } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/companyResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/items": { "get": { "tags": [ "Items" ], "summary": "品目一覧の取得", "description": "\n指定した事業所の品目一覧を取得する
\n事業所の設定で品目コードを使用する設定にしている場合、レスポンスで品目コード(code)を返します
", "operationId": "get_items", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "start_update_date", "in": "query", "description": "更新日で絞り込み:開始日(yyyy-mm-dd)", "schema": { "type": "string" } }, { "name": "end_update_date", "in": "query", "description": "更新日で絞り込み:終了日(yyyy-mm-dd)", "schema": { "type": "string" } }, { "name": "offset", "in": "query", "description": "取得レコードのオフセット (デフォルト: 0)", "schema": { "type": "integer", "format": "int64", "minimum": 0, "maximum": 2147483647 } }, { "name": "limit", "in": "query", "description": "取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 3000)", "schema": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 3000 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "items" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/item" } } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "post": { "tags": [ "Items" ], "summary": "品目の作成", "description": "\n指定した事業所の品目を作成する
\n\ncodeを利用するには、事業所の設定で品目コードを使用する設定にする必要があります。
", "operationId": "create_item", "requestBody": { "description": "品目の作成", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/itemParams" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/itemParams" } } }, "required": false }, "responses": { "201": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/itemResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/items/{id}": { "get": { "tags": [ "Items" ], "summary": "品目の取得", "description": "\n指定した事業所の品目を取得する
\n事業所の設定で品目コードを使用する設定にしている場合、レスポンスで品目コード(code)を返します
", "operationId": "get_item", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "id", "in": "path", "description": "品目ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/itemResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "put": { "tags": [ "Items" ], "summary": "品目の更新", "description": "\n指定した事業所の品目を更新する
\ncodeを利用するには、事業所の設定で品目コードを使用する設定にする必要があります。
", "operationId": "update_item", "parameters": [ { "name": "id", "in": "path", "description": "品目ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "requestBody": { "description": "品目の更新", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/itemParams" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/itemParams" } } }, "required": false }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/itemResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "delete": { "tags": [ "Items" ], "summary": "品目の削除", "description": "\n指定した事業所の品目を削除する
", "operationId": "destroy_item", "parameters": [ { "name": "id", "in": "path", "description": "品目ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/taxes/codes": { "get": { "tags": [ "Taxes" ], "summary": "税区分一覧の取得(廃止予定)", "description": "\n税区分一覧を取得する
\n\nこのAPIは廃止予定のため非推奨です。api/1/taxes/companies/{company_id}(指定した事業所の税区分一覧の取得)をご利用ください。
", "operationId": "get_tax_codes", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "taxes" ], "properties": { "taxes": { "type": "array", "items": { "$ref": "#/components/schemas/tax" } } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/taxes/codes/{code}": { "get": { "tags": [ "Taxes" ], "summary": "税区分の取得", "description": "\n税区分を取得する
", "operationId": "get_tax_code", "parameters": [ { "name": "code", "in": "path", "description": "税区分コード", "required": true, "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/taxResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/taxes/companies/{company_id}": { "get": { "tags": [ "Taxes" ], "summary": "指定した事業所の税区分一覧の取得", "description": "\n指定した事業所の税区分一覧を取得する
", "operationId": "get_taxes_companies", "parameters": [ { "name": "company_id", "in": "path", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "display_category", "in": "query", "description": "税区分の表示カテゴリ( tax_5: 5%表示の税区分、 tax_8: 8%表示の税区分、 tax_r8: 軽減税率8%表示の税区分、 tax_10: 10%表示の税区分、 tax_5_e80: インボイス経過措置5%表示80%控除の税区分、 tax_5_e50: インボイス経過措置5%表示50%控除の税区分、 tax_8_e80: インボイス経過措置8%表示80%控除の税区分、 tax_8_e50: インボイス経過措置8%表示50%控除の税区分、 tax_r8_e80: インボイス経過措置軽減税率8%表示80%控除の税区分、 tax_r8_e50: インボイス経過措置軽減税率8%表示50%控除の税区分、 tax_10_e80: インボイス経過措置10%表示80%控除の税区分、 tax_10_e50: インボイス経過措置10%表示50%控除の税区分)", "schema": { "type": "string", "enum": [ "tax_5", "tax_8", "tax_r8", "tax_10", "tax_5_e80", "tax_5_e50", "tax_8_e80", "tax_8_e50", "tax_r8_e80", "tax_r8_e50", "tax_10_e80", "tax_10_e50" ] } }, { "name": "available", "in": "query", "description": "税区分の使用設定。true: 使用する、false: 使用しない", "schema": { "type": "boolean" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "taxes" ], "properties": { "taxes": { "type": "array", "items": { "type": "object", "required": [ "available", "code", "display_category", "name", "name_ja" ], "properties": { "code": { "type": "integer", "format": "int64", "minimum": 0, "maximum": 2147483647, "description": "税区分コード", "example": 21 }, "name": { "type": "string", "description": "税区分名", "example": "sales_with_tax" }, "name_ja": { "type": "string", "description": "税区分名(日本語表示用)", "example": "課税売上" }, "display_category": { "type": "string", "description": "税区分の表示カテゴリ( tax_5: 5%表示の税区分、 tax_8: 8%表示の税区分、 tax_r8: 軽減税率8%表示の税区分、 tax_10: 10%表示の税区分、 tax_5_e80: インボイス経過措置5%表示80%控除の税区分、 tax_5_e50: インボイス経過措置5%表示50%控除の税区分、 tax_8_e80: インボイス経過措置8%表示80%控除の税区分、 tax_8_e50: インボイス経過措置8%表示50%控除の税区分、 tax_r8_e80: インボイス経過措置軽減税率8%表示80%控除の税区分、 tax_r8_e50: インボイス経過措置軽減税率8%表示50%控除の税区分、 tax_10_e80: インボイス経過措置10%表示80%控除の税区分、 tax_10_e50: インボイス経過措置10%表示50%控除の税区分、 null: 税率未設定税区分)", "example": "tax_8", "enum": [ "tax_5", "tax_8", "tax_r8", "tax_10", "tax_5_e80", "tax_5_e50", "tax_8_e80", "tax_8_e50", "tax_r8_e80", "tax_r8_e50", "tax_10_e80", "tax_10_e50" ], "nullable": true }, "available": { "type": "boolean", "description": "税区分の使用設定。true: 使用する、false: 使用しない", "example": true } } } } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/walletables": { "get": { "tags": [ "Walletables" ], "summary": "口座一覧の取得", "description": "\n指定した事業所の口座一覧を取得する
\n\n指定した事業所の口座を作成する
\n\ntype
\n\nname : 口座名
\nbank_id : 連携サービスID
\nis_asset : type:wallet指定時に口座を資産口座とするか負債口座とするか(true: 資産口座 (デフォルト), false: 負債口座)
\n指定した事業所の口座を取得する
\n\n指定した事業所の口座を更新する
", "operationId": "update_walletable", "parameters": [ { "name": "id", "description": "口座ID", "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" } }, { "name": "type", "in": "path", "description": "口座種別(bank_account : 銀行口座, credit_card : クレジットカード, wallet : その他の決済口座)", "required": true, "schema": { "type": "string", "enum": [ "bank_account", "credit_card", "wallet" ] } } ], "requestBody": { "description": "口座の更新", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/walletableUpdateParams" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/walletableUpdateParams" } } }, "required": false }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "walletable" ], "properties": { "walletable": { "$ref": "#/components/schemas/walletableUpdateResponse" }, "meta": { "type": "object", "properties": { "up_to_date": { "type": "boolean", "description": "集計結果が最新かどうか", "example": true } } } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "delete": { "tags": [ "Walletables" ], "summary": "口座の削除", "description": "\n指定した事業所の口座を削除する
\n\n連携しているサービス一覧を取得する
\n\n連携しているサービスを取得する
\n\n指定した事業所の取引(振替)一覧を取得する
\n\namount : 振替金額
\nfrom_walletable_type, to_walletable_type
\n\n指定した事業所の取引(振替)を作成する
\n\namount : 振替金額
\nfrom_walletable_type, to_walletable_type
\n\n指定した事業所の取引(振替)を取得する
\n\namount : 振替金額
\nfrom_walletable_type, to_walletable_type
\n\n指定した事業所の取引(振替)を更新する
\n\namount : 振替金額
\nfrom_walletable_type, to_walletable_type
\n\n指定した事業所の取引(振替)を削除する
", "operationId": "destroy_transfer", "parameters": [ { "name": "id", "in": "path", "description": "取引(振替)ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/wallet_txns": { "get": { "tags": [ "Wallet txns" ], "summary": "口座明細一覧の取得", "description": "\n指定した事業所の口座明細一覧を取得する
\n\namount : 明細金額
\ndue_amount : 取引登録待ち金額
\nbalance : 残高
\nentry_side
\n\nwalletable_type
\n\n指定した事業所の口座明細を作成する
\n\namount : 明細金額
\ndue_amount : 取引登録待ち金額
\nbalance : 残高
\nentry_side
\n\nwalletable_type
\n\n指定した事業所の口座明細を取得する
\n\namount : 明細金額
\ndue_amount : 取引登録待ち金額
\nbalance : 残高
\nentry_side
\n\nwalletable_type
\n\n指定した事業所の口座明細を削除する
\n\nユーザーが所属する事業所の仕訳帳のダウンロードをリクエストします。
\n\n生成されるファイルのファイル形式と出力項目に関しては、ヘルプページをご参照ください。
\n\n仕訳帳のダウンロードリクエストのステータスを取得する
\n\nstatus
\n\nid : 受け付けID
\n仕訳帳をダウンロードする
\n\n指定した事業所の貸借対照表を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
opening_balance : 期首残高
debit_amount : 借方金額
credit_amount: 貸方金額
closing_balance : 期末残高
composition_ratio : 構成比
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_bs?company_id=1&fiscal_year=2019&breakdown_display_type=partner
\n
{\n "trial_bs" :\n {\n "company_id" : 1,\n "fiscal_year" : 2019,\n "breakdown_display_type" : "partner",\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1000,\n "account_item_name" : "現金",\n "hierarchy_level" : 2,\n "account_category_name" : "流動資産",\n "opening_balance" : 100000,\n "debit_amount" : 50000,\n "credit_amount" : 20000,\n "closing_balance" : 130000,\n "composition_ratio" : 0.25\n "partners" : [{\n "id" : 123,\n "name" : "freee",\n "opening_balance" : 100000,\n "debit_amount" : 50000,\n "credit_amount" : 20000,\n "closing_balance" : 130000,\n "composition_ratio" : 0.25\n },\n ...\n ]\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_bs",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item, セグメント1タグ: segment_1_tag, セグメント2タグ: segment_2_tag, セグメント3タグ: segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門、セグメント の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない\n",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item",
"segment_1_tag",
"segment_2_tag",
"segment_3_tag"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の貸借対照表(前年比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
last_year_closing_balance: 前年度期末残高
closing_balance : 期末残高
year_on_year : 前年比
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_bs_two_years?company_id=1&fiscal_year=2019
\n
{\n "trial_bs_two_years" :\n {\n "company_id" : 1,\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1000,\n "account_item_name" : "現金",\n "hierarchy_level" : 2,\n "account_category_name" : "流動資産",\n "last_year_closing_balance" : 25000,\n "closing_balance" : 100000,\n "year_on_year" : 0.85\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_bs_two_years",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item, セグメント1タグ: segment_1_tag, セグメント2タグ: segment_2_tag, セグメント3タグ: segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門、セグメント の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item",
"segment_1_tag",
"segment_2_tag",
"segment_3_tag"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の貸借対照表(3期間比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
two_years_before_closing_balance: 前々年度期末残高
last_year_closing_balance: 前年度期末残高
closing_balance : 期末残高
year_on_year : 前年比
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_bs_three_years?company_id=1&fiscal_year=2019
\n
{\n "trial_bs_three_years" :\n {\n "company_id" : 1,\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1000,\n "account_item_name" : "現金",\n "hierarchy_level" : 2,\n "account_category_name" : "流動資産",\n "two_year_before_closing_balance" : 50000,\n "last_year_closing_balance" : 25000,\n "closing_balance" : 100000,\n "year_on_year" : 0.85\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_bs_three_years",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item, セグメント1タグ: segment_1_tag, セグメント2タグ: segment_2_tag, セグメント3タグ: segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門、セグメント の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item",
"segment_1_tag",
"segment_2_tag",
"segment_3_tag"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の損益計算書を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
opening_balance : 期首残高
debit_amount : 借方金額
credit_amount: 貸方金額
closing_balance : 期末残高
composition_ratio : 構成比
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_pl?company_id=1&fiscal_year=2019&breakdown_display_type=partner
\n
{\n "trial_pl" :\n {\n "company_id" : 1,\n "fiscal_year" : 2019,\n "breakdown_display_type" : "partner",\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "売上高",\n "hierarchy_level" : 2,\n "account_category_name" : "営業収益",\n "opening_balance" : 100000,\n "debit_amount" : 50000,\n "credit_amount" : 20000,\n "closing_balance" : 130000,\n "composition_ratio" : 0.25\n "partners" : [{\n "id" : 123,\n "name" : "freee",\n "opening_balance" : 100000,\n "debit_amount" : 50000,\n "credit_amount" : 20000,\n "closing_balance" : 130000,\n "composition_ratio" : 0.25\n },\n ...\n ]\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_pl",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item, セグメント1タグ: segment_1_tag, セグメント2タグ: segment_2_tag, セグメント3タグ: segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門、セグメント の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item",
"segment_1_tag",
"segment_2_tag",
"segment_3_tag"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の損益計算書(前年比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
last_year_closing_balance: 前年度期末残高
closing_balance : 期末残高
year_on_year : 前年比
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_pl_two_years?company_id=1&fiscal_year=2019
\n
{\n "trial_pl_two_years" :\n {\n "company_id" : 1,\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "売上高",\n "hierarchy_level" : 2,\n "account_category_name" : "営業収益",\n "last_year_closing_balance" : 25000,\n "closing_balance" : 100000,\n "year_on_year" : 0.85\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_pl_two_years",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item, セグメント1タグ: segment_1_tag, セグメント2タグ: segment_2_tag, セグメント3タグ: segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門、セグメント の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item",
"segment_1_tag",
"segment_2_tag",
"segment_3_tag"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の損益計算書(3期間比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
two_years_before_closing_balance: 前々年度期末残高
last_year_closing_balance: 前年度期末残高
closing_balance : 期末残高
year_on_year : 前年比
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_pl_three_years?company_id=1&fiscal_year=2019
\n
{\n "trial_pl_three_years" :\n {\n "company_id" : 1,\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "売上高",\n "hierarchy_level" : 2,\n "account_category_name" : "営業収益",\n "two_year_before_closing_balance" : 50000,\n "last_year_closing_balance" : 25000,\n "closing_balance" : 100000,\n "year_on_year" : 0.85\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_pl_three_years",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item, セグメント1タグ: segment_1_tag, セグメント2タグ: segment_2_tag, セグメント3タグ: segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門、セグメント の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item",
"segment_1_tag",
"segment_2_tag",
"segment_3_tag"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の損益計算書(部門比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
closing_balance : 期末残高
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_pl_sections?company_id=1§ion_ids=1,2,3&fiscal_year=2019
\n
{\n "trial_pl_sections" :\n {\n "company_id" : 1,\n "section_ids" : "1,2,3",\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "売上高",\n "hierarchy_level" : 2,\n "account_category_name" : "営業収益",\n "closing_balance" : 1000000,\n "sections" : [{\n "id": 1\n "name": "営業部",\n "closing_balance" : 100000\n },\n {\n "id": 2\n "name": "広報部",\n "closing_balance" : 200000\n },\n {\n "id": 3\n "name": "人事部",\n "closing_balance" : 300000\n },\n ...\n ]\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_pl_sections",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "section_ids",
"in": "query",
"description": "出力する部門の指定(半角数字のidを半角カンマ区切りスペースなしで指定してください。0を指定すると、未選択の部門で比較できます。)",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 勘定科目: account_item, セグメント1タグ: segment_1_tag, セグメント2タグ: segment_2_tag, セグメント3タグ: segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、セグメント の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"account_item",
"segment_1_tag",
"segment_2_tag",
"segment_3_tag"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の損益計算書(セグメント1比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
closing_balance : 期末残高
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_pl_segment_1_tags?company_id=1&segment_1_tag_ids=1,2,3&fiscal_year=2019
\n
{\n "trial_pl_segment_1_tags" :\n {\n "company_id" : 1,\n "segment_1_tag_ids" : "1,2,3",\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "売上高",\n "hierarchy_level" : 2,\n "account_category_name" : "営業収益",\n "closing_balance" : 1000000,\n "segment_1_tags" : [{\n "id": 1\n "name": "プロジェクトA",\n "closing_balance" : 100000\n },\n {\n "id": 2\n "name": "プロジェクトB",\n "closing_balance" : 200000\n },\n {\n "id": 3\n "name": "プロジェクトC",\n "closing_balance" : 300000\n },\n ...\n ]\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_pl_segment_1_tags",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "segment_1_tag_ids",
"in": "query",
"description": "出力するセグメント1タグIDの指定(半角数字のidを半角カンマ区切りスペースなしで指定してください。0を指定すると、未選択のセグメントで比較できます)",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門 の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の損益計算書(セグメント2比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
closing_balance : 期末残高
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_pl_segment_2_tags?company_id=1&segment_2_tag_ids=1,2,3&fiscal_year=2019
\n
{\n "trial_pl_segment_2_tags" :\n {\n "company_id" : 1,\n "segment_2_tag_ids" : "1,2,3",\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "売上高",\n "hierarchy_level" : 2,\n "account_category_name" : "営業収益",\n "closing_balance" : 1000000,\n "segment_2_tags" : [{\n "id": 1\n "name": "プロジェクトA",\n "closing_balance" : 100000\n },\n {\n "id": 2\n "name": "プロジェクトB",\n "closing_balance" : 200000\n },\n {\n "id": 3\n "name": "プロジェクトC",\n "closing_balance" : 300000\n },\n ...\n ]\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_pl_segment_2_tags",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "segment_2_tag_ids",
"in": "query",
"description": "出力するセグメント2タグIDの指定(半角数字のidを半角カンマ区切りスペースなしで指定してください。0を指定すると、未選択のセグメントで比較できます)",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門 の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の損益計算書(セグメント3比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
closing_balance : 期末残高
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_pl_segment_3_tags?company_id=1&segment_3_tag_ids=1,2,3&fiscal_year=2019
\n
{\n "trial_pl_segment_3_tags" :\n {\n "company_id" : 1,\n "segment_3_tag_ids" : "1,2,3",\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "売上高",\n "hierarchy_level" : 2,\n "account_category_name" : "営業収益",\n "closing_balance" : 1000000,\n "segment_3_tags" : [{\n "id": 1\n "name": "プロジェクトA",\n "closing_balance" : 100000\n },\n {\n "id": 2\n "name": "プロジェクトB",\n "closing_balance" : 200000\n },\n {\n "id": 3\n "name": "プロジェクトC",\n "closing_balance" : 300000\n },\n ...\n ]\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_pl_segment_3_tags",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "segment_3_tag_ids",
"in": "query",
"description": "出力するセグメント3タグIDの指定(半角数字のidを半角カンマ区切りスペースなしで指定してください。0を指定すると、未選択のセグメントで比較できます)",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門 の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の製造原価報告書を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
opening_balance : 期首残高
debit_amount : 借方金額
credit_amount: 貸方金額
closing_balance : 期末残高
composition_ratio : 構成比
\n\nGET https://api.freee.co.jp/api/1/reports/trial_cr?company_id=1&fiscal_year=2019&breakdown_display_type=partner
\n
{\n "trial_cr" :\n {\n "company_id" : 1,\n "fiscal_year" : 2019,\n "breakdown_display_type" : "partner",\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "[製]期首材料棚卸高",\n "hierarchy_level" : 2,\n "account_category_name" : "期首原材料棚卸",\n "opening_balance" : 100000,\n "debit_amount" : 50000,\n "credit_amount" : 20000,\n "closing_balance" : 130000,\n "composition_ratio" : 0.25\n "partners" : [{\n "id" : 123,\n "name" : "freee",\n "opening_balance" : 100000,\n "debit_amount" : 50000,\n "credit_amount" : 20000,\n "closing_balance" : 130000,\n "composition_ratio" : 0.25\n },\n ...\n ]\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_cr",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item, セグメント1タグ: segment_1_tag, セグメント2タグ: segment_2_tag, セグメント3タグ: segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門、セグメント の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item",
"segment_1_tag",
"segment_2_tag",
"segment_3_tag"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト), 全てのステータス: all)指定した事業所の製造原価報告書(前年比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
last_year_closing_balance: 前年度期末残高
closing_balance : 期末残高
year_on_year : 前年比
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_cr_two_years?company_id=1&fiscal_year=2019
\n
{\n "trial_cr_two_years" :\n {\n "company_id" : 1,\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "[製]期首材料棚卸高",\n "hierarchy_level" : 2,\n "account_category_name" : "期首原材料棚卸",\n "last_year_closing_balance" : 25000,\n "closing_balance" : 100000,\n "year_on_year" : 0.85\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_cr_two_years",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item, セグメント1タグ: segment_1_tag, セグメント2タグ: segment_2_tag, セグメント3タグ: segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門、セグメント の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item",
"segment_1_tag",
"segment_2_tag",
"segment_3_tag"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト), 全てのステータス: all)指定した事業所の製造原価報告書(3期間比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
two_years_before_closing_balance: 前々年度期末残高
last_year_closing_balance: 前年度期末残高
closing_balance : 期末残高
year_on_year : 前年比
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_cr_three_years?company_id=1&fiscal_year=2019
\n
{\n "trial_cr_three_years" :\n {\n "company_id" : 1,\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "[製]期首材料棚卸高",\n "hierarchy_level" : 2,\n "account_category_name" : "期首原材料棚卸",\n "two_year_before_closing_balance" : 50000,\n "last_year_closing_balance" : 25000,\n "closing_balance" : 100000,\n "year_on_year" : 0.85\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_cr_three_years",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item, セグメント1タグ: segment_1_tag, セグメント2タグ: segment_2_tag, セグメント3タグ: segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門、セグメント の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item",
"segment_1_tag",
"segment_2_tag",
"segment_3_tag"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト), 全てのステータス: all)指定した事業所の製造原価報告書(部門比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
closing_balance : 期末残高
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_cr_sections?company_id=1§ion_ids=1,2,3&fiscal_year=2019
\n
{\n "trial_cr_sections" :\n {\n "company_id" : 1,\n "section_ids" : "1,2,3",\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "[製]期首材料棚卸高",\n "hierarchy_level" : 2,\n "account_category_name" : "期首原材料棚卸",\n "closing_balance" : 1000000,\n "sections" : [{\n "id": 1\n "name": "営業部",\n "closing_balance" : 100000\n },\n {\n "id": 2\n "name": "広報部",\n "closing_balance" : 200000\n },\n {\n "id": 3\n "name": "人事部",\n "closing_balance" : 300000\n },\n ...\n ]\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_cr_sections",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "section_ids",
"in": "query",
"description": "出力する部門の指定(半角数字のidを半角カンマ区切りスペースなしで指定してください。0を指定すると、未選択の部門で比較できます)",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 勘定科目: account_item, セグメント1タグ: segment_1_tag, セグメント2タグ: segment_2_tag, セグメント3タグ: segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、セグメント の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"account_item",
"segment_1_tag",
"segment_2_tag",
"segment_3_tag"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の製造原価報告書(セグメント1比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
closing_balance : 期末残高
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_cr_segment_1_tags?company_id=1&segment_1_tag_ids=1,2,3&fiscal_year=2019
\n
{\n "trial_cr_segment_1_tags" :\n {\n "company_id" : 1,\n "segment_1_tag_ids" : "1,2,3",\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "[製]期首材料棚卸高",\n "hierarchy_level" : 2,\n "account_category_name" : "期首原材料棚卸",\n "closing_balance" : 1000000,\n "segment_1_tags" : [{\n "id": 1\n "name": "プロジェクトA",\n "closing_balance" : 100000\n },\n {\n "id": 2\n "name": "プロジェクトB",\n "closing_balance" : 200000\n },\n {\n "id": 3\n "name": "プロジェクトC",\n "closing_balance" : 300000\n },\n ...\n ]\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_cr_segment_1_tags",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "segment_1_tag_ids",
"in": "query",
"description": "出力するセグメント1タグIDの指定(半角数字のidを半角カンマ区切りスペースなしで指定してください。0を指定すると、未選択のセグメントで比較できます)",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門 の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の製造原価報告書(セグメント2比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
closing_balance : 期末残高
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_cr_segment_2_tags?company_id=1&segment_2_tag_ids=1,2,3&fiscal_year=2019
\n
{\n "trial_cr_segment_2_tags" :\n {\n "company_id" : 1,\n "segment_2_tag_ids" : "1,2,3",\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "[製]期首材料棚卸高",\n "hierarchy_level" : 2,\n "account_category_name" : "期首原材料棚卸",\n "closing_balance" : 1000000,\n "segment_2_tags" : [{\n "id": 1\n "name": "プロジェクトA",\n "closing_balance" : 100000\n },\n {\n "id": 2\n "name": "プロジェクトB",\n "closing_balance" : 200000\n },\n {\n "id": 3\n "name": "プロジェクトC",\n "closing_balance" : 300000\n },\n ...\n ]\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_cr_segment_2_tags",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "segment_2_tag_ids",
"in": "query",
"description": "出力するセグメント2タグIDの指定(半角数字のidを半角カンマ区切りスペースなしで指定してください。0を指定すると、未選択のセグメントで比較できます)",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門 の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の製造原価報告書(セグメント3比較)を取得する
\n\ncreated_at : 作成日時
account_item_name : 勘定科目名
hierarchy_level: 階層レベル
parent_account_category_name: 上位勘定科目カテゴリー名
closing_balance : 期末残高
\n\n\nGET https://api.freee.co.jp/api/1/reports/trial_cr_segment_3_tags?company_id=1&segment_3_tag_ids=1,2,3&fiscal_year=2019
\n
{\n "trial_cr_segment_3_tags" :\n {\n "company_id" : 1,\n "segment_3_tag_ids" : "1,2,3",\n "fiscal_year" : 2019,\n "created_at" : "2019-12-17 12:00:50"\n "balances" : [{\n "account_item_id" : 1500,\n "account_item_name" : "[製]期首材料棚卸高",\n "hierarchy_level" : 2,\n "account_category_name" : "期首原材料棚卸",\n "closing_balance" : 1000000,\n "segment_3_tags" : [{\n "id": 1\n "name": "プロジェクトA",\n "closing_balance" : 100000\n },\n {\n "id": 2\n "name": "プロジェクトB",\n "closing_balance" : 200000\n },\n {\n "id": 3\n "name": "プロジェクトC",\n "closing_balance" : 300000\n },\n ...\n ]\n },\n ...\n ]\n }\n}
\n",
"operationId": "get_trial_cr_segment_3_tags",
"parameters": [
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "segment_3_tag_ids",
"in": "query",
"description": "出力するセグメント3タグIDの指定(半角数字のidを半角カンマ区切りスペースなしで指定してください。0を指定すると、未選択のセグメントで比較できます)",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "fiscal_year",
"in": "query",
"description": "会計年度",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "start_month",
"in": "query",
"description": "発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "end_month",
"in": "query",
"description": "発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 12
}
},
{
"name": "start_date",
"in": "query",
"description": "発生日で絞込:開始日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "end_date",
"in": "query",
"description": "発生日で絞込:終了日(yyyy-mm-dd)",
"schema": {
"type": "string"
}
},
{
"name": "account_item_display_type",
"in": "query",
"description": "勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。",
"schema": {
"type": "string",
"enum": [
"account_item",
"group"
]
}
},
{
"name": "breakdown_display_type",
"in": "query",
"description": "内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます。\n\n取引先、品目、部門 の各項目が単独で1,000以上登録されている場合は、breakdown_display_type で該当項目を指定するとエラーになります。\n\n例)取引先の登録数が1,000以上、品目の登録数が999以下の場合\n* breakdown_display_type: 取引先を指定 → エラーになる\n* breakdown_display_type: 品目を指定 → エラーにならない",
"schema": {
"type": "string",
"enum": [
"partner",
"item",
"section",
"account_item"
]
}
},
{
"name": "partner_id",
"in": "query",
"description": "取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "partner_code",
"in": "query",
"description": "取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です)",
"schema": {
"type": "string"
}
},
{
"name": "item_id",
"in": "query",
"description": "品目IDで絞込(0を指定すると、品目が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "section_id",
"in": "query",
"description": "部門IDで絞込(0を指定すると、部門が未選択で絞り込めます)",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "adjustment",
"in": "query",
"description": "決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "cost_allocation",
"in": "query",
"description": "配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。",
"schema": {
"type": "string",
"enum": [
"only",
"without"
]
}
},
{
"name": "approval_flow_status",
"in": "query",
"description": "承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all)指定した事業所の総勘定元帳一覧を取得する
\n指定した事業所のファイルボックス(証憑ファイル)一覧を取得する
", "operationId": "get_receipts", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "start_date", "in": "query", "description": "アップロード日 (yyyy-mm-dd)", "required": true, "schema": { "type": "string" } }, { "name": "end_date", "in": "query", "description": "アップロード日 (yyyy-mm-dd)", "required": true, "schema": { "type": "string" } }, { "name": "user_name", "in": "query", "description": "アップロードしたユーザー名、メールアドレス", "schema": { "type": "string" } }, { "name": "number", "in": "query", "description": "アップロードファイルNo", "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "comment_type", "in": "query", "description": "posted:コメントあり, raised:未解決, resolved:解決済", "schema": { "type": "string", "enum": [ "posted", "raised", "resolved" ] } }, { "name": "comment_important", "in": "query", "description": "trueの時、重要コメント付きが対象", "schema": { "type": "boolean" } }, { "name": "category", "in": "query", "description": "all:すべて、without_deal:未登録、with_expense_application_line:経費申請中, with_deal:登録済み、ignored:無視", "schema": { "type": "string", "enum": [ "all", "without_deal", "with_expense_application_line", "with_deal", "ignored" ] } }, { "name": "offset", "in": "query", "description": "取得レコードのオフセット (デフォルト: 0)", "schema": { "type": "integer", "format": "int64", "minimum": 0, "maximum": 9223372036854775807 } }, { "name": "limit", "in": "query", "description": "取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 3000)", "schema": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 3000 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "receipts" ], "properties": { "receipts": { "type": "array", "items": { "$ref": "#/components/schemas/receipt" } } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "post": { "tags": [ "Receipts" ], "summary": "ファイルボックス(証憑ファイル)のアップロード", "description": "\nファイルボックス(証憑ファイル)をアップロードする
\n指定した事業所のファイルボックス(証憑ファイル)を取得する
", "operationId": "get_receipt", "parameters": [ { "name": "id", "in": "path", "description": "ファイルボックス(証憑ファイル)ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/receiptResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "put": { "tags": [ "Receipts" ], "summary": "ファイルボックス(証憑ファイル)の更新", "description": "\nファイルボックス(証憑ファイル)を更新する
\nファイルボックス(証憑ファイル)を削除する
", "operationId": "destroy_receipt", "parameters": [ { "name": "id", "in": "path", "description": "ファイルボックス(証憑ファイル)ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/receipts/{id}/download": { "get": { "tags": [ "Receipts" ], "summary": "ファイルボックス(証憑ファイル)のダウンロード", "description": "\n指定した事業所のファイルボックス(証憑ファイル)をダウンロードする
", "operationId": "download_receipt", "parameters": [ { "name": "id", "in": "path", "description": "ファイルボックス(証憑ファイル)ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "200": { "description": "", "content": { "text/csv": { "schema": { "type": "string" } }, "application/pdf": { "schema": { "type": "string", "format": "binary" } }, "image/*": { "schema": { "type": "string", "format": "binary" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/expense_applications": { "get": { "tags": [ "Expense applications" ], "summary": "経費申請一覧の取得", "description": "\n指定した事業所の経費申請一覧を取得する
\n\n経費精算APIの使い方については、freee会計経費精算APIの使い方をご参照ください
\n\n指定した事業所の経費申請を作成する
\n\n経費精算APIの使い方については、freee会計経費精算APIの使い方をご参照ください
\n\n指定した事業所の経費申請を取得する
\n\n経費精算APIの使い方については、freee会計経費精算APIの使い方をご参照ください
\n\n指定した事業所の経費申請を更新する
\n\n経費精算APIの使い方については、freee会計経費精算APIの使い方をご参照ください
\n\n指定した事業所の経費申請を削除する
\n\n経費精算APIの使い方については、freee会計経費精算APIの使い方をご参照ください
\n\n指定した事業所の経費申請の承認操作を行う
\n\n経費精算APIの使い方については、freee会計経費精算APIの使い方をご参照ください
\n\n指定した事業所の経費申請に関連付ける各種申請の更新を行う
\n\n経費精算APIの使い方については、freee会計経費精算APIの使い方をご参照ください
\n\n指定した事業所の経費科目一覧を取得する
", "operationId": "get_expense_application_line_templates", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "offset", "in": "query", "description": "取得レコードのオフセット (デフォルト: 0)", "schema": { "type": "integer", "format": "int64", "minimum": 0, "maximum": 9223372036854775807 } }, { "name": "limit", "in": "query", "description": "取得レコードの件数 (デフォルト: 20, 最小: 1, 最大: 100)", "schema": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 100 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "expense_application_line_templates" ], "properties": { "expense_application_line_templates": { "type": "array", "items": { "$ref": "#/components/schemas/expense_application_line_template" } } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "post": { "tags": [ "Expense application line templates" ], "summary": "経費科目の作成", "operationId": "create_expense_application_line_template", "requestBody": { "description": "経費科目の作成", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/expenseApplicationLineTemplateParams" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/expenseApplicationLineTemplateParams" } } }, "required": true }, "responses": { "201": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/expenseApplicationLineTemplateResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/expense_application_line_templates/{id}": { "get": { "tags": [ "Expense application line templates" ], "summary": "経費科目の取得", "operationId": "get_expense_application_line_template", "parameters": [ { "name": "id", "in": "path", "description": "経費科目ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/expenseApplicationLineTemplateResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "put": { "tags": [ "Expense application line templates" ], "summary": "経費科目の更新", "operationId": "update_expense_application_line_template", "parameters": [ { "name": "id", "in": "path", "description": "経費科目ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "requestBody": { "description": "経費科目の更新", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/expenseApplicationLineTemplateParams" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/expenseApplicationLineTemplateParams" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/expenseApplicationLineTemplateResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } }, "delete": { "tags": [ "Expense application line templates" ], "summary": "経費科目の削除", "operationId": "destroy_expense_application_line_template", "parameters": [ { "name": "id", "in": "path", "description": "経費科目ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/payment_requests": { "get": { "tags": [ "Payment requests" ], "summary": "支払依頼一覧の取得", "description": "\n指定した事業所の支払依頼一覧を取得する
\n\n支払依頼APIの使い方については、freee会計支払依頼APIの使い方をご参照ください
\n\n指定した事業所の支払依頼を作成する
\n\n支払依頼APIの使い方については、freee会計支払依頼APIの使い方をご参照ください
\n\n指定した事業所の支払依頼を取得する
\n\n支払依頼APIの使い方については、freee会計支払依頼APIの使い方をご参照ください
\n\n指定した事業所の支払依頼を更新する
\n\n支払依頼APIの使い方については、freee会計支払依頼APIの使い方をご参照ください
\n\n指定した事業所の支払依頼を削除する
\n\n支払依頼APIの使い方については、freee会計支払依頼APIの使い方をご参照ください
\n\n指定した事業所の支払依頼の承認操作を行う
\n\n支払依頼APIの使い方については、freee会計支払依頼APIの使い方をご参照ください
\n\n指定した事業所の各種申請一覧を取得する
\n\n各種申請APIの使い方については、freee会計の各種申請APIの使い方をご参照ください
\n\n指定した事業所の各種申請を作成する
\n\n各種申請APIの使い方については、freee会計の各種申請APIの使い方をご参照ください
\n\n指定した事業所の各種申請を取得する
\n\n各種申請APIの使い方については、freee会計の各種申請APIの使い方をご参照ください
\n\n指定した事業所の各種申請を更新する
\n\n各種申請APIの使い方については、freee会計の各種申請APIの使い方をご参照ください
\n\n指定した事業所の各種申請を削除する
\n\n各種申請APIの使い方については、freee会計の各種申請APIの使い方をご参照ください
\n\n指定した事業所の各種申請の承認操作を行う
\n\n各種申請APIの使い方については、freee会計の各種申請APIの使い方をご参照ください
\n\n指定した事業所の各種申請の申請フォーム一覧を取得する
\n\n各種申請APIの使い方については、freee会計の各種申請APIの使い方をご参照ください
", "operationId": "get_approval_request_forms", "parameters": [ { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/approvalRequestFormIndexResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/approval_requests/forms/{id}": { "get": { "tags": [ "Approval requests" ], "summary": "各種申請の申請フォームの取得", "description": "\n指定した事業所の各種申請の申請フォームを取得する
\n\n各種申請APIの使い方については、freee会計の各種申請APIの使い方をご参照ください
", "operationId": "get_approval_request_form", "parameters": [ { "name": "id", "in": "path", "description": "申請フォームID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/approvalRequestFormResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/approval_flow_routes": { "get": { "tags": [ "Approval flow routes" ], "summary": "申請経路一覧の取得", "description": "\n指定した事業所の申請経路一覧を取得する
\n\n各種申請APIの使い方については、freee会計の各種申請APIの使い方をご参照ください
\n経費精算APIの使い方については、freee会計の経費精算APIの使い方をご参照ください
\n\n申請経路、承認者の指定として部門役職データ連携を活用し、以下のいずれかを利用している申請と申請経路はAPI経由で参照は可能ですが、作成と更新、承認ステータスの変更ができません。
\n指定した事業所の申請経路を取得する
\n\n各種申請APIの使い方については、freee会計の各種申請APIの使い方をご参照ください
\n経費精算APIの使い方については、freee会計の経費精算APIの使い方をご参照ください
\n\n申請経路、承認者の指定として部門役職データ連携を活用し、以下のいずれかを利用している申請と申請経路はAPI経由で参照は可能ですが、作成と更新、承認ステータスの変更ができません。
\n指定した事業所のセグメントタグ一覧を取得する
\n\n指定した事業所のセグメントタグを作成する
\n\n指定した事業所のセグメントタグを更新する
\n\n指定した事業所のセグメントタグを削除する
", "operationId": "destroy_segments_tag", "parameters": [ { "name": "segment_id", "in": "path", "description": "セグメントID(1,2,3のいずれか)\n該当プラン以外で参照した場合にはエラーとなります。\n", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 3 } }, { "name": "id", "in": "path", "description": "セグメントタグID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } }, { "name": "company_id", "in": "query", "description": "事業所ID", "required": true, "schema": { "type": "integer", "format": "int64", "minimum": 1 } } ], "responses": { "204": { "description": "", "content": { } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } }, "/api/1/fixed_assets": { "get": { "tags": [ "Fixed assets" ], "summary": "固定資産一覧の取得", "description": "指定した事業所の固定資産一覧を取得する
\n\ntarget_date : 表示したい会計期間の開始年月日。開始年月日以外を指定した場合は、その日付が含まれる会計期間が対象となります。
depreciation_amount : 本年分の償却費合計
depreciation_method : 償却方法
depreciation_account_item_id : 減価償却に使う勘定科目
acquisition_cost : 取得価額
opening_balance : 期首残高
undepreciated_balance : 未償却残高。土地などの償却しない固定資産はnullが返ります。
opening_accumulated_depreciation : 期首減価償却累計額
closing_accumulated_depreciation : 期末減価償却累計額
up_to_dateがfalseの場合、残高の集計が完了していません。最新の集計結果を確認したい場合は、時間を空けて再度取得する必要があります。
指定した事業所の決算書表示名を作成する
", "operationId": "create_account_group", "requestBody": { "description": "決算書表示名の作成", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/accountGroupCreateParams" } } }, "required": true }, "responses": { "201": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/accountGroupCreateResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestError" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedError" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenError" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestNotFoundError" } } } }, "500": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerError" } } } } } } } }, "components": { "schemas": { "paymentParams": { "required": [ "amount", "company_id", "date", "from_walletable_id", "from_walletable_type" ], "type": "object", "properties": { "company_id": { "type": "integer", "format": "int64", "minimum": 1, "description": "事業所ID", "example": 1 }, "date": { "type": "string", "description": "支払日", "example": "2019-12-17" }, "from_walletable_type": { "type": "string", "description": "口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet, プライベート資金(法人の場合は役員借入金もしくは役員借入金、個人の場合は事業主貸もしくは事業主借): private_account_item):payments指定時は必須", "example": "bank_account", "enum": [ "bank_account", "credit_card", "wallet", "private_account_item" ] }, "from_walletable_id": { "type": "integer", "format": "int64", "minimum": 1, "description": "口座ID(from_walletable_typeがprivate_account_itemの場合は勘定科目ID):payments指定時は必須", "example": 1 }, "amount": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 9223372036854775807, "description": "金額", "example": 10000 } } }, "dealCreateParams": { "required": [ "company_id", "details", "issue_date", "type" ], "type": "object", "properties": { "issue_date": { "type": "string", "description": "発生日 (yyyy-mm-dd)", "example": "2019-12-17" }, "type": { "type": "string", "description": "収支区分 (収入: income, 支出: expense)", "example": "income", "enum": [ "income", "expense" ] }, "company_id": { "type": "integer", "format": "int64", "minimum": 1, "description": "事業所ID", "example": 1 }, "due_date": { "type": "string", "description": "支払期日(yyyy-mm-dd)", "example": "2019-12-17" }, "partner_id": { "type": "integer", "format": "int64", "minimum": 1, "description": "取引先ID", "example": 1 }, "partner_code": { "type": "string", "description": "取引先コード", "example": "code001" }, "ref_number": { "type": "string", "description": "管理番号", "example": "1" }, "details": { "type": "array", "items": { "required": [ "tax_code", "account_item_id", "amount" ], "type": "object", "properties": { "tax_code": { "type": "integer", "format": "int64", "minimum": 0, "maximum": 2147483647, "description": "税区分コード", "example": 1 }, "account_item_id": { "type": "integer", "format": "int64", "minimum": 1, "description": "勘定科目ID", "example": 1 }, "amount": { "type": "integer", "format": "int64", "minimum": -9223372036854775808, "maximum": 9223372036854775807, "description": "取引金額(税込で指定してください)