Skip to main content
Log inSign up
Anchor to CalculatedDraftOrder

CalculatedDraftOrder

object

Requires read_draft_orders access scope.

The calculated fields for a draft order.

Anchor to acceptAutomaticDiscountsacceptAutomaticDiscounts
•

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.

Anchor to allVariantPricesOverriddenallVariantPricesOverridden
•
Boolean!non-null

Whether all variant prices have been overridden.

Anchor to anyVariantPricesOverriddenanyVariantPricesOverridden
•
Boolean!non-null

Whether any variant prices have been overridden.

•

The custom order-level discount applied.

Anchor to availableShippingRatesavailableShippingRates
•

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

Anchor to billingAddressMatchesShippingAddressbillingAddressMatchesShippingAddress
•
Boolean!non-null

Whether the billing address matches the shipping address.

•

The shop currency used for calculation.

•

The customer who will be sent an invoice.

•
[String!]!non-null

All discount codes applied.

•

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

Anchor to lineItemsSubtotalPricelineItemsSubtotalPrice
•
MoneyBag!non-null

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

•

The assigned phone number.

•

The list of platform discounts applied.

Anchor to presentmentCurrencyCodepresentmentCurrencyCode
•

The payment currency used for calculation.

•

The purchasing entity.

•

The line item containing the shipping information and costs.

•
MoneyBag!non-null

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

•
Boolean!non-null

Whether the line item prices include taxes.

•
[TaxLine!]!non-null

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

•
MoneyBag!non-null

Total discounts.

Anchor to totalLineItemsPriceSettotalLineItemsPriceSet
•
MoneyBag!non-null

Total price of line items.

•
MoneyBag!non-null

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

Anchor to totalQuantityOfLineItemstotalQuantityOfLineItems
•
Int!non-null

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.

Anchor to totalShippingPriceSettotalShippingPriceSet
•
MoneyBag!non-null

The total shipping price.

•
MoneyBag!non-null

The total tax.

Anchor to transformerFingerprinttransformerFingerprint
•

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.

Show
deprecated fields Deprecated
•
String!non-nullDeprecated

The name of the selected market. This field is now incompatible with Markets.

Anchor to marketRegionCountryCodemarketRegionCountryCode
•
CountryCode!non-nullDeprecated

The selected country code that determines the pricing. This field is now incompatible with Markets.

•
Money!non-nullDeprecated

The subtotal, in shop currency, of the line items and their discounts, excluding shipping charges, shipping discounts, and taxes. Use subtotalPriceSet instead.

•
Money!non-nullDeprecated

The total price, in shop currency, includes taxes, shipping charges, and discounts. Use totalPriceSet instead.

•
Money!non-nullDeprecated

The total shipping price in shop currency. Use totalShippingPriceSet instead.

•
Money!non-nullDeprecated

The total tax in shop currency. Use totalTaxSet instead.


Was this section helpful?

•
mutation

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?