Cart

  • Object

Represents a cart in Thor, encapsulating all information required to display and manage items across storefronts and sales channels.

Each cart includes details such as the total price, line items, shipping address, and available shipping methods. Carts can be used to track items before purchase, allowing customers to review and modify their selections.

#

Fields


CartAddress

Gets the billing address associated with the cart. This may be the same as the shipping address.

String!

Gets the currency of the cart.

String

Gets the customer email associated with the cart, if any.

ID

Gets the customer ID associated with the cart, if any.

ID!

The unique identifier of the cart

CartAddress

Gets the shipping address associated with the cart.

CartState!

Gets the current state of the cart.

Money!

Gets the total price of the cart before discounts and taxes.

TaxedPrice

Gets the taxed price of the cart. This may be null if the cart does not yet have a taxed price.

Money!

Gets the total price of the cart after discounts and taxes.

#

Mutations