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 during a customer's session.


An attribute associated with the cart.

The attributes associated with the cart. Attributes are represented as key-value pairs.

Information about the buyer that's interacting with the cart.

The URL of the checkout for the cart.

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.

The date and time when the cart was created.

The delivery groups available for the cart, based on the buyer identity default delivery address preference or the default address of the logged-in customer.

The discounts that have been applied to the entire cart.

The case-insensitive discount codes that the customer added at checkout.

A globally-unique ID.

A list of lines containing information about the items the customer intends to purchase.

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

A list of custom fields that a merchant associates with a Shopify resource.

A note that's associated with the cart. For example, the note can be a personalized message to the buyer.

The total number of items in the cart.

The date and time when the cart was updated.


Was this section helpful?
Map

Possible types in

{}Cart


Retrieve a cart by its ID. For more information, refer to Manage a cart with the Storefront API.


Was this section helpful?
<?>Cart Queries
{}Cart

Queried by



Updates the attributes on a cart.

Updates customer information associated with a cart. Buyer identity is used to determine international pricing and should match the customer's shipping address.

Creates a new cart.

Updates the discount codes applied to the cart.

Adds a merchandise line to the cart.

Removes one or more merchandise lines from the cart.

Updates one or more merchandise lines on a cart.

Updates the note on the cart.

Update the selected delivery options for a delivery group.


Was this section helpful?

||-Cart Implements
{}Cart

Implements