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
| Field | Type | Notes |
|---|---|---|
lineNo | Int Int! | 1-based position within THIS invoice. |
orderLineNo | Int Int! | The invoiced order line's frozen lineNo — the (orderId, orderLineNo) cross-document coordinate. |
variantId | ID | The sold variant (copied — XOR openItemDescription). |
openItemDescription | String | The open-item description (copied — XOR variantId). |
taxCategory | TaxCategory TaxCategory! | The order line's resolved tax category (copied — the recompute coordinate). |
quantity | String String! | The INVOICED quantity (positive decimal string; ≤ the un-invoiced remainder at issue). |
capturedUnitPriceMinor | Int Int! | The captured unit sale price in minor units (copied VERBATIM — a per-unit fact). |
baseMinor | Int Int! | DERIVED: taxableBase + lineDiscount + orderDiscountShare (the identity holds by construction). |
lineDiscountMinor | Int Int! | No further notes. |
orderDiscountShareMinor | Int Int! | No further notes. |
taxableBaseMinor | Int Int! | This invoice's telescoping share of the order line's taxable base — the note-delta axis. |
lineTotalMinor | Int Int! | DERIVED mode-aware: exclusive ⇒ taxableBase + tax; inclusive ⇒ taxableBase (tax inside). |
tax | OrderLineTax OrderLineTax! | The tax snapshot — the order line's slot with each component's taxMinor telescoping-prorated (rates/refs verbatim). |
notedBaseDeltaMinor | Int | The cumulative SIGNED note deltas addressed to this line (absent = 0; CreditNotes subtract, DebitNotes add) — stamped by note issue/void, never caller data. |