DraftOrderLineItemInput input object

The input fields used to create a line item for a draft order.

Input fields

  • appliedDiscount ([DraftOrderAppliedDiscountInput](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorderapplieddiscountinput))
    Discount which will be applied to the line item.
  • customAttributes ([[AttributeInput!]](https://shopify.dev/docs/admin-api/graphql/reference/orders/attributeinput))
    Represents a generic custom attribute using a key value pair.
  • grams ([Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01))
    Ignored when variant ID is provided. This argument is deprecated: Use weight instead.
  • originalUnitPrice ([Money](https://shopify.dev/docs/admin-api/graphql/reference/scalar#money-2021-01))
    Ignored when variant ID is provided.
  • quantity ([Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)) REQUIRED
    The number of products that were purchased.
  • requiresShipping ([Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
    Ignored when variant ID is provided.
  • sku ([String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    Ignored when variant ID is provided.
  • taxable ([Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
    Ignored when variant ID is provided.
  • title ([String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    Ignored when variant ID is provided.
  • variantId ([ID](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
    The ID of the product variant corresponding to the line item. Null if custom line item. Required if product variant line item.
  • weight ([WeightInput](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/weightinput))
    Specifies the weight unit and value inputs. Ignored when variant ID is provided.