You are reading the documentation for Vue Storefront v2. See the latest docs.

Home > @vue-storefront/core > UseCartFactoryParams > applyCoupon

UseCartFactoryParams.applyCoupon property

Signature:

applyCoupon: (context: Context, params: {
        currentCart: CART;
        couponCode: string;
        customQuery?: CustomQuery;
    }) => Promise<{
        updatedCart: CART;
    }>;