Skip to content

Remove Coupon

Remove a discount coupon code from the shopping cart.

Endpoint

DELETE /api/shop/cart/coupon

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key

Response (200 OK)

json
{
  "message": "Coupon removed successfully",
  "cartTotal": 1199.98,
  "tax": 119.99,
  "total": 1319.97
}
FieldTypeDescription
messagestringSuccess message
cartTotaldecimalUpdated cart subtotal
taxdecimalRecalculated tax
totaldecimalNew 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

Released under the MIT License.