Car API endpoint

Changed on
get/emissions/car

Request

  • Base URL
    https://api.travelperk.com
  • URL
    https://api.travelperk.com/emissions/car
  • Auth
    API 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