Przejdź do głównej zawartości

OrderTotals

Cost totals on an order — symmetric with CartCost so the confirmation page renders the same breakdown the buyer saw at checkout.

type OrderTotals {
feeAllocations: [OrderFeeAllocation!]!
feeTotal: Money!
pricesIncludeTax: Boolean!
subtotal: Money!
total: Money!
totalShipping: Money
totalTax: Money
}

Fields

OrderTotals.feeAllocations ● [OrderFeeAllocation!]! non-null object

One entry per fee charged, so the confirmation page and the receipt can name the charge instead of leaving an unexplained difference. Empty when no fee applied; the sum across entries equals feeTotal.

OrderTotals.feeTotal ● Money! non-null object

Fees charged for the payment method the buyer chose (e.g. cash-on-delivery handling), frozen at checkout. Returns an amount of 0 when no fee applied, so the confirmation page can render the row unconditionally. Already included in total — show it as its own row, never on top of the total.

OrderTotals.pricesIncludeTax ● Boolean! non-null scalar

How this order was priced, frozen when it was placed. True: item prices include tax — render total with an "including tax" note. False (tax-exclusive / B2B): subtotal is net and tax was added on top — render totalTax as its own line before total, or the summary rows will not add up. In BOTH modes total is the final amount the buyer pays, tax included.

OrderTotals.subtotal ● Money! non-null object

Order subtotal — items only, before tax, shipping and discounts.

OrderTotals.total ● Money! non-null object

Grand total the buyer was charged — includes taxes, shipping and discounts.

OrderTotals.totalShipping ● Money object

Total shipping cost on the order. Null for digital-only orders that did not go through shipping.

OrderTotals.totalTax ● Money object

Total tax across the order. Null when the order has no taxable component.

Member Of

Order object