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