This section describes the data types and formats used consistently in Anchor API.
Data type | Description |
---|---|
Amount | Unless 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 code | ISO 4217 currency code, e.g. GBP, EUR, or USD. |
Country code | ISO 3166 alpha-2 country code, e.g. GB, FR, or US. |
Date | Date in YYYY-MM-DD format, e.g. 2021-04-25 |
Datetime | Unless 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 ." |