Shoppers

Learn how to manage shoppers.

Creating a current shopper

Use POST /v1/shoppers to create a shopper record. Contact your Digital River team to set up this request. See Shoppers query parameters for a description of the query parameters.

curl --location --request POST 'https://api.digitalriver.com/v1/shoppers' \
--header 'authorization: bearer ***\
...
--data-raw '{
  "shopper": {
    "username": "[email protected]",
    "firstName": "Jason",
    "lastName": "swanson",
    "emailAddress": "[email protected]",
    "password": "qwerasdf",
    "locale": "en_US",
    "currency": "USD",
    "sendMail": true,
    "sendEMail": true
  }
}

Updating a current shopper

Use POST /v1/shoppers/me to update the current shopper's data. The information you can update depends on the type of access token you are currently using. If you have an anonymous shopper token and are therefore updating an anonymous shopper, you can only update the IP address, locale, and currency. Updating shopper information beyond that requires an authenticated shopper token. You can update all shopper information including username and password for an authenticated shopper. See Shoppers query parameters for a description of the query parameters.

curl --location --request POST 'https://api.digitalriver.com/v1/shoppers/me' \
--header 'authorization: bearer ***\
...
--data-raw '{
  "shopper": {
    "username": "[email protected]",
    "firstName": "Automation",
    "lastName": "Tester",
    "emailAddress": "[email protected]",
    "password": "qwerasdf",
    "locale": "en_US",
    "currency": "USD",
    "sendMail": true,
    "sendEMail": true
  }
}'

Getting a current shopper

Use GET /v1/shoppers/me to get the current shopper's data for both anonymous and authenticated shoppers.

curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me' \
--header 'authorization: bearer ***\
...

Last updated

Was this helpful?

#1249: DOC-395 CCAvenue

Change request updated