Store API cart remove coupon
id: woocommerce-woo-storeapi-cart-removecoupon owner: woocommerce method: POST path: /wp-json/headlesswp/v1/store/wc/cart/remove-coupon title: Store API cart remove coupon usedBySite: true
POST /wp-json/headlesswp/v1/store/wc/cart/remove-coupon
Removes a coupon from the Woo Store API cart through the HWP Store API bridge.
Auth + CSRF
- Auth: public.
- Proxy nonce required: yes.
- CSRF: required at the site proxy boundary.
Request schema
JSON body:
code(required, string)
Optional request header:
Cart-Token(string)
Response schema
HWP response envelope:
data: Woo Store API cart payload pass-through.meta.tokens.cartToken: string when present.meta.tokens.nonce: string when present.
Error codes
COUPON_CODE_REQUIREDCOUPON_CODE_INVALIDDEPENDENCY_MISSINGUPSTREAM_UNAVAILABLE