On This Page
Limited AvailabilityHTTPS
Renew Access and Refresh Token
Use this section to request a new access and refresh token after your current access
token expires. Request new tokens as often as you need to in order to maintain your
merchant authorization. When you receive a new set of tokens, the previous tokens
become invalid. A refresh token is valid for thirty days. If your current refresh
token expires before you can request a new set of tokens, the merchant must log in
to their account and grant you authorization again. To re-establish merchant
authorization, see Obtain Merchant Authorization.
IMPORTANT
Always use HTTPS to securely send and exchange tokens.
Endpoint
Production:
POST
https://api.cybersource.com
/ebc2/oauth2/authorizeTest:
POST
https://apitest.cybersource.com
/ebc2/oauth2/authorizeRequired Request Body Parameters
Body Parameter | Description |
|---|---|
client_id | The client ID that is issued during OAuth registration for your
application. |
client_secret | The client secret that is issued during OAuth registration for
your application. |
grant_type | Set to refresh_token . |
refresh_token | Set to the current valid refresh token. |
Example: Retrieving a Refresh Token
Request
POSThttps://api.cybersource.com/oauth2/v4/token Content-Type: application/x-www-form-urlencoded grant_type=refresh_token &refresh_token=eyJraWQiOiI4MGI2ZDJjM2NkZGRkMm... &client_id={client_id} &client_secret={client_secret}
Response to a Successful Request
{ "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6Ikp...", "token_type": "bearer", "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...", "expires_in": 900, "refresh_token_expires_in": 2592000, "client_status": "active" }