Clear Cart
Remove all items from a cart
POST
Documentation Index
Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
Use this file to discover all available pages before exploring further.
This endpoint removes all items from a cart while preserving the cart itself, customer information, and applied settings. Useful for “Clear Cart” functionality.
Authentication
This endpoint requires a valid API key withcarts:write permissions.
Path Parameters
The unique identifier of the cart to clear
Request Body
Keep applied coupon codes
Reason for clearing the cart (for analytics)