OrderLine
object type
One embedded Order line — lineNo frozen at placed; money audit server-stamped per write.
Fields
| Field | Type | Notes |
|---|---|---|
lineNo | Int Int! | 1-based input position — the cross-document addressing key once placed. |
variantId | ID | The sold variant. |
inventoryItemId | ID | The resolved (variant × LF) InventoryItem — present ⟺ variantId (price capture + reserve junction). |
salePriceId | ID | The SalePrice record whose window governed the capture — present ⟺ variantId (audit provenance). |
openItem | OrderOpenItem | See [OrderOpenItem](/types/OrderOpenItem/). |
storedValue | OrderStoredValue | The stored-value payload. |
taxCategory | TaxCategory TaxCategory! | The resolved tax category — the variant→product→style walk answer, or the open-item/stored-value explicit one. |
quantity | String String! | Positive decimal-string quantity (the stock-UoM grammar; open items unit-counted). |
capturedUnitPriceMinor | Int Int! | The captured unit sale price in minor units. |
discounts | OrderDiscount [OrderDiscount!]! | See [OrderDiscount](/types/OrderDiscount/). |
fulfillmentMethod | OrderFulfillmentMethod OrderFulfillmentMethod! | One of the values of [OrderFulfillmentMethod](/types/OrderFulfillmentMethod/). |
nonReturnable | Boolean | |
finalSale | Boolean | |
restockingFeePpm | Int | |
requiresApprovalToSell | Boolean | |
commissionAgents | OrderCommissionAgent [OrderCommissionAgent!] | See [OrderCommissionAgent](/types/OrderCommissionAgent/). |
referralCode | String | |
reservedQty | String | The live reservation claim stamped by the ecom place — the release entries + the terminal status are the history. |
invoicedQty | String | |
returnedQty | String | |
fulfillmentClaimedQty | String | Carryout lines claim at the paid-completion delivery. |
fulfilledQty | String | |
relievedQty | String | The cumulative relieved quantity: stamped by the sell-relief lane in ITS transaction (absent = 0). |
warrantyIds | ID [ID!] | Ref-only — the order-side link; each warranty's parentId is this order and its orderLineNo this line. |
sourcingType | OrderLineSourcingType | The sourcing path this special_order line rides. |
sourcingDocId | ID | The linked sourcing document (transfer → the TransferRequest; backorder → the PurchaseOrder) — re-stamped only when the linked doc is dead (the re-link retry lane). |
sourcingDocLineNo | Int | The 1-based line on that doc. |
arrivedQty | String | The cumulative arrived quantity: stamped by the arrival follow-ups (receiveTransfer / the Receipt post) in their per-order transactions; on_hand landings only; the line is arrived when arrivedQty ≥ quantity (absent = 0). |
cogsUnitCost | MoneyEntry | The per-unit COGS snapshot at relief. |
baseMinor | Int Int! | Step-1 base = round(quantity × capturedUnitPriceMinor), half away from zero. |
lineDiscountMinor | Int Int! | Σ applied line discounts (step 2). |
orderDiscountShareMinor | Int Int! | This line largest-remainder share of the order-level discounts (exact — no lost minor units). |
taxableBaseMinor | Int Int! | base − line discounts − order share (floored at zero) — the taxable base. |
lineTotalMinor | Int Int! | taxableBase + exclusive-regime tax; pre-place = taxableBase. |
tax | OrderLineTax | The tax slot — pipeline-written at place; absent while the cart is open/held. |