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

# CartEndpoints.getCart() method

Gets a cart by id.

Signature:

getCart(context: ElasticPathIntegrationContext, params: GetCartParams): Promise<Cart>;

# Parameters

Parameter Type Description
context ElasticPathIntegrationContext An auto-generated value prepended to the method as a first parameter.
params GetCartParams An object which contains necessary properties for getting a cart. Wishlist is also a cart.

Returns:

Promise<Cart>