AlmondTill/G3N API

NewStoredValueInstrumentInput

input type

Create-input for the direct instrument lanes. Dual-birth by initialBalanceMinor: present = immediate active (the issue entry rides the create transaction; reason required — money is born); absent = staged inactive stock (code required — the plastic carries its number).

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the instrumentType + the normalized code; when supplied it must be non-blank.
organizationIdID ID!yesThe issuing org (in-tenant + active) — its defaultCurrency stamps the instrument.
instrumentTypeStoredValueInstrumentType StoredValueInstrumentType!yesOne of the values of [StoredValueInstrumentType](/types/StoredValueInstrumentType/).
codeStringnoThe RAW code (1..64 pre-normalization) — required on the staged arm (printed stock carries its number); omitted on the immediate arm = system-minted.
reloadableBooleannogift_card only; refused on certificate/credit (strict both ways).
initialBalanceMinorIntnoPresent = immediate-active birth loading this value (the issue entry rides the transaction); absent = staged inactive stock.
customerOrderCustomerInputnoRequired on store_credit; optional bearer-binding on gift instruments.
reasonStringnoRequired on the immediate-active arm.

Used by