|
How do I generate the OAuth Access Token for an API?
To generate the OAuth Access Token, you need to:
1. Have API Application for the specific API approved and enabled
2. Have the OAuthID and Secret generated from the API application
3. Use the OAuth Server URL Prefix to generate Access Token.
Below is the Curl structure:
curl -L -X POST 'https://api.ariba.com/v2/oauth/token?grant_type=openapi_2lo' \
-H 'Authorization: Basic MzMyZDc3OTktYmRhZi00NTg2LWE5ZmYtMjU0MDZhZjQxYmY3OnJmZ2ZzVHdYanJuUnN1dlRlSWdZVlJYUm9uYxVVdy' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/x-www-form-urlencoded'
You can find the value of OAuth Server URL Prefix for your region on the SAP Ariba Developer Portal on the Discovery page for any API in the Environment Details table. Please login to the developer.ariba.com and choose the region where your realm resides. Each API Swagger will have a specific OAuth Server URL Prefix defined.
Catalog Management
Catalog Management > Catalog - REST API
Core Procurement > Procurement REST APIs
Invoicing
Procurement Application Services > API Portal & Platform > API Developer Portal
Purchasing
Purchasing > Services Procurement
SAP Business Network for Procurement & Supply Chain
SAP Business Network for Procurement & Supply Chain > SAP Ariba Supply Chain Collaboration
SAP Business Network for Procurement & Supply Chain > SAP Business Network REST APIs
Spend Visibility
Spot Buy
Strategic Contracts
Strategic Contracts > Strategic Contracts - REST API
Strategic Sourcing
Strategic Sourcing > Strategic Sourcing - REST API
Supplier Lifecycle & Performance
Supplier Lifecycle & Performance > Supplier Lifecycle & Performance - Open API