経費明細API
アクション
経費明細APIを使うと次のことをすることができます。
| 動詞 | パス | アクション | Description |
|---|---|---|---|
| POST | /api/expense_lines /: id/assign_attendee /: expense_attendee_id | assign_attendee | 経費明細に出席者を割り当てる |
| POST | /api/expense_lines /: id/calculate_mileage | calculate_mileage | マイレージデータに基づいて明細の合計を計算する |
| POST | /api/expense_lines /: id/calculate_per_diem | calculate_per_diem | 出張データに基づいて明細の合計を計算する |
| POST | /api/expense_reports /: expense_report_id/expense_lines | 作成 | 経費明細を作成する |
| POST | /api/expense_lines | 作成 | 経費明細を作成する |
| DELETE | /api/expense_reports /: expense_report_id/expense_lines /: id | 削除 | この経費明細を削除する |
| DELETE | /api/expense_lines /: id | 削除 | この経費明細を削除する |
| GET | /api/expense_reports /: expense_report_id/expense_lines | インデックス | 経費明細を検索する |
| GET | /api/expense_lines | インデックス | 経費明細を検索する |
| GET | /api/expense_reports /: expense_report_id/expense_lines /: id | 表示 | 経費明細を表示する |
| GET | /api/expense_lines /: id | 表示 | 経費明細を表示する |
| DELETE | /api/expense_lines /: id/unassign_attendee /: expense_attendee_id | unassign_attendee | 経費明細から出席者を解除する |
| PATCH | /api/expense_reports /: expense_report_id/expense_lines /: id | 更新 | 経費を更新する |
| PUT | /api/expense_reports /: expense_report_id/expense_lines /: id | 更新 | 経費を更新する |
| PATCH | /api/expense_lines /: id | 更新 | 経費を更新する |
| PUT | /api/expense_lines /: id | 更新 | 経費を更新する |
Elements
経費明細APIでは、次の要素を使用できます。
| 要素 | 説明 | 必須 | 一意 | 許容値 | 入力 | 出力 | データタイプ |
|---|---|---|---|---|---|---|---|
| account | アカウント | yes | yes | アカウント | |||
| account-allocations | 勘定科目割当 | yes | yes | 経費明細割当 | |||
| accounting-total | 会計合計 | yes | decimal(32,4) | ||||
| accounting-total-currency | 会計合計の通貨 | yes | yes | Currency | |||
| allow-attach-preapproval | 経費明細に事前承認を添付できますか? | yes | boolean | ||||
| 金額 | Amount | yes | yes | decimal(32,4) | |||
| approved-amount | 承認額 | yes | yes | decimal(32,4) | |||
| attach-preapproval | 合格した事前承認を明細に添付 | yes | boolean | ||||
| audit-status | 監査ステータス | オンラインで確認済みの受領書、確認済みの未添付の受領書、受領書待ち、受領書不要、受領書なしで承認済み | yes | yes | 監査ステータス | ||
| 作成日時 | CoupaがYYY-MM-DDTHH:MM:SS+HH:MMZの形式で自動的に作成します | yes | datetime | ||||
| created-by | 作成したユーザー | yes | ユーザー | ||||
| currency | 取引の通貨 | yes | yes | Currency | |||
| custom-field-1 | カスタムフィールド1 | yes | yes | テキスト | |||
| カスタムフィールド10 | カスタムフィールド10 | yes | yes | テキスト | |||
| custom-field-11 | カスタムフィールド11 | yes | yes | string(255) | |||
| custom-field-12 | カスタムフィールド12 | yes | yes | string(255) | |||
| custom-field-13 | カスタムフィールド13 | yes | yes | string(255) | |||
| custom-field-14 | カスタムフィールド14 | yes | yes | string(255) | |||
| custom-field-15 | カスタムフィールド15 | yes | yes | string(255) | |||
| custom-field-16 | カスタムフィールド16 | yes | yes | string(255) | |||
| custom-field-17 | カスタムフィールド17 | yes | yes | string(255) | |||
| custom-field-18 | カスタムフィールド18 | yes | yes | string(255) | |||
| custom-field-19 | カスタムフィールド19 | yes | yes | string(255) | |||
| custom-field-2 | カスタムフィールド2 | yes | yes | text | |||
| custom-field-20 | カスタムフィールド20 | yes | yes | string(255) | |||
| カスタムフィールド3 | カスタムフィールド3 | yes | yes | text | |||
| カスタムフィールド4 | カスタムフィールド4 | yes | yes | text | |||
| custom-field-5 | カスタムフィールド5 | yes | yes | text | |||
| カスタムフィールド6 | カスタムフィールド6 | yes | yes | テキスト | |||
| custom-field-7 | カスタムフィールド7 | yes | yes | テキスト | |||
| カスタムフィールド8 | カスタムフィールド8 | yes | yes | テキスト | |||
| custom-field-9 | カスタムフィールド9 | yes | yes | テキスト | |||
| 説明 | 説明 | yes | yes | string(1550) | |||
| divisor | 除数単位 | yes | yes | decimal(30,2) | |||
| 終了日 | 除数の終了日 | yes | yes | datetime | |||
| exchange-rate | 為替レート | yes | yes | decimal (30,9) | |||
| expense-artifacts | 経費アーチファクト | yes | 経費アーチファクト | ||||
| expense-attendee | 参加者の経費 | yes | 経費出席者 | ||||
| expense-category | 経費カテゴリー | yes | yes | yes | 経費カテゴリー | ||
| expense-category-custom-field-1 | 経費カテゴリーのカスタムフィールド1 | yes | yes | テキスト | |||
| expense-category-custom-field-10 | 経費カテゴリーのカスタムフィールド10 | yes | yes | テキスト | |||
| expense-category-custom-field-2 | 経費カテゴリーのカスタムフィールド2 | yes | yes | テキスト | |||
| expense-category-custom-field-3 | 経費カテゴリーのカスタムフィールド3 | yes | yes | テキスト | |||
| expense-category-custom-field-4 | 経費カテゴリーのカスタムフィールド4 | yes | yes | テキスト | |||
| expense-category-custom-field-5 | 経費カテゴリーのカスタムフィールド5 | yes | yes | テキスト | |||
| expense-category-custom-field-6 | 経費カテゴリーのカスタムフィールド6 | yes | yes | テキスト | |||
| expense-category-custom-field-7 | 経費カテゴリーのカスタムフィールド7 | yes | yes | text | |||
| expense-category-custom-field-8 | 経費カテゴリーのカスタムフィールド8 | yes | yes | text | |||
| expense-category-custom-field-9 | 経費カテゴリーのカスタムフィールド9 | yes | yes | テキスト | |||
| employee-reimbursable | 明細が従業員に返金可能かどうか | yes | boolean | ||||
| expense-date | 経費日付 | yes | yes | datetime | |||
| expense-line-cash-advance | 経費明細仮払金 | yes | expense-line-cash-advance | ||||
| expense-line-daily-per-diems | 各日付の金額情報を含む日当 | no | no | any | yes | 日当経費明細 | |
| expense-line-imported-data | 経費明細インポート済みデータ | yes | 経費明細インポートされたデータ | ||||
| expense-line-mileage | 経費明細マイレージ | yes | 経費明細のマイレージ | ||||
| expense-line-per-diem | 経費の日当データ | yes | 1日あたりの経費明細 | ||||
| expense-line-preapproval | 適用済み経費の事前承認 | yes | 経費の事前承認 | ||||
| expense-line-taxes | 経費明細税 | yes | 経費明細の税金 | ||||
| expense-line-virtual-card | 経費明細バーチャルカード | yes | expense-line-virtual-card | ||||
| expense-report-id | 経費レポートID | yes | 整数 | ||||
| expense-trip | 経費出張 | no | no | any | yes | ExpenseTrip | |
| expensed-by | 経費の申請者 | yes | yes | ユーザー | |||
| external-src-data | 外部ソースデータ | yes | string(255) | ||||
| external-src-name | 外部ソース名 | yes | yes | string(255) | |||
| external-src-ref | 外部ソース参照 | yes | yes | yes | string(255) | ||
| foreign-currency | 外国通貨 | yes | yes | yes | Currency | ||
| foreign-currency-amount | 外国通貨の金額 | yes | yes | decimal(32,4) | |||
| foreign-currency-id | 外国通貨ID | yes | 整数 | ||||
| frugality | 節減の評価 | shame, praise | yes | 文字列 | |||
| has-preapproval | 経費明細に事前承認が添付されているかどうか | yes | boolean | ||||
| ID | Coupaの一意の識別子 | yes | yes | 整数 | |||
| integration | 法人カード連携名 | yes | 連携 | ||||
| itemized-expense-lines | アイテム別経費明細 | yes | 明細化された経費明細 | ||||
| last-send-back-comment | 明細が返送された理由の最後のコメント | no | no | any | yes | comment | |
| last-send-back-reason | 明細が返送された最後の理由 | no | no | any | yes | reason-insight-event | |
| line-number | 経費明細番号 | yes | 整数 | ||||
| merchant | 支払先事業者 | yes | yes | string(255) | |||
| 発注明細ID | 発注明細ID | yes | yes | 整数 | |||
| over-limit | 超過フラグ | yes | boolean | ||||
| parent-expense-line-id | 親経費明細ID | yes | 整数 | ||||
| parent-external-src-data | 親外部ソースデータ | yes | string(255) | ||||
| parent-external-src-name | 親外部ソース名 | yes | string(255) | ||||
| parent-external-src-ref | 親外部ソース参照 | yes | string(255) | ||||
| per-diem-trip | 日当出張経費情報 | yes | 経費での出張 | ||||
| period | 期間 | yes | yes | 期間 | |||
| 理由 | 理由 | yes | yes | string(255) | |||
| receipt-total-amount | 受領合計金額 | yes | yes | decimal(32,4) | |||
| receipt-total-currency-id | 受領合計通貨ID | yes | yes | 整数 | |||
| reporting-total | レポート合計 | yes | decimal(32,4) | ||||
| requires-receipt | 受領書フラグが必要 | yes | boolean | ||||
| start-date | 除数開始日 | yes | yes | yes | datetime | ||
| ステータス | 取引ステータス | yes | string(255) | ||||
| suggested-exchange-rate | 推奨為替レート | yes | 為替レート | ||||
| タイプ | Type | yes | string(255) | ||||
| updated-at | CoupaがYYY-MM-DDTHH:MM:SS+HH:MMZの形式で自動的に作成します | yes | datetime | ||||
| updated-by | 更新したユーザー | yes | ユーザー | ||||
| employee-reimbursable-overridden | 経費ユーザーが経費明細の既定の払い戻し可能状態を変更したか | yes | boolean | ||||
| employee-reimbursable-editable | 経費ユーザーが経費明細の既定の払い戻し可能状態を変更できるかどうか | yes | boolean | ||||
| travel-trip-booking | 出張旅行予約 | yes | |||||