Skip to content

Car constants

Request

This endpoint returns a list of relevant car constants names in the specified languages. For example, calling with the parameters {"languages":"en-us","fr"} will return the list in English (US) and French. To retrieve the full list, make the request with an empty body.

Security
BearerAuth
Headers
X-Affiliate-Idintegerrequired

Include here your Affiliate identifier number

Bodyapplication/json
constantsArray of strings

A list of car rental constant types to filter the results by. This allows you to narrow down the result based on particular criteria, such as fuel_policy, payment_timings etc.

Items Enum:"depot_services""fuel_policies""fuel_types""general""payment_timings""transmission"
languagesArray of strings
Default:["en-gb"]
curl -i -X POST \
  https://demandapi.booking.com/3.1/cars/constants \
  -H 'Authorization: Bearer <YOUR_string_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-Affiliate-Id: 0' \
  -d '{
    "languages": [
      "de",
      "en-gb"
    ]
  }'

Responses

Successful response.

Bodyapplication/json
request_idstring

Uniquely identifies the request. Please provide this identifier when contacting support.

dataobject(ConstantsDataOutput)
Response
{ "request_id": "01jpvx9va93ghgwxq7zypagvdr", "data": { "depot_services": [], "fuel_policies": [], "fuel_types": [], "general": [], "payment_timings": [], "transmission": [] } }