Remove all cart items
Empties a cart. Any token type may call it, a limited token too (only for a bound cart). A closed cart is 422.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
cart_id*stringThe id of the cart.
The cart is empty.
curl -X DELETE 'https://api.comecero.com/api/v1/carts/string/items'Add an item to a cart POST
Adds a product to a cart. `product_id` is required (error `BpmhEyl`). The price comes from the product; only a secret or trusted token may set `reference_price` (a limited token gets `403`, error `m82tixT`). A product already in the cart is replaced, not added to. Adding a bundle adds one item for the bundle and one for each of its products, and then the answer is an offset list of those items instead of one item. Tax, shipping and promotions are worked out again. Any token type may call it; a limited token only for a bound cart. A closed cart is `422`.
Retrieve a cart item GET
Returns one item of a cart. Any token type may call it; a limited token only for a bound cart.