AccessToken
POST
/oauth/token3PP exchanges the authorization code for an access token and refresh token.
After 3PP gets authorization code, they need to exchange the authorization token for an access token and refresh token.
Request
The ID of 3PP offered by OC offline
Fixed value: "authorization_code"
To prevent attack, OC validates value of this field against the redirect URL that was used when requesting the authorization code. The two redirect URLs should be the same.
Value of authorization code
Request samples
Responses
Value of access token. When 3PP requests APIs (exclude "getServiceList" API), access token should be contained in a header named "Access-Token".
Duration of validity of access token.
Value of refresh token. If the access token is expired, 3PP uses the refresh token to get a new access token and its expiration date.
Fixed value: "bearer"
{
"access_token": "string",
"error": "string",
"error_description": "string",
"expires_in": 0,
"refresh_token": "string",
"token_type": "string"
}