Remove a specific item from the authenticated user’s shopping cart
curl --request DELETE \
--url https://api.example.com/api/cart \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'x-api-key: <x-api-key>' \
--data '{
"cartId": 123
}'{
"success": true,
"message": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/memoowi/e-comm-api-demo-2/llms.txt
Use this file to discover all available pages before exploring further.
Bearer {token}application/jsoncart_id returned from the GET /api/cart endpoint.curl -X DELETE https://api.example.com/api/cart \
-H "x-api-key: your_api_key" \
-H "Authorization: Bearer your_jwt_token" \
-H "Content-Type: application/json" \
-d '{
"cartId": 1
}'
{
"success": true,
"message": "Product removed from cart successfully"
}
cart_id value from the GET /api/cart response. Using an invalid or non-existent cart ID will return a 404 error.| Status Code | Description |
|---|---|
| 200 | Cart item removed successfully |
| 401 | Missing or invalid authentication credentials |
| 404 | Cart item not found or doesn’t belong to the user |
| 500 | Internal server error |
curl --request DELETE \
--url https://api.example.com/api/cart \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'x-api-key: <x-api-key>' \
--data '{
"cartId": 123
}'{
"success": true,
"message": "<string>"
}