AlmondTill/G3N API

Return

object type

A sales Return / RMA — the customer→merchant goods-back document (distinct from vendor RTV; the disjoint law: a billing correction is a CreditNote/DebitNote, never a Return). References the original Order (+ optionally one of its Invoices); returns WHOLE units of order lines; receive posts per-line disposition legs at the RECEIVING LF and stamps the telescoping refund money; refund RECORDS the routing (tender mechanics; store-credit issuance).

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 group-scoped human-facing system id (RT-…).
typeString String!The kind of record — always Return here.
captionString String!The record’s display name — what people see it called.
statusString String!The FSM state: requested | approved | received | refunded | closed | cancelled | rejected.
parentIdID ID!The processing/receiving LogicalFacility; rootId = the org group; parentId!== rootId always.
rootIdID ID!The org-group family root.
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 OCC revision token — supply it on every mutation of this record; rotates on every write.
refCaptionsRefCaption [RefCaption!]!The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption.
orderIdID ID!The returned Order.
invoiceIdIDOptional Invoice ref (receipted returns) — belongs to orderId, gated at create.
organizationIdID ID!The selling Organization (copied from the Order at create — attribution).
currencyString String!The order currency (copied at create; refunds never cross currency).
customerOrderCustomerThe order's inline customer capture, copied at create (identity on the RMA — audit).
refundTotalMinorIntRECEIVE-stamped: Σ line refundMinor — the total owed back (absent until received).
refundReturnRefundREFUND-stamped: the routing record (amount = refundTotalMinor; state = the FSM).
linesReturnLine [ReturnLine!]!The return lines (1..45); each refs an order line by its frozen lineNo.

Used by