Skip to main content
Anchor to DraftOrderLineItemInput

DraftOrderLineItemInput

input_object

The input fields for a line item included in a draft order.

•DraftOrderAppliedDiscountInput

The custom discount to be applied.

•[BundlesDraftOrderBundleLineItemComponentInput!]

The bundle components when the line item is a bundle.

•[AttributeInput!]

A generic custom attribute using a key value pair.

Anchor to originalUnitPriceWithCurrencyoriginalUnitPriceWithCurrency
•MoneyInput

The price in presentment currency, without any discounts applied, for a custom line item. If this value is provided, original_unit_price will be ignored. This field is ignored when variantId is provided. Note: All presentment currencies for a single draft should be the same and match the presentment currency of the draft order.

•Int!non-null

The line item quantity.

•Boolean

Whether physical shipping is required for a custom line item. This field is ignored when variantId is provided.

•String

The SKU number for custom line items only. This field is ignored when variantId is provided.

•Boolean

Whether the custom line item is taxable. This field is ignored when variantId is provided.

•String

Title of the line item. This field is ignored when variantId is provided.

•String

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.

•ID

The ID of the product variant corresponding to the line item. Must be null for custom line items, otherwise required.

•WeightInput

The weight unit and value inputs for custom line items only. This field is ignored when variantId is provided.

Deprecated fields

•IntDeprecated
•MoneyDeprecated

Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

•INPUT OBJECT

The list of product variant or custom line item. Each draft order must include at least one line item.

NOTE: Draft orders don't currently support subscriptions.


Was this section helpful?