Delete a cart
DELETE
Permanently deletes a cart and all its line items. Returns 204 No Content, or an error if no cart has that ID. This cannot be undone.
How to use it
- Get the cartId from List carts or Search carts.
- Delete it; the cart and its lines are removed permanently. To keep a record instead, set status to Discarded with Update a cart.
BearerAuthheader
AuthorizationBearer <JWT>cartId*stringID of the cart to delete, as returned by Create a cart or List carts.
Cart deleted
Example Request
curl -X DELETE 'https://beta.iotoms.com/api/v1/transaction/cart/string'Example Response
Empty