Schema Documentation
Cart
Description
The cart object
Fields
Field Name | Description |
---|---|
appliedCoupons - [AppliedCoupon] | Coupons applied to the cart |
availableShippingMethods - [ShippingPackage] | Available shipping methods for this order. |
chosenShippingMethods - [String] | Shipping method chosen for this order. |
contents - CartToCartItemInterfaceConnection | Connection between the Cart type and the CartItemInterface type |
Arguments
| |
contentsTax - String | Cart contents tax |
Arguments
| |
contentsTotal - String | Cart contents total |
Arguments
| |
discountTax - String | Cart discount tax |
Arguments
| |
discountTotal - String | Cart discount total |
Arguments
| |
displayPricesIncludeTax - Boolean | Do display prices include taxes |
feeTax - String | Cart fee tax |
Arguments
| |
feeTotal - String | Cart fee total |
Arguments
| |
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
| |
shippingTotal - String | Cart shipping total |
Arguments
| |
subtotal - String | Cart subtotal |
Arguments
| |
subtotalTax - String | Cart subtotal tax |
Arguments
| |
total - String | Cart total after calculation |
Arguments
| |
totalTax - String | Cart total tax amount |
Arguments
| |
totalTaxes - [CartTax] | Cart total taxes itemized |
Example
{"appliedCoupons":[AppliedCoupon],"availableShippingMethods":[ShippingPackage],"chosenShippingMethods":["abc123"],"contents":CartToCartItemInterfaceConnection,"contentsTax":"xyz789","contentsTotal":"abc123","discountTax":"abc123","discountTotal":"abc123","displayPricesIncludeTax":false,"feeTax":"abc123","feeTotal":"abc123","fees":[CartFee],"isEmpty":true,"needsShippingAddress":true,"shippingTax":"xyz789","shippingTotal":"xyz789","subtotal":"abc123","subtotalTax":"xyz789","total":"abc123","totalTax":"abc123","totalTaxes":[CartTax]}