Romanian Car Hire H24+40 741 644 169 Prenota online

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.

4,7 su Google, 206 recensioni Conferma immediata, senza aspettare un operatore 24 ore su 24, anche di notteSenza carta di creditoDal 2006

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.

Vedi la ricerca per l’IA

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.

Vedi l’API per i partner

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

  1. X-Api-Key: il tuo nome utente.
  2. X-Api-Timestamp: l’ora attuale in secondi Unix (al massimo 5 minuti dalla nostra).
  3. 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

CampoTipoObbligatorioDescrizione
commandstringObbligatorioThe command name.
languagero|en|fr|it|de|esfacoltativoLanguage of names. Default en.

Dati della risposta

CampoTipoObbligatorioDescrizione
siteVersionintegerObbligatorioVersion of our data: reload the list only when it changes.
locationsarrayObbligatorioActive locations.
locations[].codeintegerObbligatorioLocation code (pickup.locationId / dropoff.locationId).
locations[].namestringObbligatorioName with type, e.g. "Iași Airport".
locations[].citystringObbligatorioCity.
locations[].typeobjectObbligatoriocity|airport|trainStation|office, with name.
locations[].iatastringfacoltativoAirport code, or null.
locations[].kindobjectObbligatoriooffice|fleet|pool|request, with name: own office, local fleet, car brought from the nearest fleet, on request.
locations[].latnumberfacoltativoLatitude.
locations[].lngnumberfacoltativoLongitude.
categoriesRq Car classes.

Richiesta

CampoTipoObbligatorioDescrizione
commandstringObbligatorioThe command name.
languagero|en|fr|it|de|esfacoltativoLanguage of names. Default en.

Dati della risposta

CampoTipoObbligatorioDescrizione
siteVersionintegerObbligatorioVersion of our data: reload the list only when it changes.
categoriesarrayObbligatorioActive classes, in our order.
categories[].codeintegerObbligatorioCategory code.
categories[].namestringObbligatorioName.
categories[].descriptionstringfacoltativoDescription, or null.
carTypesRq Car types you can sell.

Richiesta

CampoTipoObbligatorioDescrizione
commandstringObbligatorioThe command name.
languagero|en|fr|it|de|esfacoltativoLanguage of names. Default en.

Dati della risposta

CampoTipoObbligatorioDescrizione
siteVersionintegerObbligatorioVersion of our data: reload the list only when it changes.
carTypesarrayObbligatorioActive car types you have access to.
carTypes[].codeintegerObbligatorioCar type code.
carTypes[].namestringObbligatorioCar type name (the car or a similar one of the same class or higher).
carTypes[].categoryobjectObbligatorioCar class.
carTypes[].category.codeintegerObbligatorioCategory code (categoriesRq).
carTypes[].category.namestringObbligatorioName.
carTypes[].acrissstringfacoltativoACRISS code, or null.
carTypes[].specsobjectObbligatorioFeatures.
carTypes[].specs.seatsintegerfacoltativoSeats.
carTypes[].specs.doorsintegerfacoltativoDoors.
carTypes[].specs.luggageintegerfacoltativoSuitcases.
carTypes[].specs.transmissionobjectfacoltativoCode (manual|automatic) and name in the request language, or null.
carTypes[].specs.transmission.codestringObbligatoriomanual|automatic
carTypes[].specs.transmission.namestringObbligatorioName.
carTypes[].specs.fuelobjectfacoltativoFuel {code, name}, or null.
carTypes[].specs.consumptionnumberfacoltativoLitres / 100 km, or null.
carTypes[].specs.airConditioningobjectfacoltativoCode (automatic|manual) and name in the request language, or null.
carTypes[].specs.airConditioning.codestringObbligatorioautomatic|manual
carTypes[].specs.airConditioning.namestringObbligatorioName.
carTypes[].specs.driveobjectfacoltativoCode (front|rear|4x4) and name in the request language, or null.
carTypes[].specs.drive.codestringObbligatoriofront|rear|4x4
carTypes[].specs.drive.namestringObbligatorioName.
carTypes[].specs.isofixbooleanObbligatorioIsofix.
carTypes[].specs.wagonbooleanObbligatorioEstate body.
carTypes[].specs.smartphonebooleanObbligatorioSmartphone integration.
carTypes[].picturesarray<string>ObbligatorioPhoto URLs.
carTypes[].minimumDaysintegerObbligatorioMinimum rental days of the type.
ageGroupsRq Driver age groups.

Richiesta

CampoTipoObbligatorioDescrizione
commandstringObbligatorioThe command name.
languagero|en|fr|it|de|esfacoltativoLanguage of names. Default en.

Dati della risposta

CampoTipoObbligatorioDescrizione
siteVersionintegerObbligatorioVersion of our data: reload the list only when it changes.
ageGroupsarrayObbligatorioActive age groups.
ageGroups[].codeintegerObbligatorioAge group code (ageGroup).
ageGroups[].fromAgeintegerObbligatorioFrom age.
ageGroups[].toAgeintegerfacoltativoTo age, or null (and over).
ageGroups[].namestringObbligatorioName, e.g. "23–69 years".
ageGroups[].defaultbooleanObbligatorioThe usual group (no surcharge).
searchRq Available cars and prices for a period.

Richiesta

CampoTipoObbligatorioDescrizione
commandstringObbligatorioThe command name.
languagero|en|fr|it|de|esfacoltativoLanguage of names and messages. Default en.
pickupobjectObbligatorioThe pickup place and moment.
pickup.locationIdintegerObbligatorioLocation code (locationsRq).
pickup.dateTimedatetimeObbligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObbligatorioThe dropoff place and moment.
dropoff.locationIdintegerObbligatorioLocation code (locationsRq).
dropoff.dateTimedatetimeObbligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObbligatorioMain driver age group code (ageGroupsRq).
carTypeCodeintegerfacoltativoOptional: a car type to return first (if it is offered for the search).
availabilityavailable|onRequest|bothfacoltativoWhich cars to return. Default both.
filtersobjectfacoltativoFilters.
filters.categoriesarray<integer>facoltativoCategory codes.
filters.seatsarray<integer>facoltativoSeat counts.
filters.luggageintegerfacoltativoMinimum suitcases.
filters.fuelarray<integer>facoltativoFuel codes.
filters.transmissionarray<string>facoltativomanual / automatic.

Dati della risposta

CampoTipoObbligatorioDescrizione
currencystringObbligatorioCurrency of all amounts (ISO 4217, EUR).
requestobjectObbligatorioThe request as understood.
daysintegerObbligatorioRental days.
typesarrayObbligatorioCars that can be rented for the search (the others are not returned).
types[].codeintegerObbligatorioCar type code.
types[].namestringObbligatorioCar type name (the car or a similar one of the same class or higher).
types[].categoryobjectObbligatorioCar class.
types[].category.codeintegerObbligatorioCategory code (categoriesRq).
types[].category.namestringObbligatorioName.
types[].acrissstringfacoltativoACRISS code, or null.
types[].specsobjectObbligatorioFeatures.
types[].specs.seatsintegerfacoltativoSeats.
types[].specs.doorsintegerfacoltativoDoors.
types[].specs.luggageintegerfacoltativoSuitcases.
types[].specs.transmissionobjectfacoltativoCode (manual|automatic) and name in the request language, or null.
types[].specs.transmission.codestringObbligatoriomanual|automatic
types[].specs.transmission.namestringObbligatorioName.
types[].specs.fuelobjectfacoltativoFuel {code, name}, or null.
types[].specs.consumptionnumberfacoltativoLitres / 100 km, or null.
types[].specs.airConditioningobjectfacoltativoCode (automatic|manual) and name in the request language, or null.
types[].specs.airConditioning.codestringObbligatorioautomatic|manual
types[].specs.airConditioning.namestringObbligatorioName.
types[].specs.driveobjectfacoltativoCode (front|rear|4x4) and name in the request language, or null.
types[].specs.drive.codestringObbligatoriofront|rear|4x4
types[].specs.drive.namestringObbligatorioName.
types[].specs.isofixbooleanObbligatorioIsofix.
types[].specs.wagonbooleanObbligatorioEstate body.
types[].specs.smartphonebooleanObbligatorioSmartphone integration.
types[].picturesarray<string>ObbligatorioPhoto URLs.
types[].requestedbooleanObbligatorioThis is the carTypeCode from the request.
types[].statusavailable|onRequestObbligatorioavailable = can be booked now; onRequest = we confirm it.
types[].instantConfirmationbooleanObbligatorioThe booking is confirmed immediately (24 h+ before pick-up, car in the fleet).
types[].daysintegerObbligatorioRental days.
types[].chargedDaysintegerObbligatorioDays charged (the minimum, when the period is shorter).
types[].minimumDaysintegerObbligatorioMinimum days here.
types[].offersobjectObbligatorioThe two offers.
types[].offers.standardobjectObbligatorioWith damage deposit.
types[].offers.standard.totalintegerObbligatorioFinal price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay.
types[].offers.standard.perDaynumberObbligatorioAverage price per day (information only). In currency (EUR).
types[].offers.standard.discountobjectfacoltativoThe discount already applied, or null.
types[].offers.standard.discount.amountnumberObbligatorioAmount saved. In currency (EUR).
types[].offers.standard.discount.percentnumberObbligatorioPercent saved.
types[].offers.standard.discount.totalBeforeintegerObbligatorioTotal before the discount.
types[].offers.standard.depositobjectObbligatorioSecurity deposit at pick-up, by part (all keys always present, 0 when not required).
types[].offers.standard.deposit.carnumberObbligatorioDamage deposit (0 with extraProtection). In currency (EUR).
types[].offers.standard.deposit.fuelnumberObbligatorioFuel deposit. In currency (EUR).
types[].offers.standard.deposit.extrasnumberObbligatorioEquipment deposit. In currency (EUR).
types[].offers.standard.deposit.crossBordernumberObbligatorioCross-border deposit. In currency (EUR).
types[].offers.standard.deposit.agenumberObbligatorioExtra deposit for the driver age group. In currency (EUR).
types[].offers.standard.deposit.totalnumberObbligatorioTotal deposit. 0 = no deposit at all. In currency (EUR).
types[].offers.standard.kmobjectObbligatorioKilometres.
types[].offers.standard.km.perDayintegerObbligatorioIncluded km per day.
types[].offers.standard.km.includedintegerObbligatorioTotal km included for the rental.
types[].offers.standard.km.extraKmPricenumberObbligatorioPrice per extra km, charged at the end over the total included. In currency (EUR).
types[].offers.standard.cancellationobjectObbligatorioCancellation policy of this offer.
types[].offers.standard.cancellation.freeUntildatetimefacoltativoFree cancellation until this moment (Romanian time); null = free until pick-up.
types[].offers.standard.cancellation.stagesarrayObbligatorioCancellation fees after the free period.
types[].offers.standard.cancellation.stages[].fromdatetimeObbligatorioFrom this moment.
types[].offers.standard.cancellation.stages[].amountnumberObbligatorioCancellation fee. In currency (EUR).
types[].offers.standard.cancellation.noShownumberfacoltativoNo-show fee in EUR, or null.
types[].offers.standard.advanceobjectfacoltativoAlways null for partners (an advance can be asked only for website bookings).
types[].offers.standard.advance.amountnumberObbligatorioAdvance amount. In currency (EUR).
types[].offers.extraProtectionobjectfacoltativoWithout damage deposit (SCDW), or null when the car has no such option. Same fields as standard.
types[].notestringfacoltativoA note on the price (e.g. minimum days).
facetsobjectObbligatorioCounts per availability, category, transmission, fuel, seats, luggage: [{code, name, count}].
extrasRq Equipment offered with a car.

Richiesta

CampoTipoObbligatorioDescrizione
commandstringObbligatorioThe command name.
languagero|en|fr|it|de|esfacoltativoLanguage of names and messages. Default en.
pickupobjectObbligatorioThe pickup place and moment.
pickup.locationIdintegerObbligatorioLocation code (locationsRq).
pickup.dateTimedatetimeObbligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObbligatorioThe dropoff place and moment.
dropoff.locationIdintegerObbligatorioLocation code (locationsRq).
dropoff.dateTimedatetimeObbligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObbligatorioMain driver age group code (ageGroupsRq).
carTypeCodeintegerObbligatorioThe chosen car type (carTypesRq / searchRq).

Dati della risposta

CampoTipoObbligatorioDescrizione
currencystringObbligatorioEUR.
carTypeCodeintegerObbligatorioThe car type.
chargedDaysintegerObbligatorioDays charged.
extrasarrayObbligatorioEquipment.
extras[].codeintegerObbligatorioEquipment code.
extras[].namestringObbligatorioName.
extras[].descriptionstringfacoltativoDescription.
extras[].photostringfacoltativoPhoto URL.
extras[].pricePerDaynumberObbligatorioPrice per day. In currency (EUR).
extras[].maxQuantityintegerObbligatorioMaximum per booking.
extras[].depositnumberObbligatorioDeposit per piece. In currency (EUR).
extras[].totalnumberObbligatorioPrice of one piece for the whole rental. In currency (EUR).
crossBordersRq Countries the car may be driven to.

Richiesta

CampoTipoObbligatorioDescrizione
commandstringObbligatorioThe command name.
languagero|en|fr|it|de|esfacoltativoLanguage of names and messages. Default en.
pickupobjectObbligatorioThe pickup place and moment.
pickup.locationIdintegerObbligatorioLocation code (locationsRq).
pickup.dateTimedatetimeObbligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObbligatorioThe dropoff place and moment.
dropoff.locationIdintegerObbligatorioLocation code (locationsRq).
dropoff.dateTimedatetimeObbligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObbligatorioMain driver age group code (ageGroupsRq).
carTypeCodeintegerObbligatorioThe chosen car type (carTypesRq / searchRq).

Dati della risposta

CampoTipoObbligatorioDescrizione
currencystringObbligatorioEUR.
carTypeCodeintegerObbligatorioThe car type.
chargedDaysintegerObbligatorioDays charged.
crossBordersarrayObbligatorioAllowed destinations. Without one, leaving Romania is forbidden.
crossBorders[].codeintegerObbligatorioDestination code.
crossBorders[].namestringObbligatorioName.
crossBorders[].descriptionstringfacoltativoDocuments and rules.
crossBorders[].pricePerDaynumberObbligatorioPrice per day. In currency (EUR).
crossBorders[].minTotalnumberObbligatorioMinimum per rental (0 = none). In currency (EUR).
crossBorders[].maxTotalnumberObbligatorioMaximum per rental (0 = none). In currency (EUR).
crossBorders[].depositnumberObbligatorioExtra deposit. In currency (EUR).
crossBorders[].totalnumberObbligatorioPrice for the whole rental. In currency (EUR).
searchDetailsRq Exact price of a selection (car, equipment, cross-border), before booking.

Richiesta

CampoTipoObbligatorioDescrizione
commandstringObbligatorioThe command name.
languagero|en|fr|it|de|esfacoltativoLanguage of names and messages. Default en.
pickupobjectObbligatorioThe pickup place and moment.
pickup.locationIdintegerObbligatorioLocation code (locationsRq).
pickup.dateTimedatetimeObbligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObbligatorioThe dropoff place and moment.
dropoff.locationIdintegerObbligatorioLocation code (locationsRq).
dropoff.dateTimedatetimeObbligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObbligatorioMain driver age group code (ageGroupsRq).
carTypeCodeintegerObbligatorioThe chosen car type (carTypesRq / searchRq).
extrasarrayfacoltativoChosen equipment.
extras[].codeintegerObbligatorioEquipment code (extrasRq).
extras[].qtyintegerfacoltativoQuantity, default 1; capped at maxQuantity.
crossBordersarray<integer>facoltativoChosen cross-border destination codes (crossBordersRq).

Dati della risposta

CampoTipoObbligatorioDescrizione
currencystringObbligatorioEUR.
requestobjectObbligatorioThe request as understood.
typeobjectObbligatorioThe car type with status, days, chargedDays, minimumDays, note.
type.codeintegerObbligatorioCar type code.
type.namestringObbligatorioCar type name (the car or a similar one of the same class or higher).
type.categoryobjectObbligatorioCar class.
type.category.codeintegerObbligatorioCategory code (categoriesRq).
type.category.namestringObbligatorioName.
type.acrissstringfacoltativoACRISS code, or null.
type.specsobjectObbligatorioFeatures.
type.specs.seatsintegerfacoltativoSeats.
type.specs.doorsintegerfacoltativoDoors.
type.specs.luggageintegerfacoltativoSuitcases.
type.specs.transmissionobjectfacoltativoCode (manual|automatic) and name in the request language, or null.
type.specs.transmission.codestringObbligatoriomanual|automatic
type.specs.transmission.namestringObbligatorioName.
type.specs.fuelobjectfacoltativoFuel {code, name}, or null.
type.specs.consumptionnumberfacoltativoLitres / 100 km, or null.
type.specs.airConditioningobjectfacoltativoCode (automatic|manual) and name in the request language, or null.
type.specs.airConditioning.codestringObbligatorioautomatic|manual
type.specs.airConditioning.namestringObbligatorioName.
type.specs.driveobjectfacoltativoCode (front|rear|4x4) and name in the request language, or null.
type.specs.drive.codestringObbligatoriofront|rear|4x4
type.specs.drive.namestringObbligatorioName.
type.specs.isofixbooleanObbligatorioIsofix.
type.specs.wagonbooleanObbligatorioEstate body.
type.specs.smartphonebooleanObbligatorioSmartphone integration.
type.picturesarray<string>ObbligatorioPhoto URLs.
extrasarrayObbligatorioEquipment added.
extras[].codeintegerObbligatorioCode.
extras[].namestringObbligatorioName.
extras[].quantityintegerObbligatorioQuantity.
extras[].totalnumberObbligatorioTotal. In currency (EUR).
crossBordersarrayObbligatorioDestinations added.
crossBorders[].codeintegerObbligatorioCode.
crossBorders[].namestringObbligatorioName.
crossBorders[].totalnumberObbligatorioTotal. In currency (EUR).
offersobjectObbligatorioThe two offers for the selection; send the chosen total as expectedTotal in bookRq.
offers.standardobjectObbligatorioWith damage deposit.
offers.standard.totalintegerObbligatorioFinal price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay.
offers.standard.perDaynumberObbligatorioAverage price per day (information only). In currency (EUR).
offers.standard.rentalTotalnumberObbligatorioThe rental without equipment and cross-border (summary line). In currency (EUR).
offers.standard.discountobjectfacoltativoThe discount already applied, or null.
offers.standard.discount.amountnumberObbligatorioAmount saved. In currency (EUR).
offers.standard.discount.percentnumberObbligatorioPercent saved.
offers.standard.discount.totalBeforeintegerObbligatorioTotal before the discount.
offers.standard.depositobjectObbligatorioSecurity deposit at pick-up, by part (all keys always present, 0 when not required).
offers.standard.deposit.carnumberObbligatorioDamage deposit (0 with extraProtection). In currency (EUR).
offers.standard.deposit.fuelnumberObbligatorioFuel deposit. In currency (EUR).
offers.standard.deposit.extrasnumberObbligatorioEquipment deposit. In currency (EUR).
offers.standard.deposit.crossBordernumberObbligatorioCross-border deposit. In currency (EUR).
offers.standard.deposit.agenumberObbligatorioExtra deposit for the driver age group. In currency (EUR).
offers.standard.deposit.totalnumberObbligatorioTotal deposit. 0 = no deposit at all. In currency (EUR).
offers.standard.kmobjectObbligatorioKilometres.
offers.standard.km.perDayintegerObbligatorioIncluded km per day.
offers.standard.km.includedintegerObbligatorioTotal km included for the rental.
offers.standard.km.extraKmPricenumberObbligatorioPrice per extra km, charged at the end over the total included. In currency (EUR).
offers.standard.cancellationobjectObbligatorioCancellation policy of this offer.
offers.standard.cancellation.freeUntildatetimefacoltativoFree cancellation until this moment (Romanian time); null = free until pick-up.
offers.standard.cancellation.stagesarrayObbligatorioCancellation fees after the free period.
offers.standard.cancellation.stages[].fromdatetimeObbligatorioFrom this moment.
offers.standard.cancellation.stages[].amountnumberObbligatorioCancellation fee. In currency (EUR).
offers.standard.cancellation.noShownumberfacoltativoNo-show fee in EUR, or null.
offers.standard.advanceobjectfacoltativoAlways null for partners (an advance can be asked only for website bookings).
offers.standard.advance.amountnumberObbligatorioAdvance amount. In currency (EUR).
offers.extraProtectionobjectfacoltativoWithout damage deposit (SCDW), or null when the car has no such option. Same fields as standard.
bookRq Book the selection.

Richiesta

CampoTipoObbligatorioDescrizione
commandstringObbligatorioThe command name.
languagero|en|fr|it|de|esfacoltativoLanguage of names and messages. Default en.
pickupobjectObbligatorioThe pickup place and moment.
pickup.locationIdintegerObbligatorioLocation code (locationsRq).
pickup.dateTimedatetimeObbligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObbligatorioThe dropoff place and moment.
dropoff.locationIdintegerObbligatorioLocation code (locationsRq).
dropoff.dateTimedatetimeObbligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObbligatorioMain driver age group code (ageGroupsRq).
carTypeCodeintegerObbligatorioThe chosen car type (carTypesRq / searchRq).
extrasarrayfacoltativoChosen equipment.
extras[].codeintegerObbligatorioEquipment code (extrasRq).
extras[].qtyintegerfacoltativoQuantity, default 1; capped at maxQuantity.
crossBordersarray<integer>facoltativoChosen cross-border destination codes (crossBordersRq).
offerstandard|extraProtectionObbligatorioThe chosen offer.
expectedTotalnumberObbligatorioThe total the customer saw (searchDetailsRq). A different current total gives PRICE_CHANGED with the new total.
driverobjectObbligatorioMain driver (signs the contract).
driver.fullNamestringObbligatorioFull name.
driver.phonestringObbligatorioPhone with country code (WhatsApp if possible).
driver.emailstringObbligatorioEmail (confirmation and booking link).
driver.personalIdstringfacoltativoPersonal ID number.
driver.birthDatestringfacoltativoYYYY-MM-DD.
driver.citizenshipstringfacoltativoCitizenship: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.addrCountrystringfacoltativoAddress country: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.addrStateRomaniastringfacoltativoCounty code, 2 letters, e.g. IS, B (only when addrCountry is RO).
driver.addrStatestringfacoltativoRegion (other countries).
driver.addrCitystringfacoltativoCity.
driver.addrStreetstringfacoltativoStreet.
driver.idTypeintegerfacoltativoID document type: 1 = identity card, 2 = passport, 3 = residence permit. Default 1; another value gives FIELD_INVALID.
driver.idCountrystringfacoltativoCountry that issued the ID document: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.idNumberstringfacoltativoID document number.
driver.idExpiresAtstringfacoltativoYYYY-MM-DD.
driver.licCountrystringfacoltativoCountry that issued the driving licence: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.licNumberstringfacoltativoLicence number.
driver.licIssuedAtstringfacoltativoYYYY-MM-DD.
driver.licExpiresAtstringfacoltativoYYYY-MM-DD.
additionalDriverobjectfacoltativoSecond driver, same fields (email not required). Free of charge.
billingobjectfacoltativoInvoice 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).
flightobjectfacoltativoArrival flight, so we can follow delays.
flight.numberstringfacoltativoFlight number.
flight.fromstringfacoltativoDeparture airport.
messagestringfacoltativoMessage for us.
consentbooleanObbligatoriotrue: the customer accepted the rental conditions and the privacy policy.
confirmDuplicatebooleanfacoltativotrue: book again after DUPLICATE_BOOKING.
partnerVoucherstringfacoltativoYour own booking reference (up to 60 characters).

Dati della risposta

CampoTipoObbligatorioDescrizione
bookingCodeintegerObbligatorioOur booking number.
statusrequest|confirmedObbligatorioconfirmed = instant confirmation; request = we confirm it by email.
bookingTokenstringObbligatorioSigned proof of the booking.
totalnumberObbligatorioBooked total.
currencystringObbligatorioEUR.

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.

CodiceLivelloHTTPTesto
INVALID_JSONerror400La richiesta non è un JSON valido.
UNKNOWN_COMMANDerror404Comando sconosciuto: {value}.
METHOD_NOT_ALLOWEDerror405Invia la richiesta con POST, con il comando in JSON nel corpo.
EMPTY_BODYerror400La richiesta non ha un corpo: invia il comando in JSON, ad esempio {"command": "searchRq", ...}.
AUTH_REQUIREDerror401Firma la richiesta con gli header X-Api-Key, X-Api-Timestamp e X-Api-Signature.
AUTH_INVALIDerror401Le credenziali di partner non sono valide.
SIGNATURE_INVALIDerror401La firma della richiesta non è valida.
SIGNATURE_EXPIREDerror401L’ora della richiesta è troppo lontana dalla nostra: firma ogni richiesta con l’ora attuale.
FIELD_REQUIREDerror400Questo campo è obbligatorio: {value}.
FIELD_INVALIDerror400Questo campo ha un valore non valido: {value}.
LOCATION_UNKNOWNerror400Questa località non esiste: {value}.
PICKUP_IN_PASTerror400La data e l’ora del ritiro devono essere nel futuro.
DROPOFF_BEFORE_PICKUPerror400La riconsegna deve essere dopo il ritiro.
AGE_GROUP_UNKNOWNerror400Questa fascia d’età non esiste.
CAR_TYPE_NOT_OFFEREDerror400Quest’auto non è offerta per questa ricerca.
TOO_MANY_ATTEMPTSerror429Troppi tentativi. Riprova tra qualche minuto.
TRY_AGAINerror503In questo momento si sta salvando un’altra prenotazione per questa auto. Riprova tra qualche secondo.
EXTRA_NOT_OFFEREDwarning—Questo accessorio non è offerto con quest’auto, quindi non è stato aggiunto: {value}.
EXTRA_QTY_REDUCEDwarning—La quantità è stata ridotta al massimo per prenotazione: {value}.
CROSS_BORDER_NOT_ALLOWEDwarning—Con quest’auto non si può uscire verso questa destinazione, quindi non è stata aggiunta: {value}.
NO_RESULTSinfo—Nessuna auto corrisponde alla tua ricerca.
BELOW_MIN_DAYSinfo—Il prezzo è per il noleggio minimo di {value} giorni.
CONSENT_REQUIREDerror400Accetta le condizioni di noleggio e l’informativa sulla privacy per inviare la prenotazione.
PRICE_CHANGEDerror409Il prezzo è cambiato nel frattempo: il nuovo totale è {value}. Controllalo e invia di nuovo la prenotazione.
DUPLICATE_BOOKINGerror409Hai già una prenotazione con lo stesso conducente, le stesse date e gli stessi luoghi. Inviala di nuovo solo se ne vuoi un’altra.
OFFER_UNAVAILABLEerror400L’offerta senza cauzione non è disponibile per questa auto. Scegli l’offerta con cauzione.
SERVER_ERRORerror500Qualcosa è 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.