AlmondTill/G3N API

Return

object type

A sales Return / RMA — the customer→merchant goods-back document. 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 human-readable id, shaped like RT-… — stable for the record’s life.
typeString String!The kind of record — always Return here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of requested, approved, received, refunded, closed, cancelled or rejected.
parentIdID ID!The processing/receiving LogicalFacility; rootId = the org group; parentId!== rootId always.
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.
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.
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.
linesReturnLine [ReturnLine!]!The return lines (1..45); each refs an order line by its frozen lineNo.

Used by