Useful APIs

Learn about the most useful APIs when managing a Private Store.

Getting an access token by session token

curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/token.json?apiKey={{client_id}}&session_token={{session_token}}' \
--header 'authorization: bearer {{apikey_secret_authr}}\
...

Verifying the access token is authenticated

curl --location --request GET 'https://api.digitalriver.com/oauth20/access-tokens.json?token={{access_token}}' \
--header 'authorization: bearer {{apikey_secret_authr}}\
...

Searching for a private store

When you search for a Private Store, the id for purchasePlanAuthorize and the targetMarketId appears in the response. When you search for a Private Store, you need to provide id for the purchasePlanAuthorize and the targetMarketId in the request. Unless you frequently create and edit private stores, this step is not required. You should store or cache these attributes on your side.

    "purchasePlanAuthorize":{
        "id":"4912758700",
        "targetMarketId":"4897371800",
    }
}

Last updated