latestOpenAPI 3.0.02026-08-101013821017.9 KB

4b69392f93b9

Shoppers

Update the current shopper

Updates shopper information for the current shopper. 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.

post/v1/shoppers/me

Query parameters

tokenstring

Provide the authorized or anonymous token for a shopper.

currencystring

Use this query parameter to update the preferred currency in the cart for authenticated and anonymous shoppers.

ipAddressstring

Provide the shopper's IP address for the current session.

localestring

Use this query parameter to update the shopper's preferred locale for authenticated and anonymous shoppers.

expandstring

Use the expand query parameter when you want additional fields to appear in the response. The expand query parameter provides more fields in the response. Expanding resources reduces the number of API calls required to accomplish a task.

fieldsstring

Specify the fields that you want to appear in the response. Filtering the fields returned in the response can conserve bandwidth and accelerate response time.

applyEmailToSubscriptionsboolean

When the value for this parameter is true, and you provide the emailAddress in the request body, all active and inactive subscription shipping and billing email addresses will be updated when you update the shopper's subscription billing and shipping email addresses.

Request body

Example request

{
  "shopper": {
    "username": "jswanson@digitalriver.com",
    "firstName": "Automation",
    "lastName": "Tester",
    "emailAddress": "jswanson@digitalriver.com",
    "password": "qwerasdf",
    "locale": "en_US",
    "currency": "USD",
    "sendMail": true,
    "sendEMail": true
  }
}

Response

No Content