# CalculatedDraftOrder - admin-graphql - OBJECT Version: 2024-10 ## Description The calculated fields for a draft order. ### Access Scopes `read_draft_orders` access scope. ## Fields * [acceptAutomaticDiscounts](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean - 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. * [alerts](/docs/api/admin-graphql/2024-10/objects/ResourceAlert): ResourceAlert! - The list of alerts raised while calculating. * [appliedDiscount](/docs/api/admin-graphql/2024-10/objects/DraftOrderAppliedDiscount): DraftOrderAppliedDiscount - The custom order-level discount applied. * [availableShippingRates](/docs/api/admin-graphql/2024-10/objects/ShippingRate): ShippingRate! - The available shipping rates. Requires a customer with a valid shipping address and at least one line item. * [billingAddressMatchesShippingAddress](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean! - Whether the billing address matches the shipping address. * [currencyCode](/docs/api/admin-graphql/2024-10/enums/CurrencyCode): CurrencyCode! - The shop currency used for calculation. * [customer](/docs/api/admin-graphql/2024-10/objects/Customer): Customer - The customer who will be sent an invoice. * [discountCodes](/docs/api/admin-graphql/2024-10/scalars/String): String! - All discount codes applied. * [lineItems](/docs/api/admin-graphql/2024-10/objects/CalculatedDraftOrderLineItem): CalculatedDraftOrderLineItem! - The list of the line items in the calculated draft order. * [lineItemsSubtotalPrice](/docs/api/admin-graphql/2024-10/objects/MoneyBag): MoneyBag! - A subtotal of the line items and corresponding discounts, excluding include shipping charges, shipping discounts, taxes, or order discounts. * [marketName](/docs/api/admin-graphql/2024-10/scalars/String): String! - The name of the selected market. * [marketRegionCountryCode](/docs/api/admin-graphql/2024-10/enums/CountryCode): CountryCode! - The selected country code that determines the pricing. * [phone](/docs/api/admin-graphql/2024-10/scalars/String): String - The assigned phone number. * [platformDiscounts](/docs/api/admin-graphql/2024-10/objects/DraftOrderPlatformDiscount): DraftOrderPlatformDiscount! - The list of platform discounts applied. * [presentmentCurrencyCode](/docs/api/admin-graphql/2024-10/enums/CurrencyCode): CurrencyCode! - The payment currency used for calculation. * [purchasingEntity](/docs/api/admin-graphql/2024-10/unions/PurchasingEntity): PurchasingEntity - The purchasing entity. * [shippingLine](/docs/api/admin-graphql/2024-10/objects/ShippingLine): ShippingLine - The line item containing the shipping information and costs. * [subtotalPrice](/docs/api/admin-graphql/2024-10/scalars/Money): Money! - The subtotal, in shop currency, of the line items and their discounts, excluding shipping charges, shipping discounts, and taxes. * [subtotalPriceSet](/docs/api/admin-graphql/2024-10/objects/MoneyBag): MoneyBag! - The subtotal, of the line items and their discounts, excluding shipping charges, shipping discounts, and taxes. * [taxLines](/docs/api/admin-graphql/2024-10/objects/TaxLine): TaxLine! - The list of of taxes lines charged for each line item and shipping line. * [taxesIncluded](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean! - Whether the line item prices include taxes. * [totalDiscountsSet](/docs/api/admin-graphql/2024-10/objects/MoneyBag): MoneyBag! - Total discounts. * [totalLineItemsPriceSet](/docs/api/admin-graphql/2024-10/objects/MoneyBag): MoneyBag! - Total price of line items. * [totalPrice](/docs/api/admin-graphql/2024-10/scalars/Money): Money! - The total price, in shop currency, includes taxes, shipping charges, and discounts. * [totalPriceSet](/docs/api/admin-graphql/2024-10/objects/MoneyBag): MoneyBag! - The total price, includes taxes, shipping charges, and discounts. * [totalQuantityOfLineItems](/docs/api/admin-graphql/2024-10/scalars/Int): Int! - 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. * [totalShippingPrice](/docs/api/admin-graphql/2024-10/scalars/Money): Money! - The total shipping price in shop currency. * [totalShippingPriceSet](/docs/api/admin-graphql/2024-10/objects/MoneyBag): MoneyBag! - The total shipping price. * [totalTax](/docs/api/admin-graphql/2024-10/scalars/Money): Money! - The total tax in shop currency. * [totalTaxSet](/docs/api/admin-graphql/2024-10/objects/MoneyBag): MoneyBag! - The total tax. * [transformerFingerprint](/docs/api/admin-graphql/2024-10/scalars/String): String - 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. * [warnings](/docs/api/admin-graphql/2024-10/interfaces/DraftOrderWarning): DraftOrderWarning! - The list of warnings raised while calculating. ## Connections ## Related queries ## Related mutations * [draftOrderCalculate](/docs/api/admin-graphql/2024-10/mutations/draftOrderCalculate) Calculates the properties of a draft order. Useful for determining information such as total taxes or price without actually creating a draft order. ## Related Unions ## Examples