Home > @infiniteobjects/shopify-data-manager > AdminTypes > DraftOrderLineItemInput
The input fields used to create a line item for a draft order.
Signature:
export interface DraftOrderLineItemInput
Property | Modifiers | Type | Description |
---|---|---|---|
appliedDiscount? | InputMaybe<DraftOrderAppliedDiscountInput> | (Optional) Discount which will be applied to the line item. | |
customAttributes? | InputMaybe<Array<AttributeInput>> | (Optional) Represents a generic custom attribute using a key value pair. | |
originalUnitPrice? | InputMaybe<Scalars[‘Money’][‘input’]> | (Optional) The price without any discounts applied. This value is ignored when variantId is provided. |
|
quantity | Scalars[‘Int’][‘input’] | The number of products that were purchased. | |
requiresShipping? | InputMaybe<Scalars[‘Boolean’][‘input’]> | (Optional) Whether physical shipping is required. This value is ignored when variantId is provided. |
|
sku? | InputMaybe<Scalars[‘String’][‘input’]> | (Optional) The SKU number of the item. This value is ignored when variantId is provided. |
|
taxable? | InputMaybe<Scalars[‘Boolean’][‘input’]> | (Optional) Whether the item is taxable. This value is ignored when variantId is provided. |
|
title? | InputMaybe<Scalars[‘String’][‘input’]> | (Optional) Title of the item. Ignored when variantId is provided. |
|
variantId? | InputMaybe<Scalars[‘ID’][‘input’]> | (Optional) The ID of the product variant corresponding to the line item. Null if custom line item. Required if product variant line item. | |
weight? | InputMaybe<WeightInput> | (Optional) Specifies the weight unit and value inputs. This value is ignored when variantId is provided. |