Search
K
Links

Access tokens

Learn how to manage access tokens.

Getting an access token

Use the GET /oauth20/access-token to get an access token.
cURL
200 OK response
curl --location -g --request GET
'https://api.digitalriver.com/oauth20/access-token' \
--header 'Authorization: bearer {{access_token}}' \
...
{
"sessionId": "your_session_ID",
"userId": "your_user_ID",
"externalReferenceId": "external_reference_ID",
"authenticated": "true",
"locale": "en_US",
"currency": "USD",
"cartId": "your_cart_ID",
"clientIpAddress": "string",
"domain": "drh-api-ot04.digitalriverws.net",
"expiresIn": 86397,
"themeId": "string",
"sessionTag": "session_tag"
}

Deleting an access token

Use the DELETE /oauth20/access-token to delete an access token.
cURL
200 OK response
curl --location -g --request DELETE 'https://api.digitalriver.com/oauth20/access-token' \
--header 'Authorization: bearer {{access_token}}' \
...
{
"sessionId": "your_session_ID",
"userId": "your_user_ID",
"externalReferenceId": "external_reference_ID",
"authenticated": "true",
"locale": "en_US",
"currency": "USD",
"cartId": "your_cart_ID",
"clientIpAddress": "string",
"domain": "drh-api-ot04.digitalriverws.net",
"expiresIn": 86397,
"themeId": "string",
"sessionTag": "session_tag"
}