Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to DraftOrderLineItemInput

DraftOrderLineItemInput

input_object

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

•

The custom discount to be applied.

•

The bundle components when the line item is a bundle.

•

A generic custom attribute using a key value pair.

Anchor to originalUnitPriceWithCurrencyoriginalUnitPriceWithCurrency
•

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.

•

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

•

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

•

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

•

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

•

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.

•

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

•

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

Show
deprecated fields Deprecated
•
IntDeprecated

The weight in grams for custom line items. This field is ignored when variantId is provided. weight should be used instead, allowing different units to be used.

•
MoneyDeprecated

The custom line item price without any discounts applied in shop currency. This field is ignored when variantId is provided. originalUnitPriceWithCurrency should be used instead, where currency can be specified.


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?