--- 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: 2026-01 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 *** ## Possible returns * Cart *** ## Examples * ### cart reference