Authorizing a shopper

Learn how to authorize a shopper.

One key step in integrating with our API is the authorization of a shopper. It ensures secure access and interactions with your site. The authorization process leverages the OAuth 2.0 protocol to authenticate and generate an access token for the shopper. This token then permits the shopper to securely access their account and perform actions within their scope of permissions. In the following sections, we'll guide you through the necessary steps to authorize a shopper using a simple GET request method.

To authorize a shopper, Make a GET /oauth20/authorize request to the authorization URL using the following cURL command:

curl --location -g --request GET 'https://api.digitalriver.com/oauth20/authorize?redirect_uri=http%253A%252F%252Fexample.com&client_id=a78b756bd47e258841d7f007f3f62a&response_type=token&dr_limited_token=6c6bfd0fb07be35c608a2b8e5f5ae72e' \
...'

If the request is successful, you should expect a 200 OK response, but the response body will be empty. The actual authorization token will be part of the redirected URL (fragment) that is not directly visible in the response body due to the nature of the OAuth 2.0 implicit flow used for public clients.

The workflow that an application should implement depends on the type of client, which can be Public.

Last updated