removeCoupon( )


Removes the coupon from a specified cart.

The removeCoupon() function returns a Promise that resolves to the updated cart when the coupon is removed from the specified cart.

Permissions
Manage eCommerce - all permissions
Manage Stores - all permissions
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
function removeCoupon(_id: string): Promise<RemoveCouponResponse>;
Method Parameters
_idstringRequired

Cart ID.

Returns
Return Type:Promise<RemoveCouponResponse>
JavaScript
import { cart } from "@wix/ecom"; async function removeCoupon(id) { const response = await cart.removeCoupon(id); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?