API for partners and AI
Our availability and prices, in real time, for AI assistants and for partners who sell our cars.
Two ways to use our data
AI search
For AI assistants and simple integrations: one public GET request, no key. Live availability, final prices, deposits and a booking link for each car.
Partner API
For travel agencies, resellers and websites that sell our cars: search, options and booking, with the same prices and rules as our website. Each request is signed.
AI search
GET https://romaniancarhire.com/api/ai-search.php
No authentication. Read-only: it cannot book; the customer books from the bookingUrl of each offer.
OpenAPI specification (JSON, English): https://romaniancarhire.com/api/ai-search.openapi.json
Facts for AI assistants: https://romaniancarhire.com/llms.txt
Example
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
pickup_location | integer | Required | Location code (see llms.txt or locationsRq). |
return_location | integer | Required | Location code. |
pickup_date | string | Required | Romanian local time, YYYY-MM-DDTHH:MM. With a zone (Z, +02:00) it is converted to Romanian time. |
return_date | string | Required | Same format, after the pick-up. |
lang | ro|en|fr|it|de|es | optional | Language of names, messages and of the booking page. Default en. |
Response
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Required | false = see messages. |
request | object | Required | Dates as understood, timezone, lang, currency. |
items | array | Required | Cars that can be rented for the dates. |
items[].carTypeId | integer | Required | Car type code. |
items[].carTypeName | string | Required | Name (or similar). |
items[].carTypeCategoryId | integer | Required | Category code. |
items[].carTypeCategoryName | string | Required | Category. |
items[].carSpecs | object | Required | passengers, doors, luggage, transmission, fuel, ac, awd, minRent, pictures. |
items[].available | boolean | Required | Always true (unavailable cars are not returned). |
items[].instantConfirmation | boolean | Required | Confirmed immediately when booked. |
items[].availableStatus | object | Required | {status: available|onRequest, requestNote: 1 instant confirmation | 2 on request}. |
items[].chargedDays | integer | Required | Days charged. |
items[].offers | object | Required | The two offers: read item.offers.standard.total, never item.offers.total. |
items[].offers.standard | object | Required | With damage deposit. |
items[].offers.standard.total | integer | Required | Final price, all included. |
items[].offers.standard.perDay | number | Required | Average per day. |
items[].offers.standard.currency | string | Required | EUR. |
items[].offers.standard.appliedDiscount | number | Required | Discount amount already applied. |
items[].offers.standard.appliedDiscountPercent | number | Required | Discount percent. |
items[].offers.standard.totalBeforeDiscount | integer | Required | Total before discount. |
items[].offers.standard.deposit | number | Required | Deposit at pick-up. 0 = no deposit at all. |
items[].offers.standard.allowedKmPerDay | integer | Required | Included km per day. |
items[].offers.standard.totalAllowedKm | integer | Required | Total km included. |
items[].offers.standard.extraKmPrice | number | Required | Price per extra km. |
items[].offers.standard.cancellationPolicy | object | Required | {freeCancellationUntil (null = until pick-up), stages, noShowFee}. |
items[].offers.standard.advance | object | optional | {amount} asked after confirmation, or null. |
items[].offers.standard.bookingUrl | string | Required | Where the customer books this car and offer. |
items[].offers.extraProtection | object | optional | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
itemsNo | integer | Required | Number of items. |
daysNo | integer | Required | Rental days. |
facets | object | Required | Counts per category, transmission, fuel, seats, luggage, availability. |
messages | array | Required | [{code, level, field?, text}]. |
Rules for presenting the results
- total is the final price for the whole rental: insurance, taxes and location fees are included. Do not compute it from perDay.
- deposit 0 means no deposit at all at pick-up.
- requestNote 1 means the booking is confirmed instantly; 2 means we confirm it, usually quickly.
- Prices and availability change all the time: search again for each question and do not reuse old results.
Partner API
POST https://romaniancarhire.com/api/v1/
OpenAPI specification (JSON, English): https://romaniancarhire.com/api/v1/openapi.json
To get access (user name and secret), write to us at office@romaniancarhire.com.
Request and response
The body is JSON with the command and the language; every response has the same envelope. An error stops the request (success false, data null); warnings and notes come together with the data.
{"command": "searchRq", "language": "en", ...}
{"success": true, "version": "v1", "command": "searchRq", "language": "en",
"data": {...}, "messages": [{"code": "NO_RESULTS", "level": "info", "text": "..."}]} Signing the request
- X-Api-Key: your user name.
- X-Api-Timestamp: the current time in Unix seconds (at most 5 minutes from ours).
- X-Api-Signature: HMAC-SHA256 with your secret, in hex, of: timestamp, method, path and the SHA-256 of the exact body you send, separated by new lines.
signature = hex(HMAC-SHA256(secret, timestamp + "\n" + "POST" + "\n" + "/api/v1/" + "\n" + hex(SHA256(body)))) Check your code with this example:
timestamp = 1795460000
path = /api/v1/
body = {"command":"searchRq"}
secret = Secret-123
signature = 2512b3056edce7ed09006c446d73431d76455431696a797556ea1df07e33e2fc PHP
$ts = (string) time();
$body = json_encode($request);
$text = $ts."\nPOST\n/api/v1/\n".hash('sha256', $body);
$signature = hash_hmac('sha256', $text, $secret);Node.js
const crypto = require('crypto');
const ts = String(Math.floor(Date.now() / 1000));
const body = JSON.stringify(request);
const text = `${ts}\nPOST\n/api/v1/\n${crypto.createHash('sha256').update(body).digest('hex')}`;
const signature = crypto.createHmac('sha256', secret).update(text).digest('hex');Python
import hashlib, hmac, json, time
ts = str(int(time.time()))
body = json.dumps(request, separators=(",", ":"))
text = f"{ts}\nPOST\n/api/v1/\n{hashlib.sha256(body.encode()).hexdigest()}"
signature = hmac.new(secret.encode(), text.encode(), hashlib.sha256).hexdigest()Java
String ts = String.valueOf(System.currentTimeMillis() / 1000);
String bodyHash = HexFormat.of().formatHex(MessageDigest.getInstance("SHA-256").digest(body.getBytes(StandardCharsets.UTF_8)));
Mac mac = Mac.getInstance("HmacSHA256");
mac.init(new SecretKeySpec(secret.getBytes(StandardCharsets.UTF_8), "HmacSHA256"));
String signature = HexFormat.of().formatHex(mac.doFinal((ts + "\nPOST\n/api/v1/\n" + bodyHash).getBytes(StandardCharsets.UTF_8)));.NET (C#)
var ts = DateTimeOffset.UtcNow.ToUnixTimeSeconds().ToString();
var bodyHash = Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(body))).ToLowerInvariant();
using var hmac = new HMACSHA256(Encoding.UTF8.GetBytes(secret));
var signature = Convert.ToHexString(hmac.ComputeHash(Encoding.UTF8.GetBytes($"{ts}\nPOST\n/api/v1/\n{bodyHash}"))).ToLowerInvariant();The usual order
Load the lists once and keep them until siteVersion changes. Then: searchRq for a period, extrasRq and crossBordersRq for the chosen car, searchDetailsRq for the exact total, and bookRq with that total as expectedTotal.
Commands
locationsRq Pick-up and return locations.
Request
| Field | Type | Required | Description |
|---|---|---|---|
command | string | Required | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names. Default en. |
Response data
| Field | Type | Required | Description |
|---|---|---|---|
siteVersion | integer | Required | Version of our data: reload the list only when it changes. |
locations | array | Required | Active locations. |
locations[].code | integer | Required | Location code (pickup.locationId / dropoff.locationId). |
locations[].name | string | Required | Name with type, e.g. "Iași Airport". |
locations[].city | string | Required | City. |
locations[].type | object | Required | city|airport|trainStation|office, with name. |
locations[].iata | string | optional | Airport code, or null. |
locations[].kind | object | Required | office|fleet|pool|request, with name: own office, local fleet, car brought from the nearest fleet, on request. |
locations[].lat | number | optional | Latitude. |
locations[].lng | number | optional | Longitude. |
categoriesRq Car classes.
Request
| Field | Type | Required | Description |
|---|---|---|---|
command | string | Required | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names. Default en. |
Response data
| Field | Type | Required | Description |
|---|---|---|---|
siteVersion | integer | Required | Version of our data: reload the list only when it changes. |
categories | array | Required | Active classes, in our order. |
categories[].code | integer | Required | Category code. |
categories[].name | string | Required | Name. |
categories[].description | string | optional | Description, or null. |
carTypesRq Car types you can sell.
Request
| Field | Type | Required | Description |
|---|---|---|---|
command | string | Required | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names. Default en. |
Response data
| Field | Type | Required | Description |
|---|---|---|---|
siteVersion | integer | Required | Version of our data: reload the list only when it changes. |
carTypes | array | Required | Active car types you have access to. |
carTypes[].code | integer | Required | Car type code. |
carTypes[].name | string | Required | Car type name (the car or a similar one of the same class or higher). |
carTypes[].category | object | Required | Car class. |
carTypes[].category.code | integer | Required | Category code (categoriesRq). |
carTypes[].category.name | string | Required | Name. |
carTypes[].acriss | string | optional | ACRISS code, or null. |
carTypes[].specs | object | Required | Features. |
carTypes[].specs.seats | integer | optional | Seats. |
carTypes[].specs.doors | integer | optional | Doors. |
carTypes[].specs.luggage | integer | optional | Suitcases. |
carTypes[].specs.transmission | object | optional | Code (manual|automatic) and name in the request language, or null. |
carTypes[].specs.transmission.code | string | Required | manual|automatic |
carTypes[].specs.transmission.name | string | Required | Name. |
carTypes[].specs.fuel | object | optional | Fuel {code, name}, or null. |
carTypes[].specs.consumption | number | optional | Litres / 100 km, or null. |
carTypes[].specs.airConditioning | object | optional | Code (automatic|manual) and name in the request language, or null. |
carTypes[].specs.airConditioning.code | string | Required | automatic|manual |
carTypes[].specs.airConditioning.name | string | Required | Name. |
carTypes[].specs.drive | object | optional | Code (front|rear|4x4) and name in the request language, or null. |
carTypes[].specs.drive.code | string | Required | front|rear|4x4 |
carTypes[].specs.drive.name | string | Required | Name. |
carTypes[].specs.isofix | boolean | Required | Isofix. |
carTypes[].specs.wagon | boolean | Required | Estate body. |
carTypes[].specs.smartphone | boolean | Required | Smartphone integration. |
carTypes[].pictures | array<string> | Required | Photo URLs. |
carTypes[].minimumDays | integer | Required | Minimum rental days of the type. |
ageGroupsRq Driver age groups.
Request
| Field | Type | Required | Description |
|---|---|---|---|
command | string | Required | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names. Default en. |
Response data
| Field | Type | Required | Description |
|---|---|---|---|
siteVersion | integer | Required | Version of our data: reload the list only when it changes. |
ageGroups | array | Required | Active age groups. |
ageGroups[].code | integer | Required | Age group code (ageGroup). |
ageGroups[].fromAge | integer | Required | From age. |
ageGroups[].toAge | integer | optional | To age, or null (and over). |
ageGroups[].name | string | Required | Name, e.g. "23–69 years". |
ageGroups[].default | boolean | Required | The usual group (no surcharge). |
searchRq Available cars and prices for a period.
Request
| Field | Type | Required | Description |
|---|---|---|---|
command | string | Required | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names and messages. Default en. |
pickup | object | Required | The pickup place and moment. |
pickup.locationId | integer | Required | Location code (locationsRq). |
pickup.dateTime | datetime | Required | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Required | The dropoff place and moment. |
dropoff.locationId | integer | Required | Location code (locationsRq). |
dropoff.dateTime | datetime | Required | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Required | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | optional | Optional: a car type to return first (if it is offered for the search). |
availability | available|onRequest|both | optional | Which cars to return. Default both. |
filters | object | optional | Filters. |
filters.categories | array<integer> | optional | Category codes. |
filters.seats | array<integer> | optional | Seat counts. |
filters.luggage | integer | optional | Minimum suitcases. |
filters.fuel | array<integer> | optional | Fuel codes. |
filters.transmission | array<string> | optional | manual / automatic. |
Response data
| Field | Type | Required | Description |
|---|---|---|---|
currency | string | Required | Currency of all amounts (ISO 4217, EUR). |
request | object | Required | The request as understood. |
days | integer | Required | Rental days. |
types | array | Required | Cars that can be rented for the search (the others are not returned). |
types[].code | integer | Required | Car type code. |
types[].name | string | Required | Car type name (the car or a similar one of the same class or higher). |
types[].category | object | Required | Car class. |
types[].category.code | integer | Required | Category code (categoriesRq). |
types[].category.name | string | Required | Name. |
types[].acriss | string | optional | ACRISS code, or null. |
types[].specs | object | Required | Features. |
types[].specs.seats | integer | optional | Seats. |
types[].specs.doors | integer | optional | Doors. |
types[].specs.luggage | integer | optional | Suitcases. |
types[].specs.transmission | object | optional | Code (manual|automatic) and name in the request language, or null. |
types[].specs.transmission.code | string | Required | manual|automatic |
types[].specs.transmission.name | string | Required | Name. |
types[].specs.fuel | object | optional | Fuel {code, name}, or null. |
types[].specs.consumption | number | optional | Litres / 100 km, or null. |
types[].specs.airConditioning | object | optional | Code (automatic|manual) and name in the request language, or null. |
types[].specs.airConditioning.code | string | Required | automatic|manual |
types[].specs.airConditioning.name | string | Required | Name. |
types[].specs.drive | object | optional | Code (front|rear|4x4) and name in the request language, or null. |
types[].specs.drive.code | string | Required | front|rear|4x4 |
types[].specs.drive.name | string | Required | Name. |
types[].specs.isofix | boolean | Required | Isofix. |
types[].specs.wagon | boolean | Required | Estate body. |
types[].specs.smartphone | boolean | Required | Smartphone integration. |
types[].pictures | array<string> | Required | Photo URLs. |
types[].requested | boolean | Required | This is the carTypeCode from the request. |
types[].status | available|onRequest | Required | available = can be booked now; onRequest = we confirm it. |
types[].instantConfirmation | boolean | Required | The booking is confirmed immediately (24 h+ before pick-up, car in the fleet). |
types[].days | integer | Required | Rental days. |
types[].chargedDays | integer | Required | Days charged (the minimum, when the period is shorter). |
types[].minimumDays | integer | Required | Minimum days here. |
types[].offers | object | Required | The two offers. |
types[].offers.standard | object | Required | With damage deposit. |
types[].offers.standard.total | integer | Required | Final price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay. |
types[].offers.standard.perDay | number | Required | Average price per day (information only). In currency (EUR). |
types[].offers.standard.discount | object | optional | The discount already applied, or null. |
types[].offers.standard.discount.amount | number | Required | Amount saved. In currency (EUR). |
types[].offers.standard.discount.percent | number | Required | Percent saved. |
types[].offers.standard.discount.totalBefore | integer | Required | Total before the discount. |
types[].offers.standard.deposit | object | Required | Security deposit at pick-up, by part (all keys always present, 0 when not required). |
types[].offers.standard.deposit.car | number | Required | Damage deposit (0 with extraProtection). In currency (EUR). |
types[].offers.standard.deposit.fuel | number | Required | Fuel deposit. In currency (EUR). |
types[].offers.standard.deposit.extras | number | Required | Equipment deposit. In currency (EUR). |
types[].offers.standard.deposit.crossBorder | number | Required | Cross-border deposit. In currency (EUR). |
types[].offers.standard.deposit.age | number | Required | Extra deposit for the driver age group. In currency (EUR). |
types[].offers.standard.deposit.total | number | Required | Total deposit. 0 = no deposit at all. In currency (EUR). |
types[].offers.standard.km | object | Required | Kilometres. |
types[].offers.standard.km.perDay | integer | Required | Included km per day. |
types[].offers.standard.km.included | integer | Required | Total km included for the rental. |
types[].offers.standard.km.extraKmPrice | number | Required | Price per extra km, charged at the end over the total included. In currency (EUR). |
types[].offers.standard.cancellation | object | Required | Cancellation policy of this offer. |
types[].offers.standard.cancellation.freeUntil | datetime | optional | Free cancellation until this moment (Romanian time); null = free until pick-up. |
types[].offers.standard.cancellation.stages | array | Required | Cancellation fees after the free period. |
types[].offers.standard.cancellation.stages[].from | datetime | Required | From this moment. |
types[].offers.standard.cancellation.stages[].amount | number | Required | Cancellation fee. In currency (EUR). |
types[].offers.standard.cancellation.noShow | number | optional | No-show fee in EUR, or null. |
types[].offers.standard.advance | object | optional | Always null for partners (an advance can be asked only for website bookings). |
types[].offers.standard.advance.amount | number | Required | Advance amount. In currency (EUR). |
types[].offers.extraProtection | object | optional | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
types[].note | string | optional | A note on the price (e.g. minimum days). |
facets | object | Required | Counts per availability, category, transmission, fuel, seats, luggage: [{code, name, count}]. |
extrasRq Equipment offered with a car.
Request
| Field | Type | Required | Description |
|---|---|---|---|
command | string | Required | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names and messages. Default en. |
pickup | object | Required | The pickup place and moment. |
pickup.locationId | integer | Required | Location code (locationsRq). |
pickup.dateTime | datetime | Required | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Required | The dropoff place and moment. |
dropoff.locationId | integer | Required | Location code (locationsRq). |
dropoff.dateTime | datetime | Required | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Required | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Required | The chosen car type (carTypesRq / searchRq). |
Response data
| Field | Type | Required | Description |
|---|---|---|---|
currency | string | Required | EUR. |
carTypeCode | integer | Required | The car type. |
chargedDays | integer | Required | Days charged. |
extras | array | Required | Equipment. |
extras[].code | integer | Required | Equipment code. |
extras[].name | string | Required | Name. |
extras[].description | string | optional | Description. |
extras[].photo | string | optional | Photo URL. |
extras[].pricePerDay | number | Required | Price per day. In currency (EUR). |
extras[].maxQuantity | integer | Required | Maximum per booking. |
extras[].deposit | number | Required | Deposit per piece. In currency (EUR). |
extras[].total | number | Required | Price of one piece for the whole rental. In currency (EUR). |
crossBordersRq Countries the car may be driven to.
Request
| Field | Type | Required | Description |
|---|---|---|---|
command | string | Required | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names and messages. Default en. |
pickup | object | Required | The pickup place and moment. |
pickup.locationId | integer | Required | Location code (locationsRq). |
pickup.dateTime | datetime | Required | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Required | The dropoff place and moment. |
dropoff.locationId | integer | Required | Location code (locationsRq). |
dropoff.dateTime | datetime | Required | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Required | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Required | The chosen car type (carTypesRq / searchRq). |
Response data
| Field | Type | Required | Description |
|---|---|---|---|
currency | string | Required | EUR. |
carTypeCode | integer | Required | The car type. |
chargedDays | integer | Required | Days charged. |
crossBorders | array | Required | Allowed destinations. Without one, leaving Romania is forbidden. |
crossBorders[].code | integer | Required | Destination code. |
crossBorders[].name | string | Required | Name. |
crossBorders[].description | string | optional | Documents and rules. |
crossBorders[].pricePerDay | number | Required | Price per day. In currency (EUR). |
crossBorders[].minTotal | number | Required | Minimum per rental (0 = none). In currency (EUR). |
crossBorders[].maxTotal | number | Required | Maximum per rental (0 = none). In currency (EUR). |
crossBorders[].deposit | number | Required | Extra deposit. In currency (EUR). |
crossBorders[].total | number | Required | Price for the whole rental. In currency (EUR). |
searchDetailsRq Exact price of a selection (car, equipment, cross-border), before booking.
Request
| Field | Type | Required | Description |
|---|---|---|---|
command | string | Required | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names and messages. Default en. |
pickup | object | Required | The pickup place and moment. |
pickup.locationId | integer | Required | Location code (locationsRq). |
pickup.dateTime | datetime | Required | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Required | The dropoff place and moment. |
dropoff.locationId | integer | Required | Location code (locationsRq). |
dropoff.dateTime | datetime | Required | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Required | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Required | The chosen car type (carTypesRq / searchRq). |
extras | array | optional | Chosen equipment. |
extras[].code | integer | Required | Equipment code (extrasRq). |
extras[].qty | integer | optional | Quantity, default 1; capped at maxQuantity. |
crossBorders | array<integer> | optional | Chosen cross-border destination codes (crossBordersRq). |
Response data
| Field | Type | Required | Description |
|---|---|---|---|
currency | string | Required | EUR. |
request | object | Required | The request as understood. |
type | object | Required | The car type with status, days, chargedDays, minimumDays, note. |
type.code | integer | Required | Car type code. |
type.name | string | Required | Car type name (the car or a similar one of the same class or higher). |
type.category | object | Required | Car class. |
type.category.code | integer | Required | Category code (categoriesRq). |
type.category.name | string | Required | Name. |
type.acriss | string | optional | ACRISS code, or null. |
type.specs | object | Required | Features. |
type.specs.seats | integer | optional | Seats. |
type.specs.doors | integer | optional | Doors. |
type.specs.luggage | integer | optional | Suitcases. |
type.specs.transmission | object | optional | Code (manual|automatic) and name in the request language, or null. |
type.specs.transmission.code | string | Required | manual|automatic |
type.specs.transmission.name | string | Required | Name. |
type.specs.fuel | object | optional | Fuel {code, name}, or null. |
type.specs.consumption | number | optional | Litres / 100 km, or null. |
type.specs.airConditioning | object | optional | Code (automatic|manual) and name in the request language, or null. |
type.specs.airConditioning.code | string | Required | automatic|manual |
type.specs.airConditioning.name | string | Required | Name. |
type.specs.drive | object | optional | Code (front|rear|4x4) and name in the request language, or null. |
type.specs.drive.code | string | Required | front|rear|4x4 |
type.specs.drive.name | string | Required | Name. |
type.specs.isofix | boolean | Required | Isofix. |
type.specs.wagon | boolean | Required | Estate body. |
type.specs.smartphone | boolean | Required | Smartphone integration. |
type.pictures | array<string> | Required | Photo URLs. |
extras | array | Required | Equipment added. |
extras[].code | integer | Required | Code. |
extras[].name | string | Required | Name. |
extras[].quantity | integer | Required | Quantity. |
extras[].total | number | Required | Total. In currency (EUR). |
crossBorders | array | Required | Destinations added. |
crossBorders[].code | integer | Required | Code. |
crossBorders[].name | string | Required | Name. |
crossBorders[].total | number | Required | Total. In currency (EUR). |
offers | object | Required | The two offers for the selection; send the chosen total as expectedTotal in bookRq. |
offers.standard | object | Required | With damage deposit. |
offers.standard.total | integer | Required | Final price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay. |
offers.standard.perDay | number | Required | Average price per day (information only). In currency (EUR). |
offers.standard.rentalTotal | number | Required | The rental without equipment and cross-border (summary line). In currency (EUR). |
offers.standard.discount | object | optional | The discount already applied, or null. |
offers.standard.discount.amount | number | Required | Amount saved. In currency (EUR). |
offers.standard.discount.percent | number | Required | Percent saved. |
offers.standard.discount.totalBefore | integer | Required | Total before the discount. |
offers.standard.deposit | object | Required | Security deposit at pick-up, by part (all keys always present, 0 when not required). |
offers.standard.deposit.car | number | Required | Damage deposit (0 with extraProtection). In currency (EUR). |
offers.standard.deposit.fuel | number | Required | Fuel deposit. In currency (EUR). |
offers.standard.deposit.extras | number | Required | Equipment deposit. In currency (EUR). |
offers.standard.deposit.crossBorder | number | Required | Cross-border deposit. In currency (EUR). |
offers.standard.deposit.age | number | Required | Extra deposit for the driver age group. In currency (EUR). |
offers.standard.deposit.total | number | Required | Total deposit. 0 = no deposit at all. In currency (EUR). |
offers.standard.km | object | Required | Kilometres. |
offers.standard.km.perDay | integer | Required | Included km per day. |
offers.standard.km.included | integer | Required | Total km included for the rental. |
offers.standard.km.extraKmPrice | number | Required | Price per extra km, charged at the end over the total included. In currency (EUR). |
offers.standard.cancellation | object | Required | Cancellation policy of this offer. |
offers.standard.cancellation.freeUntil | datetime | optional | Free cancellation until this moment (Romanian time); null = free until pick-up. |
offers.standard.cancellation.stages | array | Required | Cancellation fees after the free period. |
offers.standard.cancellation.stages[].from | datetime | Required | From this moment. |
offers.standard.cancellation.stages[].amount | number | Required | Cancellation fee. In currency (EUR). |
offers.standard.cancellation.noShow | number | optional | No-show fee in EUR, or null. |
offers.standard.advance | object | optional | Always null for partners (an advance can be asked only for website bookings). |
offers.standard.advance.amount | number | Required | Advance amount. In currency (EUR). |
offers.extraProtection | object | optional | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
bookRq Book the selection.
Request
| Field | Type | Required | Description |
|---|---|---|---|
command | string | Required | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names and messages. Default en. |
pickup | object | Required | The pickup place and moment. |
pickup.locationId | integer | Required | Location code (locationsRq). |
pickup.dateTime | datetime | Required | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Required | The dropoff place and moment. |
dropoff.locationId | integer | Required | Location code (locationsRq). |
dropoff.dateTime | datetime | Required | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Required | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Required | The chosen car type (carTypesRq / searchRq). |
extras | array | optional | Chosen equipment. |
extras[].code | integer | Required | Equipment code (extrasRq). |
extras[].qty | integer | optional | Quantity, default 1; capped at maxQuantity. |
crossBorders | array<integer> | optional | Chosen cross-border destination codes (crossBordersRq). |
offer | standard|extraProtection | Required | The chosen offer. |
expectedTotal | number | Required | The total the customer saw (searchDetailsRq). A different current total gives PRICE_CHANGED with the new total. |
driver | object | Required | Main driver (signs the contract). |
driver.fullName | string | Required | Full name. |
driver.phone | string | Required | Phone with country code (WhatsApp if possible). |
driver.email | string | Required | Email (confirmation and booking link). |
driver.personalId | string | optional | Personal ID number. |
driver.birthDate | string | optional | YYYY-MM-DD. |
driver.citizenship | string | optional | Citizenship: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.addrCountry | string | optional | Address country: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.addrStateRomania | string | optional | County code, 2 letters, e.g. IS, B (only when addrCountry is RO). |
driver.addrState | string | optional | Region (other countries). |
driver.addrCity | string | optional | City. |
driver.addrStreet | string | optional | Street. |
driver.idType | integer | optional | ID document type: 1 = identity card, 2 = passport, 3 = residence permit. Default 1; another value gives FIELD_INVALID. |
driver.idCountry | string | optional | Country that issued the ID document: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.idNumber | string | optional | ID document number. |
driver.idExpiresAt | string | optional | YYYY-MM-DD. |
driver.licCountry | string | optional | Country that issued the driving licence: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.licNumber | string | optional | Licence number. |
driver.licIssuedAt | string | optional | YYYY-MM-DD. |
driver.licExpiresAt | string | optional | YYYY-MM-DD. |
additionalDriver | object | optional | Second driver, same fields (email not required). Free of charge. |
billing | object | optional | Invoice to: {type: person} (the main driver, default) or {type: company, name, taxId, vatPayer, tradeRegisterNo, country, stateRomania, state, city, street}; country: ISO 3166-1 alpha-2 code, 2 letters (e.g. RO), stateRomania: county code (e.g. IS, B). |
flight | object | optional | Arrival flight, so we can follow delays. |
flight.number | string | optional | Flight number. |
flight.from | string | optional | Departure airport. |
message | string | optional | Message for us. |
consent | boolean | Required | true: the customer accepted the rental conditions and the privacy policy. |
confirmDuplicate | boolean | optional | true: book again after DUPLICATE_BOOKING. |
partnerVoucher | string | optional | Your own booking reference (up to 60 characters). |
Response data
| Field | Type | Required | Description |
|---|---|---|---|
bookingCode | integer | Required | Our booking number. |
status | request|confirmed | Required | confirmed = instant confirmation; request = we confirm it by email. |
bookingToken | string | Required | Signed proof of the booking. |
total | number | Required | Booked total. |
currency | string | Required | EUR. |
Message codes
Codes never change and are never removed (new ones may be added); texts may be improved at any time. Rely on the code, not on the text.
| Code | Level | HTTP | Text |
|---|---|---|---|
INVALID_JSON | error | 400 | The request is not valid JSON. |
UNKNOWN_COMMAND | error | 404 | Unknown command: {value}. |
METHOD_NOT_ALLOWED | error | 405 | Send the request with POST, with the command as JSON in the body. |
EMPTY_BODY | error | 400 | The request has no body: send the command as JSON, for example {"command": "searchRq", ...}. |
AUTH_REQUIRED | error | 401 | Sign the request with the X-Api-Key, X-Api-Timestamp and X-Api-Signature headers. |
AUTH_INVALID | error | 401 | The partner credentials are not valid. |
SIGNATURE_INVALID | error | 401 | The request signature is not valid. |
SIGNATURE_EXPIRED | error | 401 | The request time is too far from ours: sign each request with the current time. |
FIELD_REQUIRED | error | 400 | This field is required: {value}. |
FIELD_INVALID | error | 400 | This field has an invalid value: {value}. |
LOCATION_UNKNOWN | error | 400 | This location does not exist: {value}. |
PICKUP_IN_PAST | error | 400 | The pick-up date and time must be in the future. |
DROPOFF_BEFORE_PICKUP | error | 400 | The return must be after the pick-up. |
AGE_GROUP_UNKNOWN | error | 400 | This driver age group does not exist. |
CAR_TYPE_NOT_OFFERED | error | 400 | This car is not offered for this search. |
TOO_MANY_ATTEMPTS | error | 429 | Too many attempts. Please try again in a few minutes. |
TRY_AGAIN | error | 503 | Another booking for this car is being saved right now. Please try again in a few seconds. |
EXTRA_NOT_OFFERED | warning | — | This equipment is not offered with this car, so it was not added: {value}. |
EXTRA_QTY_REDUCED | warning | — | The quantity was reduced to the maximum per booking: {value}. |
CROSS_BORDER_NOT_ALLOWED | warning | — | This car cannot leave the country to this destination, so it was not added: {value}. |
NO_RESULTS | info | — | No car matches your search. |
BELOW_MIN_DAYS | info | — | The price is for the minimum rental of {value} days. |
CONSENT_REQUIRED | error | 400 | Accept the rental conditions and the privacy policy to send the booking. |
PRICE_CHANGED | error | 409 | The price has changed in the meantime: the new total is {value}. Check it and send the booking again. |
DUPLICATE_BOOKING | error | 409 | You already have a booking with the same driver, dates and locations. Send it again only if you want one more. |
OFFER_UNAVAILABLE | error | 400 | The offer without deposit is not available for this car. Choose the offer with deposit. |
SERVER_ERROR | error | 500 | Something went wrong on our side. Please try again. |
Good to know
- All amounts are in the currency of the response (EUR today).
- All dates and times are Romanian local time.
- Prices are only guaranteed by bookRq: if the total changed, you get PRICE_CHANGED with the new total.