Authentication
Before establishing a connection with your Coupa instance, you will need to choose the Authentication Type. Currently, the following type is supported:
- oauth2ClientCredentials
Creating an OAuth connection
To create an OAuth connection, you will have to provide the following credentials:
- OAuth Scope
- 客户端 ID
- Secret
- 域
To obtain the necessary credentials, you will first have to log in to Coupa as an integrations-enabled administrator to create a Client using a Client credentials Grant Type.
-
Log in to your Coupa instance and click the Setup button in the upper-right corner of the interface.
-
Scroll to the Integrations section and click Oauth2/OpenID Connect Clients.
-
单击“创建”。
作用域
The following Scopes are required for any connection and are pre-filled.
By default, the OAuth app must have the following scopes. The rest of the scopes must be filled in manually, depending on your case (see the table below).
- login
- offline_access
- openid
- profile
- core.common.read
Below is a list of objects and their respective scopes.
注意
Write scopes are necessary only for Create/Update/Delete operations, whereas Read scopes are only needed for ListAll/List/Get operations.
The OAuth app must have, at all times, the same scopes that you manually provide when creating a connection. Otherwise, you will encounter issues. For example, if your OAuth App has the email, login, offline_access, openid, profile, core.common.read, and core.supplier.read scopes, then you must make sure to provide only these scopes when you add a Coupa connection.
对象 | 作用域 |
---|---|
accounts | core.accounting.read |
approvals | core.approval.read |
budget_lines | core.budget.read |
cancel_purchaseorders | core.purchase_order.write |
close_purchaseorders | core.purchase_order.write |
contracts | core.contract.read |
contracts/{contractId}/retrieve_legal_agreement | core.contract.read |
expense_lines | core.expense.read |
expense_reports | core.expense.read |
inventory_transactions | core.inventory.adjustment.read |
invoices | core.invoice.approval.bypass |
issue_purchaseorders | core.purchase_order.write |
items | |
purchase_order_changes | core.purchase_order.read |
purchase_order_lines | core.purchase_order.read |
purchase_orders | core.purchase_order.read |
quote_requests | |
Requisitions | core.requisition.read |
Suppliers | core.supplier.read |
user_groups | core.user_group.read |
用户 | core.user.read |
The above steps were originally documented on the Coupa website on November 29, 2021. For updated information and more details regarding Coupa visit the OAuth 2.0 Getting Started with Coupa API page.
约一个月前更新