Totals Object
Description
Financial totals for an order or checkout, including subtotals, taxes, shipping, and discounts.
Declaration
type Totals {
taxes: [Tax!]
subtotal: Float
subtotalBeforeTaxes: Float
tax: Float
grand: Float!
leftToPay: Float!
itemQuantity: Float
discount: Float
shipping: Float
creditNote: Float
balance: Float
}
Fields
| Name | Type | Description |
|---|---|---|
taxes | [Tax!] | Tax breakdown by tax definition. |
subtotal | Float | Subtotal after discounts and before taxes. |
subtotalBeforeTaxes | Float | Subtotal before taxes are applied. |
tax | Float | Total tax amount across all tax definitions. |
grand | Float! | Grand total including all items, taxes, shipping, and discounts. |
leftToPay | Float! | Remaining amount left to pay (grand total minus payments received). |
itemQuantity | Float | Total quantity of items in the order. |
discount | Float | Total discount amount applied. |
shipping | Float | Shipping cost. |
creditNote | Float | Credit note amount applied. |
balance | Float | Balance amount (positive or negative). |