Currency amounts
Technical representation of monetary values in Hyperline
Learn about currencies support in Hyperline.
On the technical side, our APIs always represent currencies using their three-letter ISO 4217 code (see a complete list here), and accept and return integer amounts in the currency’s smallest unit.
For European currencies, this means that amounts are represented in cents. If you want to convert an amount with decimals into its Hyperline’s format you need to multiply it by 100
. For example, an amount of €34.17
(Euro, a two-decimal currency) will be represented in Hyperline as 3417
.
Hyperline also supports zero-decimal currencies and three-decimal currencies. In this case, you need to apply the right multiplier (or none). For example, an amount of F CFA 12065
(West African CFA franc, a zero-decimal currency) will be represented in Hyperline as 12065
.
Was this page helpful?