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

# CartEndpoints.checkout() method

Converts your cart to an order. The cart remains and can be modified and checked out again if required.

Signature:

checkout(context: ElasticPathIntegrationContext, params: CheckoutParams): Promise<Order & {
        items?: OrderItem[];
    }>;

# Parameters

Parameter Type Description
context ElasticPathIntegrationContext An auto-generated value prepended to the method as a first parameter.
params CheckoutParams An object which contains necessary properties for converting a cart into an order.

Returns:

Promise<Order & { items?: OrderItem[]; }>