|
How to get new access token using refresh token?
The initial access token expires in 1440 seconds (24 minutes).
A new access token must be generated by utilizing the refresh token to ensure the continuity of the API calls.
New token will only be generated if the initial access token has either Expired or have 2 minutes prior to expiration.
To get the new access token, make the same POST call to the URL for the initial access token with these parameter:
Below is the Curl structure:
curl -X POST \
'https://api.ariba.com/v2/oauth/token?grant_type=refresh_token&refresh_token={refreshtokenvalue}' \
-H 'Authorization: Basic {Base64 Secret Key}' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache'
The above example is for US Developer portal OAuth URL. For other data center, replace the URL accordingly.
Catalog Management > Catalog - REST API
Core Procurement > Procurement REST APIs
Purchasing
SAP Business Network for Procurement & Supply Chain > SAP Business Network REST APIs
Spend Visibility
Strategic Contracts > Strategic Contracts - REST API
Strategic Sourcing > Strategic Sourcing - REST API
Supplier Lifecycle & Performance > Supplier Lifecycle & Performance - Open API