Newer Version Available

This content describes an older version of this product. View Latest

Commerce Webstore Cart Coupon

Delete a coupon from a cart.

If a store is segmented into markets, this API looks at the language parameter appended to the URL to determine the shopper’s locale and returns the appropriate values.

Resource
1/commerce/webstores/webstoreId/carts/cartStateOrId/cart-coupons/cartCouponId
Values for cartStateOrId are:
  • cartId—ID of the cart.
  • active—Active cart. This value should only be used for authenticated users.
  • current—Cart that isn’t closed or pending deletion. Available in version 50.0 and later.
Available version
54.0
HTTP methods
DELETE

In API version 63.0 and later, if your store has simplified cart cleanup enabled, a DELETE request can remove a coupon from a cart without canceling checkout.

Request parameters for DELETE
Parameter Name Type Description Required or Optional Available Version
currencyIsoCode String Currency ISO code of the cart. Optional 57.0
effectiveAccountId String ID of the buyer account or guest buyer profile for which the request is made. If unspecified, the default value is determined from context. Optional 54.0