# cart Get the current shopping cart ## Authentication > **Public Access**: Accessible with the public API key ## Query Structure ```graphql { cart(id: String!) { id createdAt customer discounts tags subtotalPrice totalPrice currency totalNetPrice totalTax taxLines customerNote paymentMethods paymentFee shippingMethods shippingPrice lines physicalLines lineCount shippingAddress billingAddress checkoutUrl } } ``` ## Arguments | Argument | Type | Required | Description | |----------|------|----------|-------------| | id | String | Yes | The ID of the cart to retrieve. | ## Return Type [Cart](/reference/storefront/v1/objects/cart) - Represents a cart in the store, exposing totals, items, discounts, shipping, and payment information for GraphQL APIs. ## Example ```graphql query { cart(id: "eyJhbGciOiJIUzI1NiJ9...") { id createdAt currency subtotalPrice totalPrice totalTax lineCount lines { id quantity } shippingAddress { country city } billingAddress { country city } checkoutUrl } } ``` ## Related Types - [Cart](/reference/storefront/v1/objects/cart)