Retrieve a cart by its ID. For more information, refer to Manage a cart with the Storefront API.


Anchor to id
id
required

The ID of the cart.


Was this section helpful?

A cart represents the merchandise that a buyer intends to purchase, and the estimated cost associated with the cart. Learn how to interact with a cart during a customer's session.


Was this section helpful?
Hide code
Query reference
Copy
{
  cart(id) {
    # Cart fields
  }
}