DraftOrderLineItem - admin-graphql - OBJECT
Version: 2024-01
Description:
The line item for a draft order.
Access Scopes
`read_draft_orders` access scope.
Fields
appliedDiscount :
DraftOrderAppliedDiscount -
The custom applied discount.
custom :
Boolean! -
Whether the line item is custom (`true`) or contains a product variant (`false`).
customAttributes :
Attribute! -
A list of attributes that represent custom features or special requests.
customAttributesV2 :
TypedAttribute! -
The list of additional information (metafields) with the associated types.
discountedTotal :
Money! -
The line item price, in shop currency, after discounts are applied.
discountedTotalSet :
MoneyBag! -
The total price with discounts applied.
discountedUnitPrice :
Money! -
The `discountedTotal` divided by `quantity`, equal to the value of the discount per unit in the shop currency.
discountedUnitPriceSet :
MoneyBag! -
The unit price with discounts applied.
fulfillmentService :
FulfillmentService -
Name of the service provider who fulfilled the order.
Valid values are either **manual** or the name of the provider.
For example, **amazon**, **shipwire**.
Deleted fulfillment services will return null.
grams :
Int -
The weight of the line item in grams.
id :
ID! -
A globally-unique ID.
image :
Image -
The image of the product variant.
isGiftCard :
Boolean! -
Whether the line item represents the purchase of a gift card.
name :
String! -
The name of the product.
originalTotal :
Money! -
The total price, in shop currency, excluding discounts, equal to the original unit price multiplied by quantity.
originalTotalSet :
MoneyBag! -
The total price excluding discounts, equal to the original unit price multiplied by quantity.
originalUnitPrice :
Money! -
The price, in shop currency, without any discounts applied.
originalUnitPriceSet :
MoneyBag! -
The price without any discounts applied.
product :
Product -
The product for the line item.
quantity :
Int! -
The quantity of items. For a bundle item, this is the quantity of bundles,
not the quantity of items contained in the bundles themselves.
requiresShipping :
Boolean! -
Whether physical shipping is required for the variant.
sku :
String -
The SKU number of the product variant.
taxLines :
TaxLine! -
A list of tax lines.
taxable :
Boolean! -
Whether the variant is taxable.
title :
String! -
The title of the product or variant. This field only applies to custom line items.
totalDiscount :
Money! -
The total discount applied in shop currency.
totalDiscountSet :
MoneyBag! -
The total discount amount.
variant :
ProductVariant -
The product variant for the line item.
variantTitle :
String -
The name of the variant.
vendor :
String -
The name of the vendor who created the product variant.
weight :
Weight -
The weight unit and value.
Connections
Related queries
Related mutations
Related Unions
Examples