Cart
Clear Cart
Remove all items from the authenticated user’s cart
DELETE
Authentication
This endpoint requires authentication. Include a valid JWT token in the Authorization header.Response
Returns a204 No Content status on success with an empty response body.
Behavior
- Removes all items from the user’s cart
- The cart itself remains and is not deleted
- After clearing, the cart will exist as an empty cart
- This operation is useful for starting fresh or after completing a checkout process
- Use the
DELETE /cart/item/:idendpoint if you want to remove specific items