Common data structures and their format
Standards
Money
All amounts of money in this API are represented in cents, followed by the currency code defined in ISO 4217. The following example shows how Devengo will represent €150.25
:
{
"value": {
"cents": 15025,
"currency": "EUR"
}
}
Dates
Devengo formats all dates in this API following the ISO 8601 standard.
{
"created_at": "2023-09-23T13:18:02Z"
}
Countries
Devengo uses the alpha-2 code the ISO 3166 standard assigns to every country.
{
"country": "ES"
}