Skip to main content
DELETE
Delete cart using user id

Authorizations

Authorization
string
header
required

Access token

Path Parameters

user_id
string
required

User ID

Response

OK

message
string
required
read-only
Example:

"All cart items are removed."

success
boolean
required
read-only
events
(CartLifecycleEvent · object | CartLineChangeEvent · object | CartCouponEvent · object | OrderCreatedEvent · object | OrderCancelledEvent · object | WishlistChangeEvent · object)[]
required

Analytics events to emit for the change this request made, each with a server-issued event_id. Replay them to your analytics destinations so your client-side and server-side copies of the same action dedupe. Empty when the request produced no analytics event.

Emitted when a cart is created or deleted, or when checkout begins. Checkout Started is sent on every address update on the cart, mirroring Commerce Engine's own server-side copy.