401 Unauthorized
Understand the 401 Unauthorized error codes.
invalid_client
invalid_clientThe provided client is incorrect. Provide the correct client information and try again.
invalid_request
invalid_requestThe required parameter is missing or empty. Provide the missing parameter and try again.
invalid_token
invalid_tokenInvalid token for the Shopper Session. The token is no longer valid and must be refreshed to continue making API calls. This error occurs when there is a bad Dispatch token or Global Commerce User API token. To resolve this error, issue an API call to identify where the token originated and when it expired, for example:
GET /oauth20/access-tokens?token=your_access_token HTTP/1.1 Host: api.digitalriver.com
Where your_access_token is a placeholder for the actual token.
The response shows you where the token originated in the domain field and when it expired in the expiresIn field. The possible error descriptions are as follows:
Invalid token for specified shopperThe provided token is invalid for the specified shopper.
Session expired–The shopper session is expired. Try refreshing the token.Request Site ID does not match Token Site IDThe value of the Header
siteIddoes not match the site ID in the token.Invalid Token for Shapper SessionThe provided token is invalid.
Last updated
Was this helpful?