comecerodocs

Remove all cart items

DELETE
/carts/{cart_id}/items

Empties a cart. Any token type may call it, a limited token too (only for a bound cart). 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.

Response Body

The cart is empty.

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