Home > @vsf-enterprise/epcc-api > CartEndpoints > addPromotionToCart

# CartEndpoints.addPromotionToCart() method

Applies discount to your cart as a special cart item type.

Signature:

addPromotionToCart(context: ElasticPathIntegrationContext, params: AddPromotionToCartParams): Promise<CartItem[]>;

# Parameters

Parameter Type Description
context ElasticPathIntegrationContext An auto-generated value prepended to the method as a first parameter.
params AddPromotionToCartParams An object which contains necessary properties for adding a discount to the cart.

Returns:

Promise<CartItem[]>