Car rental availability
and pricing in one API.
Connect your booking engine, comparison site or travel application to Lease.ma. Access vehicle availability, rental rates, locations and vehicle information through a consistent JSON API.
// Example response · GET /v1/availability?pickup_location=42&dropoff_location=42&from=2026-11-02&to=2026-11-05&sipp_code=IDAR { "pickup_location": "Casablanca Mohammed V Airport", "dropoff_location": "Casablanca Mohammed V Airport", "currency": "MAD", "vehicles": [ { "sipp_code": "IDAR", "category": "Intermediate", "model": "Sample intermediate vehicle", "price_per_day": 420, "available": true } ] }
Search availability by location and date
Find vehicles for a selected pickup location, return location and rental period, with results tailored to your search.
Standardized vehicle categories
Search by four-character ACRISS/SIPP codes to identify vehicle classes by size, body style, transmission and fuel or air-conditioning attributes.
Straightforward API integration
Use JSON responses over HTTPS with bearer-token authentication for server-side applications and booking platforms.
Explore the endpoints
Discover the endpoints for rental locations, vehicle availability, pricing, vehicle specifications and bookings. Each endpoint supports a specific part of the car rental integration workflow.
/v1/locations
Retrieve pickup and return locations, including their identifiers, names, cities and location types.
/v1/availability
Search for vehicles by pickup location, return location and rental dates. Filter by vehicle category or four-character SIPP code (for example, IDAR) and retrieve associated daily rates.
/v1/pricing
Get a rental price breakdown for a specific vehicle or SIPP category, including the daily rate, rental total and applicable distance-related charges.
/v1/vehicles/{id}
Access individual vehicle details, including SIPP classification, seating capacity, transmission, fuel type, images and deposit conditions.
/v1/bookings
Create a rental booking using the quoted price from /v1/pricing.
// Example response · GET /v1/locations { "locations": [ { "id": 42, "name": "Casablanca Mohammed V Airport", "city": "Casablanca", "type": "airport" }, { "id": 17, "name": "Marrakech City Center", "city": "Marrakech", "type": "city" } ] }
Search by SIPP vehicle class
ACRISS/SIPP codes use four characters to describe a vehicle’s category, body type, transmission or drive, and fuel or air-conditioning configuration. Use the sipp_code parameter to filter searches by vehicle class.
// GET /v1/availability?pickup_location=42&dropoff_location=42&from=2026-11-02&to=2026-11-05&sipp_code=IDAR // IDAR: I = Intermediate · D = 4–5 doors · A = Automatic · R = Unspecified fuel, air-conditioned
Sample API requests
Send HTTPS requests with your API key in the Authorization header. The examples below show cURL, Node.js and PHP integrations. Keep API credentials on your server, not in public client-side code.
# Example API requests # 1. Retrieve supported location IDs curl "https://lease.ma/api/v1/locations" \ -H "Authorization: Bearer YOUR_API_KEY" # 2. Query availability for an example SIPP code (IDAR) curl "https://lease.ma/api/v1/availability?pickup_location=42&dropoff_location=42&from=2026-11-02&to=2026-11-05&sipp_code=IDAR" \ -H "Authorization: Bearer YOUR_API_KEY"
// Server-side Node.js example — keep credentials private const res = await fetch( "https://lease.ma/api/v1/availability?pickup_location=42&dropoff_location=42&from=2026-11-02&to=2026-11-05&sipp_code=IDAR", { headers: { Authorization: "Bearer YOUR_API_KEY" } } ); const data = await res.json();
$response = file_get_contents( "https://lease.ma/api/v1/availability?pickup_location=42&dropoff_location=42&from=2026-11-02&to=2026-11-05&sipp_code=IDAR", false, stream_context_create(["http" => ["header" => "Authorization: Bearer YOUR_API_KEY"]]) ); $data = json_decode($response, true);
Connect your platform to Lease.ma
Tell us about your application and integration requirements. Our team can help you choose the endpoints and data that fit your workflow.
Have a specific requirement?
Need a specific data field, filter or pricing rule? Share your use case and integration requirements with our team.