AlmondTill/G3N API

VendorInvoice

object type

A captured vendor bill: the 3-way match and the landed-cost true-up run from it at capture. NOT a payables subledger. Parent = the PO (the match is per-PO; N invoices per PO are legal — partial-shipment invoicing); invoiceOrgVendorId MAY differ from the PO vendor: ONE construct covers merchandise invoices (match lines) AND cost bills (landed actual components) — either or both, never neither. Capture stamps matchStatus matched|flagged at tolerance zero and posts the landed true-up. The (invoiceOrgVendor x normalized invoice number) uniq pair is the double-pay gate (CONFLICT/IDENTITY_TAKEN naming the holder; a cancelled holder is taken over). captured is the immutable fact (corrections are compensating entries, never un-capture); cancelled is the doomed terminal (lists filter it).

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 VI-… — stable for the record’s life.
typeString String!The kind of record — always VendorInvoice here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of draft, captured or cancelled.
parentIdID ID!The parent PurchaseOrder; for a VendorInvoice 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.
invoiceOrgVendorIdID ID!The billing OrgVendor — may differ from the PO vendor (a carrier/broker billing against this PO); defaults to the PO vendor at create. Immutable at birth (the marker leg).
invoiceNumberString String!The vendor own invoice number (their token, RAW spelling, max 64; the trim+case-fold normalized leg rides the uniq pair marker — the double-pay gate). Immutable at birth.
invoiceDateString String!The vendor invoice date (UTC ISO-8601 — their paper date, not our capture instant).
matchLinesVendorInvoiceMatchLine [VendorInvoiceMatchLine!]The merchandise match lines (<=24, one per PO line) — at-least-one-of with actualComponents (the Contact substance stance).
actualComponentsLandedCostComponent [LandedCostComponent!]The landed-cost actual components (<=8, amounts in the PO currency) — trued-up at capture against the posted receipts estimates of the same component type (first capture of a type consumes its estimates; later bills of that type add compensating deltas).
totalMoneyEntryOptional vendor-stated grand total (informational — the lines/components are the match facts); in the PO currency.
notesStringOptional free-text notes (max 4096).
matchStatusVendorInvoiceMatchStatusCapture-stamped match outcome (absent while draft): flagged never blocked the capture — it IS the approval queue until.
matchFlagsVendorInvoiceMatchFlag [VendorInvoiceMatchFlag!]Capture-stamped discrepancies (first-8 named; port-written, never caller data).

Used by