Delete a Cart
You can delete a cart, including the items, name, description, and remove all associations.
DELETE
Delete cart by Reference
https://api.moltin.com/v2/carts/:reference
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 Examples
Curl
curl -X DELETE https://api.moltin.com/v2/carts/:reference \
-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