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

# CartEndpoints.addCustomerCartAssociation() method

Creates association between a customer and a cart. After cart association exist for a customer, the customer can access those carts across any device.

Signature:

addCustomerCartAssociation(context: ElasticPathIntegrationContext, params: AddCustomerCartAssociationParams): Promise<CartItemsResponse>;

# Parameters

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

Returns:

Promise<CartItemsResponse>