--- title: cart - Storefront API description: | Retrieve a cart by its ID. For more information, refer to [Manage a cart with the Storefront API](https://shopify.dev/custom-storefronts/cart/manage). api_version: 2025-10 api_name: storefront type: query api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/queries/cart md: https://shopify.dev/docs/api/storefront/latest/queries/cart.md --- # cart query Retrieve a cart by its ID. For more information, refer to [Manage a cart with the Storefront API](https://shopify.dev/custom-storefronts/cart/manage). ## Arguments * id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) required The ID of the cart. *** ## Possible returns * Cart [Cart](https://shopify.dev/docs/api/storefront/latest/objects/Cart) 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](https://shopify.dev/custom-storefronts/internationalization/international-pricing) during a customer's session. *** ## Examples * ### cart reference ## Query Reference ```graphql { cart(id) { # cart fields } } ```