Car API endpoint
Changed onget/emissions/car
Request
- Base URLhttps://api.travelperk.com
- URLhttps://api.travelperk.com/emissions/car
- AuthAPI key in header Authorization
Query parameters
acriss_codestring
Association of car rental industry systems standards code with length between 4 and 20 symbols.
num_daysinteger
Number of days the car was in use.
distance_per_dayinteger
Optional parameter. Distance per day in km the car was drove. 160km is used when not provided.
Headers
Api-Versioninteger
Use for API versioning. Right now only version 3 is available.
Authorizationstring
API key value obtained in the TK developer portal.
Response
200
Example response
{
"emissions_CO2e": {
"value": 42,
"unit": "kg"
},
"distance": {
"value": 160000,
"unit": "m"
}
}Changes
- info
endpoint added
- info