Anchor to section titled 'undefined'

CalculatedDraftOrder
object

Requires read_draft_orders access scope.

The calculated fields for a draft order.


Whether or not to accept automatic discounts on the draft order during calculation. If false, only discount codes and custom draft order discounts (see appliedDiscount) will be applied. If true, eligible automatic discounts will be applied in addition to discount codes and custom draft order discounts.

The list of alerts raised while calculating.

The custom order-level discount applied.

The available shipping rates. Requires a customer with a valid shipping address and at least one line item.

Whether the billing address matches the shipping address.

The shop currency used for calculation.

The customer who will be sent an invoice.

All discount codes applied.

The list of the line items in the calculated draft order.

A subtotal of the line items and corresponding discounts, excluding include shipping charges, shipping discounts, taxes, or order discounts.

The name of the selected market.

The selected country code that determines the pricing.

Anchor to CalculatedDraftOrder.phone
phone
Learn more about accessing protected customer data

The assigned phone number.

The list of platform discounts applied.

The payment currency used for calculation.

The purchasing entity.

The line item containing the shipping information and costs.

The subtotal, of the line items and their discounts, excluding shipping charges, shipping discounts, and taxes.

Whether the line item prices include taxes.

The list of of taxes lines charged for each line item and shipping line.

Total discounts.

Total price of line items.

The total price, includes taxes, shipping charges, and discounts.

The sum of individual line item quantities. If the draft order has bundle items, this is the sum containing the quantities of individual items in the bundle.

The total shipping price.

The total tax.

Fingerprint of the current cart. In order to have bundles work, the fingerprint must be passed to each request as it was previously returned, unmodified.

The list of warnings raised while calculating.


Was this section helpful?
Map
  • No referencing fields
  • CalculatedDraftOrder


    Calculates the properties of a draft order. Useful for determining information such as total taxes or price without actually creating a draft order.


    Was this section helpful?
    <~>
    CalculatedDraftOrder Mutations
    CalculatedDraftOrder