Delete a shopping cart item by ID
PATCH/api/cart/:id/item/delete/:itemId
Delete a specific item from a shopping cart using the cart ID and item ID.
Request
Path Parameters
id stringrequired
The ID of the cart containing the item to be deleted
itemId stringrequired
The ID of the item to be deleted
Responses
- 200
Successful deletion of the cart item
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"cart_id": "4c0010e7-c235-41ea-ab69-fba00be0ae6c",
"customer_session_id": "test-doc",
"shippingCountry": "c07d8af8-9d37-403b-aede-427c4b5fba3c",
"line_items": [],
"total_amount": 0,
"currency": "EUR",
"available_shipping_countries": []
}
{
"cart_id": "4c0010e7-c235-41ea-ab69-fba00be0ae6c",
"customer_session_id": "test-doc",
"shippingCountry": "c07d8af8-9d37-403b-aede-427c4b5fba3c",
"line_items": [],
"total_amount": 0,
"currency": "EUR",
"available_shipping_countries": []
}
Loading...