AlmondTill/G3N API

OrderLine

object type

One embedded Order line — lineNo frozen at placed; money audit server-stamped per write.

Fields

FieldTypeNotes
lineNoInt Int!1-based input position — the cross-document addressing key once placed.
variantIdIDThe sold variant.
inventoryItemIdIDThe resolved (variant × LF) InventoryItem — present ⟺ variantId (price capture + reserve junction).
salePriceIdIDThe SalePrice record whose window governed the capture — present ⟺ variantId (audit provenance).
openItemOrderOpenItemSee [OrderOpenItem](/types/OrderOpenItem/).
storedValueOrderStoredValueThe stored-value payload.
taxCategoryTaxCategory TaxCategory!The resolved tax category — the variant→product→style walk answer, or the open-item/stored-value explicit one.
quantityString String!Positive decimal-string quantity (the stock-UoM grammar; open items unit-counted).
capturedUnitPriceMinorInt Int!The captured unit sale price in minor units.
discountsOrderDiscount [OrderDiscount!]!See [OrderDiscount](/types/OrderDiscount/).
fulfillmentMethodOrderFulfillmentMethod OrderFulfillmentMethod!One of the values of [OrderFulfillmentMethod](/types/OrderFulfillmentMethod/).
nonReturnableBoolean
finalSaleBoolean
restockingFeePpmInt
requiresApprovalToSellBoolean
commissionAgentsOrderCommissionAgent [OrderCommissionAgent!]See [OrderCommissionAgent](/types/OrderCommissionAgent/).
referralCodeString
reservedQtyStringThe live reservation claim stamped by the ecom place — the release entries + the terminal status are the history.
invoicedQtyString
returnedQtyString
fulfillmentClaimedQtyStringCarryout lines claim at the paid-completion delivery.
fulfilledQtyString
relievedQtyStringThe cumulative relieved quantity: stamped by the sell-relief lane in ITS transaction (absent = 0).
warrantyIdsID [ID!]Ref-only — the order-side link; each warranty's parentId is this order and its orderLineNo this line.
sourcingTypeOrderLineSourcingTypeThe sourcing path this special_order line rides.
sourcingDocIdIDThe linked sourcing document (transfer → the TransferRequest; backorder → the PurchaseOrder) — re-stamped only when the linked doc is dead (the re-link retry lane).
sourcingDocLineNoIntThe 1-based line on that doc.
arrivedQtyStringThe 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).
cogsUnitCostMoneyEntryThe per-unit COGS snapshot at relief.
baseMinorInt Int!Step-1 base = round(quantity × capturedUnitPriceMinor), half away from zero.
lineDiscountMinorInt Int!Σ applied line discounts (step 2).
orderDiscountShareMinorInt Int!This line largest-remainder share of the order-level discounts (exact — no lost minor units).
taxableBaseMinorInt Int!base − line discounts − order share (floored at zero) — the taxable base.
lineTotalMinorInt Int!taxableBase + exclusive-regime tax; pre-place = taxableBase.
taxOrderLineTaxThe tax slot — pipeline-written at place; absent while the cart is open/held.