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
| 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 RT-… — stable for the record’s life. |
type | String String! | The kind of record — always Return here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of requested, approved, received, refunded, closed, cancelled or rejected. |
parentId | ID ID! | The processing/receiving LogicalFacility; rootId = the org group; parentId!== rootId always. |
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. |
orderId | ID ID! | The returned Order. |
invoiceId | ID | Optional Invoice ref (receipted returns) — belongs to orderId, gated at create. |
organizationId | ID ID! | The selling Organization (copied from the Order at create — attribution). |
currency | String String! | The order currency. |
customer | OrderCustomer | The order's inline customer capture, copied at create (identity on the RMA — audit). |
refundTotalMinor | Int | Receive-stamped: Σ line refundMinor — the total owed back (absent until received). |
refund | ReturnRefund | Refund-stamped: the routing record. |
lines | ReturnLine [ReturnLine!]! | The return lines (1..45); each refs an order line by its frozen lineNo. |