Carts/
Cart Management/
Delete Cart Items

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

NameRequiredTypeDescription
referenceRequiredstringA custom reference for this cart created by you.

Headers

NameRequiredTypeDescription
AuthorizationRequiredstringThe 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



Was this helpful?

Previous
Delete a Cart

Learn

Docs