DELETE
/
cart
/
items
curl -X DELETE 'https://api.henrylabs.ai/v0/cart/items' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'x-user-id: user123'
{
  "success": true,
  "status": "success",
  "message": "Cart items deleted successfully"
}

Overview

This endpoint clears all items from a user’s cart. This is useful when a user wants to start fresh or after a successful checkout.

Authentication

x-api-key
string
required
Your API key for authentication
x-user-id
string
required
Unique identifier for the user

Response

success
boolean
Indicates if the request was successful
status
string
Status of the request
message
string
Descriptive message about the operation
curl -X DELETE 'https://api.henrylabs.ai/v0/cart/items' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'x-user-id: user123'
{
  "success": true,
  "status": "success",
  "message": "Cart items deleted successfully"
}
This operation is irreversible. Once items are deleted from the cart, they cannot be recovered. Users will need to add products again if they want to continue shopping.

Authorizations

x-api-key
string
header
required

Headers

x-user-id
string
required

Response

200
application/json

All Cart items deleted successfully.

The response is of type object.