Data types

This section describes the data types and formats used consistently in Anchor API.

Data typeDescription
AmountUnless specified otherwise, all amounts are presented as absolute values, expressed as integers in the smallest unit of the currency.

In the case of the Nigerian Naira, the smallest unit is kobo. So, N20 is depicted as 2000.
Similarly, for the US Dollar, the smallest unit is cents. Hence, $20 is indicated as 2000.
Currency codeISO 4217 currency code, e.g. GBP, EUR, or USD.
Country codeISO 3166 alpha-2 country code, e.g. GB, FR, or US.
DateDate in YYYY-MM-DD format, e.g. 2021-04-25
DatetimeUnless specified otherwise, Anchor employs Coordinated Universal Time (UTC) for date and time representation, utilising the ISO 8601 format YYYY-MM-DDTHH:mm:ssZ, for instance, 2021-04-25T17:22:18+0000."