This endpoint wipes the authenticated user’s cart by deleting the Redis key that holds their cart data. The operation is immediate and irreversible — once the key is deleted, the cart is empty and the TTL is reset on the next write. The orders service calls this endpoint automatically after a successful checkout, so under normal usage you should not need to invoke it manually.Documentation 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.
Endpoint
Authentication
This endpoint requires a valid JWT passed as a Bearer token in theAuthorization header.
Request
No request body
This endpoint accepts no path parameters, query parameters, or request body.Example request
Response
200 — Success
Returns a confirmation object indicating the cart was successfully cleared.Always
true on a successful clear. Confirms that the Redis DEL command was executed for the user’s cart key.This endpoint is called automatically by the orders service after a successful checkout. You typically do not need to call it directly. Calling it manually will empty the cart without creating an order.
401 — Unauthorized
Returned when theAuthorization header is missing or the JWT is invalid or expired.