Adding a product to a cart

Learn how to add a product to a cart.

Add a product to a cart using the product identifier

Send a POST /v1/shoppers/me/carts/active request to add a product to a cart, provide the product identifier (productId). If you want to add a product combination to the cart, use the product identifier for the product combination. If the product is a product combination, the combined product information appears under the lineItem object, and component information appears under the component object.

curl --location --request POST 'https://api.digitalriver.com/v1/shoppers/me/carts/active?productId={productId}' \
--header 'authorization: Basic ***\
...

See Update current cart query parameters for more information.

Last updated