API reference · Custom Cart
Delete Custom Cart by ID
https://api.sandbox.cws.digital/customCart/deleteById/{id}Description
Deletes a custom cart, or only some of its items.
Without a body, the whole cart is deleted, and the link stops working for the customer.
Parameters
Path parameters
| Field | Type | Required | Description | Value |
|---|---|---|---|---|
| id | integer | Yes | Cart id, as it came in |
Request body
application/json| Field | Type | Required | Description | Value |
|---|---|---|---|---|
| customKey | array of string | No | Keys ( | Separate values with commas or line breaks. |
Business rules
Delete only some items
Send in customKey the keys (products[].key) of the items to remove. Only the default cart accepts deleting part of the items.
With no item left, the whole cart is deleted.
Carts that can be deleted
Only a cart that has not become an order nor been canceled or deleted. The cart must belong to your store, or to a store you are linked to.
Responses
- 200
Cart or items deleted.
- 401
Missing, malformed or expired token.
- 404
The cart does not exist or is not in your scope.