Skip to main content

Standards

To facilitate integration and ensure information integrity, some standards have been defined that are followed throughout the API.

Monetary Values

Examples:

10000
12345
98741
1223
1
0

Values must be sent as integers in cents.

Date and Time with Time Zone

Some examples:

2019-10-15T22:35:12-03:00
2018-05-01T13:32:11+00:00
2019-05-01T00:00:00+00:00

It is represented according to ISO 8601. In this case, the time zone is placed immediately after the time and must represent the time zone of the location where that data will be valid. For example, if a rental is scheduled to start at 09:30 at Brasília airport, the time sent must be represented as 09:30-03:00; if the rental is scheduled to start at 09:30 in Manaus, it must be represented as 09:30-04:00.

The mask used for validation is as follows:

YYYY-MM-ddThh:mm:ss±hh:mm

Date and Time without Time Zone

Some examples:

2019-10-15T22:35:12Z
2018-05-01T13:32:11Z
2019-05-01T00:00:00Z

It is represented according to ISO 8601. Data that is independent of time zones must be sent without it, always in UTC, with the letter Z indicating that this data is in UTC. The following format, therefore, will be validated:

YYYY-MM-ddThh:mm:ssZ

Date

Some examples:

2019-10-15
2019-01-01
2017-03-20

In the case of fields that receive only a date, a date of birth for example, only the date, without any time, must be sent in the following format:

YYYY-MM-dd