This endpoint removes a product from the authenticated user’s cart by filtering out any entry whoseDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/astrxnomo/shop-microservers/llms.txt
Use this file to discover all available pages before exploring further.
productId matches the one supplied in the URL. The removal is all-or-nothing — the entire cart entry is deleted regardless of how many units are currently stored. If you need partial quantity reduction, update the cart by removing the item and re-adding it with the adjusted quantity.
Endpoint
Authentication
This endpoint requires a valid JWT passed as a Bearer token in theAuthorization header.
Request
Path parameters
The CUID of the product to remove from the cart. Must match the
productId value stored in the cart entry.Example request
Response
200 — Success
Returns the full updateditems array after the item has been removed. If the productId did not exist in the cart, the response is still 200 and the existing items array is returned unchanged.
This endpoint removes the cart entry entirely — there is no partial quantity reduction endpoint. To reduce quantity without removing the item, call this endpoint followed by Add Item with the desired new quantity.
401 — Unauthorized
Returned when theAuthorization header is missing or the JWT is invalid or expired.