Car Hire Booking API is the car-rental API in the HBX Group API ecosystem. It covers the pre-booking phase — availability search and rate re-validation — and returns the rateKey that is later consumed by the Bundle Pre-Confirmation endpoint to confirm a car-hire service together with hotels, activities, and transfers in a single booking.
The confirmation step is not called directly on Car Hire Booking API: once you obtain a valid rateKey via Availability (and optionally re-validate it with Booking Check), you pass it to the Bundle API, which manages the end-to-end booking lifecycle (confirmation, cancellation, modification, voucher).
Related — Car Hire Content Service. Car Hire Booking API responses return location and equipment codes (country, destination, zone, office, special equipment, …) but not their descriptive names. To enrich availability and booking responses with the corresponding human-readable content — and to resolve the office codes used asdepartureCode/arrivalCodein the Availability request — integrate with the Car Hire Content Service.
Car Hire API methods
Car Hire Booking API uses two methods during the pre-booking phase:
Availability and Booking Check. All endpoints are served under the base path /carhire-booking-api/1.0
POST /carhire-booking-api/1.0/availability
This method is used to search cars available between a pickup and a drop-off point for a given date range. It returns a paginated list of available cars with final prices, applicable fees, special equipment options and cancellation policies. Each result exposes a rateKey that can be used in the Booking Check call or submitted directly to the Bundle Pre-Confirmation endpoint.
Filters, sorting, and pagination can be applied before sending the request to narrow down results by category, supplier, car features, etc.
Headers
| Header | Required | Description |
|---|---|---|
Api-Key |
Yes | Authorisation key provided by HBX Group. |
X-User |
Yes | Identifier of the end user performing the search. |
Accept |
Yes | Must be application/json. |
Content-Type |
Yes | Must be application/json. |
Query parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
bypassCache |
No | false |
When true, forces a fresh availability lookup bypassing the cache. Use only when strictly needed; cached responses are faster and cheaper. |
Request body — CarAvailabilityRequestDto
| Field | Type | Required | Description |
|---|---|---|---|
sessionId |
string | Yes | Unique session identifier. Group all related availability/check calls under the same sessionId. |
language |
string | Yes | ISO language code for localised texts (e.g. CAS, ENG). |
sourceMarket |
string | Yes | ISO country code of the market the user is booking from (e.g. ES). |
initDate |
string (date-time) | Yes | Pickup date and time (YYYY-MM-DDTHH:mm:ss). |
endDate |
string (date-time) | Yes | Drop-off date and time (YYYY-MM-DDTHH:mm:ss). |
departureCode |
string | Yes | Code of the pickup location. |
arrivalCode |
string | Yes | Code of the drop-off location. |
departureZone |
string | No | Zone of the pickup location. |
arrivalZone |
string | No | Zone of the drop-off location. |
destinationCode |
string | No | IATA code of the destination (e.g. BCN). |
destinationZone |
string | No | Zone of the destination. |
typeDepartureCode |
string | No | Type of pickup location (airport, hotel, train_station, …). |
typeArrivalCode |
string | No | Type of drop-off location (airport, hotel, train_station, …). |
filters |
array | No | List of refinement filters applied to the result set. See Filters below. |
pagination |
object | No | Result pagination. Fields: itemsPerPage, pageNumber. |
order |
object | No | Result sorting. Fields: name (sort key, e.g. CAR_OFFICE_PRICE_COMPARATOR), value (ASC / DESC). |
Filters
| Field | Type | Description |
|---|---|---|
filterType |
string | Type of filter. Example: CATEGORY_REFINEMENT. |
values |
array of string | Allowed values for the chosen filter type (e.g. ["2"] for a specific category). |
Example request
{
"sessionId": "YOUR-SESSION-ID",
"language": "CAS",
"filters": [
{ "filterType": "CATEGORY_REFINEMENT", "values": ["2"] }
],
"sourceMarket": "ES",
"initDate": "2026-12-05T09:00:00",
"endDate": "2026-12-08T09:00:00",
"departureCode": "15682",
"arrivalCode": "15682",
"destinationCode": "BCN",
"destinationZone": "15682",
"arrivalZone": "15682",
"typeArrivalCode": "airport",
"typeDepartureCode": "airport",
"pagination": { "itemsPerPage": 15, "pageNumber": 1 },
"order": { "name": "CAR_OFFICE_PRICE_COMPARATOR", "value": "ASC" }
}
Response
A paginated list of available cars. Each entry includes the rateKey, final price, applicable fees, available special equipment, and cancellation policies. The rateKey is the value you must pass to Booking Check (optional) and to the Bundle Pre-Confirmation endpoint to reserve the car.
POST /carhire-booking-api/1.0/booking/check
This method re-validates a car rateKey obtained from /availability just before confirmation. It returns the latest, bookable version of that rate together with any updated price, special-equipment options, or policy change. Use it to make sure the price and availability shown to the customer still match what will be charged at confirmation.
Although it is optional, calling Booking Check before passing the rateKey to the Bundle Pre-Confirmation endpoint reduces the risk of a price-change error at the final booking step.
Headers
| Header | Required | Description |
|---|---|---|
X-User |
No | Identifier of the end user performing the check. |
Accept |
Yes | Must be application/json. |
Content-Type |
Yes | Must be application/json. |
Request body — BookingCheckRequestDto
| Field | Type | Required | Description |
|---|---|---|---|
rateKey |
string | Yes | The rateKey returned by /availability for the car you intend to book. |
specialEquipments |
array | No | List of special equipments selected for the booking. Each entry is a SpecialEquipmentRequestDto. |
Special equipments
| Field | Type | Description |
|---|---|---|
code |
integer | Code of the special equipment (e.g. child seat, GPS, roof rack). Catalogue is defined by Car Hire Booking API. |
Example request
{
"rateKey": "0|ID_B2B_17|ePNCWWqYckrPNfAwGvvzsw==",
"specialEquipments": [
{ "code": 8 }
]
}
Response
Returns the revalidated car offer with the final, bookable rateKey, updated pricing, confirmed special equipment, and the applicable cancellation policy. If the rate is no longer available or the price has changed significantly, the response reflects that so you can inform the customer before submitting the booking to Bundle Pre-Confirmation.
End-to-end integration with Bundle
Call /availability with the search criteria. Pick a rateKey from the result set.
(Recommended) Call /booking/check with that rateKey to re-validate price and availability.
Submit the final rateKey to the Bundle Pre-Confirmation endpoint, alongside any hotel, activity, or transfer rateKey that belongs to the same booking.
Complete the booking lifecycle (Confirmation, Booking Detail, Modification, Voucher, Partial Cancel, Cancel) through the shared Bundle endpoints.