Skip to main content
GET
/
api
/
rentals
/
availability
curl -X GET "https://api.drivex.com/api/rentals/availability?vehicleId=456&start=2026-03-15&end=2026-03-20" \
  -H "Authorization: Bearer YOUR_API_KEY"
true
Checks if a vehicle is available for rent during a specified date range. Returns true if the vehicle has no overlapping rentals, false otherwise.
Dates must be provided in ISO 8601 format (YYYY-MM-DD). This endpoint checks for any existing rentals that would overlap with the requested period.

Query Parameters

vehicleId
long
required
The ID of the vehicle to check availability for
start
string
required
Start date in ISO 8601 format (YYYY-MM-DD)
end
string
required
End date in ISO 8601 format (YYYY-MM-DD)

Response

Returns a boolean value indicating availability.
curl -X GET "https://api.drivex.com/api/rentals/availability?vehicleId=456&start=2026-03-15&end=2026-03-20" \
  -H "Authorization: Bearer YOUR_API_KEY"
true

Build docs developers (and LLMs) love