CreditNote
object type
A CreditNote — the reducing corrective document for an issued, immutable Invoice: a NEW document carrying the signed delta (every figure strictly negative — the sign lives on the document), never an edit. The tax delta recomputes over the invoice line's captured components (a correction re-prices the same fact, not a new sourcing) — a full credit mirrors the original figures exactly. Over-credit refuses per line strict (taxableBase + Σ prior signed deltas ≥ 0). NO inventory movement — a goods-back is a Return. AR effects =; fiscalization seq/sig = (named deferrals).
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like CR-… — stable for the record’s life. |
type | String String! | The kind of record — always CreditNote here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of issued, closed or voided. |
parentId | ID ID! | The corrected Invoice's parent — the LF or org: an order-context sibling of the invoice it corrects (the invoiceId ref binds); for a CreditNote parentId!== rootId. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
invoiceId | ID ID! | The superseded Invoice. |
orderId | ID ID! | The invoiced Order (copied from the invoice — the document-graph audit chain). |
organizationId | ID ID! | The selling Organization (copied — attribution). |
currency | String String! | The invoice currency (copied — deltas re-price the same fact in the same currency). |
reason | String String! | The required audit reason. |
settlementState | String String! | The settlement rollup — born unsettled (the / writers widen it; dormant). |
baseDeltaTotalMinor | Int Int! | Σ line base deltas (signed — strictly negative here). |
taxDeltaTotalMinor | Int Int! | Σ line tax deltas (signed — the recompute mirror). |
totalDeltaMinor | Int Int! | Σ line total deltas (signed) — the note's net effect on what the customer owes. |
lines | NoteDeltaLine [NoteDeltaLine!]! | The signed delta lines (1..45; every base delta strictly negative — the reducing arm). |