Home > @vue-storefront/magento-api > removeCouponFromCart
removeCouponFromCart() function
Removes a coupon from a cart
Signature:
export default function removeCouponFromCart(context: Context, input: RemoveCouponFromCartInput, customQuery?: CustomQuery, customHeaders?: CustomHeaders): Promise<FetchResult<RemoveCouponFromCartMutation>>;
Parameters
Parameter | Type | Description |
---|---|---|
context | Context | VSF context |
input | RemoveCouponFromCartInput | ID of the cart and coupon to remove |
customQuery | CustomQuery | (Optional) custom GraphQL query that extends the default one |
customHeaders | CustomHeaders | (Optional) (optional) - custom headers that extends the default headers |
Returns:
Promise<FetchResult<RemoveCouponFromCartMutation>>