FxRate
object type
An FX rate window: ONE effective-dated conversion rate record in the tenant schedule, resolved group (default) → org → LF most-specific-wins at every conversion event. Modes: absolute (explicit buy/sell integer-micro rates — the only group-level mode) · adjust (± ppm over the next-less-specific effective rate, both directions, optional fee) · par (1:1). Doom cancels a not-yet-effective future record only (CONFLICT/IMMUTABLE otherwise — supersede instead). The window/pair/mode/rate fields are wire-IMMUTABLE (the edit surface is caption only). Consumed by the foreign_cash tender lane at the BUY side.
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 FX-… — stable for the record’s life. |
type | String String! | The kind of record — always FxRate here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of active or doomed. |
parentId | ID ID! | The level anchor: the org group itself (group level — parentId === rootId), an Organization, or a LogicalFacility. |
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. |
level | String String! | The resolution level this record binds. Stored explicit, validated against the real parent at create; immutable. |
fromCurrency | String String! | The from (tendered/foreign) currency — a platform-registry code inside the anchor organization's allowed set. Immutable — supersede to change. |
toCurrency | String String! | The TO (settlement) currency — the org default currency at resolution; a platform-registry code inside the anchor organization's allowed set. Immutable. |
mode | String String! | The record mode. Immutable. |
buyRateMicro | Int | Absolute only: the rate WE buy the from-currency at, integer micro to-per-from. Immutable. |
sellRateMicro | Int | Absolute only: the rate WE sell the from-currency at, integer micro to-per-from. Immutable. |
adjustPpm | Int | Adjust only: the signed ± ppm applied to both directions (buy AND sell) of the next-less-specific effective rate. Immutable. |
feeMinor | Int | Adjust only, optional: a fee in TO-currency minor units, reducing the credited amount at conversion. Immutable. |
startAt | String String! | The window start (inclusive; UTC ISO-8601) — set at birth (absent in the create input = effective NOW, server-stamped), immutable thereafter. |
endAt | String String! | The window end (exclusive; UTC ISO-8601; always present — far-future = the standing rate). Moves only via the system splice trim. |