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

# CartEndpoints.addCustomItemToCart() method

Adds a custom item to the cart

Signature:

addCustomItemToCart(context: ElasticPathIntegrationContext, params: AddCustomItemToCartParams): Promise<CartItem[]>;

# Parameters

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

Returns:

Promise<CartItem[]>