Ask or search…
K
Links
Comment on page

Managing private stores

Lear how to manage private stores.

Getting a private store

Use the GET /v1/shoppers/me/purchase-plan to retrieve the details for a private store.
cURL
200 OK response
curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/purchase-plan' \
--header 'authorization: bearer ***\
...
{
"id": "11859200",
"isAuthenticationRequiredToBrowse": "false",
"purchasePlanName": "Copy of @EmailDomain",
"brandDisplayName": "@EmailDomain",
"targetMarketId": "35600",
"targetMarketName": "@EmailDomain"
}
See Purchase private store parameters for more information.

Searching for a private store

Use GET /v1/shoppers/me/purchase-plan/search and provide the relevant query parameters to search for a private store.
cURL
200 OK response
curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/purchase-plan/search' \
--header 'authorization: bearer ***\
...
{
"uri": "https://api.digitalriver.com/v1/shoppers/me/purchase-plan/search",
"purchasePlan": [
{
"currency": "USD",
"value": "19.99"
}
],
"totalResults": "2"
}
See Search private store query parameters for more information.

Authorizing a purchase plan

Use POST /v1/shoppers/me/purchase-plan/-authorize to authenticate the current shopper session for a specific private store. Note that some private stores may have more than one configured access rule.
cURL
204 No Content
curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/purchase-plan/authorize' \
--header 'authorization: bearer ***\
...
You will receive a 204 No Content response.