Add a line to a cart
Adds a purchasable catalog variant to the cart, or increases its quantity if it is already there. Requires an API key with cart:write, or a cart session token bound to this cart. Changing the cart invalidates earlier quotes. Fails with 404 for unknown variants, 409 if the variant is out of stock, the merchant is not ready or the cart is submitted, and 409 unsupported_operation for a currency that differs from the cart.
POST
Add a line to a cart
Headers
Body
application/json
Response
Successful Response
A shopper cart: one market and currency, lines grouped by merchant connection.