Skip to Content
Paycose Docs
Currencies

Currencies

The currency object

A currency in Paycose's reference directory, with its ISO codes, number of decimal places and formatting hints.

Attributes

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • updatedtimestampRequired

    Time the object last changed, in Unix seconds.

  • codestringRequired

    Three-letter ISO 4217 code in uppercase, for example THB.

  • decimalsintegerRequired

    Number of decimal places of the currency's minor unit, for example 2. Amounts in this currency are integers in units of 10^-decimals of the major unit.

  • explicit_currency_not_aestheticbooleanRequired

    Formatting hint: whether the explicit currency is shown for clarity rather than appearance.

  • hide_code_if_symbol_shownbooleanRequired

    Formatting hint: whether to leave out the currency code when the symbol is shown.

  • lang_enstringRequired

    English name of the currency.

  • lang_itstringRequired

    Italian name of the currency.

  • namestringRequired

    Name of the currency, for example Thai Baht.

  • numberintegerRequired

    ISO 4217 numeric code, for example 764 for THB.

  • positionstringRequired

    Where the symbol goes relative to the amount, for example before.

  • show_currency_explicitlybooleanRequired

    Formatting hint: whether to show the currency explicitly next to amounts.

  • space_between_price_and_symbolbooleanRequired

    Formatting hint: whether to put a space between the amount and the symbol.

  • symbol_decimalstringRequired

    Currency symbol as text, for example ฿.

  • symbol_hexstringRequired

    Currency symbol as an HTML character reference, for example ฿.