comecerodocs

Remove a cart item

DELETE
/carts/{cart_id}/items/{item_id}

Removes one item. Removing an item of a bundle removes the whole bundle. Secret and trusted tokens only: a limited token gets 403. To let a shopper remove an item, update the cart with the new items list. A closed cart is 422.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

cart_id*string

The id of the cart.

item_id*string

The id of the item. For a product, the product_id.

Response Body

The item is removed.

Example Request
curl -X DELETE 'https://api.comecero.com/api/v1/carts/string/items/string'
Example Response
Empty