Skip to Content

DELETE /api/v1/cart/:id

Remove a single item from the cart by its cart item ID. Only the item owner can remove it.

Authentication: Required

Cache: None

Path Parameters

ParameterTypeRequiredDescription
idnumberYesCart item ID

Sample Request

curl -X DELETE -H "Authorization: Bearer YOUR_TOKEN" \ https://api.grails.app/api/v1/cart/1

Response

// 200 OK { "success": true, "data": { "message": "Removed from cart" }, "meta": { "timestamp": "2026-04-08T00:00:00.000Z", "version": "1.0.0" } }

Error Responses

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid token
403FORBIDDENCart item belongs to another user
404NOT_FOUNDCart item not found
500INTERNAL_ERRORFailed to remove from cart
Last updated on