Romanian Car Hire Non-stop+40 741 644 169 Rezervă online

API pentru parteneri și AI

Disponibilitatea și prețurile noastre, în timp real, pentru asistenții AI și pentru partenerii care vând mașinile noastre.

4,7 pe Google, 206 recenzii Confirmare instant, fără să aștepți un agent Non-stop, inclusiv noapteaFără card de creditDin 2006

Două feluri de a folosi datele noastre

Căutarea pentru AI

Pentru asistenții AI și integrările simple: o cerere GET publică, fără cheie. Disponibilitatea în timp real, prețurile finale, garanțiile și linkul de rezervare pentru fiecare mașină.

Vezi căutarea pentru AI

API-ul pentru parteneri

Pentru agenții de turism, revânzători și site-uri care vând mașinile noastre: căutarea, opțiunile și rezervarea, cu aceleași prețuri și reguli ca pe site-ul nostru. Fiecare cerere e semnată.

Vezi API-ul pentru parteneri

API-ul pentru parteneri

POST https://romaniancarhire.com/api/v1/

Specificația OpenAPI (JSON, în engleză): https://romaniancarhire.com/api/v1/openapi.json

Pentru acces (numele de utilizator și secretul), scrie-ne la office@romaniancarhire.com.

Cererea și răspunsul

Corpul cererii e JSON, cu comanda și limba; fiecare răspuns are același plic. O eroare oprește cererea (success false, data null); avertismentele și notele vin împreună cu datele.

{"command": "searchRq", "language": "en", ...}

{"success": true, "version": "v1", "command": "searchRq", "language": "en",
 "data": {...}, "messages": [{"code": "NO_RESULTS", "level": "info", "text": "..."}]}

Semnarea cererii

  1. X-Api-Key: numele tău de utilizator.
  2. X-Api-Timestamp: ora curentă, în secunde Unix (cel mult 5 minute față de a noastră).
  3. X-Api-Signature: HMAC-SHA256 cu secretul tău, în hex, peste: timestamp, metodă, cale și SHA-256 al corpului exact pe care îl trimiți, separate prin rând nou.
signature = hex(HMAC-SHA256(secret, timestamp + "\n" + "POST" + "\n" + "/api/v1/" + "\n" + hex(SHA256(body))))

Verifică-ți codul cu acest exemplu:

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();

Ordinea obișnuită

Încarcă listele o dată și păstrează-le până se schimbă siteVersion. Apoi: searchRq pentru o perioadă, extrasRq și crossBordersRq pentru mașina aleasă, searchDetailsRq pentru totalul exact și bookRq cu acel total ca expectedTotal.

Comenzile

locationsRq Pick-up and return locations.

Cererea

CâmpulTipulObligatoriuDescrierea
commandstringObligatoriuThe command name.
languagero|en|fr|it|de|esopționalLanguage of names. Default en.

Datele răspunsului

CâmpulTipulObligatoriuDescrierea
siteVersionintegerObligatoriuVersion of our data: reload the list only when it changes.
locationsarrayObligatoriuActive locations.
locations[].codeintegerObligatoriuLocation code (pickup.locationId / dropoff.locationId).
locations[].namestringObligatoriuName with type, e.g. "Iași Airport".
locations[].citystringObligatoriuCity.
locations[].typeobjectObligatoriucity|airport|trainStation|office, with name.
locations[].iatastringopționalAirport code, or null.
locations[].kindobjectObligatoriuoffice|fleet|pool|request, with name: own office, local fleet, car brought from the nearest fleet, on request.
locations[].latnumberopționalLatitude.
locations[].lngnumberopționalLongitude.
categoriesRq Car classes.

Cererea

CâmpulTipulObligatoriuDescrierea
commandstringObligatoriuThe command name.
languagero|en|fr|it|de|esopționalLanguage of names. Default en.

Datele răspunsului

CâmpulTipulObligatoriuDescrierea
siteVersionintegerObligatoriuVersion of our data: reload the list only when it changes.
categoriesarrayObligatoriuActive classes, in our order.
categories[].codeintegerObligatoriuCategory code.
categories[].namestringObligatoriuName.
categories[].descriptionstringopționalDescription, or null.
carTypesRq Car types you can sell.

Cererea

CâmpulTipulObligatoriuDescrierea
commandstringObligatoriuThe command name.
languagero|en|fr|it|de|esopționalLanguage of names. Default en.

Datele răspunsului

CâmpulTipulObligatoriuDescrierea
siteVersionintegerObligatoriuVersion of our data: reload the list only when it changes.
carTypesarrayObligatoriuActive car types you have access to.
carTypes[].codeintegerObligatoriuCar type code.
carTypes[].namestringObligatoriuCar type name (the car or a similar one of the same class or higher).
carTypes[].categoryobjectObligatoriuCar class.
carTypes[].category.codeintegerObligatoriuCategory code (categoriesRq).
carTypes[].category.namestringObligatoriuName.
carTypes[].acrissstringopționalACRISS code, or null.
carTypes[].specsobjectObligatoriuFeatures.
carTypes[].specs.seatsintegeropționalSeats.
carTypes[].specs.doorsintegeropționalDoors.
carTypes[].specs.luggageintegeropționalSuitcases.
carTypes[].specs.transmissionobjectopționalCode (manual|automatic) and name in the request language, or null.
carTypes[].specs.transmission.codestringObligatoriumanual|automatic
carTypes[].specs.transmission.namestringObligatoriuName.
carTypes[].specs.fuelobjectopționalFuel {code, name}, or null.
carTypes[].specs.consumptionnumberopționalLitres / 100 km, or null.
carTypes[].specs.airConditioningobjectopționalCode (automatic|manual) and name in the request language, or null.
carTypes[].specs.airConditioning.codestringObligatoriuautomatic|manual
carTypes[].specs.airConditioning.namestringObligatoriuName.
carTypes[].specs.driveobjectopționalCode (front|rear|4x4) and name in the request language, or null.
carTypes[].specs.drive.codestringObligatoriufront|rear|4x4
carTypes[].specs.drive.namestringObligatoriuName.
carTypes[].specs.isofixbooleanObligatoriuIsofix.
carTypes[].specs.wagonbooleanObligatoriuEstate body.
carTypes[].specs.smartphonebooleanObligatoriuSmartphone integration.
carTypes[].picturesarray<string>ObligatoriuPhoto URLs.
carTypes[].minimumDaysintegerObligatoriuMinimum rental days of the type.
ageGroupsRq Driver age groups.

Cererea

CâmpulTipulObligatoriuDescrierea
commandstringObligatoriuThe command name.
languagero|en|fr|it|de|esopționalLanguage of names. Default en.

Datele răspunsului

CâmpulTipulObligatoriuDescrierea
siteVersionintegerObligatoriuVersion of our data: reload the list only when it changes.
ageGroupsarrayObligatoriuActive age groups.
ageGroups[].codeintegerObligatoriuAge group code (ageGroup).
ageGroups[].fromAgeintegerObligatoriuFrom age.
ageGroups[].toAgeintegeropționalTo age, or null (and over).
ageGroups[].namestringObligatoriuName, e.g. "23–69 years".
ageGroups[].defaultbooleanObligatoriuThe usual group (no surcharge).
searchRq Available cars and prices for a period.

Cererea

CâmpulTipulObligatoriuDescrierea
commandstringObligatoriuThe command name.
languagero|en|fr|it|de|esopționalLanguage of names and messages. Default en.
pickupobjectObligatoriuThe pickup place and moment.
pickup.locationIdintegerObligatoriuLocation code (locationsRq).
pickup.dateTimedatetimeObligatoriuRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatoriuThe dropoff place and moment.
dropoff.locationIdintegerObligatoriuLocation code (locationsRq).
dropoff.dateTimedatetimeObligatoriuRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatoriuMain driver age group code (ageGroupsRq).
carTypeCodeintegeropționalOptional: a car type to return first (if it is offered for the search).
availabilityavailable|onRequest|bothopționalWhich cars to return. Default both.
filtersobjectopționalFilters.
filters.categoriesarray<integer>opționalCategory codes.
filters.seatsarray<integer>opționalSeat counts.
filters.luggageintegeropționalMinimum suitcases.
filters.fuelarray<integer>opționalFuel codes.
filters.transmissionarray<string>opționalmanual / automatic.

Datele răspunsului

CâmpulTipulObligatoriuDescrierea
currencystringObligatoriuCurrency of all amounts (ISO 4217, EUR).
requestobjectObligatoriuThe request as understood.
daysintegerObligatoriuRental days.
typesarrayObligatoriuCars that can be rented for the search (the others are not returned).
types[].codeintegerObligatoriuCar type code.
types[].namestringObligatoriuCar type name (the car or a similar one of the same class or higher).
types[].categoryobjectObligatoriuCar class.
types[].category.codeintegerObligatoriuCategory code (categoriesRq).
types[].category.namestringObligatoriuName.
types[].acrissstringopționalACRISS code, or null.
types[].specsobjectObligatoriuFeatures.
types[].specs.seatsintegeropționalSeats.
types[].specs.doorsintegeropționalDoors.
types[].specs.luggageintegeropționalSuitcases.
types[].specs.transmissionobjectopționalCode (manual|automatic) and name in the request language, or null.
types[].specs.transmission.codestringObligatoriumanual|automatic
types[].specs.transmission.namestringObligatoriuName.
types[].specs.fuelobjectopționalFuel {code, name}, or null.
types[].specs.consumptionnumberopționalLitres / 100 km, or null.
types[].specs.airConditioningobjectopționalCode (automatic|manual) and name in the request language, or null.
types[].specs.airConditioning.codestringObligatoriuautomatic|manual
types[].specs.airConditioning.namestringObligatoriuName.
types[].specs.driveobjectopționalCode (front|rear|4x4) and name in the request language, or null.
types[].specs.drive.codestringObligatoriufront|rear|4x4
types[].specs.drive.namestringObligatoriuName.
types[].specs.isofixbooleanObligatoriuIsofix.
types[].specs.wagonbooleanObligatoriuEstate body.
types[].specs.smartphonebooleanObligatoriuSmartphone integration.
types[].picturesarray<string>ObligatoriuPhoto URLs.
types[].requestedbooleanObligatoriuThis is the carTypeCode from the request.
types[].statusavailable|onRequestObligatoriuavailable = can be booked now; onRequest = we confirm it.
types[].instantConfirmationbooleanObligatoriuThe booking is confirmed immediately (24 h+ before pick-up, car in the fleet).
types[].daysintegerObligatoriuRental days.
types[].chargedDaysintegerObligatoriuDays charged (the minimum, when the period is shorter).
types[].minimumDaysintegerObligatoriuMinimum days here.
types[].offersobjectObligatoriuThe two offers.
types[].offers.standardobjectObligatoriuWith damage deposit.
types[].offers.standard.totalintegerObligatoriuFinal price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay.
types[].offers.standard.perDaynumberObligatoriuAverage price per day (information only). In currency (EUR).
types[].offers.standard.discountobjectopționalThe discount already applied, or null.
types[].offers.standard.discount.amountnumberObligatoriuAmount saved. In currency (EUR).
types[].offers.standard.discount.percentnumberObligatoriuPercent saved.
types[].offers.standard.discount.totalBeforeintegerObligatoriuTotal before the discount.
types[].offers.standard.depositobjectObligatoriuSecurity deposit at pick-up, by part (all keys always present, 0 when not required).
types[].offers.standard.deposit.carnumberObligatoriuDamage deposit (0 with extraProtection). In currency (EUR).
types[].offers.standard.deposit.fuelnumberObligatoriuFuel deposit. In currency (EUR).
types[].offers.standard.deposit.extrasnumberObligatoriuEquipment deposit. In currency (EUR).
types[].offers.standard.deposit.crossBordernumberObligatoriuCross-border deposit. In currency (EUR).
types[].offers.standard.deposit.agenumberObligatoriuExtra deposit for the driver age group. In currency (EUR).
types[].offers.standard.deposit.totalnumberObligatoriuTotal deposit. 0 = no deposit at all. In currency (EUR).
types[].offers.standard.kmobjectObligatoriuKilometres.
types[].offers.standard.km.perDayintegerObligatoriuIncluded km per day.
types[].offers.standard.km.includedintegerObligatoriuTotal km included for the rental.
types[].offers.standard.km.extraKmPricenumberObligatoriuPrice per extra km, charged at the end over the total included. In currency (EUR).
types[].offers.standard.cancellationobjectObligatoriuCancellation policy of this offer.
types[].offers.standard.cancellation.freeUntildatetimeopționalFree cancellation until this moment (Romanian time); null = free until pick-up.
types[].offers.standard.cancellation.stagesarrayObligatoriuCancellation fees after the free period.
types[].offers.standard.cancellation.stages[].fromdatetimeObligatoriuFrom this moment.
types[].offers.standard.cancellation.stages[].amountnumberObligatoriuCancellation fee. In currency (EUR).
types[].offers.standard.cancellation.noShownumberopționalNo-show fee in EUR, or null.
types[].offers.standard.advanceobjectopționalAlways null for partners (an advance can be asked only for website bookings).
types[].offers.standard.advance.amountnumberObligatoriuAdvance amount. In currency (EUR).
types[].offers.extraProtectionobjectopționalWithout damage deposit (SCDW), or null when the car has no such option. Same fields as standard.
types[].notestringopționalA note on the price (e.g. minimum days).
facetsobjectObligatoriuCounts per availability, category, transmission, fuel, seats, luggage: [{code, name, count}].
extrasRq Equipment offered with a car.

Cererea

CâmpulTipulObligatoriuDescrierea
commandstringObligatoriuThe command name.
languagero|en|fr|it|de|esopționalLanguage of names and messages. Default en.
pickupobjectObligatoriuThe pickup place and moment.
pickup.locationIdintegerObligatoriuLocation code (locationsRq).
pickup.dateTimedatetimeObligatoriuRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatoriuThe dropoff place and moment.
dropoff.locationIdintegerObligatoriuLocation code (locationsRq).
dropoff.dateTimedatetimeObligatoriuRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatoriuMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatoriuThe chosen car type (carTypesRq / searchRq).

Datele răspunsului

CâmpulTipulObligatoriuDescrierea
currencystringObligatoriuEUR.
carTypeCodeintegerObligatoriuThe car type.
chargedDaysintegerObligatoriuDays charged.
extrasarrayObligatoriuEquipment.
extras[].codeintegerObligatoriuEquipment code.
extras[].namestringObligatoriuName.
extras[].descriptionstringopționalDescription.
extras[].photostringopționalPhoto URL.
extras[].pricePerDaynumberObligatoriuPrice per day. In currency (EUR).
extras[].maxQuantityintegerObligatoriuMaximum per booking.
extras[].depositnumberObligatoriuDeposit per piece. In currency (EUR).
extras[].totalnumberObligatoriuPrice of one piece for the whole rental. In currency (EUR).
crossBordersRq Countries the car may be driven to.

Cererea

CâmpulTipulObligatoriuDescrierea
commandstringObligatoriuThe command name.
languagero|en|fr|it|de|esopționalLanguage of names and messages. Default en.
pickupobjectObligatoriuThe pickup place and moment.
pickup.locationIdintegerObligatoriuLocation code (locationsRq).
pickup.dateTimedatetimeObligatoriuRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatoriuThe dropoff place and moment.
dropoff.locationIdintegerObligatoriuLocation code (locationsRq).
dropoff.dateTimedatetimeObligatoriuRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatoriuMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatoriuThe chosen car type (carTypesRq / searchRq).

Datele răspunsului

CâmpulTipulObligatoriuDescrierea
currencystringObligatoriuEUR.
carTypeCodeintegerObligatoriuThe car type.
chargedDaysintegerObligatoriuDays charged.
crossBordersarrayObligatoriuAllowed destinations. Without one, leaving Romania is forbidden.
crossBorders[].codeintegerObligatoriuDestination code.
crossBorders[].namestringObligatoriuName.
crossBorders[].descriptionstringopționalDocuments and rules.
crossBorders[].pricePerDaynumberObligatoriuPrice per day. In currency (EUR).
crossBorders[].minTotalnumberObligatoriuMinimum per rental (0 = none). In currency (EUR).
crossBorders[].maxTotalnumberObligatoriuMaximum per rental (0 = none). In currency (EUR).
crossBorders[].depositnumberObligatoriuExtra deposit. In currency (EUR).
crossBorders[].totalnumberObligatoriuPrice for the whole rental. In currency (EUR).
searchDetailsRq Exact price of a selection (car, equipment, cross-border), before booking.

Cererea

CâmpulTipulObligatoriuDescrierea
commandstringObligatoriuThe command name.
languagero|en|fr|it|de|esopționalLanguage of names and messages. Default en.
pickupobjectObligatoriuThe pickup place and moment.
pickup.locationIdintegerObligatoriuLocation code (locationsRq).
pickup.dateTimedatetimeObligatoriuRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatoriuThe dropoff place and moment.
dropoff.locationIdintegerObligatoriuLocation code (locationsRq).
dropoff.dateTimedatetimeObligatoriuRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatoriuMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatoriuThe chosen car type (carTypesRq / searchRq).
extrasarrayopționalChosen equipment.
extras[].codeintegerObligatoriuEquipment code (extrasRq).
extras[].qtyintegeropționalQuantity, default 1; capped at maxQuantity.
crossBordersarray<integer>opționalChosen cross-border destination codes (crossBordersRq).

Datele răspunsului

CâmpulTipulObligatoriuDescrierea
currencystringObligatoriuEUR.
requestobjectObligatoriuThe request as understood.
typeobjectObligatoriuThe car type with status, days, chargedDays, minimumDays, note.
type.codeintegerObligatoriuCar type code.
type.namestringObligatoriuCar type name (the car or a similar one of the same class or higher).
type.categoryobjectObligatoriuCar class.
type.category.codeintegerObligatoriuCategory code (categoriesRq).
type.category.namestringObligatoriuName.
type.acrissstringopționalACRISS code, or null.
type.specsobjectObligatoriuFeatures.
type.specs.seatsintegeropționalSeats.
type.specs.doorsintegeropționalDoors.
type.specs.luggageintegeropționalSuitcases.
type.specs.transmissionobjectopționalCode (manual|automatic) and name in the request language, or null.
type.specs.transmission.codestringObligatoriumanual|automatic
type.specs.transmission.namestringObligatoriuName.
type.specs.fuelobjectopționalFuel {code, name}, or null.
type.specs.consumptionnumberopționalLitres / 100 km, or null.
type.specs.airConditioningobjectopționalCode (automatic|manual) and name in the request language, or null.
type.specs.airConditioning.codestringObligatoriuautomatic|manual
type.specs.airConditioning.namestringObligatoriuName.
type.specs.driveobjectopționalCode (front|rear|4x4) and name in the request language, or null.
type.specs.drive.codestringObligatoriufront|rear|4x4
type.specs.drive.namestringObligatoriuName.
type.specs.isofixbooleanObligatoriuIsofix.
type.specs.wagonbooleanObligatoriuEstate body.
type.specs.smartphonebooleanObligatoriuSmartphone integration.
type.picturesarray<string>ObligatoriuPhoto URLs.
extrasarrayObligatoriuEquipment added.
extras[].codeintegerObligatoriuCode.
extras[].namestringObligatoriuName.
extras[].quantityintegerObligatoriuQuantity.
extras[].totalnumberObligatoriuTotal. In currency (EUR).
crossBordersarrayObligatoriuDestinations added.
crossBorders[].codeintegerObligatoriuCode.
crossBorders[].namestringObligatoriuName.
crossBorders[].totalnumberObligatoriuTotal. In currency (EUR).
offersobjectObligatoriuThe two offers for the selection; send the chosen total as expectedTotal in bookRq.
offers.standardobjectObligatoriuWith damage deposit.
offers.standard.totalintegerObligatoriuFinal price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay.
offers.standard.perDaynumberObligatoriuAverage price per day (information only). In currency (EUR).
offers.standard.rentalTotalnumberObligatoriuThe rental without equipment and cross-border (summary line). In currency (EUR).
offers.standard.discountobjectopționalThe discount already applied, or null.
offers.standard.discount.amountnumberObligatoriuAmount saved. In currency (EUR).
offers.standard.discount.percentnumberObligatoriuPercent saved.
offers.standard.discount.totalBeforeintegerObligatoriuTotal before the discount.
offers.standard.depositobjectObligatoriuSecurity deposit at pick-up, by part (all keys always present, 0 when not required).
offers.standard.deposit.carnumberObligatoriuDamage deposit (0 with extraProtection). In currency (EUR).
offers.standard.deposit.fuelnumberObligatoriuFuel deposit. In currency (EUR).
offers.standard.deposit.extrasnumberObligatoriuEquipment deposit. In currency (EUR).
offers.standard.deposit.crossBordernumberObligatoriuCross-border deposit. In currency (EUR).
offers.standard.deposit.agenumberObligatoriuExtra deposit for the driver age group. In currency (EUR).
offers.standard.deposit.totalnumberObligatoriuTotal deposit. 0 = no deposit at all. In currency (EUR).
offers.standard.kmobjectObligatoriuKilometres.
offers.standard.km.perDayintegerObligatoriuIncluded km per day.
offers.standard.km.includedintegerObligatoriuTotal km included for the rental.
offers.standard.km.extraKmPricenumberObligatoriuPrice per extra km, charged at the end over the total included. In currency (EUR).
offers.standard.cancellationobjectObligatoriuCancellation policy of this offer.
offers.standard.cancellation.freeUntildatetimeopționalFree cancellation until this moment (Romanian time); null = free until pick-up.
offers.standard.cancellation.stagesarrayObligatoriuCancellation fees after the free period.
offers.standard.cancellation.stages[].fromdatetimeObligatoriuFrom this moment.
offers.standard.cancellation.stages[].amountnumberObligatoriuCancellation fee. In currency (EUR).
offers.standard.cancellation.noShownumberopționalNo-show fee in EUR, or null.
offers.standard.advanceobjectopționalAlways null for partners (an advance can be asked only for website bookings).
offers.standard.advance.amountnumberObligatoriuAdvance amount. In currency (EUR).
offers.extraProtectionobjectopționalWithout damage deposit (SCDW), or null when the car has no such option. Same fields as standard.
bookRq Book the selection.

Cererea

CâmpulTipulObligatoriuDescrierea
commandstringObligatoriuThe command name.
languagero|en|fr|it|de|esopționalLanguage of names and messages. Default en.
pickupobjectObligatoriuThe pickup place and moment.
pickup.locationIdintegerObligatoriuLocation code (locationsRq).
pickup.dateTimedatetimeObligatoriuRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatoriuThe dropoff place and moment.
dropoff.locationIdintegerObligatoriuLocation code (locationsRq).
dropoff.dateTimedatetimeObligatoriuRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatoriuMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatoriuThe chosen car type (carTypesRq / searchRq).
extrasarrayopționalChosen equipment.
extras[].codeintegerObligatoriuEquipment code (extrasRq).
extras[].qtyintegeropționalQuantity, default 1; capped at maxQuantity.
crossBordersarray<integer>opționalChosen cross-border destination codes (crossBordersRq).
offerstandard|extraProtectionObligatoriuThe chosen offer.
expectedTotalnumberObligatoriuThe total the customer saw (searchDetailsRq). A different current total gives PRICE_CHANGED with the new total.
driverobjectObligatoriuMain driver (signs the contract).
driver.fullNamestringObligatoriuFull name.
driver.phonestringObligatoriuPhone with country code (WhatsApp if possible).
driver.emailstringObligatoriuEmail (confirmation and booking link).
driver.personalIdstringopționalPersonal ID number.
driver.birthDatestringopționalYYYY-MM-DD.
driver.citizenshipstringopționalCitizenship: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.addrCountrystringopționalAddress country: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.addrStateRomaniastringopționalCounty code, 2 letters, e.g. IS, B (only when addrCountry is RO).
driver.addrStatestringopționalRegion (other countries).
driver.addrCitystringopționalCity.
driver.addrStreetstringopționalStreet.
driver.idTypeintegeropționalID document type: 1 = identity card, 2 = passport, 3 = residence permit. Default 1; another value gives FIELD_INVALID.
driver.idCountrystringopționalCountry that issued the ID document: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.idNumberstringopționalID document number.
driver.idExpiresAtstringopționalYYYY-MM-DD.
driver.licCountrystringopționalCountry that issued the driving licence: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.licNumberstringopționalLicence number.
driver.licIssuedAtstringopționalYYYY-MM-DD.
driver.licExpiresAtstringopționalYYYY-MM-DD.
additionalDriverobjectopționalSecond driver, same fields (email not required). Free of charge.
billingobjectopționalInvoice 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).
flightobjectopționalArrival flight, so we can follow delays.
flight.numberstringopționalFlight number.
flight.fromstringopționalDeparture airport.
messagestringopționalMessage for us.
consentbooleanObligatoriutrue: the customer accepted the rental conditions and the privacy policy.
confirmDuplicatebooleanopționaltrue: book again after DUPLICATE_BOOKING.
partnerVoucherstringopționalYour own booking reference (up to 60 characters).

Datele răspunsului

CâmpulTipulObligatoriuDescrierea
bookingCodeintegerObligatoriuOur booking number.
statusrequest|confirmedObligatoriuconfirmed = instant confirmation; request = we confirm it by email.
bookingTokenstringObligatoriuSigned proof of the booking.
totalnumberObligatoriuBooked total.
currencystringObligatoriuEUR.

Codurile mesajelor

Codurile nu se schimbă și nu se șterg niciodată (se pot adăuga altele noi); textele se pot îmbunătăți oricând. Bazează-te pe cod, nu pe text.

CodulNivelulHTTPTextul
INVALID_JSONerror400Cererea nu e un JSON valid.
UNKNOWN_COMMANDerror404Comandă necunoscută: {value}.
METHOD_NOT_ALLOWEDerror405Trimite cererea prin POST, cu comanda ca JSON în corpul cererii.
EMPTY_BODYerror400Cererea nu are corp: trimite comanda ca JSON, de exemplu {"command": "searchRq", ...}.
AUTH_REQUIREDerror401Semnează cererea cu antetele X-Api-Key, X-Api-Timestamp și X-Api-Signature.
AUTH_INVALIDerror401Datele de partener nu sunt valide.
SIGNATURE_INVALIDerror401Semnătura cererii nu e validă.
SIGNATURE_EXPIREDerror401Ora cererii e prea departe de a noastră: semnează fiecare cerere cu ora de acum.
FIELD_REQUIREDerror400Câmpul acesta e obligatoriu: {value}.
FIELD_INVALIDerror400Câmpul acesta are o valoare greșită: {value}.
LOCATION_UNKNOWNerror400Locația aceasta nu există: {value}.
PICKUP_IN_PASTerror400Data și ora predării trebuie să fie în viitor.
DROPOFF_BEFORE_PICKUPerror400Returnarea trebuie să fie după predare.
AGE_GROUP_UNKNOWNerror400Grupa de vârstă aceasta nu există.
CAR_TYPE_NOT_OFFEREDerror400Mașina asta nu se oferă pentru căutarea ta.
TOO_MANY_ATTEMPTSerror429Prea multe încercări. Încearcă din nou peste câteva minute.
TRY_AGAINerror503Chiar acum se salvează o altă rezervare pentru această mașină. Încearcă din nou peste câteva secunde.
EXTRA_NOT_OFFEREDwarning—Echipamentul nu se oferă cu mașina asta, așa că nu l-am adăugat: {value}.
EXTRA_QTY_REDUCEDwarning—Cantitatea a fost redusă la maximul pe rezervare: {value}.
CROSS_BORDER_NOT_ALLOWEDwarning—Cu mașina asta nu se poate ieși în destinația asta, așa că nu am adăugat-o: {value}.
NO_RESULTSinfo—Nicio mașină nu se potrivește căutării tale.
BELOW_MIN_DAYSinfo—Prețul e pentru închirierea minimă de {value} zile.
CONSENT_REQUIREDerror400Acceptă condițiile de închiriere și politica de confidențialitate ca să trimiți rezervarea.
PRICE_CHANGEDerror409Prețul s-a schimbat între timp: totalul nou e {value}. Verifică-l și trimite din nou rezervarea.
DUPLICATE_BOOKINGerror409Ai deja o rezervare cu același șofer, aceleași date și locații. Trimite-o din nou doar dacă mai vrei una.
OFFER_UNAVAILABLEerror400Oferta fără garanție nu e disponibilă pentru această mașină. Alege oferta cu garanție.
SERVER_ERRORerror500Ceva n-a mers bine la noi. Te rugăm să încerci din nou.

Bine de știut

  • Toate sumele sunt în moneda răspunsului (azi EUR).
  • Toate datele și orele sunt în ora României.
  • Prețul e garantat doar de bookRq: dacă totalul s-a schimbat, primești PRICE_CHANGED cu totalul nou.