AlmondTill/G3N API

InvoiceLine

object type

One IMMUTABLE Invoice line — the issue-time snapshot of ONE order line's captured facts for the invoiced quantity; money figures are EXACT cumulative-telescoping shares (a full invoicing sums to the order line exactly, per component).

Fields

FieldTypeNotes
lineNoInt Int!1-based position within THIS invoice.
orderLineNoInt Int!The invoiced order line's frozen lineNo — the (orderId, orderLineNo) cross-document coordinate.
variantIdIDThe sold variant (copied — XOR openItemDescription).
openItemDescriptionStringThe open-item description (copied — XOR variantId).
taxCategoryTaxCategory TaxCategory!The order line's resolved tax category (copied — the recompute coordinate).
quantityString String!The INVOICED quantity (positive decimal string; ≤ the un-invoiced remainder at issue).
capturedUnitPriceMinorInt Int!The captured unit sale price in minor units (copied VERBATIM — a per-unit fact).
baseMinorInt Int!DERIVED: taxableBase + lineDiscount + orderDiscountShare (the identity holds by construction).
lineDiscountMinorInt Int!No further notes.
orderDiscountShareMinorInt Int!No further notes.
taxableBaseMinorInt Int!This invoice's telescoping share of the order line's taxable base — the note-delta axis.
lineTotalMinorInt Int!DERIVED mode-aware: exclusive ⇒ taxableBase + tax; inclusive ⇒ taxableBase (tax inside).
taxOrderLineTax OrderLineTax!The tax snapshot — the order line's slot with each component's taxMinor telescoping-prorated (rates/refs verbatim).
notedBaseDeltaMinorIntThe cumulative SIGNED note deltas addressed to this line (absent = 0; CreditNotes subtract, DebitNotes add) — stamped by note issue/void, never caller data.