Retrieve the full, structured terms and conditions for one or more car rental orders.
The response contains hierarchical legal content organised into chapters containing nested sections, clauses, sub-clauses, and clause options.
Use cases: -Displaying full rental contract details to travellers. -Providing terms and conditions on order detail pages. -Recreating the booking voucher terms section. -Supporting legal and compliance requirements.
Notes: -Include at least one order ID. Invalid IDs will return null. -Language defaults to English if not specified or unsupported. Language uses an ISO 639-1 language code (for example en-gb). -You can optionally filter the response to return only voucher-required terms.
Optional. An ISO 639-1 language code (e.g. 'en-gb', 'es') indicating the preferred language for the terms and conditions.
An array of car rental order IDs for which to retrieve terms and conditions. Must include at least one valid ID.
[ "765255700" ]
- https://demandapi.booking.com/3.2https://demandapi.booking.com/3.2/orders/details/cars/terms-and-conditions
- https://demandapi-sandbox.booking.com/3.2https://demandapi-sandbox.booking.com/3.2/orders/details/cars/terms-and-conditions
import requests
url = "https://demandapi.booking.com/3.2/orders/details/cars/terms-and-conditions"
payload = {
"booker": {
"country": "gb"
},
"language": "en-gb",
"orders": [
"765255700",
"invalid_order"
],
"filters": {
"voucher": True
}
}
headers = {
"Content-Type": "application/json",
"X-Affiliate-Id": "0",
"Authorization": "Bearer <YOUR_string_HERE>"
}
response = requests.post(url, json=payload, headers=headers)
data = response.json()
print(data)Successful response containing terms and conditions for requested orders. Invalid IDs return null.
{ "request_id": "123456789", "data": { "765255700": { … }, "invalid_order": { … } } }