経費アーチファクトAPI
このAPIを使用して、経費レポートと経費明細にファイルを添付します。
概要
アーティファクトは添付ファイルのCoupaスピークです。このAPIエンドポイントを使用すると、経費レポートと経費明細にファイルを添付できます。
メモ
サポートされている画像タイプとして分類された添付ファイルの場合、APIはプレビュー(640 x 640)とサムネイル(128 x 128)のバージョンのダウンロードをサポートしています。
非画像ファイルとして分類された添付ファイルの場合、APIは元のファイルのダウンロードをサポートします(例: pdf )
: styleは「プレビュー」または「サム」の値を持つことができます。これにより、より小さいサイズの画像をダウンロードできます(サポートされている画像タイプのアーティファクトにのみ適用されます)
アクション
経費アーティファクトAPIを使用すると、次のことができます。
動詞 | パス | アクション | 説明 | ||
---|---|---|---|---|---|
投稿 | /api/expense_reports /: expense_report_id/expense_lines |
作成 | 経費アーチファクトの作成 | ||
投稿 | /api/expense_lines /: expense_line_id/expense_artifacts |
作成 | 経費アーチファクトの作成 | ||
取得 | /api/expense_reports /: expense_report_id/expense_lines |
画像 | 経費アーティファクト画像をクエリします。: style はオプションであり、画像の小さいバージョンをフェッチするためにプレビューまたは |
||
取得 | /api/expense_lines /: expense_line_id/expense_artifacts /: id |
画像 | 経費アーティファクト画像をクエリします。: style はオプションで、画像の小さいバージョンを取得するためにプレビューまたは |
||
取得 | /api/expense_reports /: expense_report_id/expense_lines |
index | 費用のアーティファクトを問い合わせ | ||
取得 | /api/expense_lines/expense_artifacts |
index | 経費アーティファクトを問い合わせ | ||
取得 | /api/expense_lines /: expense_line_id/expense_artifacts |
index | 経費アーティファクトを問い合わせ | ||
取得 | /api/expense_reports /: expense_report_id/expense_lines |
表示 | 経費アーチファクトを表示 | ||
取得 | /api/expense_lines/expense_artifacts /: id |
表示 | 経費アーチファクトを表示 | ||
取得 | /api/expense_lines /: expense_line_id/expense_artifacts |
表示 | 経費アーチファクトを表示 | ||
プット | /api/expense_reports /: expense_report_id/expense_lines |
update | 経費アーチファクトを更新する | ||
プット | /api/expense_lines/expense_artifacts /: id |
update | 経費アーチファクトを更新する | ||
プット | /api/expense_lines /: expense_line_id/expense_artifacts |
更新 | 経費アーチファクトを更新する | ||
プット | /api/expense_lines/expense_artifacts /: id/ |
update_with_ocr_response | 経費アーチファクトをOCR応答で更新します。 | ||
取得 | /api/expense_reports /: expense_report_id/download |
経費精算書の添付ファイルの取得 | レスポンスペイロードは、領収書の添付ファイルがある各経費明細のフォルダを含むzipアーカイブです。画像がPDFに変換された場合、またはPDFがデジタル署名された場合、最終的な領収書の添付ファイルのみがダウンロードされたZIPアーカイブに含まれます。R 29以降でご利用いただけます。 |
要素
要素 |
説明 | 申請済み | 一意 | 許容値 | In | アウト | データタイプ |
---|---|---|---|---|---|---|---|
created - at | CoupaがYYY - MM - DDTHH: MM: SS + HH: MMZの形式で自動的に作成しました | はい | 日時 | ||||
created - by | 作成したユーザー | はい | ユーザー | ||||
external - src - ref | トランザクションの外部システムの一意の識別子 | はい | string (255) | ||||
iD | Coupaの一意の識別子 | はい | 整数 | ||||
image - content - type | image_content_type | はい | string (255) | ||||
image - file - name | image_file_name | はい | string (255) | ||||
image - file - size | image_file_size | はい | string (255) | ||||
image - rotation | イメージの回転角度 | はい | はい | 整数 | |||
ocr - status | OCRのステータス | はい | はい | string (50) | |||
source - content - type | source_content_type | はい | string (255) | ||||
source - file - name | ソースファイル名 | はい | string (255) | ||||
source - file - size | ソースファイルサイズ | はい | string (255) | ||||
updated - at | CoupaがYYY - MM - DDTHH: MM: SS + HH: MMZの形式で自動的に作成しました | はい | 日時 | ||||
更新者: | 更新したユーザー | はい | ユーザー | ||||
uRL | アーティファクトへの外部リンク | はい | string | ||||
digitization - status | デジタル化ステータス | はい | string (25) | ||||
digitization - error | デジタル処理エラー | はい | string | ||||
digitized - receipt - file - name | デジタル化された領収書ファイル名 | はい | string (255) | ||||
digitized - receipt - content - type | デジタル化された領収書コンテンツタイプ | はい | string (255) | ||||
digitized - receipt - file - size | デジタル化された領収書ファイルサイズ | はい | 整数 |