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)