Currencies
A guide explainer on the currency format of returned API transactional values.
Overview​
Amount responses sent across all of Zeeh's APIs are returned in the smallest possible unit of the respective country as an integer value, and not as a float value.
API amount responses for Nigeria bank connections for example are all returned in Kobo and not in Naira. E.g When an amount returns a value of 50000, it's the kobo value that is been returned. You can then go ahead to divide this amount by 100 so as to get the respective value which is a 500.00 naira.
i.e 50000 kobo / 100 = NGN 500
The same will be applied to all of our upcoming supported countries (Ghana, Kenya & South Africa). Taking Ghana for instance, when any amount value returns 100000 for instance, the value thene will depicts 100000 pesewas. Going ahead to divide this by 100 will give you 1,000 Ghana cedis.
Integer Representation of a Currency​
Currency | Unit Currency | Desired Value | Expected Value |
---|---|---|---|
Nigeria | Kobo | NGN 1,000 | 100000 Kobo |