Home > @vsf-enterprise/commercetools-api > removeCartCoupon
# removeCartCoupon() function
Endpoint for removing coupon code from cart. By default, it uses the updateCartDefaultQuery GraphQL query
Signature:
export declare function removeCartCoupon(context: Context, params: RemoveCartCouponParams, discountCode: ReferenceInput, customQuery?: CustomQuery): Promise<RemoveCartCouponResponse>;
# Parameters
Parameter | Type | Description |
---|---|---|
context | Context | Automatically injected context. Refer to Context |
params | RemoveCartCouponParams | Cart information |
discountCode | ReferenceInput | Discount code |
customQuery | CustomQuery | Custom queries included in the request |
Returns:
Promise<RemoveCartCouponResponse>
User cart information