API pour partenaires et IA
Nos disponibilités et nos prix, en temps réel, pour les assistants IA et pour les partenaires qui vendent nos voitures.
Deux façons d’utiliser nos données
Recherche pour l’IA
Pour les assistants IA et les intégrations simples : une requête GET publique, sans clé. Disponibilité en temps réel, prix finaux, cautions et un lien de réservation pour chaque voiture.
API partenaires
Pour les agences de voyages, revendeurs et sites qui vendent nos voitures : recherche, options et réservation, avec les mêmes prix et règles que sur notre site. Chaque requête est signée.
Recherche pour l’IA
GET https://romaniancarhire.com/api/ai-search.php
Sans authentification. Lecture seule : elle ne peut pas réserver ; le client réserve depuis le bookingUrl de chaque offre.
Spécification OpenAPI (JSON, en anglais): https://romaniancarhire.com/api/ai-search.openapi.json
Les faits pour les assistants IA: https://romaniancarhire.com/llms.txt
Exemple
Paramètres
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
pickup_location | integer | Obligatoire | Location code (see llms.txt or locationsRq). |
return_location | integer | Obligatoire | Location code. |
pickup_date | string | Obligatoire | Romanian local time, YYYY-MM-DDTHH:MM. With a zone (Z, +02:00) it is converted to Romanian time. |
return_date | string | Obligatoire | Same format, after the pick-up. |
lang | ro|en|fr|it|de|es | facultatif | Language of names, messages and of the booking page. Default en. |
Réponse
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
success | boolean | Obligatoire | false = see messages. |
request | object | Obligatoire | Dates as understood, timezone, lang, currency. |
items | array | Obligatoire | Cars that can be rented for the dates. |
items[].carTypeId | integer | Obligatoire | Car type code. |
items[].carTypeName | string | Obligatoire | Name (or similar). |
items[].carTypeCategoryId | integer | Obligatoire | Category code. |
items[].carTypeCategoryName | string | Obligatoire | Category. |
items[].carSpecs | object | Obligatoire | passengers, doors, luggage, transmission, fuel, ac, awd, minRent, pictures. |
items[].available | boolean | Obligatoire | Always true (unavailable cars are not returned). |
items[].instantConfirmation | boolean | Obligatoire | Confirmed immediately when booked. |
items[].availableStatus | object | Obligatoire | {status: available|onRequest, requestNote: 1 instant confirmation | 2 on request}. |
items[].chargedDays | integer | Obligatoire | Days charged. |
items[].offers | object | Obligatoire | The two offers: read item.offers.standard.total, never item.offers.total. |
items[].offers.standard | object | Obligatoire | With damage deposit. |
items[].offers.standard.total | integer | Obligatoire | Final price, all included. |
items[].offers.standard.perDay | number | Obligatoire | Average per day. |
items[].offers.standard.currency | string | Obligatoire | EUR. |
items[].offers.standard.appliedDiscount | number | Obligatoire | Discount amount already applied. |
items[].offers.standard.appliedDiscountPercent | number | Obligatoire | Discount percent. |
items[].offers.standard.totalBeforeDiscount | integer | Obligatoire | Total before discount. |
items[].offers.standard.deposit | number | Obligatoire | Deposit at pick-up. 0 = no deposit at all. |
items[].offers.standard.allowedKmPerDay | integer | Obligatoire | Included km per day. |
items[].offers.standard.totalAllowedKm | integer | Obligatoire | Total km included. |
items[].offers.standard.extraKmPrice | number | Obligatoire | Price per extra km. |
items[].offers.standard.cancellationPolicy | object | Obligatoire | {freeCancellationUntil (null = until pick-up), stages, noShowFee}. |
items[].offers.standard.advance | object | facultatif | {amount} asked after confirmation, or null. |
items[].offers.standard.bookingUrl | string | Obligatoire | Where the customer books this car and offer. |
items[].offers.extraProtection | object | facultatif | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
itemsNo | integer | Obligatoire | Number of items. |
daysNo | integer | Obligatoire | Rental days. |
facets | object | Obligatoire | Counts per category, transmission, fuel, seats, luggage, availability. |
messages | array | Obligatoire | [{code, level, field?, text}]. |
Règles pour présenter les résultats
- total est le prix final pour toute la location : assurance, taxes et frais des lieux sont inclus. Ne le calculez pas à partir de perDay.
- deposit 0 signifie aucune caution à la prise en charge.
- requestNote 1 signifie que la réservation est confirmée instantanément ; 2 signifie que nous la confirmons, généralement rapidement.
- Les prix et la disponibilité changent en permanence : relancez la recherche à chaque question et ne réutilisez pas d’anciens résultats.
API partenaires
POST https://romaniancarhire.com/api/v1/
Spécification OpenAPI (JSON, en anglais): https://romaniancarhire.com/api/v1/openapi.json
Pour obtenir un accès (nom d’utilisateur et secret), écrivez-nous à office@romaniancarhire.com.
Requête et réponse
Le corps est du JSON avec la commande et la langue ; chaque réponse a la même enveloppe. Une erreur arrête la requête (success false, data null) ; les avertissements et notes accompagnent les données.
{"command": "searchRq", "language": "en", ...}
{"success": true, "version": "v1", "command": "searchRq", "language": "en",
"data": {...}, "messages": [{"code": "NO_RESULTS", "level": "info", "text": "..."}]} Signature de la requête
- X-Api-Key : votre nom d’utilisateur.
- X-Api-Timestamp : l’heure actuelle en secondes Unix (au plus 5 minutes d’écart avec la nôtre).
- X-Api-Signature : HMAC-SHA256 avec votre secret, en hexadécimal, de : timestamp, méthode, chemin et le SHA-256 du corps exact envoyé, séparés par des retours à la ligne.
signature = hex(HMAC-SHA256(secret, timestamp + "\n" + "POST" + "\n" + "/api/v1/" + "\n" + hex(SHA256(body)))) Vérifiez votre code avec cet exemple :
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();L’ordre habituel
Chargez les listes une fois et gardez-les jusqu’au changement de siteVersion. Ensuite : searchRq pour une période, extrasRq et crossBordersRq pour la voiture choisie, searchDetailsRq pour le total exact, et bookRq avec ce total comme expectedTotal.
Commandes
locationsRq Pick-up and return locations.
Requête
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
command | string | Obligatoire | The command name. |
language | ro|en|fr|it|de|es | facultatif | Language of names. Default en. |
Données de la réponse
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
siteVersion | integer | Obligatoire | Version of our data: reload the list only when it changes. |
locations | array | Obligatoire | Active locations. |
locations[].code | integer | Obligatoire | Location code (pickup.locationId / dropoff.locationId). |
locations[].name | string | Obligatoire | Name with type, e.g. "Iași Airport". |
locations[].city | string | Obligatoire | City. |
locations[].type | object | Obligatoire | city|airport|trainStation|office, with name. |
locations[].iata | string | facultatif | Airport code, or null. |
locations[].kind | object | Obligatoire | office|fleet|pool|request, with name: own office, local fleet, car brought from the nearest fleet, on request. |
locations[].lat | number | facultatif | Latitude. |
locations[].lng | number | facultatif | Longitude. |
categoriesRq Car classes.
Requête
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
command | string | Obligatoire | The command name. |
language | ro|en|fr|it|de|es | facultatif | Language of names. Default en. |
Données de la réponse
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
siteVersion | integer | Obligatoire | Version of our data: reload the list only when it changes. |
categories | array | Obligatoire | Active classes, in our order. |
categories[].code | integer | Obligatoire | Category code. |
categories[].name | string | Obligatoire | Name. |
categories[].description | string | facultatif | Description, or null. |
carTypesRq Car types you can sell.
Requête
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
command | string | Obligatoire | The command name. |
language | ro|en|fr|it|de|es | facultatif | Language of names. Default en. |
Données de la réponse
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
siteVersion | integer | Obligatoire | Version of our data: reload the list only when it changes. |
carTypes | array | Obligatoire | Active car types you have access to. |
carTypes[].code | integer | Obligatoire | Car type code. |
carTypes[].name | string | Obligatoire | Car type name (the car or a similar one of the same class or higher). |
carTypes[].category | object | Obligatoire | Car class. |
carTypes[].category.code | integer | Obligatoire | Category code (categoriesRq). |
carTypes[].category.name | string | Obligatoire | Name. |
carTypes[].acriss | string | facultatif | ACRISS code, or null. |
carTypes[].specs | object | Obligatoire | Features. |
carTypes[].specs.seats | integer | facultatif | Seats. |
carTypes[].specs.doors | integer | facultatif | Doors. |
carTypes[].specs.luggage | integer | facultatif | Suitcases. |
carTypes[].specs.transmission | object | facultatif | Code (manual|automatic) and name in the request language, or null. |
carTypes[].specs.transmission.code | string | Obligatoire | manual|automatic |
carTypes[].specs.transmission.name | string | Obligatoire | Name. |
carTypes[].specs.fuel | object | facultatif | Fuel {code, name}, or null. |
carTypes[].specs.consumption | number | facultatif | Litres / 100 km, or null. |
carTypes[].specs.airConditioning | object | facultatif | Code (automatic|manual) and name in the request language, or null. |
carTypes[].specs.airConditioning.code | string | Obligatoire | automatic|manual |
carTypes[].specs.airConditioning.name | string | Obligatoire | Name. |
carTypes[].specs.drive | object | facultatif | Code (front|rear|4x4) and name in the request language, or null. |
carTypes[].specs.drive.code | string | Obligatoire | front|rear|4x4 |
carTypes[].specs.drive.name | string | Obligatoire | Name. |
carTypes[].specs.isofix | boolean | Obligatoire | Isofix. |
carTypes[].specs.wagon | boolean | Obligatoire | Estate body. |
carTypes[].specs.smartphone | boolean | Obligatoire | Smartphone integration. |
carTypes[].pictures | array<string> | Obligatoire | Photo URLs. |
carTypes[].minimumDays | integer | Obligatoire | Minimum rental days of the type. |
ageGroupsRq Driver age groups.
Requête
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
command | string | Obligatoire | The command name. |
language | ro|en|fr|it|de|es | facultatif | Language of names. Default en. |
Données de la réponse
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
siteVersion | integer | Obligatoire | Version of our data: reload the list only when it changes. |
ageGroups | array | Obligatoire | Active age groups. |
ageGroups[].code | integer | Obligatoire | Age group code (ageGroup). |
ageGroups[].fromAge | integer | Obligatoire | From age. |
ageGroups[].toAge | integer | facultatif | To age, or null (and over). |
ageGroups[].name | string | Obligatoire | Name, e.g. "23–69 years". |
ageGroups[].default | boolean | Obligatoire | The usual group (no surcharge). |
searchRq Available cars and prices for a period.
Requête
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
command | string | Obligatoire | The command name. |
language | ro|en|fr|it|de|es | facultatif | Language of names and messages. Default en. |
pickup | object | Obligatoire | The pickup place and moment. |
pickup.locationId | integer | Obligatoire | Location code (locationsRq). |
pickup.dateTime | datetime | Obligatoire | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obligatoire | The dropoff place and moment. |
dropoff.locationId | integer | Obligatoire | Location code (locationsRq). |
dropoff.dateTime | datetime | Obligatoire | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obligatoire | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | facultatif | Optional: a car type to return first (if it is offered for the search). |
availability | available|onRequest|both | facultatif | Which cars to return. Default both. |
filters | object | facultatif | Filters. |
filters.categories | array<integer> | facultatif | Category codes. |
filters.seats | array<integer> | facultatif | Seat counts. |
filters.luggage | integer | facultatif | Minimum suitcases. |
filters.fuel | array<integer> | facultatif | Fuel codes. |
filters.transmission | array<string> | facultatif | manual / automatic. |
Données de la réponse
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
currency | string | Obligatoire | Currency of all amounts (ISO 4217, EUR). |
request | object | Obligatoire | The request as understood. |
days | integer | Obligatoire | Rental days. |
types | array | Obligatoire | Cars that can be rented for the search (the others are not returned). |
types[].code | integer | Obligatoire | Car type code. |
types[].name | string | Obligatoire | Car type name (the car or a similar one of the same class or higher). |
types[].category | object | Obligatoire | Car class. |
types[].category.code | integer | Obligatoire | Category code (categoriesRq). |
types[].category.name | string | Obligatoire | Name. |
types[].acriss | string | facultatif | ACRISS code, or null. |
types[].specs | object | Obligatoire | Features. |
types[].specs.seats | integer | facultatif | Seats. |
types[].specs.doors | integer | facultatif | Doors. |
types[].specs.luggage | integer | facultatif | Suitcases. |
types[].specs.transmission | object | facultatif | Code (manual|automatic) and name in the request language, or null. |
types[].specs.transmission.code | string | Obligatoire | manual|automatic |
types[].specs.transmission.name | string | Obligatoire | Name. |
types[].specs.fuel | object | facultatif | Fuel {code, name}, or null. |
types[].specs.consumption | number | facultatif | Litres / 100 km, or null. |
types[].specs.airConditioning | object | facultatif | Code (automatic|manual) and name in the request language, or null. |
types[].specs.airConditioning.code | string | Obligatoire | automatic|manual |
types[].specs.airConditioning.name | string | Obligatoire | Name. |
types[].specs.drive | object | facultatif | Code (front|rear|4x4) and name in the request language, or null. |
types[].specs.drive.code | string | Obligatoire | front|rear|4x4 |
types[].specs.drive.name | string | Obligatoire | Name. |
types[].specs.isofix | boolean | Obligatoire | Isofix. |
types[].specs.wagon | boolean | Obligatoire | Estate body. |
types[].specs.smartphone | boolean | Obligatoire | Smartphone integration. |
types[].pictures | array<string> | Obligatoire | Photo URLs. |
types[].requested | boolean | Obligatoire | This is the carTypeCode from the request. |
types[].status | available|onRequest | Obligatoire | available = can be booked now; onRequest = we confirm it. |
types[].instantConfirmation | boolean | Obligatoire | The booking is confirmed immediately (24 h+ before pick-up, car in the fleet). |
types[].days | integer | Obligatoire | Rental days. |
types[].chargedDays | integer | Obligatoire | Days charged (the minimum, when the period is shorter). |
types[].minimumDays | integer | Obligatoire | Minimum days here. |
types[].offers | object | Obligatoire | The two offers. |
types[].offers.standard | object | Obligatoire | With damage deposit. |
types[].offers.standard.total | integer | Obligatoire | Final price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay. |
types[].offers.standard.perDay | number | Obligatoire | Average price per day (information only). In currency (EUR). |
types[].offers.standard.discount | object | facultatif | The discount already applied, or null. |
types[].offers.standard.discount.amount | number | Obligatoire | Amount saved. In currency (EUR). |
types[].offers.standard.discount.percent | number | Obligatoire | Percent saved. |
types[].offers.standard.discount.totalBefore | integer | Obligatoire | Total before the discount. |
types[].offers.standard.deposit | object | Obligatoire | Security deposit at pick-up, by part (all keys always present, 0 when not required). |
types[].offers.standard.deposit.car | number | Obligatoire | Damage deposit (0 with extraProtection). In currency (EUR). |
types[].offers.standard.deposit.fuel | number | Obligatoire | Fuel deposit. In currency (EUR). |
types[].offers.standard.deposit.extras | number | Obligatoire | Equipment deposit. In currency (EUR). |
types[].offers.standard.deposit.crossBorder | number | Obligatoire | Cross-border deposit. In currency (EUR). |
types[].offers.standard.deposit.age | number | Obligatoire | Extra deposit for the driver age group. In currency (EUR). |
types[].offers.standard.deposit.total | number | Obligatoire | Total deposit. 0 = no deposit at all. In currency (EUR). |
types[].offers.standard.km | object | Obligatoire | Kilometres. |
types[].offers.standard.km.perDay | integer | Obligatoire | Included km per day. |
types[].offers.standard.km.included | integer | Obligatoire | Total km included for the rental. |
types[].offers.standard.km.extraKmPrice | number | Obligatoire | Price per extra km, charged at the end over the total included. In currency (EUR). |
types[].offers.standard.cancellation | object | Obligatoire | Cancellation policy of this offer. |
types[].offers.standard.cancellation.freeUntil | datetime | facultatif | Free cancellation until this moment (Romanian time); null = free until pick-up. |
types[].offers.standard.cancellation.stages | array | Obligatoire | Cancellation fees after the free period. |
types[].offers.standard.cancellation.stages[].from | datetime | Obligatoire | From this moment. |
types[].offers.standard.cancellation.stages[].amount | number | Obligatoire | Cancellation fee. In currency (EUR). |
types[].offers.standard.cancellation.noShow | number | facultatif | No-show fee in EUR, or null. |
types[].offers.standard.advance | object | facultatif | Always null for partners (an advance can be asked only for website bookings). |
types[].offers.standard.advance.amount | number | Obligatoire | Advance amount. In currency (EUR). |
types[].offers.extraProtection | object | facultatif | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
types[].note | string | facultatif | A note on the price (e.g. minimum days). |
facets | object | Obligatoire | Counts per availability, category, transmission, fuel, seats, luggage: [{code, name, count}]. |
extrasRq Equipment offered with a car.
Requête
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
command | string | Obligatoire | The command name. |
language | ro|en|fr|it|de|es | facultatif | Language of names and messages. Default en. |
pickup | object | Obligatoire | The pickup place and moment. |
pickup.locationId | integer | Obligatoire | Location code (locationsRq). |
pickup.dateTime | datetime | Obligatoire | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obligatoire | The dropoff place and moment. |
dropoff.locationId | integer | Obligatoire | Location code (locationsRq). |
dropoff.dateTime | datetime | Obligatoire | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obligatoire | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obligatoire | The chosen car type (carTypesRq / searchRq). |
Données de la réponse
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
currency | string | Obligatoire | EUR. |
carTypeCode | integer | Obligatoire | The car type. |
chargedDays | integer | Obligatoire | Days charged. |
extras | array | Obligatoire | Equipment. |
extras[].code | integer | Obligatoire | Equipment code. |
extras[].name | string | Obligatoire | Name. |
extras[].description | string | facultatif | Description. |
extras[].photo | string | facultatif | Photo URL. |
extras[].pricePerDay | number | Obligatoire | Price per day. In currency (EUR). |
extras[].maxQuantity | integer | Obligatoire | Maximum per booking. |
extras[].deposit | number | Obligatoire | Deposit per piece. In currency (EUR). |
extras[].total | number | Obligatoire | Price of one piece for the whole rental. In currency (EUR). |
crossBordersRq Countries the car may be driven to.
Requête
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
command | string | Obligatoire | The command name. |
language | ro|en|fr|it|de|es | facultatif | Language of names and messages. Default en. |
pickup | object | Obligatoire | The pickup place and moment. |
pickup.locationId | integer | Obligatoire | Location code (locationsRq). |
pickup.dateTime | datetime | Obligatoire | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obligatoire | The dropoff place and moment. |
dropoff.locationId | integer | Obligatoire | Location code (locationsRq). |
dropoff.dateTime | datetime | Obligatoire | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obligatoire | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obligatoire | The chosen car type (carTypesRq / searchRq). |
Données de la réponse
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
currency | string | Obligatoire | EUR. |
carTypeCode | integer | Obligatoire | The car type. |
chargedDays | integer | Obligatoire | Days charged. |
crossBorders | array | Obligatoire | Allowed destinations. Without one, leaving Romania is forbidden. |
crossBorders[].code | integer | Obligatoire | Destination code. |
crossBorders[].name | string | Obligatoire | Name. |
crossBorders[].description | string | facultatif | Documents and rules. |
crossBorders[].pricePerDay | number | Obligatoire | Price per day. In currency (EUR). |
crossBorders[].minTotal | number | Obligatoire | Minimum per rental (0 = none). In currency (EUR). |
crossBorders[].maxTotal | number | Obligatoire | Maximum per rental (0 = none). In currency (EUR). |
crossBorders[].deposit | number | Obligatoire | Extra deposit. In currency (EUR). |
crossBorders[].total | number | Obligatoire | Price for the whole rental. In currency (EUR). |
searchDetailsRq Exact price of a selection (car, equipment, cross-border), before booking.
Requête
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
command | string | Obligatoire | The command name. |
language | ro|en|fr|it|de|es | facultatif | Language of names and messages. Default en. |
pickup | object | Obligatoire | The pickup place and moment. |
pickup.locationId | integer | Obligatoire | Location code (locationsRq). |
pickup.dateTime | datetime | Obligatoire | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obligatoire | The dropoff place and moment. |
dropoff.locationId | integer | Obligatoire | Location code (locationsRq). |
dropoff.dateTime | datetime | Obligatoire | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obligatoire | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obligatoire | The chosen car type (carTypesRq / searchRq). |
extras | array | facultatif | Chosen equipment. |
extras[].code | integer | Obligatoire | Equipment code (extrasRq). |
extras[].qty | integer | facultatif | Quantity, default 1; capped at maxQuantity. |
crossBorders | array<integer> | facultatif | Chosen cross-border destination codes (crossBordersRq). |
Données de la réponse
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
currency | string | Obligatoire | EUR. |
request | object | Obligatoire | The request as understood. |
type | object | Obligatoire | The car type with status, days, chargedDays, minimumDays, note. |
type.code | integer | Obligatoire | Car type code. |
type.name | string | Obligatoire | Car type name (the car or a similar one of the same class or higher). |
type.category | object | Obligatoire | Car class. |
type.category.code | integer | Obligatoire | Category code (categoriesRq). |
type.category.name | string | Obligatoire | Name. |
type.acriss | string | facultatif | ACRISS code, or null. |
type.specs | object | Obligatoire | Features. |
type.specs.seats | integer | facultatif | Seats. |
type.specs.doors | integer | facultatif | Doors. |
type.specs.luggage | integer | facultatif | Suitcases. |
type.specs.transmission | object | facultatif | Code (manual|automatic) and name in the request language, or null. |
type.specs.transmission.code | string | Obligatoire | manual|automatic |
type.specs.transmission.name | string | Obligatoire | Name. |
type.specs.fuel | object | facultatif | Fuel {code, name}, or null. |
type.specs.consumption | number | facultatif | Litres / 100 km, or null. |
type.specs.airConditioning | object | facultatif | Code (automatic|manual) and name in the request language, or null. |
type.specs.airConditioning.code | string | Obligatoire | automatic|manual |
type.specs.airConditioning.name | string | Obligatoire | Name. |
type.specs.drive | object | facultatif | Code (front|rear|4x4) and name in the request language, or null. |
type.specs.drive.code | string | Obligatoire | front|rear|4x4 |
type.specs.drive.name | string | Obligatoire | Name. |
type.specs.isofix | boolean | Obligatoire | Isofix. |
type.specs.wagon | boolean | Obligatoire | Estate body. |
type.specs.smartphone | boolean | Obligatoire | Smartphone integration. |
type.pictures | array<string> | Obligatoire | Photo URLs. |
extras | array | Obligatoire | Equipment added. |
extras[].code | integer | Obligatoire | Code. |
extras[].name | string | Obligatoire | Name. |
extras[].quantity | integer | Obligatoire | Quantity. |
extras[].total | number | Obligatoire | Total. In currency (EUR). |
crossBorders | array | Obligatoire | Destinations added. |
crossBorders[].code | integer | Obligatoire | Code. |
crossBorders[].name | string | Obligatoire | Name. |
crossBorders[].total | number | Obligatoire | Total. In currency (EUR). |
offers | object | Obligatoire | The two offers for the selection; send the chosen total as expectedTotal in bookRq. |
offers.standard | object | Obligatoire | With damage deposit. |
offers.standard.total | integer | Obligatoire | Final price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay. |
offers.standard.perDay | number | Obligatoire | Average price per day (information only). In currency (EUR). |
offers.standard.rentalTotal | number | Obligatoire | The rental without equipment and cross-border (summary line). In currency (EUR). |
offers.standard.discount | object | facultatif | The discount already applied, or null. |
offers.standard.discount.amount | number | Obligatoire | Amount saved. In currency (EUR). |
offers.standard.discount.percent | number | Obligatoire | Percent saved. |
offers.standard.discount.totalBefore | integer | Obligatoire | Total before the discount. |
offers.standard.deposit | object | Obligatoire | Security deposit at pick-up, by part (all keys always present, 0 when not required). |
offers.standard.deposit.car | number | Obligatoire | Damage deposit (0 with extraProtection). In currency (EUR). |
offers.standard.deposit.fuel | number | Obligatoire | Fuel deposit. In currency (EUR). |
offers.standard.deposit.extras | number | Obligatoire | Equipment deposit. In currency (EUR). |
offers.standard.deposit.crossBorder | number | Obligatoire | Cross-border deposit. In currency (EUR). |
offers.standard.deposit.age | number | Obligatoire | Extra deposit for the driver age group. In currency (EUR). |
offers.standard.deposit.total | number | Obligatoire | Total deposit. 0 = no deposit at all. In currency (EUR). |
offers.standard.km | object | Obligatoire | Kilometres. |
offers.standard.km.perDay | integer | Obligatoire | Included km per day. |
offers.standard.km.included | integer | Obligatoire | Total km included for the rental. |
offers.standard.km.extraKmPrice | number | Obligatoire | Price per extra km, charged at the end over the total included. In currency (EUR). |
offers.standard.cancellation | object | Obligatoire | Cancellation policy of this offer. |
offers.standard.cancellation.freeUntil | datetime | facultatif | Free cancellation until this moment (Romanian time); null = free until pick-up. |
offers.standard.cancellation.stages | array | Obligatoire | Cancellation fees after the free period. |
offers.standard.cancellation.stages[].from | datetime | Obligatoire | From this moment. |
offers.standard.cancellation.stages[].amount | number | Obligatoire | Cancellation fee. In currency (EUR). |
offers.standard.cancellation.noShow | number | facultatif | No-show fee in EUR, or null. |
offers.standard.advance | object | facultatif | Always null for partners (an advance can be asked only for website bookings). |
offers.standard.advance.amount | number | Obligatoire | Advance amount. In currency (EUR). |
offers.extraProtection | object | facultatif | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
bookRq Book the selection.
Requête
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
command | string | Obligatoire | The command name. |
language | ro|en|fr|it|de|es | facultatif | Language of names and messages. Default en. |
pickup | object | Obligatoire | The pickup place and moment. |
pickup.locationId | integer | Obligatoire | Location code (locationsRq). |
pickup.dateTime | datetime | Obligatoire | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obligatoire | The dropoff place and moment. |
dropoff.locationId | integer | Obligatoire | Location code (locationsRq). |
dropoff.dateTime | datetime | Obligatoire | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obligatoire | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obligatoire | The chosen car type (carTypesRq / searchRq). |
extras | array | facultatif | Chosen equipment. |
extras[].code | integer | Obligatoire | Equipment code (extrasRq). |
extras[].qty | integer | facultatif | Quantity, default 1; capped at maxQuantity. |
crossBorders | array<integer> | facultatif | Chosen cross-border destination codes (crossBordersRq). |
offer | standard|extraProtection | Obligatoire | The chosen offer. |
expectedTotal | number | Obligatoire | The total the customer saw (searchDetailsRq). A different current total gives PRICE_CHANGED with the new total. |
driver | object | Obligatoire | Main driver (signs the contract). |
driver.fullName | string | Obligatoire | Full name. |
driver.phone | string | Obligatoire | Phone with country code (WhatsApp if possible). |
driver.email | string | Obligatoire | Email (confirmation and booking link). |
driver.personalId | string | facultatif | Personal ID number. |
driver.birthDate | string | facultatif | YYYY-MM-DD. |
driver.citizenship | string | facultatif | Citizenship: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.addrCountry | string | facultatif | Address country: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.addrStateRomania | string | facultatif | County code, 2 letters, e.g. IS, B (only when addrCountry is RO). |
driver.addrState | string | facultatif | Region (other countries). |
driver.addrCity | string | facultatif | City. |
driver.addrStreet | string | facultatif | Street. |
driver.idType | integer | facultatif | ID document type: 1 = identity card, 2 = passport, 3 = residence permit. Default 1; another value gives FIELD_INVALID. |
driver.idCountry | string | facultatif | 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 | facultatif | ID document number. |
driver.idExpiresAt | string | facultatif | YYYY-MM-DD. |
driver.licCountry | string | facultatif | 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 | facultatif | Licence number. |
driver.licIssuedAt | string | facultatif | YYYY-MM-DD. |
driver.licExpiresAt | string | facultatif | YYYY-MM-DD. |
additionalDriver | object | facultatif | Second driver, same fields (email not required). Free of charge. |
billing | object | facultatif | 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 | facultatif | Arrival flight, so we can follow delays. |
flight.number | string | facultatif | Flight number. |
flight.from | string | facultatif | Departure airport. |
message | string | facultatif | Message for us. |
consent | boolean | Obligatoire | true: the customer accepted the rental conditions and the privacy policy. |
confirmDuplicate | boolean | facultatif | true: book again after DUPLICATE_BOOKING. |
partnerVoucher | string | facultatif | Your own booking reference (up to 60 characters). |
Données de la réponse
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
bookingCode | integer | Obligatoire | Our booking number. |
status | request|confirmed | Obligatoire | confirmed = instant confirmation; request = we confirm it by email. |
bookingToken | string | Obligatoire | Signed proof of the booking. |
total | number | Obligatoire | Booked total. |
currency | string | Obligatoire | EUR. |
Codes des messages
Les codes ne changent jamais et ne sont jamais supprimés (de nouveaux peuvent être ajoutés) ; les textes peuvent être améliorés à tout moment. Fiez-vous au code, pas au texte.
| Code | Niveau | HTTP | Texte |
|---|---|---|---|
INVALID_JSON | error | 400 | La requête n’est pas un JSON valide. |
UNKNOWN_COMMAND | error | 404 | Commande inconnue : {value}. |
METHOD_NOT_ALLOWED | error | 405 | Envoie la requête en POST, avec la commande en JSON dans le corps. |
EMPTY_BODY | error | 400 | La requête n’a pas de corps : envoie la commande en JSON, par exemple {"command": "searchRq", ...}. |
AUTH_REQUIRED | error | 401 | Signe la requête avec les en-têtes X-Api-Key, X-Api-Timestamp et X-Api-Signature. |
AUTH_INVALID | error | 401 | Les identifiants de partenaire ne sont pas valides. |
SIGNATURE_INVALID | error | 401 | La signature de la requête n’est pas valide. |
SIGNATURE_EXPIRED | error | 401 | L’heure de la requête est trop éloignée de la nôtre : signe chaque requête avec l’heure actuelle. |
FIELD_REQUIRED | error | 400 | Ce champ est obligatoire : {value}. |
FIELD_INVALID | error | 400 | Ce champ a une valeur invalide : {value}. |
LOCATION_UNKNOWN | error | 400 | Ce lieu n’existe pas : {value}. |
PICKUP_IN_PAST | error | 400 | La date et l’heure de prise en charge doivent être dans le futur. |
DROPOFF_BEFORE_PICKUP | error | 400 | Le retour doit être après la prise en charge. |
AGE_GROUP_UNKNOWN | error | 400 | Cette tranche d’âge n’existe pas. |
CAR_TYPE_NOT_OFFERED | error | 400 | Cette voiture n’est pas proposée pour cette recherche. |
TOO_MANY_ATTEMPTS | error | 429 | Trop de tentatives. Réessaie dans quelques minutes. |
TRY_AGAIN | error | 503 | Une autre réservation pour cette voiture est en cours d’enregistrement. Réessaie dans quelques secondes. |
EXTRA_NOT_OFFERED | warning | — | Cet équipement n’est pas proposé avec cette voiture, il n’a donc pas été ajouté : {value}. |
EXTRA_QTY_REDUCED | warning | — | La quantité a été réduite au maximum par réservation : {value}. |
CROSS_BORDER_NOT_ALLOWED | warning | — | Cette voiture ne peut pas sortir du pays vers cette destination, elle n’a donc pas été ajoutée : {value}. |
NO_RESULTS | info | — | Aucune voiture ne correspond à ta recherche. |
BELOW_MIN_DAYS | info | — | Le prix correspond à la location minimale de {value} jours. |
CONSENT_REQUIRED | error | 400 | Accepte les conditions de location et la politique de confidentialité pour envoyer la réservation. |
PRICE_CHANGED | error | 409 | Le prix a changé entre-temps : le nouveau total est de {value}. Vérifie-le et envoie à nouveau la réservation. |
DUPLICATE_BOOKING | error | 409 | Tu as déjà une réservation avec le même conducteur, les mêmes dates et les mêmes lieux. Renvoie-la seulement si tu en veux une de plus. |
OFFER_UNAVAILABLE | error | 400 | L’offre sans caution n’est pas disponible pour cette voiture. Choisis l’offre avec caution. |
SERVER_ERROR | error | 500 | Un problème est survenu de notre côté. Réessaie, s’il te plaît. |
Bon à savoir
- Tous les montants sont dans la devise de la réponse (EUR aujourd’hui).
- Toutes les dates et heures sont à l’heure locale roumaine.
- Le prix n’est garanti que par bookRq : si le total a changé, vous recevez PRICE_CHANGED avec le nouveau total.