latestOpenAPI 3.0.02026-08-101013821017.9 KB
4b69392f93b9
Shoppers
Get the current shopper
Get the current shopper and shopper data. You can get shopper information for both anonymous and authenticated shoppers.
get/v1/shoppers/me
Query parameters
tokenstring
Provide the authorized or anonymous token for a shopper.
ipAddressstring
Provide the shopper's IP address for the current session.
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.
Response
Successful response.
Example response
{
"shopper": {
"uri": "https://api.digitalriver.com/v1/shoppers/me",
"id": 489475657389,
"username": "jswanson@digitalriver.com",
"firstName": "Automation",
"lastName": "Tester",
"emailAddress": "jswanson@digitalriver.com",
"paymentOptions": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/payment-options"
},
"addresses": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/addresses"
},
"orders": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/orders"
},
"subscriptions": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/subscriptions"
}
}
}