AlmondTill/G3N API

NewFxRateInput

input type

Create-input for an FxRate. The tenant (org group) is derived SERVER-SIDE from the principal; the LEVEL is named by the anchor field: BOTH absent = a group-level record, organizationId = an org override, logicalFacilityId = an LF override (naming both refuses). The anchor is tenant-scoped server-side and must be ACTIVE; BOTH currencies must be in the minor-unit registry (VALIDATION/UNSUPPORTED_CURRENCY naming the side); group-level records must be absolute; startAt is optional (absent = effective NOW, server-stamped; explicit values must be >= the server now — no past starts) and must precede endAt.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the window coordinate <from>/<to> <mode payload> from <startAt>; when supplied it must be non-blank.
organizationIdIDnoThe org anchor for an ORG-level override — tenant-scoped server-side; absent (with logicalFacilityId absent) = a GROUP-level record.
logicalFacilityIdIDnoThe LF anchor for an LF-level override — tenant-scoped server-side; never together with organizationId.
fromCurrencyString String!yesThe FROM (tendered/foreign) currency — must be in the minor-unit registry.
toCurrencyString String!yesThe TO (settlement) currency — must be in the registry; must differ from fromCurrency.
modeString String!yesabsolute (buy+sell required) | adjust (adjustPpm required, feeMinor optional; org/LF only) | par (no rate fields; org/LF only).
buyRateMicroIntnoABSOLUTE only — integer micro to-per-from (1.25 = 1250000).
sellRateMicroIntnoABSOLUTE only — integer micro to-per-from.
adjustPpmIntnoADJUST only — SIGNED, non-zero, ±500000 (±50%).
feeMinorIntnoADJUST only, optional — TO-currency minor units, reducing the credited amount.
startAtStringnoThe window start (INCLUSIVE; UTC ISO-8601). Optional — absent = effective NOW (server-stamped); explicit values must be >= the server now (no past starts).
endAtString String!yesThe window end (EXCLUSIVE; UTC ISO-8601). ALWAYS required (far-future = the standing rate); must be strictly after startAt.

Used by