Line Item
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.
- Anchor to customAttributescustom•[Attribute!]!
Attributes non-nullPre-auth accessible The list of custom attributes associated with the line item.
- Anchor to discountAllocationsdiscount•[Discount
Allocations Allocation!]! non-nullPre-auth accessible The discounts that have been allocated onto the line item by discount applications.
- Anchor to giftCardgift•Boolean!
Card non-nullPre-auth accessible 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.
- •ID!non-nullPre-auth accessible
A globally-unique ID.
- Anchor to imageimage•Image
The image object associated with the line item.
- Anchor to namename•String!non-nullPre-auth accessible
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.
- Anchor to productIdproduct•ID
Id The product's ID.
- Anchor to productTypeproduct•String
Type The product's type.
- Anchor to quantityquantity•Int!non-nullPre-auth accessible
The number of variant items ordered.
- Anchor to refundableQuantityrefundable•Int!
Quantity non-nullPre-auth accessible The quantity of the line item, minus the refunded quantity.
- Anchor to requiresShippingrequires•Boolean!
Shipping non-nullPre-auth accessible 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.- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to titletitle•String!non-nullPre-auth accessible
The title of the product or variant. This field only applies to custom line items.
- Anchor to totalDiscounttotal•Money
Discount V2! non-nullPre-auth accessible The total of the discount allocations on this line item, resulting from discounts applied specifically to this line item.
- 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.
- Anchor to unitPriceunit•Unit
Price Price The unit price of the line item in presentment currencies.
- Anchor to variantIdvariant•ID
Id The ID of the variant.
- Anchor to variantOptionsvariant•[Line
Options Item Variant Option!] The options of the product variant.
- Anchor to variantTitlevariant•String
Title The name of the variant.
- Anchor to vendorvendor•String
The product's vendor.