Currencies
The currency object
A currency in Paycose's reference directory, with its ISO codes, number of decimal places and formatting hints.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
codestringRequiredThree-letter ISO 4217 code in uppercase, for example
THB.decimalsintegerRequiredNumber of decimal places of the currency's minor unit, for example
2. Amounts in this currency are integers in units of 10^-decimalsof the major unit.explicit_currency_not_aestheticbooleanRequiredFormatting hint: whether the explicit currency is shown for clarity rather than appearance.
hide_code_if_symbol_shownbooleanRequiredFormatting hint: whether to leave out the currency code when the symbol is shown.
lang_enstringRequiredEnglish name of the currency.
lang_itstringRequiredItalian name of the currency.
namestringRequiredName of the currency, for example
Thai Baht.numberintegerRequiredISO 4217 numeric code, for example
764for THB.positionstringRequiredWhere the symbol goes relative to the amount, for example
before.show_currency_explicitlybooleanRequiredFormatting hint: whether to show the currency explicitly next to amounts.
space_between_price_and_symbolbooleanRequiredFormatting hint: whether to put a space between the amount and the symbol.
symbol_decimalstringRequiredCurrency symbol as text, for example
฿.symbol_hexstringRequiredCurrency symbol as an HTML character reference, for example
฿.