Skip to main content
This mutation only adds non-existing products to the cart, skipping items that are already in the cart. To update quantity use updateCartItems.

Arguments

input
required
The input object contains the unique identifier (ID) for the cart and the items that need to be added.

Returns

CartResponse.*
Any requested field from the CartResponse object.

Example - request

Query arguments
GraphQL

Example - response

Response

Errors

If the cart is not found then a corresponding error is returned
JSON
If the cart is expired (older than 10 days) then a corresponding error is returned
JSON
If the provided items are not found in the inventory PRODUCT_NOT_FOUND error is returned
JSON
If the provided product/variant quantity is less or equal to zero then ADD_PRODUCTS_FAILED error is returned
JSON
If the store has no items added to it then after attempting to get an offer for this store PRODUCTS_EMPTYerror is returned for AmazonOffer/ShopifyOffer object as in the example above.