経費の代理API

サードパーティシステムで使用できる代理データをCoupaから取得します。

はじめに

経費の代理にアクセスするためのURL:https://<instance>/api/expense_delegations.

Note:

本内容はリリースノートv2の確定前のドラフトであり、今後変更される可能性があります。

アクション

経費代理APIでは以下のアクションが可能です。

動詞

パス

アクション

説明

GET /api/expense_delegations show /expense_delegationsテーブル内のすべての代理を取得する

要素

経費代理APIでは、次の要素を使用できます。

要素 説明 必須フィールド? 一意? 許容値 Api_Inフィールド? Api_Outフィールド? データタイプ

id

Coupaの一意の識別子

はい

integer

created-by-id この経費の代理レコードを作成したユーザーを識別します。Coupaが自動的に作成します。

はい

integer
updated-by-id この経費の代理レコードを最後に更新したユーザーを識別します。Coupaが自動的に作成します。

はい

integer

created-at

CoupaがYYY-MM-DDTHH:MM:SS+HH:MMZの形式で自動的に作成

はい

datetime

updated-at

CoupaがYYY-MM-DDTHH:MM:SS+HH:MMZの形式で自動的に作成

はい

datetime

expense-delegate-for 経費の代理が作成されるユーザーを識別します。 はい ユーザー
expenses-delegated-to 代理人として指定されたユーザーを識別します。 はい ユーザー

cURLリクエスト例

このcURLリクエストは、次のエンドポイントに対してGETコールを送信します。/api/expense_delegations.

curl --location 'https://<your-instance>.com/api/expense_delegations' \
--header 'Accept: application/xml' \
--header 'Accept: application/json' \
--header 'Authorization: ••••••' \
--header 'Cookie: _mkra_ctxt=5849d15968776318f7c19861021bcb280b3a06d139c39bcdd851759b21c2ee2a--200'

レスポンス例

<?xml version="1.0" encoding="UTF-8"?>
<expense-delegations type="array">
  <expense-delegation>
    <id type="integer">1</id>
    <created-at type="dateTime">2023-09-26T15:37:30-04:00</created-at>
    <updated-at type="dateTime">2023-09-26T15:37:30-04:00</updated-at>
    <created-by-id nil="true"/>
    <updated-by-id nil="true"/>
    <expense-delegate-for>
      <id type="integer">1144</id>
      <login>suryatest99</login>
      <employee-number></employee-number>
      <firstname>ITERATE_ONCE</firstname>
      <lastname>Test99</lastname>
      <fullname>ITERATE_ONCE Test99</fullname>
      <email>upgrade+sg@coupa.com</email>
      <salesforce-id nil="true"/>
      <avatar-thumb-url nil="true"/>
      <custom-fields>
        <mp-html></mp-html>
        <userbusinessunit nil="true"/>
        <ap-custom-field- nil="true"/>
      </custom-fields>
    </expense-delegate-for>
    <expenses-delegated-to>
      <id type="integer">1145</id>
      <login>delegatetest</login>
      <employee-number></employee-number>
      <firstname>ITERATE_ONCE</firstname>
      <lastname>Test</lastname>
      <fullname>DelegateUsr Test</fullname>
      <email>upgrade+du@coupa.com</email>
      <salesforce-id nil="true"/>
      <avatar-thumb-url nil="true"/>
      <custom-fields>
        <mp-html></mp-html>
        <userbusinessunit nil="true"/>
        <ap-custom-field- nil="true"/>
      </custom-fields>
    </expenses-delegated-to>
  </expense-delegation>
  <expense-delegation>
    <id type="integer">2</id>
    <created-at type="dateTime">2023-11-16T15:05:12-05:00</created-at>
    <updated-at type="dateTime">2023-11-16T15:05:12-05:00</updated-at>
    <created-by-id nil="true"/>
    <updated-by-id nil="true"/>
    <expense-delegate-for>
      <id type="integer">1685</id>
      <login>colinuser1</login>
      <employee-number></employee-number>
      <firstname>Colin </firstname>
      <lastname>Expense</lastname>
      <fullname>Colin Expense</fullname>
      <email>test@coupa.com</email>
      <salesforce-id nil="true"/>
      <avatar-thumb-url nil="true"/>
      <custom-fields>
        <mp-html></mp-html>
        <userbusinessunit nil="true"/>
        <ap-custom-field- nil="true"/>
      </custom-fields>
    </expense-delegate-for>
    <expenses-delegated-to>
      <id type="integer">1688</id>
      <login>colinuser3</login>
      <employee-number></employee-number>
      <firstname>Expense</firstname>
      <lastname>Manager</lastname>
      <fullname>Expense Manager</fullname>
      <email>test@coupa.com</email>
      <salesforce-id nil="true"/>
      <avatar-thumb-url nil="true"/>
      <custom-fields>
        <mp-html></mp-html>
        <userbusinessunit nil="true"/>
        <ap-custom-field- nil="true"/>
      </custom-fields>
    </expenses-delegated-to>
  </expense-delegation>
</expense-delegations>

このページに表示されている一部、または全ての内容は、機械翻訳によるものです。ご了承ください。