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.
Access Scopes
Fields
appliedGiftCards:
AppliedGiftCard! -
The gift cards that have been applied to the cart.
attribute:
Attribute -
An attribute associated with the cart.
attributes:
Attribute! -
The attributes associated with the cart. Attributes are represented as key-value pairs.
buyerIdentity:
CartBuyerIdentity! -
Information about the buyer that's interacting with the cart.
checkoutUrl:
URL! -
The URL of the checkout for the cart.
cost:
CartCost! -
The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The `cost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing).
createdAt:
DateTime! -
The date and time when the cart was created.
discountAllocations:
CartDiscountAllocation! -
The discounts that have been applied to the entire cart.
discountCodes:
CartDiscountCode! -
The case-insensitive discount codes that the customer added at checkout.
estimatedCost:
CartEstimatedCost! -
The estimated costs that the buyer will pay at checkout. The estimated costs are subject to change and changes will be reflected at checkout. The `estimatedCost` field uses the `buyerIdentity` field to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing).
cart
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).
cartBuyerIdentityUpdate
Updates customer information associated with a cart.
Buyer identity is used to determine
[international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing)
and should match the customer's shipping address.