Getting Started with the Xeni Activities APIHow to Book an ActivityHow to Browse Activity Tags and CategoriesHow to Cancel an Activity BookingHow to Check Activity AvailabilityHow to Get Activity DetailsHow to Retrieve Activity Booking DetailsHow to Search for Activities with FiltersHow to Search for Activity DestinationsCar Rental API - Getting StartedCar Rental API - Understanding Response FieldsHow to Book a Car RentalHow to Get Rental Car Details and Equipment Add-OnsHow to Retrieve or Cancel a Car Rental BookingHow to Search for Available Rental CarsHow to Search for Pickup LocationsHow to Use Car Rental Search FiltersDeals API Best Practices for IntegrationDeals API Frequently Asked QuestionsGetting Started with the Xeni Deals APIDeals API Request Parameters and Headers ReferenceDeals API Supported Currencies and LocalizationHow to Display Deals in Your ApplicationHow to Fetch Hotel Deals by LocationFlights API Error Codes and TroubleshootingGetting Started with the Xeni Flights APIHow to Book a FlightHow to Check Flight Availability and PricingHow to Confirm or Cancel a Flight BookingHow to Retrieve Fare Rules for a FlightHow to Retrieve Flight Booking DetailsHow to Search for Airports Using AutocompleteHow to Search for FlightsHow to Use Flight Search Filters, Sorting, and PaginationHow to Check Room Availability and PricingHow to Filter Vacation Rental ResultsHow to Get Resort Property Details, Amenities, and AccessibilityHow to Hold and Confirm a Resort BookingHow to Release a Resort HoldHow to Retrieve Resort Booking DetailsHow to Search for Available ResortsHow to Search for Resort DestinationsHow to Search for Vacation Rental LocationsHow to Search for Vacation RentalsHow to Use Resort Search Filters and SortingGetting Started with the Xeni Resorts APIResorts API: Understanding Booking Statuses and PoliciesGetting Started with the Vacation Rentals APIVacation Rentals Frequently Asked QuestionsVacation Rentals Supported Property TypesUnderstanding Async Search for Vacation RentalsAuthentication & API SignaturesBooking Hotels — Direct API & SSO CheckoutError Handling, Rate Limits & Best PracticesGetting Started with the Xeni Hotels APIManaging Bookings: Status, Retrieval & CancellationPricing Confirmation & Token LifecycleRetrieving Hotel Details & Room AvailabilitySearching for Hotels: Locations, Filters & PaginationSearching for HotelsSession Management & Correlation IDsAPI authentication and getting your API keys

Car Rental API - Getting Started

Last updated: 2026-03-03

Car Rental API - Getting Started

The Xeni Car Rental API v2 allows you to search for rental cars worldwide, retrieve detailed vehicle and location information, create bookings, and manage reservations. This guide covers the essentials you need to start integrating.

Base URL

All Car Rental API v2 endpoints share the following base path:

{{api_host}}/cars/api/v2/

Replace {{api_host}} with the environment-specific host provided during onboarding.

Authentication

Every request must include a valid signature in the Authorization header. Refer to the Authentication & API Signatures article for instructions on generating and refreshing signatures.

Required Headers

Include the following headers with every request:

HeaderDescription
AuthorizationYour generated API signature (Bearer token).
x-api-keyYour unique API key, provided during onboarding.
x-correlation-idA unique identifier (UUID) for the request, used for tracing and debugging.

The Complete Booking Flow

A typical car rental integration follows a six-step flow. Each step builds on the data returned by the previous one.

Step 1: Autocomplete Pickup Location

Use the Autocomplete endpoint to let users search for pickup and drop-off locations by name. The endpoint returns cities and airports along with geographic coordinates that you will pass into the search.

GET /cars/api/v2/autocomplete?key=new yo

Step 2: Search for Available Rentals

Pass the coordinates from the autocomplete result into the Search Rentals endpoint along with pickup and return dates. The API returns a paginated list of available vehicles with pricing.

GET /cars/api/v2/rentals?country=US&pickupdate=2026-06-15T10:00:00&returndate=2026-06-20T10:00:00&pickuptype=geo&returntype=geo&pickupcode=40.7128,-74.006&returncode=40.7128,-74.006&currency=USD

Step 3: Apply Filters (Optional)

Narrow down results using filter parameters such as vehicle type, price range, transmission, and more. Filters use a field:operator:value syntax.

GET /cars/api/v2/rentals?...&filter=vehicle_type:in:SUV,price:lte:100

Step 4: Get Rental Details

Once the user selects a vehicle, call the Rental Details endpoint with the availability token. This returns equipment add-ons, location details, operating hours, and vendor terms.

GET /cars/api/v2/rental/details?country=US&currency=USD&availability_token={token}

Step 5: Create a Booking

Submit the booking with customer details, optional additional drivers, and selected equipment add-ons.

POST /cars/api/v2/bookings?currency=USD

Step 6: Retrieve or Cancel

Use the booking ID to retrieve reservation details at any time, or cancel the booking if needed.

GET  /cars/api/v2/bookings/{booking_id}
PATCH /cars/api/v2/bookings/{bookingid}?token={bookingtoken}

What's Next

Was this article helpful?