• 最終編集日時: 13 March 2023

経費明細API

経費明細APIを使用して、経費精算書に経費明細データを作成、更新、表示します。

アクション

経費明細APIを使用すると、次のことができます。

動詞 パス アクション 説明
投稿 /api/expense_lines /: id/assign_attendee /: expense_attendee_id assign_attendee 参加者を経費明細に割り当てる
投稿 /api/expense_lines /: id/calculate_mileage calculate_mileage マイレージデータに基づいて明細の合計を計算
投稿 /api/expense_lines /: id/calculate_per_diem calculate_per_diem 出張データに基づいて明細の合計を計算
投稿 /api/expense_reports /: expense_report_id/expense_lines 作成 経費明細を作成する
投稿 /api/expense_lines 作成 経費明細を作成する
削除 /api/expense_reports /: expense_report_id/expense_lines /: id 削除 この経費明細を削除する
削除 /api/expense_lines /: id 削除 この経費明細を削除する
取得 /api/expense_reports /: expense_report_id/expense_lines index クエリ経費明細
取得 /api/expense_lines index クエリ経費明細
取得 /api/expense_reports /: expense_report_id/expense_lines /: id 表示 経費明細を表示
取得 /api/expense_lines /: id 表示 経費明細を表示
削除 /api/expense_lines /: id/unassign_attendee /: expense_attendee_id unassign_attendee 経費明細から参加者の割り当てを解除
パッチ /api/expense_reports /: expense_report_id/expense_lines /: id 更新 経費明細を更新
プット /api/expense_reports /: expense_report_id/expense_lines /: id 更新 経費明細を更新
パッチ /api/expense_lines /: id 更新 経費明細を更新する
プット /api/expense_lines /: id 更新 経費明細を更新する

要素

経費明細APIでは次の要素を使用できます。

要素 説明 申請済み 一意 許容値 In アウト データタイプ
勘定科目 アカウント       はい はい 勘定科目 
account - allocations 勘定科目配分       はい はい 経費明細配分 
accounting - total 会計合計         はい 小数( 32,4 )
accounting - total - currency 会計合計通貨       はい はい 通貨 
allow - attach - preapproval 経費品目に事前承認を添付できますか?         はい boolean
金額 金額       はい はい 小数( 32,4 )
approved - amount 承認額       はい はい 小数( 32,4 )
attach - preapproval 合格した事前承認を明細に添付       はい   boolean
audit - status 監査ステータス

オンラインで確認済みの領収書、確認済みの未添付の領収書、領収書待ち、領収書不要、領収書なしで承認済み

はい はい 監査ステータス 
created - at CoupaがYYY - MM - DDTHH: MM: SS + HH: MMZの形式で自動的に作成しました   はい 日時
created - by 作成したユーザー         はい ユーザー 
通貨 取引の通貨       はい はい 通貨 
custom - field -1 カスタムフィールド1       はい はい テキスト
custom - field -10 カスタムフィールド10       はい はい テキスト
custom - field -11 カスタムフィールド11       はい はい string (255)
custom - field -12 カスタムフィールド12       はい はい string (255)
custom - field -13 カスタムフィールド13       はい はい string (255)
custom - field -14 カスタムフィールド14       はい はい string (255)
custom - field -15 カスタムフィールド15       はい はい string (255)
custom - field -16 カスタムフィールド16       はい はい string (255)
custom - field -17 カスタムフィールド17       はい はい string (255)
custom - field -18 カスタムフィールド18       はい はい string (255)
custom - field -19 カスタムフィールド19       はい はい string (255)
custom - field -2 カスタムフィールド2       はい はい テキスト
custom - field -20 カスタムフィールド20       はい はい string (255)
custom - field -3 カスタムフィールド3       はい はい テキスト
custom - field -4 カスタムフィールド4       はい はい テキスト
custom - field -5 カスタムフィールド5       はい はい テキスト
custom - field -6 カスタムフィールド6       はい はい テキスト
custom - field -7 カスタムフィールド7       はい はい テキスト
custom - field -8 カスタムフィールド8       はい はい テキスト
custom - field -9 カスタムフィールド9       はい はい テキスト
説明 説明       はい はい string (1550)
除数 除数単位       はい はい 小数( 30,2 )
end - date ディバイザーの終了日       はい はい 日時
exchange - rate 為替レート       はい はい 小数( 30,9 )
expense - artifacts 経費アーチファクト         はい 経費アーチファクト 
expense - attendee 経費の出席者         はい 出席者の経費
expense - category 経費カテゴリー はい     はい はい 経費カテゴリー 
expense - category - custom - field -1 経費カテゴリーカスタムフィールド1       はい はい テキスト
expense - category - custom - field -10 経費カテゴリーカスタムフィールド10       はい はい テキスト
expense - category - custom - field -2 経費カテゴリーカスタムフィールド2       はい はい テキスト
expense - category - custom - field -3 経費カテゴリーカスタムフィールド3       はい はい テキスト
expense - category - custom - field -4 経費カテゴリーカスタムフィールド4       はい はい テキスト
expense - category - custom - field -5 経費カテゴリーカスタムフィールド5       はい はい テキスト
expense - category - custom - field -6 経費カテゴリーカスタムフィールド6       はい はい テキスト
expense - category - custom - field -7 経費カテゴリーカスタムフィールド7       はい はい テキスト
expense - category - custom - field -8 経費カテゴリーカスタムフィールド8       はい はい テキスト
expense - category - custom - field -9 経費カテゴリーカスタムフィールド9       はい はい テキスト
従業員払い戻し可能 この回線は従業員に返金可能ですか?         はい boolean
expense - date 経費の日付       はい はい 日時
expense - line - cash - advance 経費品目の現金前払い         はい expense - line - cash - advance
expense - line - daily - per - diems 各日付の金額情報を含む1日あたりの日割り no no any   はい 1日あたりの経費明細
expense - line - imported - data 経費明細のインポートされたデータ         はい 経費明細インポート済みデータ 
expense - line - miles 経費品目の走行距離         はい 経費品目のマイレージ
expense - line - per - diem 日割り経費データ         はい 日割りの経費品目 
expense - line - preapproval 経費の事前承認適用済み         はい 経費の事前承認
expense - line - taxes 経費明細税         はい 経費明細税金 
expense - line - virtual - card 経費明細バーチャルカード         はい expense - line - virtual - card
expense - report - id 経費レポートID         はい 整数
expense - trip 経費での出張 いいえ no 任意の   はい ExpenseTrip
expensed - by 経費計上ユーザー       はい はい ユーザー 
external - src - data 外部ソースデータ         はい string (255)
external - src - name 外部ソース名       はい はい string (255)
external - src - ref 外部ソース参照   はい   はい はい string (255)
外貨 外国の通貨 はい     はい はい 通貨 
foreign - currency - amount 外国の通貨の合計金額       はい はい 小数( 32,4 )
foreign - currency - id 外国の通貨ID       はい   整数
穏やかさ Frugality rating     恥ずかしさ、賞賛   はい string
has - preapproval 経費明細に事前承認が添付されていますか?         はい boolean
iD Coupaの一意の識別子       はい はい 整数
統合 法人カード連携名         はい 連携
itemized - expenses - lines アイテム別経費明細       はい   項目別経費明細 
last - send - back - comment LINEが返送された最後のコメント いいえ no 任意の   はい コメント
last - send - back - reason LINEが返送された最後の理由 no いいえ 任意の   はい reason - insight - event
line - number 経費明細行番号         はい 整数
支払先事業者 事業者       はい はい string (255)
order - line - id 注文明細ID       はい はい 整数
制限超過 制限超過フラグ         はい boolean
parent - expenses - line - id 上位経費明細ID         はい 整数
parent - external - src - data 親外部ソースデータ         はい string (255)
parent - external - src - name 親外部ソース名         はい string (255)
parent - external - src - ref 親外部ソース参照         はい string (255)
per - diem - trip 日ごとの経費の出張情報         はい 経費での出張
期間 期間       はい はい 期間 
reason 理由       はい はい string (255)
receipt - total - amount 領収書合計金額       はい はい 小数( 32,4 )
receipt - total - currency - id 受領合計通貨ID       はい はい 整数
reporting - total 報告合計         はい 小数( 32,4 )
requires - receipt 受領フラグが必要です         はい boolean
start - date 除数の開始日 はい     はい はい 日時
ステータス 取引状況         はい string (255)
suggested - exchange - rate 推奨為替レート         はい 為替レート 
タイプ タイプ         はい string (255)
updated - at CoupaがYYY - MM - DDTHH: MM: SS + HH: MMZの形式で自動的に作成しました   はい 日時
更新者: 更新したユーザー         はい ユーザー 
従業員-払い戻し可能-上書き 経費ユーザーは、経費明細の既定の払い戻し可能状態を変更しましたか?         はい boolean
従業員-払い戻し可能-編集可能 経費ユーザーは、経費明細の既定の払戻状態を変更できますか?         はい boolean
travel - trip - booking 旅費の予約         はい  

関連アイテム


Coupa Core API

CoupaのRESTful APIは、お客様のデータをCoupaプラットフォームで読み取り、編集し、統合するための堅牢なアクセスを提供します。

APIの開始

Coupa APIの使用に関する一般情報、およびCSVの使用を検討するタイミング。

OAuth 2.0およびOIDCへの移行

Coupaは従来のAPIキーを廃止し、OAuth 2.0 / OIDCの使用を必要としています。R34以降、新しいAPIキーは発行されず、R35ではAPIキーはサポートされなくなります。

リソース

参照データ、トランザクションデータ、共有リソースなど、オブジェクトのタイプ別にAPIエンドポイントを整理しました。