API per partner e IA
La nostra disponibilità e i nostri prezzi, in tempo reale, per gli assistenti IA e per i partner che vendono le nostre auto.
Due modi di usare i nostri dati
Ricerca per l’IA
Per gli assistenti IA e le integrazioni semplici: una richiesta GET pubblica, senza chiave. Disponibilità in tempo reale, prezzi finali, depositi e un link di prenotazione per ogni auto.
API per i partner
Per agenzie di viaggio, rivenditori e siti che vendono le nostre auto: ricerca, opzioni e prenotazione, con gli stessi prezzi e regole del nostro sito. Ogni richiesta è firmata.
Ricerca per l’IA
GET https://romaniancarhire.com/api/ai-search.php
Senza autenticazione. Solo lettura: non può prenotare; il cliente prenota dal bookingUrl di ogni offerta.
Specifica OpenAPI (JSON, in inglese): https://romaniancarhire.com/api/ai-search.openapi.json
I fatti per gli assistenti IA: https://romaniancarhire.com/llms.txt
Esempio
Parametri
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
pickup_location | integer | Obbligatorio | Location code (see llms.txt or locationsRq). |
return_location | integer | Obbligatorio | Location code. |
pickup_date | string | Obbligatorio | Romanian local time, YYYY-MM-DDTHH:MM. With a zone (Z, +02:00) it is converted to Romanian time. |
return_date | string | Obbligatorio | Same format, after the pick-up. |
lang | ro|en|fr|it|de|es | facoltativo | Language of names, messages and of the booking page. Default en. |
Risposta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
success | boolean | Obbligatorio | false = see messages. |
request | object | Obbligatorio | Dates as understood, timezone, lang, currency. |
items | array | Obbligatorio | Cars that can be rented for the dates. |
items[].carTypeId | integer | Obbligatorio | Car type code. |
items[].carTypeName | string | Obbligatorio | Name (or similar). |
items[].carTypeCategoryId | integer | Obbligatorio | Category code. |
items[].carTypeCategoryName | string | Obbligatorio | Category. |
items[].carSpecs | object | Obbligatorio | passengers, doors, luggage, transmission, fuel, ac, awd, minRent, pictures. |
items[].available | boolean | Obbligatorio | Always true (unavailable cars are not returned). |
items[].instantConfirmation | boolean | Obbligatorio | Confirmed immediately when booked. |
items[].availableStatus | object | Obbligatorio | {status: available|onRequest, requestNote: 1 instant confirmation | 2 on request}. |
items[].chargedDays | integer | Obbligatorio | Days charged. |
items[].offers | object | Obbligatorio | The two offers: read item.offers.standard.total, never item.offers.total. |
items[].offers.standard | object | Obbligatorio | With damage deposit. |
items[].offers.standard.total | integer | Obbligatorio | Final price, all included. |
items[].offers.standard.perDay | number | Obbligatorio | Average per day. |
items[].offers.standard.currency | string | Obbligatorio | EUR. |
items[].offers.standard.appliedDiscount | number | Obbligatorio | Discount amount already applied. |
items[].offers.standard.appliedDiscountPercent | number | Obbligatorio | Discount percent. |
items[].offers.standard.totalBeforeDiscount | integer | Obbligatorio | Total before discount. |
items[].offers.standard.deposit | number | Obbligatorio | Deposit at pick-up. 0 = no deposit at all. |
items[].offers.standard.allowedKmPerDay | integer | Obbligatorio | Included km per day. |
items[].offers.standard.totalAllowedKm | integer | Obbligatorio | Total km included. |
items[].offers.standard.extraKmPrice | number | Obbligatorio | Price per extra km. |
items[].offers.standard.cancellationPolicy | object | Obbligatorio | {freeCancellationUntil (null = until pick-up), stages, noShowFee}. |
items[].offers.standard.advance | object | facoltativo | {amount} asked after confirmation, or null. |
items[].offers.standard.bookingUrl | string | Obbligatorio | Where the customer books this car and offer. |
items[].offers.extraProtection | object | facoltativo | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
itemsNo | integer | Obbligatorio | Number of items. |
daysNo | integer | Obbligatorio | Rental days. |
facets | object | Obbligatorio | Counts per category, transmission, fuel, seats, luggage, availability. |
messages | array | Obbligatorio | [{code, level, field?, text}]. |
Regole per presentare i risultati
- total è il prezzo finale per tutto il noleggio: assicurazione, tasse e costi delle sedi sono inclusi. Non calcolarlo da perDay.
- deposit 0 significa nessun deposito al ritiro.
- requestNote 1 significa che la prenotazione è confermata subito; 2 significa che la confermiamo noi, di solito in poco tempo.
- Prezzi e disponibilità cambiano di continuo: cerca di nuovo a ogni domanda e non riutilizzare risultati vecchi.
API per i partner
POST https://romaniancarhire.com/api/v1/
Specifica OpenAPI (JSON, in inglese): https://romaniancarhire.com/api/v1/openapi.json
Per ottenere l’accesso (nome utente e segreto), scrivici a office@romaniancarhire.com.
Richiesta e risposta
Il corpo è JSON con il comando e la lingua; ogni risposta ha la stessa busta. Un errore ferma la richiesta (success false, data null); avvisi e note arrivano insieme ai dati.
{"command": "searchRq", "language": "en", ...}
{"success": true, "version": "v1", "command": "searchRq", "language": "en",
"data": {...}, "messages": [{"code": "NO_RESULTS", "level": "info", "text": "..."}]} Firma della richiesta
- X-Api-Key: il tuo nome utente.
- X-Api-Timestamp: l’ora attuale in secondi Unix (al massimo 5 minuti dalla nostra).
- X-Api-Signature: HMAC-SHA256 con il tuo segreto, in esadecimale, di: timestamp, metodo, percorso e lo SHA-256 del corpo esatto che invii, separati da a capo.
signature = hex(HMAC-SHA256(secret, timestamp + "\n" + "POST" + "\n" + "/api/v1/" + "\n" + hex(SHA256(body)))) Verifica il tuo codice con questo esempio:
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’ordine abituale
Carica le liste una volta e conservale finché siteVersion non cambia. Poi: searchRq per un periodo, extrasRq e crossBordersRq per l’auto scelta, searchDetailsRq per il totale esatto e bookRq con quel totale come expectedTotal.
Comandi
locationsRq Pick-up and return locations.
Richiesta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
command | string | Obbligatorio | The command name. |
language | ro|en|fr|it|de|es | facoltativo | Language of names. Default en. |
Dati della risposta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
siteVersion | integer | Obbligatorio | Version of our data: reload the list only when it changes. |
locations | array | Obbligatorio | Active locations. |
locations[].code | integer | Obbligatorio | Location code (pickup.locationId / dropoff.locationId). |
locations[].name | string | Obbligatorio | Name with type, e.g. "Iași Airport". |
locations[].city | string | Obbligatorio | City. |
locations[].type | object | Obbligatorio | city|airport|trainStation|office, with name. |
locations[].iata | string | facoltativo | Airport code, or null. |
locations[].kind | object | Obbligatorio | office|fleet|pool|request, with name: own office, local fleet, car brought from the nearest fleet, on request. |
locations[].lat | number | facoltativo | Latitude. |
locations[].lng | number | facoltativo | Longitude. |
categoriesRq Car classes.
Richiesta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
command | string | Obbligatorio | The command name. |
language | ro|en|fr|it|de|es | facoltativo | Language of names. Default en. |
Dati della risposta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
siteVersion | integer | Obbligatorio | Version of our data: reload the list only when it changes. |
categories | array | Obbligatorio | Active classes, in our order. |
categories[].code | integer | Obbligatorio | Category code. |
categories[].name | string | Obbligatorio | Name. |
categories[].description | string | facoltativo | Description, or null. |
carTypesRq Car types you can sell.
Richiesta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
command | string | Obbligatorio | The command name. |
language | ro|en|fr|it|de|es | facoltativo | Language of names. Default en. |
Dati della risposta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
siteVersion | integer | Obbligatorio | Version of our data: reload the list only when it changes. |
carTypes | array | Obbligatorio | Active car types you have access to. |
carTypes[].code | integer | Obbligatorio | Car type code. |
carTypes[].name | string | Obbligatorio | Car type name (the car or a similar one of the same class or higher). |
carTypes[].category | object | Obbligatorio | Car class. |
carTypes[].category.code | integer | Obbligatorio | Category code (categoriesRq). |
carTypes[].category.name | string | Obbligatorio | Name. |
carTypes[].acriss | string | facoltativo | ACRISS code, or null. |
carTypes[].specs | object | Obbligatorio | Features. |
carTypes[].specs.seats | integer | facoltativo | Seats. |
carTypes[].specs.doors | integer | facoltativo | Doors. |
carTypes[].specs.luggage | integer | facoltativo | Suitcases. |
carTypes[].specs.transmission | object | facoltativo | Code (manual|automatic) and name in the request language, or null. |
carTypes[].specs.transmission.code | string | Obbligatorio | manual|automatic |
carTypes[].specs.transmission.name | string | Obbligatorio | Name. |
carTypes[].specs.fuel | object | facoltativo | Fuel {code, name}, or null. |
carTypes[].specs.consumption | number | facoltativo | Litres / 100 km, or null. |
carTypes[].specs.airConditioning | object | facoltativo | Code (automatic|manual) and name in the request language, or null. |
carTypes[].specs.airConditioning.code | string | Obbligatorio | automatic|manual |
carTypes[].specs.airConditioning.name | string | Obbligatorio | Name. |
carTypes[].specs.drive | object | facoltativo | Code (front|rear|4x4) and name in the request language, or null. |
carTypes[].specs.drive.code | string | Obbligatorio | front|rear|4x4 |
carTypes[].specs.drive.name | string | Obbligatorio | Name. |
carTypes[].specs.isofix | boolean | Obbligatorio | Isofix. |
carTypes[].specs.wagon | boolean | Obbligatorio | Estate body. |
carTypes[].specs.smartphone | boolean | Obbligatorio | Smartphone integration. |
carTypes[].pictures | array<string> | Obbligatorio | Photo URLs. |
carTypes[].minimumDays | integer | Obbligatorio | Minimum rental days of the type. |
ageGroupsRq Driver age groups.
Richiesta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
command | string | Obbligatorio | The command name. |
language | ro|en|fr|it|de|es | facoltativo | Language of names. Default en. |
Dati della risposta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
siteVersion | integer | Obbligatorio | Version of our data: reload the list only when it changes. |
ageGroups | array | Obbligatorio | Active age groups. |
ageGroups[].code | integer | Obbligatorio | Age group code (ageGroup). |
ageGroups[].fromAge | integer | Obbligatorio | From age. |
ageGroups[].toAge | integer | facoltativo | To age, or null (and over). |
ageGroups[].name | string | Obbligatorio | Name, e.g. "23–69 years". |
ageGroups[].default | boolean | Obbligatorio | The usual group (no surcharge). |
searchRq Available cars and prices for a period.
Richiesta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
command | string | Obbligatorio | The command name. |
language | ro|en|fr|it|de|es | facoltativo | Language of names and messages. Default en. |
pickup | object | Obbligatorio | The pickup place and moment. |
pickup.locationId | integer | Obbligatorio | Location code (locationsRq). |
pickup.dateTime | datetime | Obbligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obbligatorio | The dropoff place and moment. |
dropoff.locationId | integer | Obbligatorio | Location code (locationsRq). |
dropoff.dateTime | datetime | Obbligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obbligatorio | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | facoltativo | Optional: a car type to return first (if it is offered for the search). |
availability | available|onRequest|both | facoltativo | Which cars to return. Default both. |
filters | object | facoltativo | Filters. |
filters.categories | array<integer> | facoltativo | Category codes. |
filters.seats | array<integer> | facoltativo | Seat counts. |
filters.luggage | integer | facoltativo | Minimum suitcases. |
filters.fuel | array<integer> | facoltativo | Fuel codes. |
filters.transmission | array<string> | facoltativo | manual / automatic. |
Dati della risposta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
currency | string | Obbligatorio | Currency of all amounts (ISO 4217, EUR). |
request | object | Obbligatorio | The request as understood. |
days | integer | Obbligatorio | Rental days. |
types | array | Obbligatorio | Cars that can be rented for the search (the others are not returned). |
types[].code | integer | Obbligatorio | Car type code. |
types[].name | string | Obbligatorio | Car type name (the car or a similar one of the same class or higher). |
types[].category | object | Obbligatorio | Car class. |
types[].category.code | integer | Obbligatorio | Category code (categoriesRq). |
types[].category.name | string | Obbligatorio | Name. |
types[].acriss | string | facoltativo | ACRISS code, or null. |
types[].specs | object | Obbligatorio | Features. |
types[].specs.seats | integer | facoltativo | Seats. |
types[].specs.doors | integer | facoltativo | Doors. |
types[].specs.luggage | integer | facoltativo | Suitcases. |
types[].specs.transmission | object | facoltativo | Code (manual|automatic) and name in the request language, or null. |
types[].specs.transmission.code | string | Obbligatorio | manual|automatic |
types[].specs.transmission.name | string | Obbligatorio | Name. |
types[].specs.fuel | object | facoltativo | Fuel {code, name}, or null. |
types[].specs.consumption | number | facoltativo | Litres / 100 km, or null. |
types[].specs.airConditioning | object | facoltativo | Code (automatic|manual) and name in the request language, or null. |
types[].specs.airConditioning.code | string | Obbligatorio | automatic|manual |
types[].specs.airConditioning.name | string | Obbligatorio | Name. |
types[].specs.drive | object | facoltativo | Code (front|rear|4x4) and name in the request language, or null. |
types[].specs.drive.code | string | Obbligatorio | front|rear|4x4 |
types[].specs.drive.name | string | Obbligatorio | Name. |
types[].specs.isofix | boolean | Obbligatorio | Isofix. |
types[].specs.wagon | boolean | Obbligatorio | Estate body. |
types[].specs.smartphone | boolean | Obbligatorio | Smartphone integration. |
types[].pictures | array<string> | Obbligatorio | Photo URLs. |
types[].requested | boolean | Obbligatorio | This is the carTypeCode from the request. |
types[].status | available|onRequest | Obbligatorio | available = can be booked now; onRequest = we confirm it. |
types[].instantConfirmation | boolean | Obbligatorio | The booking is confirmed immediately (24 h+ before pick-up, car in the fleet). |
types[].days | integer | Obbligatorio | Rental days. |
types[].chargedDays | integer | Obbligatorio | Days charged (the minimum, when the period is shorter). |
types[].minimumDays | integer | Obbligatorio | Minimum days here. |
types[].offers | object | Obbligatorio | The two offers. |
types[].offers.standard | object | Obbligatorio | With damage deposit. |
types[].offers.standard.total | integer | Obbligatorio | Final price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay. |
types[].offers.standard.perDay | number | Obbligatorio | Average price per day (information only). In currency (EUR). |
types[].offers.standard.discount | object | facoltativo | The discount already applied, or null. |
types[].offers.standard.discount.amount | number | Obbligatorio | Amount saved. In currency (EUR). |
types[].offers.standard.discount.percent | number | Obbligatorio | Percent saved. |
types[].offers.standard.discount.totalBefore | integer | Obbligatorio | Total before the discount. |
types[].offers.standard.deposit | object | Obbligatorio | Security deposit at pick-up, by part (all keys always present, 0 when not required). |
types[].offers.standard.deposit.car | number | Obbligatorio | Damage deposit (0 with extraProtection). In currency (EUR). |
types[].offers.standard.deposit.fuel | number | Obbligatorio | Fuel deposit. In currency (EUR). |
types[].offers.standard.deposit.extras | number | Obbligatorio | Equipment deposit. In currency (EUR). |
types[].offers.standard.deposit.crossBorder | number | Obbligatorio | Cross-border deposit. In currency (EUR). |
types[].offers.standard.deposit.age | number | Obbligatorio | Extra deposit for the driver age group. In currency (EUR). |
types[].offers.standard.deposit.total | number | Obbligatorio | Total deposit. 0 = no deposit at all. In currency (EUR). |
types[].offers.standard.km | object | Obbligatorio | Kilometres. |
types[].offers.standard.km.perDay | integer | Obbligatorio | Included km per day. |
types[].offers.standard.km.included | integer | Obbligatorio | Total km included for the rental. |
types[].offers.standard.km.extraKmPrice | number | Obbligatorio | Price per extra km, charged at the end over the total included. In currency (EUR). |
types[].offers.standard.cancellation | object | Obbligatorio | Cancellation policy of this offer. |
types[].offers.standard.cancellation.freeUntil | datetime | facoltativo | Free cancellation until this moment (Romanian time); null = free until pick-up. |
types[].offers.standard.cancellation.stages | array | Obbligatorio | Cancellation fees after the free period. |
types[].offers.standard.cancellation.stages[].from | datetime | Obbligatorio | From this moment. |
types[].offers.standard.cancellation.stages[].amount | number | Obbligatorio | Cancellation fee. In currency (EUR). |
types[].offers.standard.cancellation.noShow | number | facoltativo | No-show fee in EUR, or null. |
types[].offers.standard.advance | object | facoltativo | Always null for partners (an advance can be asked only for website bookings). |
types[].offers.standard.advance.amount | number | Obbligatorio | Advance amount. In currency (EUR). |
types[].offers.extraProtection | object | facoltativo | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
types[].note | string | facoltativo | A note on the price (e.g. minimum days). |
facets | object | Obbligatorio | Counts per availability, category, transmission, fuel, seats, luggage: [{code, name, count}]. |
extrasRq Equipment offered with a car.
Richiesta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
command | string | Obbligatorio | The command name. |
language | ro|en|fr|it|de|es | facoltativo | Language of names and messages. Default en. |
pickup | object | Obbligatorio | The pickup place and moment. |
pickup.locationId | integer | Obbligatorio | Location code (locationsRq). |
pickup.dateTime | datetime | Obbligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obbligatorio | The dropoff place and moment. |
dropoff.locationId | integer | Obbligatorio | Location code (locationsRq). |
dropoff.dateTime | datetime | Obbligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obbligatorio | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obbligatorio | The chosen car type (carTypesRq / searchRq). |
Dati della risposta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
currency | string | Obbligatorio | EUR. |
carTypeCode | integer | Obbligatorio | The car type. |
chargedDays | integer | Obbligatorio | Days charged. |
extras | array | Obbligatorio | Equipment. |
extras[].code | integer | Obbligatorio | Equipment code. |
extras[].name | string | Obbligatorio | Name. |
extras[].description | string | facoltativo | Description. |
extras[].photo | string | facoltativo | Photo URL. |
extras[].pricePerDay | number | Obbligatorio | Price per day. In currency (EUR). |
extras[].maxQuantity | integer | Obbligatorio | Maximum per booking. |
extras[].deposit | number | Obbligatorio | Deposit per piece. In currency (EUR). |
extras[].total | number | Obbligatorio | Price of one piece for the whole rental. In currency (EUR). |
crossBordersRq Countries the car may be driven to.
Richiesta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
command | string | Obbligatorio | The command name. |
language | ro|en|fr|it|de|es | facoltativo | Language of names and messages. Default en. |
pickup | object | Obbligatorio | The pickup place and moment. |
pickup.locationId | integer | Obbligatorio | Location code (locationsRq). |
pickup.dateTime | datetime | Obbligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obbligatorio | The dropoff place and moment. |
dropoff.locationId | integer | Obbligatorio | Location code (locationsRq). |
dropoff.dateTime | datetime | Obbligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obbligatorio | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obbligatorio | The chosen car type (carTypesRq / searchRq). |
Dati della risposta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
currency | string | Obbligatorio | EUR. |
carTypeCode | integer | Obbligatorio | The car type. |
chargedDays | integer | Obbligatorio | Days charged. |
crossBorders | array | Obbligatorio | Allowed destinations. Without one, leaving Romania is forbidden. |
crossBorders[].code | integer | Obbligatorio | Destination code. |
crossBorders[].name | string | Obbligatorio | Name. |
crossBorders[].description | string | facoltativo | Documents and rules. |
crossBorders[].pricePerDay | number | Obbligatorio | Price per day. In currency (EUR). |
crossBorders[].minTotal | number | Obbligatorio | Minimum per rental (0 = none). In currency (EUR). |
crossBorders[].maxTotal | number | Obbligatorio | Maximum per rental (0 = none). In currency (EUR). |
crossBorders[].deposit | number | Obbligatorio | Extra deposit. In currency (EUR). |
crossBorders[].total | number | Obbligatorio | Price for the whole rental. In currency (EUR). |
searchDetailsRq Exact price of a selection (car, equipment, cross-border), before booking.
Richiesta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
command | string | Obbligatorio | The command name. |
language | ro|en|fr|it|de|es | facoltativo | Language of names and messages. Default en. |
pickup | object | Obbligatorio | The pickup place and moment. |
pickup.locationId | integer | Obbligatorio | Location code (locationsRq). |
pickup.dateTime | datetime | Obbligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obbligatorio | The dropoff place and moment. |
dropoff.locationId | integer | Obbligatorio | Location code (locationsRq). |
dropoff.dateTime | datetime | Obbligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obbligatorio | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obbligatorio | The chosen car type (carTypesRq / searchRq). |
extras | array | facoltativo | Chosen equipment. |
extras[].code | integer | Obbligatorio | Equipment code (extrasRq). |
extras[].qty | integer | facoltativo | Quantity, default 1; capped at maxQuantity. |
crossBorders | array<integer> | facoltativo | Chosen cross-border destination codes (crossBordersRq). |
Dati della risposta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
currency | string | Obbligatorio | EUR. |
request | object | Obbligatorio | The request as understood. |
type | object | Obbligatorio | The car type with status, days, chargedDays, minimumDays, note. |
type.code | integer | Obbligatorio | Car type code. |
type.name | string | Obbligatorio | Car type name (the car or a similar one of the same class or higher). |
type.category | object | Obbligatorio | Car class. |
type.category.code | integer | Obbligatorio | Category code (categoriesRq). |
type.category.name | string | Obbligatorio | Name. |
type.acriss | string | facoltativo | ACRISS code, or null. |
type.specs | object | Obbligatorio | Features. |
type.specs.seats | integer | facoltativo | Seats. |
type.specs.doors | integer | facoltativo | Doors. |
type.specs.luggage | integer | facoltativo | Suitcases. |
type.specs.transmission | object | facoltativo | Code (manual|automatic) and name in the request language, or null. |
type.specs.transmission.code | string | Obbligatorio | manual|automatic |
type.specs.transmission.name | string | Obbligatorio | Name. |
type.specs.fuel | object | facoltativo | Fuel {code, name}, or null. |
type.specs.consumption | number | facoltativo | Litres / 100 km, or null. |
type.specs.airConditioning | object | facoltativo | Code (automatic|manual) and name in the request language, or null. |
type.specs.airConditioning.code | string | Obbligatorio | automatic|manual |
type.specs.airConditioning.name | string | Obbligatorio | Name. |
type.specs.drive | object | facoltativo | Code (front|rear|4x4) and name in the request language, or null. |
type.specs.drive.code | string | Obbligatorio | front|rear|4x4 |
type.specs.drive.name | string | Obbligatorio | Name. |
type.specs.isofix | boolean | Obbligatorio | Isofix. |
type.specs.wagon | boolean | Obbligatorio | Estate body. |
type.specs.smartphone | boolean | Obbligatorio | Smartphone integration. |
type.pictures | array<string> | Obbligatorio | Photo URLs. |
extras | array | Obbligatorio | Equipment added. |
extras[].code | integer | Obbligatorio | Code. |
extras[].name | string | Obbligatorio | Name. |
extras[].quantity | integer | Obbligatorio | Quantity. |
extras[].total | number | Obbligatorio | Total. In currency (EUR). |
crossBorders | array | Obbligatorio | Destinations added. |
crossBorders[].code | integer | Obbligatorio | Code. |
crossBorders[].name | string | Obbligatorio | Name. |
crossBorders[].total | number | Obbligatorio | Total. In currency (EUR). |
offers | object | Obbligatorio | The two offers for the selection; send the chosen total as expectedTotal in bookRq. |
offers.standard | object | Obbligatorio | With damage deposit. |
offers.standard.total | integer | Obbligatorio | Final price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay. |
offers.standard.perDay | number | Obbligatorio | Average price per day (information only). In currency (EUR). |
offers.standard.rentalTotal | number | Obbligatorio | The rental without equipment and cross-border (summary line). In currency (EUR). |
offers.standard.discount | object | facoltativo | The discount already applied, or null. |
offers.standard.discount.amount | number | Obbligatorio | Amount saved. In currency (EUR). |
offers.standard.discount.percent | number | Obbligatorio | Percent saved. |
offers.standard.discount.totalBefore | integer | Obbligatorio | Total before the discount. |
offers.standard.deposit | object | Obbligatorio | Security deposit at pick-up, by part (all keys always present, 0 when not required). |
offers.standard.deposit.car | number | Obbligatorio | Damage deposit (0 with extraProtection). In currency (EUR). |
offers.standard.deposit.fuel | number | Obbligatorio | Fuel deposit. In currency (EUR). |
offers.standard.deposit.extras | number | Obbligatorio | Equipment deposit. In currency (EUR). |
offers.standard.deposit.crossBorder | number | Obbligatorio | Cross-border deposit. In currency (EUR). |
offers.standard.deposit.age | number | Obbligatorio | Extra deposit for the driver age group. In currency (EUR). |
offers.standard.deposit.total | number | Obbligatorio | Total deposit. 0 = no deposit at all. In currency (EUR). |
offers.standard.km | object | Obbligatorio | Kilometres. |
offers.standard.km.perDay | integer | Obbligatorio | Included km per day. |
offers.standard.km.included | integer | Obbligatorio | Total km included for the rental. |
offers.standard.km.extraKmPrice | number | Obbligatorio | Price per extra km, charged at the end over the total included. In currency (EUR). |
offers.standard.cancellation | object | Obbligatorio | Cancellation policy of this offer. |
offers.standard.cancellation.freeUntil | datetime | facoltativo | Free cancellation until this moment (Romanian time); null = free until pick-up. |
offers.standard.cancellation.stages | array | Obbligatorio | Cancellation fees after the free period. |
offers.standard.cancellation.stages[].from | datetime | Obbligatorio | From this moment. |
offers.standard.cancellation.stages[].amount | number | Obbligatorio | Cancellation fee. In currency (EUR). |
offers.standard.cancellation.noShow | number | facoltativo | No-show fee in EUR, or null. |
offers.standard.advance | object | facoltativo | Always null for partners (an advance can be asked only for website bookings). |
offers.standard.advance.amount | number | Obbligatorio | Advance amount. In currency (EUR). |
offers.extraProtection | object | facoltativo | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
bookRq Book the selection.
Richiesta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
command | string | Obbligatorio | The command name. |
language | ro|en|fr|it|de|es | facoltativo | Language of names and messages. Default en. |
pickup | object | Obbligatorio | The pickup place and moment. |
pickup.locationId | integer | Obbligatorio | Location code (locationsRq). |
pickup.dateTime | datetime | Obbligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obbligatorio | The dropoff place and moment. |
dropoff.locationId | integer | Obbligatorio | Location code (locationsRq). |
dropoff.dateTime | datetime | Obbligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obbligatorio | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obbligatorio | The chosen car type (carTypesRq / searchRq). |
extras | array | facoltativo | Chosen equipment. |
extras[].code | integer | Obbligatorio | Equipment code (extrasRq). |
extras[].qty | integer | facoltativo | Quantity, default 1; capped at maxQuantity. |
crossBorders | array<integer> | facoltativo | Chosen cross-border destination codes (crossBordersRq). |
offer | standard|extraProtection | Obbligatorio | The chosen offer. |
expectedTotal | number | Obbligatorio | The total the customer saw (searchDetailsRq). A different current total gives PRICE_CHANGED with the new total. |
driver | object | Obbligatorio | Main driver (signs the contract). |
driver.fullName | string | Obbligatorio | Full name. |
driver.phone | string | Obbligatorio | Phone with country code (WhatsApp if possible). |
driver.email | string | Obbligatorio | Email (confirmation and booking link). |
driver.personalId | string | facoltativo | Personal ID number. |
driver.birthDate | string | facoltativo | YYYY-MM-DD. |
driver.citizenship | string | facoltativo | Citizenship: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.addrCountry | string | facoltativo | Address country: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.addrStateRomania | string | facoltativo | County code, 2 letters, e.g. IS, B (only when addrCountry is RO). |
driver.addrState | string | facoltativo | Region (other countries). |
driver.addrCity | string | facoltativo | City. |
driver.addrStreet | string | facoltativo | Street. |
driver.idType | integer | facoltativo | ID document type: 1 = identity card, 2 = passport, 3 = residence permit. Default 1; another value gives FIELD_INVALID. |
driver.idCountry | string | facoltativo | 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 | facoltativo | ID document number. |
driver.idExpiresAt | string | facoltativo | YYYY-MM-DD. |
driver.licCountry | string | facoltativo | 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 | facoltativo | Licence number. |
driver.licIssuedAt | string | facoltativo | YYYY-MM-DD. |
driver.licExpiresAt | string | facoltativo | YYYY-MM-DD. |
additionalDriver | object | facoltativo | Second driver, same fields (email not required). Free of charge. |
billing | object | facoltativo | 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 | facoltativo | Arrival flight, so we can follow delays. |
flight.number | string | facoltativo | Flight number. |
flight.from | string | facoltativo | Departure airport. |
message | string | facoltativo | Message for us. |
consent | boolean | Obbligatorio | true: the customer accepted the rental conditions and the privacy policy. |
confirmDuplicate | boolean | facoltativo | true: book again after DUPLICATE_BOOKING. |
partnerVoucher | string | facoltativo | Your own booking reference (up to 60 characters). |
Dati della risposta
| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
bookingCode | integer | Obbligatorio | Our booking number. |
status | request|confirmed | Obbligatorio | confirmed = instant confirmation; request = we confirm it by email. |
bookingToken | string | Obbligatorio | Signed proof of the booking. |
total | number | Obbligatorio | Booked total. |
currency | string | Obbligatorio | EUR. |
Codici dei messaggi
I codici non cambiano e non vengono mai eliminati (se ne possono aggiungere di nuovi); i testi possono essere migliorati in qualsiasi momento. Basati sul codice, non sul testo.
| Codice | Livello | HTTP | Testo |
|---|---|---|---|
INVALID_JSON | error | 400 | La richiesta non è un JSON valido. |
UNKNOWN_COMMAND | error | 404 | Comando sconosciuto: {value}. |
METHOD_NOT_ALLOWED | error | 405 | Invia la richiesta con POST, con il comando in JSON nel corpo. |
EMPTY_BODY | error | 400 | La richiesta non ha un corpo: invia il comando in JSON, ad esempio {"command": "searchRq", ...}. |
AUTH_REQUIRED | error | 401 | Firma la richiesta con gli header X-Api-Key, X-Api-Timestamp e X-Api-Signature. |
AUTH_INVALID | error | 401 | Le credenziali di partner non sono valide. |
SIGNATURE_INVALID | error | 401 | La firma della richiesta non è valida. |
SIGNATURE_EXPIRED | error | 401 | L’ora della richiesta è troppo lontana dalla nostra: firma ogni richiesta con l’ora attuale. |
FIELD_REQUIRED | error | 400 | Questo campo è obbligatorio: {value}. |
FIELD_INVALID | error | 400 | Questo campo ha un valore non valido: {value}. |
LOCATION_UNKNOWN | error | 400 | Questa località non esiste: {value}. |
PICKUP_IN_PAST | error | 400 | La data e l’ora del ritiro devono essere nel futuro. |
DROPOFF_BEFORE_PICKUP | error | 400 | La riconsegna deve essere dopo il ritiro. |
AGE_GROUP_UNKNOWN | error | 400 | Questa fascia d’età non esiste. |
CAR_TYPE_NOT_OFFERED | error | 400 | Quest’auto non è offerta per questa ricerca. |
TOO_MANY_ATTEMPTS | error | 429 | Troppi tentativi. Riprova tra qualche minuto. |
TRY_AGAIN | error | 503 | In questo momento si sta salvando un’altra prenotazione per questa auto. Riprova tra qualche secondo. |
EXTRA_NOT_OFFERED | warning | — | Questo accessorio non è offerto con quest’auto, quindi non è stato aggiunto: {value}. |
EXTRA_QTY_REDUCED | warning | — | La quantità è stata ridotta al massimo per prenotazione: {value}. |
CROSS_BORDER_NOT_ALLOWED | warning | — | Con quest’auto non si può uscire verso questa destinazione, quindi non è stata aggiunta: {value}. |
NO_RESULTS | info | — | Nessuna auto corrisponde alla tua ricerca. |
BELOW_MIN_DAYS | info | — | Il prezzo è per il noleggio minimo di {value} giorni. |
CONSENT_REQUIRED | error | 400 | Accetta le condizioni di noleggio e l’informativa sulla privacy per inviare la prenotazione. |
PRICE_CHANGED | error | 409 | Il prezzo è cambiato nel frattempo: il nuovo totale è {value}. Controllalo e invia di nuovo la prenotazione. |
DUPLICATE_BOOKING | error | 409 | Hai già una prenotazione con lo stesso conducente, le stesse date e gli stessi luoghi. Inviala di nuovo solo se ne vuoi un’altra. |
OFFER_UNAVAILABLE | error | 400 | L’offerta senza cauzione non è disponibile per questa auto. Scegli l’offerta con cauzione. |
SERVER_ERROR | error | 500 | Qualcosa è andato storto da parte nostra. Riprova, per favore. |
Da sapere
- Tutti gli importi sono nella valuta della risposta (oggi EUR).
- Tutte le date e gli orari sono nell’ora locale romena.
- Il prezzo è garantito solo da bookRq: se il totale è cambiato, ricevi PRICE_CHANGED con il nuovo totale.