Home > @vsf-enterprise/bigcommerce-api > Endpoints > getOrderByCart
# Endpoints.getOrderByCart() method
Returns the order related to the given cart.
Signature:
getOrderByCart(context: BigcommerceIntegrationContext, params?: GetOrderByCartParameters): Promise<OrderByCartResponse>;
# Parameters
Parameter | Type | Description |
---|---|---|
context | BigcommerceIntegrationContext | An auto-generated value prepended to the method as a first parameter. |
params | GetOrderByCartParameters | (Optional) An object which contains properties for retrieving the order filtered by cartId. |
Returns:
Promise<OrderByCartResponse>