Remove discount codes from a cart
Removes the named codes — applied or pending — from the cart, or every code when codes is omitted, and returns the updated cart. Automatic promotions cannot be removed; naming one is a 400. A code that is not on the cart is ignored, so a retry is harmless.
Headers
Identifies which store this request is for. Required on every store-scoped route. It is not authentication and not a secret — it grants no privileges and is safe to send from a browser. You receive the value once your Entria backend has been created and configured. Missing header returns 400; an unknown store returns 404.
Request
Response
The updated cart; accepted/pending describe the codes that remain on it.
Shopper-entered codes on the cart after this write that produce a discount (cart.discounts with source: CODE). Automatic promotions are not codes and are never listed here, even if their code was sent.
Real codes on the cart after this write that do not qualify yet. The same list as cart.pendingDiscountCodes; they apply on their own once the cart qualifies.
