Schema Documentation

Cart

Description

The cart object

Fields
Field NameDescription
appliedCoupons - [AppliedCoupon] Coupons applied to the cart
availableShippingMethods - [ShippingPackage] Available shipping methods for this order.
chosenShippingMethods - [String] Shipping method chosen for this order.
contents - CartToCartItemConnection Connection between the Cart type and the CartItem type
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

where - CartToCartItemConnectionWhereArgs

Arguments for filtering the connection

contentsTax - String Cart contents tax
Arguments
format - PricingFieldFormatEnum

Format of the price

contentsTotal - String Cart contents total
Arguments
format - PricingFieldFormatEnum

Format of the price

discountTax - String Cart discount tax
Arguments
format - PricingFieldFormatEnum

Format of the price

discountTotal - String Cart discount total
Arguments
format - PricingFieldFormatEnum

Format of the price

displayPricesIncludeTax - Boolean Do display prices include taxes
feeTax - String Cart fee tax
Arguments
format - PricingFieldFormatEnum

Format of the price

feeTotal - String Cart fee total
Arguments
format - PricingFieldFormatEnum

Format of the price

fees - [CartFee] Additional fees on the cart.
isEmpty - Boolean Is cart empty
needsShippingAddress - Boolean Is customer shipping address needed
shippingTax - String Cart shipping tax
Arguments
format - PricingFieldFormatEnum

Format of the price

shippingTotal - String Cart shipping total
Arguments
format - PricingFieldFormatEnum

Format of the price

subtotal - String Cart subtotal
Arguments
format - PricingFieldFormatEnum

Format of the price

subtotalTax - String Cart subtotal tax
Arguments
format - PricingFieldFormatEnum

Format of the price

total - String Cart total after calculation
Arguments
format - PricingFieldFormatEnum

Format of the price

totalTax - String Cart total tax amount
Arguments
format - PricingFieldFormatEnum

Format of the price

totalTaxes - [CartTax] Cart total taxes itemized
Example
{"appliedCoupons":[AppliedCoupon],"availableShippingMethods":[ShippingPackage],"chosenShippingMethods":["xyz789"],"contents":CartToCartItemConnection,"contentsTax":"abc123","contentsTotal":"abc123","discountTax":"abc123","discountTotal":"xyz789","displayPricesIncludeTax":false,"feeTax":"xyz789","feeTotal":"abc123","fees":[CartFee],"isEmpty":true,"needsShippingAddress":false,"shippingTax":"xyz789","shippingTotal":"abc123","subtotal":"abc123","subtotalTax":"abc123","total":"xyz789","totalTax":"xyz789","totalTaxes":[CartTax]}