Home > @vsf-enterprise/epcc-api > CartEndpoints > mergeCarts
# CartEndpoints.mergeCarts() method
A shopper can have more than one cart (like guest and customer ones) and decide to merge the carts into one cart.
Signature:
mergeCarts(context: ElasticPathIntegrationContext, params: MergeCartsParams): Promise<CartItemsResponse>;
# Parameters
Parameter | Type | Description |
---|---|---|
context | ElasticPathIntegrationContext | An auto-generated value prepended to the method as a first parameter. |
params | MergeCartsParams | An object which contains necessary properties for merging carts. |
Returns:
Promise<CartItemsResponse>