v1

latestOpenAPI 3.0.02026-07-226950132.6 KB
cart

Clear cart

Removes all items from the customer's cart.

post/cart/clear

Request body

keep_removed_itemsboolean

Keeps removed items in session when clearing the cart.

Response

Cart cleared successfully.

cart_hashstring

Unique cart hash.

cart_keystring

Unique cart key for the customer.

itemsobject

Cart items indexed by item key.

item_countinteger

Total number of items in cart.

items_weightnumber

Total weight of all items.

needs_paymentboolean

Whether the cart needs payment.

needs_shippingboolean

Whether the cart needs shipping.

noticesobject

Cart notices and messages.

extensionsobject

Additional data from extensions.