Olery Developer Portal logo Olery Developer Portal

The API both accepts and outputs date values in various places. Whenever a date is used its format must be in ISO-8601 format. Usually only the year, month and day are required or included (in case of output).

An example date is the following:

"2014-10-30"

Here the year is 2014, the month is October and the day is the 30th.

Format Errors

In case an invalid date is specified as input the API will display an error message. The structure of this message is as following:

{
    "error": "The `XXX` parameter should be an ISO-8601 date"
}

Here XXX would be replaced by the name of the field containing the invalid date. When such an error is displayed the HTTP status is set to “400 Bad Syntax”.