POST /cart/coupon
Apply a coupon code to the cart.
Authentication
Optional. Use X-Cart-Token for guest carts.
Body Parameters
Example Request
Response
Success (200)
Returns the full cart contents with the discount applied.
Error Responses
DELETE /cart/coupon
Remove the applied coupon from the cart.
Authentication
Optional. Use X-Cart-Token for guest carts.
Example Request
Response
Success (200)
Returns the full cart contents with the discount removed.
Coupons are re-validated at checkout time. If a coupon becomes invalid between cart and checkout (e.g., it expires or reaches its usage limit), the checkout will fail with a message indicating the coupon was removed.