# cart Get the current shopping cart ## Authentication > **Public Access**: Accessible with the public API key ## Query Structure ```graphql { cart(id: String!) { id createdAt confirmedAt fulfilledAt 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 { cart(id: "eyJhbGciOiJIUzI1NiJ9...") { id createdAt currency subtotalPrice totalPrice totalTax shippingPrice lineCount lines { id quantity } customer { id email } shippingAddress { id city country } } } ``` ## Related Types - [Cart](/reference/storefront/v1/objects/cart) - String