Home > @infiniteobjects/shopify-data-manager > AdminTypes > DraftOrderLineItem
A line item included in a draft order.
Signature:
export interface DraftOrderLineItem extends Node
Extends: Node
Property | Modifiers | Type | Description |
---|---|---|---|
appliedDiscount? | Maybe<DraftOrderAppliedDiscount> | (Optional) The discount that will be applied to the line item or the overall order. | |
custom | Scalars[‘Boolean’][‘output’] | Whether the line item is a custom line item (true ) or a product variant line item (false ). |
|
customAttributes | Array<Attribute> | A list of attributes that represent custom features or special requests. | |
customAttributesV2 | Array<TypedAttribute> | Additional information (metafields) about the line item with the associated types. | |
discountedTotal | Scalars[‘Money’][‘output’] | The line item price after discounts are applied. | |
discountedTotalSet | MoneyBag | The line item price after discounts are applied. | |
discountedUnitPrice | Scalars[‘Money’][‘output’] | The discountedTotal divided by quantity , resulting in the value of the discount per unit. |
|
discountedUnitPriceSet | MoneyBag | The discountedTotal divided by quantity , resulting in the value of the discount per unit. |
|
fulfillmentService? | Maybe<FulfillmentService> | <p>(Optional) Name of the service provider who fulfilled the order.</p><p>Valid values are either **manual** or the name of the provider. For example, **amazon**, **shipwire**.</p><p>Deleted fulfillment services will return null.</p> | |
grams? | Maybe<Scalars[‘Int’][‘output’]> | (Optional) The weight of the line item in grams. The weight can only be specified if the line item is a custom line item. | |
id | Scalars[‘ID’][‘output’] | A globally-unique ID. | |
image? | Maybe<Image> | (Optional) The image associated with the draft order line item. | |
isGiftCard | Scalars[‘Boolean’][‘output’] | Whether the line item is a gift card. | |
name | Scalars[‘String’][‘output’] | The name of the product. | |
originalTotal | Scalars[‘Money’][‘output’] | The total price (without discounts) of the line item, based on the original unit price of the variant x quantity. | |
originalTotalSet | MoneyBag | The total price (without discounts) of the line item,based on the original unit price of the variant x quantity. | |
originalUnitPrice | Scalars[‘Money’][‘output’] | The variant price without any discounts applied. | |
originalUnitPriceSet | MoneyBag | The variant price without any discounts applied. | |
product? | Maybe<Product> | (Optional) The product corresponding to the line item’s product variant. | |
quantity | Scalars[‘Int’][‘output’] | The number of product variants that are requested in the draft order. | |
requiresShipping | Scalars[‘Boolean’][‘output’] | Whether physical shipping is required for the variant. | |
sku? | Maybe<Scalars[‘String’][‘output’]> | (Optional) The SKU number of the product variant. | |
taxable | Scalars[‘Boolean’][‘output’] | Whether the variant is taxable. | |
taxLines | Array<TaxLine> | A list of tax line objects, each of which details the total taxes applicable to the order. | |
title | Scalars[‘String’][‘output’] | The title of the product or variant. This field only applies to custom line items. | |
totalDiscount | Scalars[‘Money’][‘output’] | The total value of the discount that’s applied to the line item. | |
totalDiscountSet | MoneyBag | The total value of the discount that’s applied to the line item. | |
variant? | Maybe<ProductVariant> | (Optional) The associated variant for the line item. | |
variantTitle? | Maybe<Scalars[‘String’][‘output’]> | (Optional) The name of the variant. | |
vendor? | Maybe<Scalars[‘String’][‘output’]> | (Optional) The name of the vendor who created the product variant. | |
weight? | Maybe<Weight> | (Optional) The weight unit and value for a draft order line item. |