Line Item
Requires access scope or
access scope.
The object represents a single product or service that a customer purchased in an
order.
Each line item is associated with a
product variant
and can have multiple discount allocations.
Line items contain details about what was purchased, including the product variant, quantity, pricing,
and fulfillment status.
Use the object to manage the following processes:
- Track the quantity of items ordered, fulfilled, and unfulfilled.
- Calculate prices, including discounts and taxes.
- Manage fulfillment through fulfillment services.
- Manage returns and exchanges.
- Handle subscriptions and recurring orders.
Line items can also include custom attributes and properties, allowing merchants to add specific details about each item in an order. Learn more about managing orders and fulfillment.
Anchor to FieldsFields
- Anchor to contractcontract•Subscription
Contract The subscription contract associated with this line item.
- Anchor to currentQuantitycurrent•Int!
Quantity non-null The number of units ordered, excluding refunded and removed units.
- Anchor to customAttributescustom•[Attribute!]!
Attributes non-null A list of attributes that represent custom features or special requests.
- Anchor to discountAllocationsdiscount•[Discount
Allocations Allocation!]! non-null The discounts that have been allocated to the line item by discount applications, including discounts allocated to refunded and removed quantities.
- Anchor to discountedTotalSetdiscounted•Money
Total Set Bag! non-null The total discounted price of the line item in shop and presentment currencies, including refunded and removed quantities. This value doesn't include order-level discounts. Code-based discounts aren't included by default.
- Anchor to discountedUnitPriceAfterAllDiscountsSetdiscounted•Money
Unit Price After All Discounts Set Bag! non-null The approximate unit price of the line item in shop and presentment currencies. This value includes discounts applied to refunded and removed quantities.
- Anchor to discountedUnitPriceSetdiscounted•Money
Unit Price Set Bag! non-null The approximate unit price of the line item in shop and presentment currencies. This value includes line-level discounts and discounts applied to refunded and removed quantities. It doesn't include order-level or code-based discounts.
- Anchor to dutiesduties•[Duty!]!non-null
The duties associated with the line item.
- •ID!non-null
A globally-unique ID.
- Anchor to imageimage•Image
The image associated to the line item's variant.
- Anchor to isGiftCardis•Boolean!
Gift Card non-null Whether the line item represents the purchase of a gift card.
- Anchor to lineItemGroupline•Line
Item Group Item Group The line item group associated to the line item.
- Anchor to merchantEditablemerchant•Boolean!
Editable non-null Whether the line item can be edited or not.
- Anchor to namename•String!non-null
The title of the product, optionally appended with the title of the variant (if applicable).
- Anchor to nonFulfillableQuantitynon•Int!
Fulfillable Quantity non-null The total number of units that can't be fulfilled. For example, if items have been refunded, or the item is not something that can be fulfilled, like a tip. Please see the FulfillmentOrder object for more fulfillment details.
- Anchor to originalTotalSetoriginal•Money
Total Set Bag! non-null In shop and presentment currencies, the total price of the line item when the order was created. This value doesn't include discounts.
- Anchor to originalUnitPriceSetoriginal•Money
Unit Price Set Bag! non-null In shop and presentment currencies, the unit price of the line item when the order was created. This value doesn't include discounts.
- Anchor to productproduct•Product
The Product object associated with this line item's variant.
- Anchor to quantityquantity•Int!non-null
The number of units ordered, including refunded and removed units.
- Anchor to refundableQuantityrefundable•Int!
Quantity non-null The number of units ordered, excluding refunded units and removed units.
- Anchor to requiresShippingrequires
Shipping