Creating or updating a cart

Learn how to create or update a cart.

Basic Creating a cart

Use the POST /oauth20/token resource to create an anonymous (limited access) or authenticated (full access) token. The response to this request creates a shopping cart and returns an access token to be included in all other cart interactions. To verify you created the cart successfully, send a GET /v1/shoppers/me/carts/active/request.

curl --location --request POST 'https://api.digitalriver.com/v1/shoppers/me/carts/active' \
--header 'Content-Type:  application/json' \
--header 'authorization: Basic ***\

Updating a cart

Use the POST /v1/shoppers/me/carts/active resource to add products, coupon codes, billing/shipping addresses, and offers to a customer's cart.

All of the resources contained in the Cart can be leveraged to modify specific cart data elements. See Update current cart query parameters for more information.

For additional information on updating a cart, see the following topics:

Last updated

Was this helpful?

#1249: DOC-395 CCAvenue

Change request updated