Delete Cart Items
A shopper can clean up their cart, deleting custom items, promotions, and so on, while the empty cart remains available. The cart id, name, description and any customer associations persist. The shopper can continue to add items to the cart.
DELETE
Cart Items
https://api.moltin.com/v2/carts/:reference/items
Parameters
Path parameters
Name | Required | Type | Description |
---|---|---|---|
reference | Required | string | A custom reference for this cart created by you. |
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Request Example
Curl
curl -X DELETE https://api.moltin.com/v2/carts/:cartID/items \
-H "Authorization: Bearer XXXX"
JavaScript SDK
const reference = "XXXX";
// Where `EPCC` is an authenticated client
await EPCC.Cart(reference).Delete();
Response Example
204 No Content