Line Item
Requires access scope.
A single line item in an order.
Anchor to FieldsFields
- currentTotalPrice (MoneyV2)
- customAttributes ([Attribute!]!)
- discountAllocations ([DiscountAllocation!]!)
- giftCard (Boolean!)
- group (LineItemGroup)
- id (ID!)
- image (Image)
- name (String!)
- presentmentTitle (String)
- price (MoneyV2)
- productId (ID)
- productType (String)
- quantity (Int!)
- refundableQuantity (Int!)
- requiresShipping (Boolean!)
- sku (String)
- suggestedReturnReasonDefinitions (ReturnReasonDefinitionConnection)
- title (String!)
- totalDiscount (MoneyV2!)
- totalPrice (MoneyV2)
- unitPrice (UnitPrice)
- variantId (ID)
- variantOptions ([LineItemVariantOption!])
- variantTitle (String)
- vendor (String)
- Anchor to currentTotalPricecurrent•Money
Total Price V2 The total price of the line item, calculated by multiplying the current unit price of the variant by the quantity, expressed in presentment currencies.
Show fields
- Anchor to customAttributescustom•[Attribute!]!
Attributes non-null The list of custom attributes associated with the line item.
Show fields
- Anchor to discountAllocationsdiscount•[Discount
Allocations Allocation!]! non-null The discounts that have been allocated onto the line item by discount applications.
Show fields
- Anchor to giftCardgift•Boolean!
Card non-null Whether the line item represents the purchase of a gift card.
- Anchor to groupgroup•Line
Item Group The line item group associated to the line item.
Show fields
- •ID!non-null
A globally-unique ID.
- Anchor to imageimage•Image
The image object associated with the line item.
Show fields
- Anchor to namename•String!non-null
The name of the product.
- Anchor to presentmentTitlepresentment•String
Title The title of the line item variant.
- Anchor to priceprice•Money
V2 The product variant price without any discounts applied, in presentment currencies.
Show fields
- Anchor to productIdproduct•ID
Id The product's ID.
- Anchor to productTypeproduct•String
Type The product's type.
- Anchor to quantityquantity•Int!non-null
The number of variant items ordered.
- Anchor to refundableQuantityrefundable•Int!
Quantity non-null The quantity of the line item, minus the refunded quantity.
- Anchor to requiresShippingrequires•Boolean!
Shipping non-null Whether physical shipping is required for the variant.
- •String
The SKU number of the variant.
- Anchor to suggestedReturnReasonDefinitionssuggested•Return
Return Reason Definitions Reason Definition Connection Return reasons suggested based on the line item's product category in Shopify's product taxonomy. These are a curated subset of the full library of available reasons via the
query.Show fields
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to titletitle•String!non-null
The title of the product or variant. This field only applies to custom line items.
- Anchor to totalDiscounttotal•Money
Discount V2! non-null The total of the discount allocations on this line item, resulting from discounts applied specifically to this line item.
Show fields
- Anchor to totalPricetotal•Money
Price V2 The total price of the line item, calculated by multiplying the current unit price of the variant by the quantity, expressed in presentment currencies.
Show fields
- Anchor to unitPriceunit•Unit
Price Price The unit price of the line item in presentment currencies.
Show fields
- Anchor to variantIdvariant•ID
Id The ID of the variant.
- Anchor to variantOptionsvariant•[Line
Options Item Variant Option!] The options of the product variant.
Show fields
- Anchor to variantTitlevariant•String
Title The name of the variant.
- Anchor to vendorvendor•String
The product's vendor.