Creating or updating a cart

Learn how to create or update a cart.

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.

Required: A level 3 API key, a legal/contract amendment, and PCI documentation are required to pass customer credit card information through the Cart resource. Contact your Account Manager if you are interested in this capability.

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

Last updated