Remove Coupon
Remove a discount coupon code from the shopping cart.
Endpoint
DELETE /api/shop/cart/couponRequest Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
X-STOREFRONT-KEY | Yes | Your storefront API key |
Response (200 OK)
json
{
"message": "Coupon removed successfully",
"cartTotal": 1199.98,
"tax": 119.99,
"total": 1319.97
}| Field | Type | Description |
|---|---|---|
message | string | Success message |
cartTotal | decimal | Updated cart subtotal |
tax | decimal | Recalculated tax |
total | decimal | New cart total |
Alternative Response (204 No Content)
No response body returned.
Use Cases
- Remove discount coupon from cart
- Switch to different coupon
- Cancel promotional discount
- Clear coupon before re-applying
Effects
- Discount amount is subtracted from cart
- Cart total is recalculated
- Tax may be recalculated based on new total
- Cart items remain unchanged

