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/requestarrow-up-right.

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/activearrow-up-right 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.

triangle-exclamation

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

Last updated