CalculatedDraftOrder

Required access

read_draft_orders access scope

The computed properties for a draft order.

Show definition
# The computed properties for a draft order.
type CalculatedDraftOrder {
  # Order-level discount applied to the draft order.
  appliedDiscount: DraftOrderAppliedDiscount

  # Customer who will be sent an invoice for the draft order, if there is one.
  customer: Customer

  # Line items in the draft order with their computed properties.
  lineItems: [CalculatedDraftOrderLineItem!]!

  # Line item that contains the shipping costs.
  shippingLine: ShippingLine

  # Subtotal of the line items and their discounts (does not contain shipping charges or shipping discounts, or taxes).
  subtotalPrice: Money!

  # Total amount of taxes charged for each line item and shipping line.
  taxLines: [TaxLine!]!

  # Total amount of the draft order (includes taxes, shipping charges, and discounts).
  totalPrice: Money!

  # Total shipping charge for the draft order.
  totalShippingPrice: Money!

  # Total amount of taxes for the draft order.
  totalTax: Money!
}

Fields

appliedDiscount   (DraftOrderAppliedDiscount)

Order-level discount applied to the draft order.

customer   (Customer)

Customer who will be sent an invoice for the draft order, if there is one.

lineItems   ([CalculatedDraftOrderLineItem!]!)

Line items in the draft order with their computed properties.

shippingLine   (ShippingLine)

Line item that contains the shipping costs.

subtotalPrice   (Money!)

Subtotal of the line items and their discounts (does not contain shipping charges or shipping discounts, or taxes).

taxLines   ([TaxLine!]!)

Total amount of taxes charged for each line item and shipping line.

totalPrice   (Money!)

Total amount of the draft order (includes taxes, shipping charges, and discounts).

totalShippingPrice   (Money!)

Total shipping charge for the draft order.

totalTax   (Money!)

Total amount of taxes for the draft order.