AlmondTill/G3N API

DebitNote

object type

A DebitNote — the increasing corrective twin of the CreditNote (customer owes more — an undercharge correction, post-billing freight, an upward price adjustment): identical lifecycle + delta mechanics, opposite sign (every figure strictly positive). The tax delta recomputes over the invoice line's captured components; NO over-credit ceiling (an increase raises the invoice's remaining net — the CreditNote guard reads the raised headroom via the same cumulative stamps). NO inventory movement. Reuses the CreditNote's NoteDeltaLine/NoteDeltaTaxComponent SDL types (the /VendorInvoice entry-order precedent).

Fields

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like DN-… — stable for the record’s life.
typeString String!The kind of record — always DebitNote here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of issued, closed or voided.
parentIdID ID!The corrected Invoice's parent — the LF or org: an order-context sibling (the invoiceId ref binds); for a DebitNote parentId!== rootId.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID 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.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
invoiceIdID ID!The superseded Invoice.
orderIdID ID!The invoiced Order (copied from the invoice — the document-graph audit chain).
organizationIdID ID!The selling Organization (copied — attribution).
currencyString String!The invoice currency (copied — deltas re-price the same fact in the same currency).
reasonString String!The required audit reason.
settlementStateString String!The settlement rollup — born unsettled (the / writers widen it; dormant).
baseDeltaTotalMinorInt Int!Σ line base deltas (signed — strictly positive here).
taxDeltaTotalMinorInt Int!Σ line tax deltas (signed — the recompute mirror).
totalDeltaMinorInt Int!Σ line total deltas (signed) — the note's net effect on what the customer owes.
linesNoteDeltaLine [NoteDeltaLine!]!The signed delta lines (1..45; every base delta strictly positive — the increasing arm).

Used by