Booking overview
The Booking API allows travelers to create reservations for rental cars
Once the traveler has chosen the vendor and car with the Shopping API, you’ll provide them with the Booking API to make their reservation.
The primary function of the Booking API is to create a reservation for the selected car offer. Before the reservation can be completed, payment information must be sent to our payment registration endpoint (v1/payments
) which will generate a secure payment_token
to be used in the Create Booking request body. The partner will then pass in a required affiliate_reference_id
, primary driver information, and payment token to create the booking.
Creating a booking
Each successful booking response contains links to retrieve the itinerary. The link to create a booking will remain valid until no more inventory with the supplier is available for that carOfferToken
.
Sample request
POST https://api.ean.com/v2/itineraries/car
?token=U1dFC0JHTWxUCwUHCWNjQ1sQRxBVVwFAW... ...15YTQTcHhefjYOfiBQfThuP1hcfVULeAM0W0U6VWBZFzQXdltcUFwRQgkLCgBRAAEHAVEADg==
{
"affiliate_reference_id": "4480ABC",
"primary_driver": {
"given_name": "{{first_name}}",
"middle_name": "Test",
"family_name": "{{last_name}}",
"phone": {
"country_code": "1",
"area_code": "487",
"number": "5550077"
},
"email": "{{email}}"
},
"flight_details": {
"air_carrier_code": "G4",
"flight_number": 778
},
"traveler_loyalty_member_id": "ABCD1234","
"requested_extras": [
"SatelliteRadio",
"ToddlerChildSeat"
],
"affiliate_metadata": "data_point_1:123|data_point2:This is data.",
"payment_token": "{{payment_token}}"
}
Sample response
{
"itinerary_id": "9030336886597",
"links": {
"retrieve": {
"method": "GET",
"href": "https://api.ean.com/v2/itineraries/9030336886597/car",
}
}
}
See our Manage Booking section and handling booking requests page for details.
To make a test booking that will not charge your card or be sent to the vendor, see our test request documentation.
API details
Explore the booking-related endpoint definitions on this page, then use the API Explorer or another testing software to get an understanding of how the examples and schema definitions compare to the actual output.
Additional resources
Whether you're looking to try out all the Rapid Car API endpoints or to download its OpenAPI specs, we have what you need.