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
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"
- Production environmenthttps://demandapi.booking.com/3.1/cars/constants
- Sandbox environmenthttps://demandapi-sandbox.booking.com/3.1/cars/constants
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"
]
}'Response
{ "request_id": "01jpvx9va93ghgwxq7zypagvdr", "data": { "depot_services": [ … ], "fuel_policies": [ … ], "fuel_types": [ … ], "general": [ … ], "payment_timings": [ … ], "transmission": [ … ] } }