Skip to main content

POST /cart/coupon

Apply a coupon code to the cart.

Authentication

Optional. Use X-Cart-Token for guest carts.

Headers

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.

Headers

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.