Error
Clear the cart
Removes all items from the customer’s cart.
POST
Error
Documentation Index
Fetch the complete documentation index at: https://docs.cocartapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Body
application/json
Keeps removed items in session when clearing the cart.
Response
Cart cleared successfully.
Complete cart object with enhanced v2 structure.
Unique cart hash.
Unique cart key for the customer.
Cart items indexed by item key.
Total number of items in cart.
Total weight of all items.
Applied coupons.
Whether the cart needs payment.
Whether the cart needs shipping.
Cart fees.
Cart taxes.
Recently removed items that can be restored.
Cross-sell products.
Cart notices and messages.
Additional data from extensions.