代理API
サードパーティシステムで使用できる代理データをCoupaから取得します。
概要
委任にアクセスするためのURLは次のとおりです。 https ://<instance>/api/delegations
アクション
代理APIでは以下のアクションが可能です。
動詞 | パス | アクション | Description |
|---|---|---|---|
| GET | /aPI/委任 | 表示 | /delegationsテーブル内のすべての代理を取得する |
Elements
代理APIでは、次の要素を使用できます。
| 要素 | Description | 必須フィールド? | 一意? | 許容値 | Api - Inフィールド? | Api - Outフィールド? | データタイプ |
|---|---|---|---|---|---|---|---|
approval-delegate | 承認者代理 | yes | boolean | ||||
作成日時 | CoupaがYYY-MM-DDTHH:MM:SS+HH:MMZの形式で自動的に作成します | yes | datetime | ||||
created-by | 作成したユーザー | yes | |||||
delegate | 代理 | yes | yes | ||||
delegate-id | 代理 | yes | 整数 | ||||
delegator | 代理人 | yes | yes | ||||
delegator-id | 代理人 | yes | |||||
終了日 | 終了日 | yes | yes | datetime | |||
ID | Coupaの一意の識別子 | yes | 整数 | ||||
invoice-requester-delegate | 請求申請者の代理 | yes | boolean | ||||
reason | 理由 | yes | yes | string(255) | |||
receiving-delegate | 受領代理 | yes | boolean | ||||
review-delegate | レビュー代理 | yes | boolean | ||||
start-date | 開始日 | yes | yes | datetime | |||
updated-at | CoupaがYYY-MM-DDTHH:MM:SS+HH:MMZの形式で自動的に作成します | yes | datetime | ||||
updated-by | 更新したユーザー | yes |
cURLリクエスト例
このcURL要求は、GETコールを /api/delegationsに送信します
curl -- location 'https ://<instance>.com/api/delegations '\-- header' Accept: application/xml '\-- header 'Accept: application/json '\-- header'承認: • • • • • • '\-- header 'Cookie :_ mkra_ctxt = 64 de 41633 cd 3 b 523 e 50 fa 612 a 74 fcae 49 aee 07 a 8 b 4 e 3 c 4 b 71 ae 59419 ce 9 f 4804 --200'レスポンス例
{" id ": 1, "created - at ":" 2021 -03 -18 T 11:20:50 - 07:00 ", "updated - at ":" 2021 -03 -18 T 11:20:50 - 07:00 ", "delegator - id ": 272," delegate - id ": 273, "start - date ":" 2021 -03 -17 T 00:00:00 - 07:00 ", "end - date ":" 2021 -03 -21 T 00:00:00 - 07:00 ", "reason ":" Testing ", "approval - delegate ": true," receiving - delegate ": false, "invoice -requester - delegate ": false," review - delegate ": false, "delegator ": {" id ": 272," created - at ": "2021 -03 -18 T 11:16:09 - 07:00 "," updated - at ": "2024 -09 -03 T 02:08:51 - 07:00 "," login ":" pradeep_1616091337 ", "email ":" test@mailosaur.io ", "purchasing - user ": true," expense - user ": false, "sourcing - user ": false," inventory - user "false," contract - user ": false, "analytics - user" false, "spend - guard - user ": false," c "false - user" false - user ":" false, "false - user ":" false," false - user ":" false - user ": ":" 2021 -03 -18 T 11:16:09 - 07:00 ", "updated - at ":" 2024 -09 -03 -03 T 02:08:51 - 07:00 ", "login" pradeep ": "pradeep_1616091391337 "," false - user ", "false - user ":" pradeeper ": "false -13937 "," true_pradeep ": 16937 "1616091337 "," api - user ": false, "salesforce - id ": null," account - security - type ": 0, "authentication - method ":" coupa_credentials ", "sso - identifier ": null," default - locale ": null, "business - group - security - type ": 1," avatar - thumb - url ": null, "mention - name ":" pradeep_1616091337 ", "aic - user ": false," seniority - level ": null, "business - function ": null," employee - payment - channel ": "ERP "," allow - employee - payment - account - creation ": false, "middlename ": null," supplier - id ": null, "category - planner - user ": false," intake - user ": false, "supplier - user ": false," support - user ": false, "active ": true," eligible - for - virtual - cards ": false, "" invoice - inboxes ": false, ": "name "{" default," email - address ":" invoices@bizpl- platformr41-q4.coupade.com ", "{" name :" default "," email - address ":" invoice - boxes ":{" name ":" default, "email - address ":" invoices@bizplatr41-qoupade.com ", "{" name :" default ","" email - address ":" invoices@biz - platform - q4.coupade.com ", ":"":""" null ":" true," intake - user ": false, ":" input - user ": false, "support - user ": false," support - user ": false ": false, ": "active ": ":" active ": "true ": true ": true" true ", "user ":" user ": ": "2011 -05 ": 00 ": 00 ": 00 ": 008 ": 00 ": "- at" 0 "0 ": 008" 0 ": ": 00 "0 ":" 0 "name" admin ": 00 "- id ": ": "アプリケーションをセットアップして維持するには"," omnipotent ": true ," system - role ": true },{" id ": 3 ," created - at ":" 2011 -08 -05 T 09:46:31 - 07:00 "," updated - at ":" 2011 -08 -05 T 09:46:31 - 07:00 "," name ":" User "," description ":"依頼を作成および/または承認する必要があるすべてのユーザーの標準ロール"," omnipotent ": false ," system - role ": true },{" id ": 4 ," created - at ":" 2011 -08 -05 T 09:46:31 - 07:00 "," updated - at ":" 2011 -08 -05 T 09:46:31 - 07:00 "," name ":" Buyer "," description ":"依頼、注文、RFQ、サプライヤー、アイテム、および購買注文レポートへのアクセスを追加"," omnipotent ": false ," system - role ": true },{ id - at ": 10103 ," created - at ":" 2011 -08 -05 T 14:11:29 - 07:00 "," updated - at ":" 2011 -08 -05 T 09:31 - 07:00 "," name ":" Spliting "," description ":","" omnipotent ":29 ":" false "," system - id ": 1 ," coupupport ":"" firstname ": "Coupa "," lastname ": "Support "," fullname ": "Coupa Support "," email ": "upgrade+coupasupport@coupa.com "," salesforce - id ": null, "avatar - thumb - url ": null," gpo - entity ": null, "custom - fields ": null}," updated - by ": {" id ": 1, "login ":" coupasupport ", "employee - number ": "," firstname ": "Coupa "," lastname ": "support "," fullname ": "Coupa Support "," email ": "upgrade+coupasupport@coupa.com "," salesforce - id ": null, "avatar - thumb - url ": null," gpo - entity ": null, "custom - fields ": null}}]," manager ": null, "default - address ": null," default - account ": null, "default - account ": null," default - count - type ": null, "default - currency ": {" id: 1," code ": "USD," decimals ": 2}, "pcard ": null," department: null, "legal ": null - application "," requisition "null - value "," null - value ": null - value ", "invull - value ": null - limit - value "," nappro - limit - value ": null - value - value ": ", "invull - value ": null - value" ": null, "contract - self - approval - limit ": null," work - confirmation - approval - limit ": null, "escalation - threshold ": null," expenses - delegated - to ": [], "can - exppense - for ": []," content - groups ": [], "account - groups ": []," approval - groups ": [], "user - groups ": []," working -warehouses ": [], "inventory - organizations ": []," created - by ": {" id ": 270, "login ":" e 2 e 2 e ", "employee - number ": null," firstname ": "testname "," lastname ": "testlast "," fullname ": "testname testlast "," email ": "test@coupa.com "," salesforce-id ": null, "avatar - thumb - burl ": null," gpoentity ": null, "custom - fields ": []," user - groups ": [], ": [], "user - groups ": [], ": []," updated - group ": [], "working -warehouses ": [], ": []," inventory - organizations ": [], "created - by ": ": {" id ": 270," login "e 2 ", employee - number ": null," first ": ": "test" name, "lastname ":" testlast ", "fullname ":" testlast ": "testlast ": null "," email ": "email ": ":" testlast ", "null" avur - t ", "gumb - int ":" gull ": "numb - int ":"カスタムフィールド": ": "null ":"カスタムフィールド": ": "null -17 ": ":" null ": "218 ": ": "-17 ": "-17 ": "- t ": ": "- t ": ": ":" 0173 ": ": "025 ": ":" 025 ": ": "025 ": "- t "-15 ": ": ": ": ":" 025 "- t ": "025 "- t "-35 ": ": "- t ": ": ": ": ": ":"カスタム-173 ": ": ": ": "025 ": ": ": ": ": ":" 025 ": "- t "- t ": "- t ": ": "login ":" dhana_1616091337 ", "email ":" test@mailosaur.io ", "purchasing - user ": true," expense - user ": false, "sourcing - user ": false," inventory - user ": false, "contracts - user ": false," analytics - user ": false, "spend - guard - user ": false," ccw - user ": false, "clm - advanced - user ": false," supply - chain - user ": false, "risk - assess - user ": false," travel - user ": false, "treasury - user ": false," invoicing - user ": true, "employee - number ": null," firstname ":" dhana_1616091337 ", "lastname ":" dhana_1616091337 ", "fullname ":" dhana_1616091337 "," dhana_1616091337 ", "api - user ": false," salesforce - id ": null, "account - security - type ": 0," authentication - method ": coupa_credentials ", "sso -identifier: null," default - locale ": null, "business - group" avurl - name ": 1616091337 ", "lastname ":" dhana_1616091337 "," fullname ": "dhana_1616091337 "," full - name ":" dhana_1616091337 ": false, "employees - user - name ": false, ":" user - user - name ": false, "false," employee - user - name ":": "ERP - user - name ": false," allowed - user ": "false ":" false," user - user - name ": "false, ": false," user - user - user - name ": "false, ": ":" user - user - name ": "false, ":" false, "user - user - name ": ":" false, "":" Default "," email - address ": "test.com "}, {" name ": "Default "," email - address ": "test.coupadev.com "}]," allow - user - to - upload - invoice - from - mobile ": true, "gpo - entity ": null," phone - work ": null, "phone - mobile ": null," country - of - residence ": null, "roles ": [{" id ": 3, "created - at ":" 2011 -08 -05 T 09:46:31 - 07:00 ", "updated - at ":" 2011 -08 -05 T 09:31 - 07:00 ", "name ":" User ", "description ":" Standard role for all users who need to create and/or approve requisitions ", "omnipotent ": false," system - role ": true}, {"id ": 4," created - at ":" 2011 -08 -05 T 09:46:31 - 07:00 ", "updated - at ":" 2011 -08 -05 T 09:46:31 - 07:00 ", "name ": Buyer ": ": ":" Adds ability to manage requisitions, orders, RFQs supplierss, and items, plus access to purchase reports "," omnipotent ": ", "system - role ": true ": "," default - account, "n - account:" default - account, "n - account ": "," default - type ": ": "null "," ncurrency ": ": "default "," pcard: "2 "," decals ": ": "2 "," "department ": NULL," legal - entity ": NULL, "requisition - approval - limit ": NULL," expense - approval - limit ": NULL, "invoice - approval - limit ": NULL," contract - approval - limit ": NULL, "requisition - self - approval - limit ": NULL," expense - self - approval - limit ": NULL, "invoice - self - approval - limit ": NULL," contract - self - approval - limit ": NULL, "contract - self - approval - limit ": NULL," work - confirmation - approval - limit ": NULL, "escalation - threshold ": NULL," expenses - delegated - to ": [], "can - exppense - for ":[]," content - groups ":[], "account - groups ":[]," approval - groups ":[], "user - groups ":[]," working -warehouses ":[], "inventory - organizations ":[]," created -by ":{" id ": 270, "login ":" e 2 e "," employee - number ": NULL, "first ":" test "," lastname ":" lastname ":" lastname ":" testlast ", "fullname ":" testlast ":" testlast "," testlast ":" testlast ":" testlast ", """ email "@couforce.com "email ":"," avull -atar ":" avull - id ", "id ":" null "id "," id "null "," custom - name ": "270 "," testlast ": "email - name ":" email - name ": "e 2 e "," employee - number ": null ", "email - name ":" testlast ": "": null," avatar - thumb - url ": null, "gpo - entity ": null," custom - fields ": null}, "custom - fields ": {" app - platform - e 2 e - money 1718091754 ": null}}," created - by ": {" id ": 1, "login ":" coupasupport ", "employee - number ": ""," firstname ": "Coupa "," lastname ": "Support "," fullname ": "Coupa Support "," email ": "upgrade+coupasupport@coupa.com "," salesforce-id ": null, "avatar - thumb - url ": null," gpo - entity ": null, "custom - fields ": null}," updated - by ": {" id ": 1, "login ":" coupasupport ", "employee - number ": "," firstname ": "Coupa "," lastname ": "Support "," fullname ": "Coupa Support "," email ": "upgrade+coupasupport@coupa.com "," sales - id ": "null," avatar - thoupasupport ": "null," gpo - intity ": null ", "custom - fields ": null}}}