Skip to main content
Anchor to DraftOrderPlatformDiscountAllocationTarget

DraftOrderPlatformDiscountAllocationTarget

union

Requires read_draft_orders access scope.

The element of the draft being discounted.

•OBJECT

The calculated line item for a draft order.

•DraftOrderAppliedDiscount

The custom applied discount.

Anchor to approximateDiscountedUnitPriceSetapproximateDiscountedUnitPriceSet
•MoneyBag!
non-null

The discountedTotal divided by quantity, equal to the average value of the line item price per unit after discounts are applied. This value doesn't include discounts applied to the entire draft order.

•[CalculatedDraftOrderLineItem!]!
non-null

The components of the draft order line item.

•Boolean!
non-null

Whether the line item is custom (true) or contains a product variant (false).

•[Attribute!]!
non-null

A list of attributes that represent custom features or special requests.

•[TypedAttribute!]!
non-null

The list of additional information (metafields) with the associated types.

•MoneyV2!
non-null

The total price with discounts applied.

•MoneyBag!
non-null

The total price with discounts applied.

•FulfillmentService

Name of the service provider who fulfilled the order.

Valid values are either manual or the name of the provider. For example, amazon, shipwire.

Deleted fulfillment services will return null.

•Image

The image associated with the draft order line item.

•Boolean!
non-null

Whether the line item represents the purchase of a gift card.

•String!
non-null

The name of the product.

•MoneyV2!
non-null

The total price, excluding discounts, equal to the original unit price multiplied by quantity.

•MoneyBag!
non-null

The total price excluding discounts, equal to the original unit price multiplied by quantity.

•MoneyV2!
non-null

The line item price without any discounts applied.

Anchor to originalUnitPriceSetoriginalUnitPriceSet
•MoneyBag!
non-null

The price without any discounts applied.

Anchor to originalUnitPriceWithCurrencyoriginalUnitPriceWithCurrency
•MoneyV2

The original custom line item input price.

•MoneyV2

The price override for the line item.

•Product

The product for the line item.

•Int!
non-null

The quantity of items. For a bundle item, this is the quantity of bundles, not the quantity of items contained in the bundles themselves.

•Boolean!
non-null

Whether physical shipping is required for the variant.

•String

The SKU number of the product variant.

•Boolean!
non-null

Whether the variant is taxable.

•String!
non-null

The title of the product or variant. This field only applies to custom line items.

•MoneyV2!
non-null

The total value of the discount.

•MoneyBag!
non-null

The total discount amount.

•String!
non-null

The UUID of the draft order line item. Must be unique and consistent across requests. This field is mandatory in order to manipulate drafts with bundles.

•ProductVariant

The product variant for the line item.

•String

The name of the variant.

•String

The name of the vendor who created the product variant.

•Weight

The weight unit and value.

•[CalculatedDraftOrderLineItem!]!
non-nullDeprecated
•MoneyV2!
non-nullDeprecated
Anchor to discountedUnitPriceSetdiscountedUnitPriceSet
•MoneyBag!
non-nullDeprecated
•OBJECT

The line item for a draft order.

•DraftOrderAppliedDiscount

The custom applied discount.

Anchor to approximateDiscountedUnitPriceSetapproximateDiscountedUnitPriceSet
•MoneyBag!
non-null

The discountedTotal divided by quantity, equal to the average value of the line item price per unit after discounts are applied. This value doesn't include discounts applied to the entire draft order.

•[DraftOrderLineItem!]!
non-null

The components of the draft order line item.

•Boolean!
non-null

Whether the line item is custom (true) or contains a product variant (false).

•[Attribute!]!
non-null

A list of attributes that represent custom features or special requests.

•[TypedAttribute!]!
non-null

The list of additional information (metafields) with the associated types.

•MoneyBag!
non-null

The total price with discounts applied.

•FulfillmentService

Name of the service provider who fulfilled the order.

Valid values are either manual or the name of the provider. For example, amazon, shipwire.

Deleted fulfillment services will return null.

•ID!
non-null

A globally-unique ID.

•Image

The image of the product variant.

•Boolean!
non-null

Whether the line item represents the purchase of a gift card.

•String!
non-null

The name of the product.

•MoneyBag!
non-null

The total price excluding discounts, equal to the original unit price multiplied by quantity.

Anchor to originalUnitPriceSetoriginalUnitPriceSet
•MoneyBag!
non-null

The price without any discounts applied.

Anchor to originalUnitPriceWithCurrencyoriginalUnitPriceWithCurrency
•MoneyV2

The original custom line item input price.

•MoneyV2

The price override for the line item.

•Product

The product for the line item.

•Int!
non-null

The quantity of items. For a bundle item, this is the quantity of bundles, not the quantity of items contained in the bundles themselves.

•Boolean!
non-null

Whether physical shipping is required for the variant.

•String

The SKU number of the product variant.

•Boolean!
non-null

Whether the variant is taxable.

•[TaxLine!]!
non-null

A list of tax lines.

•String!
non-null

The title of the product or variant. This field only applies to custom line items.

•MoneyBag!
non-null

The total discount amount.

•String!
non-null

The UUID of the draft order line item. Must be unique and consistent across requests. This field is mandatory in order to manipulate drafts with bundles.

•ProductVariant

The product variant for the line item.

•String

The name of the variant.

•String

The name of the vendor who created the product variant.

•Weight

The weight unit and value.

•[DraftOrderLineItem!]!
non-nullDeprecated
•Money!
non-nullDeprecated
•Money!
non-nullDeprecated
Anchor to discountedUnitPriceSetdiscountedUnitPriceSet
•MoneyBag!
non-nullDeprecated
•Int
Deprecated
•Money!
non-nullDeprecated
•Money!
non-nullDeprecated
•Money!
non-nullDeprecated
•OBJECT

Represents the shipping details that the customer chose for their order.

•String

A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.

•String

A reference to the shipping method.

Anchor to currentDiscountedPriceSetcurrentDiscountedPriceSet
•MoneyBag!
non-null

The current shipping price after applying refunds, after applying discounts. If the parent `order.taxesIncluded`` field is true, then this price includes taxes. Otherwise, this field is the pre-tax price.

•Boolean!
non-null

Whether the shipping line is custom or not.

•String

The general classification of the delivery method.

•[DiscountAllocation!]!
non-null

The discounts that have been allocated to the shipping line.

•MoneyBag!
non-null

The shipping price after applying discounts. If the parent order.taxesIncluded field is true, then this price includes taxes. If not, it's the pre-tax price. As of API version 2024-07, this will be calculated including cart level discounts, such as the free shipping discount.

•ID

A globally-unique ID.

•Boolean!
non-null

Whether the shipping line has been removed.

•MoneyBag!
non-null

The pre-tax shipping price without any discounts applied.

•String

The phone number at the shipping address.

•String

A unique identifier for the shipping rate. The format can change without notice and isn't meant to be shown to users.

•String

Returns the rate source for the shipping line.

•[TaxLine!]!
non-null

The TaxLine objects connected to this shipping line.

•String!
non-null

Returns the title of the shipping line.

•MoneyV2!
non-nullDeprecated
•MoneyV2!
non-nullDeprecated
•Money!
non-nullDeprecated
Anchor to requestedFulfillmentServicerequestedFulfillmentService
•FulfillmentService
Deprecated

Was this section helpful?

Anchor to Fields with this unionFields with this union

•OBJECT

Price reduction allocations across the draft order's lines.


Was this section helpful?