Przejdź do głównej zawartości

OrderLineItem

Order line item with variant snapshot and live enrichment

type OrderLineItem {
digitalDownloads: [DigitalDownload!]!
discountAllocations: [OrderDiscountAllocation!]!
id: ID!
originalTotalPrice: Money!
originalUnitPrice: Money!
quantity: Int!
quantityFulfilled: Int!
refundableQuantity: Int!
title: String!
variant: ProductVariant
}

Fields

OrderLineItem.digitalDownloads ● [DigitalDownload!]! non-null object

Digital content bought together with this line item. Empty list for a physical product. The file is not addressable here — a single-use link is issued by the digitalDownloadLinkCreate mutation. Resolved lazily.

OrderLineItem.discountAllocations ● [OrderDiscountAllocation!]! non-null object

Discount amounts applied to this line, one entry per discount code that reduced it — the order-side counterpart of CartLine.discountAllocations, frozen at checkout. Empty when no code discounts this line or the order predates per-line snapshots. Amounts across all lines sum to the order-level discount. originalTotalPrice is not reduced by these amounts.

OrderLineItem.id ● ID! non-null scalar

Unique identifier

OrderLineItem.originalTotalPrice ● Money! non-null object

Line total captured at purchase time (unitPrice × quantity, minor units)

OrderLineItem.originalUnitPrice ● Money! non-null object

Unit price captured at purchase time (minor units, includes BUNDLED surcharges)

OrderLineItem.quantity ● Int! non-null scalar

Quantity ordered (snapshot from checkout)

OrderLineItem.quantityFulfilled ● Int! non-null scalar

Quantity already fulfilled (shipped — per-item fulfillment tracking)

OrderLineItem.refundableQuantity ● Int! non-null scalar

Quantity still eligible for return/refund (quantity − returnedQuantity, clamped ≥ 0). Industry-standard semantics for refund tracking.

OrderLineItem.title ● String! non-null scalar

Product name captured at purchase time (snapshot). Not the live Product.name — preserved even after the product is edited (invoice compliance).

OrderLineItem.variant ● ProductVariant object

Live product variant (fresh image/price). Null when the variant was deleted after purchase — consumers should fall back to title.

Member Of

OrderLineItemConnection object ● OrderLineItemEdge object