代理API

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

はじめに

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

Note:

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

アクション

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

動詞

パス

アクション

説明

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

要素

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

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

approval-delegate

承認者代理

はい

boolean

created-at

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

はい

datetime

created-by

作成したユーザー

はい

ユーザー

delegate

代理

はい

はい

ユーザー

delegate-id

代理

はい

integer

delegator

代理人

はい

はい

ユーザー

delegator-id

代理人

はい

end-date

終了日

はい

はい

datetime

id

Coupaの一意の識別子

はい

integer

invoice-requester-delegate

請求申請者の代理

はい

boolean

reason

理由

はい

はい

string(255)

receiving-delegate

受領代理

はい

boolean

review-delegate

レビュー代理

はい

boolean

start-date

開始日

はい

はい

datetime

updated-at

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

はい

datetime

updated-by

更新したユーザー

はい

ユーザー

cURLリクエスト例

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

curl --location 'https://<instance>.com/api/delegations' \
--header 'Accept: application/xml' \
--header 'Accept: application/json' \
--header 'Authorization: ••••••' \
--header 'Cookie: _mkra_ctxt=64de41633cd3b523e50fa612a74fcae49aee07a8b4e3c4b71ae59419ce9f4804--200'

レスポンス例

{
        "id": 1,
        "created-at": "2021-03-18T11:20:50-07:00",
        "updated-at": "2021-03-18T11:20:50-07:00",
        "delegator-id": 272,
        "delegate-id": 273,
        "start-date": "2021-03-17T00:00:00-07:00",
        "end-date": "2021-03-21T00: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-18T11:16:09-07:00",
            "updated-at": "2024-09-03T02:08:51-07:00",
            "login": "pradeep_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": "pradeep_1616091337",
            "lastname": "pradeep_1616091337",
            "fullname": "pradeep_1616091337 pradeep_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,
            "allowed-invoice-inboxes": [
                {
                    "name": "Default",
                    "email-address": "invoices@bizplatform-r41-qe4.coupadev.com"
                },
                {
                    "name": "Default",
                    "email-address": "invoices@bizplatform-r41-qe4.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": 2,
                    "created-at": "2011-08-05T09:46:31-07:00",
                    "updated-at": "2011-08-05T09:46:31-07:00",
                    "name": "Admin",
                    "description": "Full system access to setup and maintain the application",
                    "omnipotent": true,
                    "system-role": true
                },
                {
                    "id": 3,
                    "created-at": "2011-08-05T09:46:31-07:00",
                    "updated-at": "2011-08-05T09:46: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-05T09:46:31-07:00",
                    "updated-at": "2011-08-05T09:46:31-07:00",
                    "name": "Buyer",
                    "description": "Adds ability to manage requisitions, orders, RFQs, suppliers and items, plus access to purchase order reports",
                    "omnipotent": false,
                    "system-role": true
                },
                {
                    "id": 10103,
                    "created-at": "2011-11-01T14:11:29-07:00",
                    "updated-at": "2011-11-01T14:11:29-07:00",
                    "name": "Split Accounting",
                    "description": "",
                    "omnipotent": false,
                    "system-role": false,
                    "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",
                        "salesforce-id": null,
                        "avatar-thumb-url": null,
                        "gpo-entity": null,
                        "custom-fields": null
                    }
                }
            ],
            "manager": null,
            "default-address": null,
            "default-account": null,
            "default-account-type": null,
            "default-currency": {
                "id": 1,
                "code": "USD",
                "decimals": 2
            },
            "pcard": null,
            "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,
            "work-confirmation-approval-limit": null,
            "escalation-threshold": null,
            "expenses-delegated-to": [],
            "can-expense-for": [],
            "content-groups": [],
            "account-groups": [],
            "approval-groups": [],
            "user-groups": [],
            "working-warehouses": [],
            "inventory-organizations": [],
            "created-by": {
                "id": 270,
                "login": "e2e",
                "employee-number": null,
                "firstname": "testname",
                "lastname": "testlast",
                "fullname": "testname testlast",
                "email": "test@coupa.com",
                "salesforce-id": null,
                "avatar-thumb-url": null,
                "gpo-entity": null,
                "custom-fields": null
            },
            "updated-by": {
                "id": 270,
                "login": "e2e",
                "employee-number": null,
                "firstname": "testname",
                "lastname": "testlast",
                "fullname": "testname testlast",
                "email": "test@coupa.com",
                "salesforce-id": null,
                "avatar-thumb-url": null,
                "gpo-entity": null,
                "custom-fields": null
            },
            "custom-fields": {
                "app-platform-e2e-money1718091754": null
            }
        },
        "delegate": {
            "id": 273,
            "created-at": "2021-03-18T11:16:25-07:00",
            "updated-at": "2024-09-03T02:08:51-07:00",
            "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-security-type": 1,
            "avatar-thumb-url": null,
            "mention-name": "dhana_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,
            "allowed-invoice-inboxes": [
                {
                    "name": "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-05T09:46:31-07:00",
                    "updated-at": "2011-08-05T09:46: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-05T09:46:31-07:00",
                    "updated-at": "2011-08-05T09:46:31-07:00",
                    "name": "Buyer",
                    "description": "Adds ability to manage requisitions, orders, RFQs, suppliers and items, plus access to purchase order reports",
                    "omnipotent": false,
                    "system-role": true
                }
            ],
            "manager": null,
            "default-address": null,
            "default-account": null,
            "default-account-type": null,
            "default-currency": {
                "id": 1,
                "code": "USD",
                "decimals": 2
            },
            "pcard": null,
            "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,
            "work-confirmation-approval-limit": null,
            "escalation-threshold": null,
            "expenses-delegated-to": [],
            "can-expense-for": [],
            "content-groups": [],
            "account-groups": [],
            "approval-groups": [],
            "user-groups": [],
            "working-warehouses": [],
            "inventory-organizations": [],
            "created-by": {
                "id": 270,
                "login": "e2e",
                "employee-number": null,
                "firstname": "testname",
                "lastname": "testlast",
                "fullname": "testname testlast",
                "email": "email@coupa.com",
                "salesforce-id": null,
                "avatar-thumb-url": null,
                "gpo-entity": null,
                "custom-fields": null
            },
            "updated-by": {
                "id": 270,
                "login": "e2e",
                "employee-number": null,
                "firstname": "testname",
                "lastname": "testlast",
                "fullname": "testname testlast",
                "email": "email@coupa.com",
                "salesforce-id": null,
                "avatar-thumb-url": null,
                "gpo-entity": null,
                "custom-fields": null
            },
            "custom-fields": {
                "app-platform-e2e-money1718091754": 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",
            "salesforce-id": null,
            "avatar-thumb-url": null,
            "gpo-entity": null,
            "custom-fields": null
        }
    }

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