Home > @vsf-enterprise/sapcc-api > Endpoints > addVoucherToCart
Endpoints.addVoucherToCart() method
Applies coupon code to the cart.
Signature:
addVoucherToCart(context: SapccIntegrationContext, props: AddVoucherToCartProps): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
context | SapccIntegrationContext | An auto-generated value prepended to the method as a first parameter. |
props | AddVoucherToCartProps | An object containing necessary props. |
Returns:
Promise<void>