Romanian Car Hire 24h/24+40 741 644 169 Réserver en ligne

API pour partenaires et IA

Nos disponibilités et nos prix, en temps réel, pour les assistants IA et pour les partenaires qui vendent nos voitures.

4,7 sur Google, 206 avis Confirmation instantanée, sans attendre un agent 24 h/24, même la nuitSans carte de créditDepuis 2006

Deux façons d’utiliser nos données

Recherche pour l’IA

Pour les assistants IA et les intégrations simples : une requête GET publique, sans clé. Disponibilité en temps réel, prix finaux, cautions et un lien de réservation pour chaque voiture.

Voir la recherche pour l’IA

API partenaires

Pour les agences de voyages, revendeurs et sites qui vendent nos voitures : recherche, options et réservation, avec les mêmes prix et règles que sur notre site. Chaque requête est signée.

Voir l’API partenaires

API partenaires

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

Spécification OpenAPI (JSON, en anglais): https://romaniancarhire.com/api/v1/openapi.json

Pour obtenir un accès (nom d’utilisateur et secret), écrivez-nous à office@romaniancarhire.com.

Requête et réponse

Le corps est du JSON avec la commande et la langue ; chaque réponse a la même enveloppe. Une erreur arrête la requête (success false, data null) ; les avertissements et notes accompagnent les données.

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

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

Signature de la requête

  1. X-Api-Key : votre nom d’utilisateur.
  2. X-Api-Timestamp : l’heure actuelle en secondes Unix (au plus 5 minutes d’écart avec la nôtre).
  3. X-Api-Signature : HMAC-SHA256 avec votre secret, en hexadécimal, de : timestamp, méthode, chemin et le SHA-256 du corps exact envoyé, séparés par des retours à la ligne.
signature = hex(HMAC-SHA256(secret, timestamp + "\n" + "POST" + "\n" + "/api/v1/" + "\n" + hex(SHA256(body))))

Vérifiez votre code avec cet exemple :

timestamp = 1795460000
path      = /api/v1/
body      = {"command":"searchRq"}
secret    = Secret-123
signature = 2512b3056edce7ed09006c446d73431d76455431696a797556ea1df07e33e2fc
PHP
$ts = (string) time();
$body = json_encode($request);
$text = $ts."\nPOST\n/api/v1/\n".hash('sha256', $body);
$signature = hash_hmac('sha256', $text, $secret);
Node.js
const crypto = require('crypto');
const ts = String(Math.floor(Date.now() / 1000));
const body = JSON.stringify(request);
const text = `${ts}\nPOST\n/api/v1/\n${crypto.createHash('sha256').update(body).digest('hex')}`;
const signature = crypto.createHmac('sha256', secret).update(text).digest('hex');
Python
import hashlib, hmac, json, time
ts = str(int(time.time()))
body = json.dumps(request, separators=(",", ":"))
text = f"{ts}\nPOST\n/api/v1/\n{hashlib.sha256(body.encode()).hexdigest()}"
signature = hmac.new(secret.encode(), text.encode(), hashlib.sha256).hexdigest()
Java
String ts = String.valueOf(System.currentTimeMillis() / 1000);
String bodyHash = HexFormat.of().formatHex(MessageDigest.getInstance("SHA-256").digest(body.getBytes(StandardCharsets.UTF_8)));
Mac mac = Mac.getInstance("HmacSHA256");
mac.init(new SecretKeySpec(secret.getBytes(StandardCharsets.UTF_8), "HmacSHA256"));
String signature = HexFormat.of().formatHex(mac.doFinal((ts + "\nPOST\n/api/v1/\n" + bodyHash).getBytes(StandardCharsets.UTF_8)));
.NET (C#)
var ts = DateTimeOffset.UtcNow.ToUnixTimeSeconds().ToString();
var bodyHash = Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(body))).ToLowerInvariant();
using var hmac = new HMACSHA256(Encoding.UTF8.GetBytes(secret));
var signature = Convert.ToHexString(hmac.ComputeHash(Encoding.UTF8.GetBytes($"{ts}\nPOST\n/api/v1/\n{bodyHash}"))).ToLowerInvariant();

L’ordre habituel

Chargez les listes une fois et gardez-les jusqu’au changement de siteVersion. Ensuite : searchRq pour une période, extrasRq et crossBordersRq pour la voiture choisie, searchDetailsRq pour le total exact, et bookRq avec ce total comme expectedTotal.

Commandes

locationsRq Pick-up and return locations.

Requête

ChampTypeObligatoireDescription
commandstringObligatoireThe command name.
languagero|en|fr|it|de|esfacultatifLanguage of names. Default en.

Données de la réponse

ChampTypeObligatoireDescription
siteVersionintegerObligatoireVersion of our data: reload the list only when it changes.
locationsarrayObligatoireActive locations.
locations[].codeintegerObligatoireLocation code (pickup.locationId / dropoff.locationId).
locations[].namestringObligatoireName with type, e.g. "Iași Airport".
locations[].citystringObligatoireCity.
locations[].typeobjectObligatoirecity|airport|trainStation|office, with name.
locations[].iatastringfacultatifAirport code, or null.
locations[].kindobjectObligatoireoffice|fleet|pool|request, with name: own office, local fleet, car brought from the nearest fleet, on request.
locations[].latnumberfacultatifLatitude.
locations[].lngnumberfacultatifLongitude.
categoriesRq Car classes.

Requête

ChampTypeObligatoireDescription
commandstringObligatoireThe command name.
languagero|en|fr|it|de|esfacultatifLanguage of names. Default en.

Données de la réponse

ChampTypeObligatoireDescription
siteVersionintegerObligatoireVersion of our data: reload the list only when it changes.
categoriesarrayObligatoireActive classes, in our order.
categories[].codeintegerObligatoireCategory code.
categories[].namestringObligatoireName.
categories[].descriptionstringfacultatifDescription, or null.
carTypesRq Car types you can sell.

Requête

ChampTypeObligatoireDescription
commandstringObligatoireThe command name.
languagero|en|fr|it|de|esfacultatifLanguage of names. Default en.

Données de la réponse

ChampTypeObligatoireDescription
siteVersionintegerObligatoireVersion of our data: reload the list only when it changes.
carTypesarrayObligatoireActive car types you have access to.
carTypes[].codeintegerObligatoireCar type code.
carTypes[].namestringObligatoireCar type name (the car or a similar one of the same class or higher).
carTypes[].categoryobjectObligatoireCar class.
carTypes[].category.codeintegerObligatoireCategory code (categoriesRq).
carTypes[].category.namestringObligatoireName.
carTypes[].acrissstringfacultatifACRISS code, or null.
carTypes[].specsobjectObligatoireFeatures.
carTypes[].specs.seatsintegerfacultatifSeats.
carTypes[].specs.doorsintegerfacultatifDoors.
carTypes[].specs.luggageintegerfacultatifSuitcases.
carTypes[].specs.transmissionobjectfacultatifCode (manual|automatic) and name in the request language, or null.
carTypes[].specs.transmission.codestringObligatoiremanual|automatic
carTypes[].specs.transmission.namestringObligatoireName.
carTypes[].specs.fuelobjectfacultatifFuel {code, name}, or null.
carTypes[].specs.consumptionnumberfacultatifLitres / 100 km, or null.
carTypes[].specs.airConditioningobjectfacultatifCode (automatic|manual) and name in the request language, or null.
carTypes[].specs.airConditioning.codestringObligatoireautomatic|manual
carTypes[].specs.airConditioning.namestringObligatoireName.
carTypes[].specs.driveobjectfacultatifCode (front|rear|4x4) and name in the request language, or null.
carTypes[].specs.drive.codestringObligatoirefront|rear|4x4
carTypes[].specs.drive.namestringObligatoireName.
carTypes[].specs.isofixbooleanObligatoireIsofix.
carTypes[].specs.wagonbooleanObligatoireEstate body.
carTypes[].specs.smartphonebooleanObligatoireSmartphone integration.
carTypes[].picturesarray<string>ObligatoirePhoto URLs.
carTypes[].minimumDaysintegerObligatoireMinimum rental days of the type.
ageGroupsRq Driver age groups.

Requête

ChampTypeObligatoireDescription
commandstringObligatoireThe command name.
languagero|en|fr|it|de|esfacultatifLanguage of names. Default en.

Données de la réponse

ChampTypeObligatoireDescription
siteVersionintegerObligatoireVersion of our data: reload the list only when it changes.
ageGroupsarrayObligatoireActive age groups.
ageGroups[].codeintegerObligatoireAge group code (ageGroup).
ageGroups[].fromAgeintegerObligatoireFrom age.
ageGroups[].toAgeintegerfacultatifTo age, or null (and over).
ageGroups[].namestringObligatoireName, e.g. "23–69 years".
ageGroups[].defaultbooleanObligatoireThe usual group (no surcharge).
searchRq Available cars and prices for a period.

Requête

ChampTypeObligatoireDescription
commandstringObligatoireThe command name.
languagero|en|fr|it|de|esfacultatifLanguage of names and messages. Default en.
pickupobjectObligatoireThe pickup place and moment.
pickup.locationIdintegerObligatoireLocation code (locationsRq).
pickup.dateTimedatetimeObligatoireRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatoireThe dropoff place and moment.
dropoff.locationIdintegerObligatoireLocation code (locationsRq).
dropoff.dateTimedatetimeObligatoireRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatoireMain driver age group code (ageGroupsRq).
carTypeCodeintegerfacultatifOptional: a car type to return first (if it is offered for the search).
availabilityavailable|onRequest|bothfacultatifWhich cars to return. Default both.
filtersobjectfacultatifFilters.
filters.categoriesarray<integer>facultatifCategory codes.
filters.seatsarray<integer>facultatifSeat counts.
filters.luggageintegerfacultatifMinimum suitcases.
filters.fuelarray<integer>facultatifFuel codes.
filters.transmissionarray<string>facultatifmanual / automatic.

Données de la réponse

ChampTypeObligatoireDescription
currencystringObligatoireCurrency of all amounts (ISO 4217, EUR).
requestobjectObligatoireThe request as understood.
daysintegerObligatoireRental days.
typesarrayObligatoireCars that can be rented for the search (the others are not returned).
types[].codeintegerObligatoireCar type code.
types[].namestringObligatoireCar type name (the car or a similar one of the same class or higher).
types[].categoryobjectObligatoireCar class.
types[].category.codeintegerObligatoireCategory code (categoriesRq).
types[].category.namestringObligatoireName.
types[].acrissstringfacultatifACRISS code, or null.
types[].specsobjectObligatoireFeatures.
types[].specs.seatsintegerfacultatifSeats.
types[].specs.doorsintegerfacultatifDoors.
types[].specs.luggageintegerfacultatifSuitcases.
types[].specs.transmissionobjectfacultatifCode (manual|automatic) and name in the request language, or null.
types[].specs.transmission.codestringObligatoiremanual|automatic
types[].specs.transmission.namestringObligatoireName.
types[].specs.fuelobjectfacultatifFuel {code, name}, or null.
types[].specs.consumptionnumberfacultatifLitres / 100 km, or null.
types[].specs.airConditioningobjectfacultatifCode (automatic|manual) and name in the request language, or null.
types[].specs.airConditioning.codestringObligatoireautomatic|manual
types[].specs.airConditioning.namestringObligatoireName.
types[].specs.driveobjectfacultatifCode (front|rear|4x4) and name in the request language, or null.
types[].specs.drive.codestringObligatoirefront|rear|4x4
types[].specs.drive.namestringObligatoireName.
types[].specs.isofixbooleanObligatoireIsofix.
types[].specs.wagonbooleanObligatoireEstate body.
types[].specs.smartphonebooleanObligatoireSmartphone integration.
types[].picturesarray<string>ObligatoirePhoto URLs.
types[].requestedbooleanObligatoireThis is the carTypeCode from the request.
types[].statusavailable|onRequestObligatoireavailable = can be booked now; onRequest = we confirm it.
types[].instantConfirmationbooleanObligatoireThe booking is confirmed immediately (24 h+ before pick-up, car in the fleet).
types[].daysintegerObligatoireRental days.
types[].chargedDaysintegerObligatoireDays charged (the minimum, when the period is shorter).
types[].minimumDaysintegerObligatoireMinimum days here.
types[].offersobjectObligatoireThe two offers.
types[].offers.standardobjectObligatoireWith damage deposit.
types[].offers.standard.totalintegerObligatoireFinal price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay.
types[].offers.standard.perDaynumberObligatoireAverage price per day (information only). In currency (EUR).
types[].offers.standard.discountobjectfacultatifThe discount already applied, or null.
types[].offers.standard.discount.amountnumberObligatoireAmount saved. In currency (EUR).
types[].offers.standard.discount.percentnumberObligatoirePercent saved.
types[].offers.standard.discount.totalBeforeintegerObligatoireTotal before the discount.
types[].offers.standard.depositobjectObligatoireSecurity deposit at pick-up, by part (all keys always present, 0 when not required).
types[].offers.standard.deposit.carnumberObligatoireDamage deposit (0 with extraProtection). In currency (EUR).
types[].offers.standard.deposit.fuelnumberObligatoireFuel deposit. In currency (EUR).
types[].offers.standard.deposit.extrasnumberObligatoireEquipment deposit. In currency (EUR).
types[].offers.standard.deposit.crossBordernumberObligatoireCross-border deposit. In currency (EUR).
types[].offers.standard.deposit.agenumberObligatoireExtra deposit for the driver age group. In currency (EUR).
types[].offers.standard.deposit.totalnumberObligatoireTotal deposit. 0 = no deposit at all. In currency (EUR).
types[].offers.standard.kmobjectObligatoireKilometres.
types[].offers.standard.km.perDayintegerObligatoireIncluded km per day.
types[].offers.standard.km.includedintegerObligatoireTotal km included for the rental.
types[].offers.standard.km.extraKmPricenumberObligatoirePrice per extra km, charged at the end over the total included. In currency (EUR).
types[].offers.standard.cancellationobjectObligatoireCancellation policy of this offer.
types[].offers.standard.cancellation.freeUntildatetimefacultatifFree cancellation until this moment (Romanian time); null = free until pick-up.
types[].offers.standard.cancellation.stagesarrayObligatoireCancellation fees after the free period.
types[].offers.standard.cancellation.stages[].fromdatetimeObligatoireFrom this moment.
types[].offers.standard.cancellation.stages[].amountnumberObligatoireCancellation fee. In currency (EUR).
types[].offers.standard.cancellation.noShownumberfacultatifNo-show fee in EUR, or null.
types[].offers.standard.advanceobjectfacultatifAlways null for partners (an advance can be asked only for website bookings).
types[].offers.standard.advance.amountnumberObligatoireAdvance amount. In currency (EUR).
types[].offers.extraProtectionobjectfacultatifWithout damage deposit (SCDW), or null when the car has no such option. Same fields as standard.
types[].notestringfacultatifA note on the price (e.g. minimum days).
facetsobjectObligatoireCounts per availability, category, transmission, fuel, seats, luggage: [{code, name, count}].
extrasRq Equipment offered with a car.

Requête

ChampTypeObligatoireDescription
commandstringObligatoireThe command name.
languagero|en|fr|it|de|esfacultatifLanguage of names and messages. Default en.
pickupobjectObligatoireThe pickup place and moment.
pickup.locationIdintegerObligatoireLocation code (locationsRq).
pickup.dateTimedatetimeObligatoireRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatoireThe dropoff place and moment.
dropoff.locationIdintegerObligatoireLocation code (locationsRq).
dropoff.dateTimedatetimeObligatoireRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatoireMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatoireThe chosen car type (carTypesRq / searchRq).

Données de la réponse

ChampTypeObligatoireDescription
currencystringObligatoireEUR.
carTypeCodeintegerObligatoireThe car type.
chargedDaysintegerObligatoireDays charged.
extrasarrayObligatoireEquipment.
extras[].codeintegerObligatoireEquipment code.
extras[].namestringObligatoireName.
extras[].descriptionstringfacultatifDescription.
extras[].photostringfacultatifPhoto URL.
extras[].pricePerDaynumberObligatoirePrice per day. In currency (EUR).
extras[].maxQuantityintegerObligatoireMaximum per booking.
extras[].depositnumberObligatoireDeposit per piece. In currency (EUR).
extras[].totalnumberObligatoirePrice of one piece for the whole rental. In currency (EUR).
crossBordersRq Countries the car may be driven to.

Requête

ChampTypeObligatoireDescription
commandstringObligatoireThe command name.
languagero|en|fr|it|de|esfacultatifLanguage of names and messages. Default en.
pickupobjectObligatoireThe pickup place and moment.
pickup.locationIdintegerObligatoireLocation code (locationsRq).
pickup.dateTimedatetimeObligatoireRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatoireThe dropoff place and moment.
dropoff.locationIdintegerObligatoireLocation code (locationsRq).
dropoff.dateTimedatetimeObligatoireRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatoireMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatoireThe chosen car type (carTypesRq / searchRq).

Données de la réponse

ChampTypeObligatoireDescription
currencystringObligatoireEUR.
carTypeCodeintegerObligatoireThe car type.
chargedDaysintegerObligatoireDays charged.
crossBordersarrayObligatoireAllowed destinations. Without one, leaving Romania is forbidden.
crossBorders[].codeintegerObligatoireDestination code.
crossBorders[].namestringObligatoireName.
crossBorders[].descriptionstringfacultatifDocuments and rules.
crossBorders[].pricePerDaynumberObligatoirePrice per day. In currency (EUR).
crossBorders[].minTotalnumberObligatoireMinimum per rental (0 = none). In currency (EUR).
crossBorders[].maxTotalnumberObligatoireMaximum per rental (0 = none). In currency (EUR).
crossBorders[].depositnumberObligatoireExtra deposit. In currency (EUR).
crossBorders[].totalnumberObligatoirePrice for the whole rental. In currency (EUR).
searchDetailsRq Exact price of a selection (car, equipment, cross-border), before booking.

Requête

ChampTypeObligatoireDescription
commandstringObligatoireThe command name.
languagero|en|fr|it|de|esfacultatifLanguage of names and messages. Default en.
pickupobjectObligatoireThe pickup place and moment.
pickup.locationIdintegerObligatoireLocation code (locationsRq).
pickup.dateTimedatetimeObligatoireRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatoireThe dropoff place and moment.
dropoff.locationIdintegerObligatoireLocation code (locationsRq).
dropoff.dateTimedatetimeObligatoireRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatoireMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatoireThe chosen car type (carTypesRq / searchRq).
extrasarrayfacultatifChosen equipment.
extras[].codeintegerObligatoireEquipment code (extrasRq).
extras[].qtyintegerfacultatifQuantity, default 1; capped at maxQuantity.
crossBordersarray<integer>facultatifChosen cross-border destination codes (crossBordersRq).

Données de la réponse

ChampTypeObligatoireDescription
currencystringObligatoireEUR.
requestobjectObligatoireThe request as understood.
typeobjectObligatoireThe car type with status, days, chargedDays, minimumDays, note.
type.codeintegerObligatoireCar type code.
type.namestringObligatoireCar type name (the car or a similar one of the same class or higher).
type.categoryobjectObligatoireCar class.
type.category.codeintegerObligatoireCategory code (categoriesRq).
type.category.namestringObligatoireName.
type.acrissstringfacultatifACRISS code, or null.
type.specsobjectObligatoireFeatures.
type.specs.seatsintegerfacultatifSeats.
type.specs.doorsintegerfacultatifDoors.
type.specs.luggageintegerfacultatifSuitcases.
type.specs.transmissionobjectfacultatifCode (manual|automatic) and name in the request language, or null.
type.specs.transmission.codestringObligatoiremanual|automatic
type.specs.transmission.namestringObligatoireName.
type.specs.fuelobjectfacultatifFuel {code, name}, or null.
type.specs.consumptionnumberfacultatifLitres / 100 km, or null.
type.specs.airConditioningobjectfacultatifCode (automatic|manual) and name in the request language, or null.
type.specs.airConditioning.codestringObligatoireautomatic|manual
type.specs.airConditioning.namestringObligatoireName.
type.specs.driveobjectfacultatifCode (front|rear|4x4) and name in the request language, or null.
type.specs.drive.codestringObligatoirefront|rear|4x4
type.specs.drive.namestringObligatoireName.
type.specs.isofixbooleanObligatoireIsofix.
type.specs.wagonbooleanObligatoireEstate body.
type.specs.smartphonebooleanObligatoireSmartphone integration.
type.picturesarray<string>ObligatoirePhoto URLs.
extrasarrayObligatoireEquipment added.
extras[].codeintegerObligatoireCode.
extras[].namestringObligatoireName.
extras[].quantityintegerObligatoireQuantity.
extras[].totalnumberObligatoireTotal. In currency (EUR).
crossBordersarrayObligatoireDestinations added.
crossBorders[].codeintegerObligatoireCode.
crossBorders[].namestringObligatoireName.
crossBorders[].totalnumberObligatoireTotal. In currency (EUR).
offersobjectObligatoireThe two offers for the selection; send the chosen total as expectedTotal in bookRq.
offers.standardobjectObligatoireWith damage deposit.
offers.standard.totalintegerObligatoireFinal price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay.
offers.standard.perDaynumberObligatoireAverage price per day (information only). In currency (EUR).
offers.standard.rentalTotalnumberObligatoireThe rental without equipment and cross-border (summary line). In currency (EUR).
offers.standard.discountobjectfacultatifThe discount already applied, or null.
offers.standard.discount.amountnumberObligatoireAmount saved. In currency (EUR).
offers.standard.discount.percentnumberObligatoirePercent saved.
offers.standard.discount.totalBeforeintegerObligatoireTotal before the discount.
offers.standard.depositobjectObligatoireSecurity deposit at pick-up, by part (all keys always present, 0 when not required).
offers.standard.deposit.carnumberObligatoireDamage deposit (0 with extraProtection). In currency (EUR).
offers.standard.deposit.fuelnumberObligatoireFuel deposit. In currency (EUR).
offers.standard.deposit.extrasnumberObligatoireEquipment deposit. In currency (EUR).
offers.standard.deposit.crossBordernumberObligatoireCross-border deposit. In currency (EUR).
offers.standard.deposit.agenumberObligatoireExtra deposit for the driver age group. In currency (EUR).
offers.standard.deposit.totalnumberObligatoireTotal deposit. 0 = no deposit at all. In currency (EUR).
offers.standard.kmobjectObligatoireKilometres.
offers.standard.km.perDayintegerObligatoireIncluded km per day.
offers.standard.km.includedintegerObligatoireTotal km included for the rental.
offers.standard.km.extraKmPricenumberObligatoirePrice per extra km, charged at the end over the total included. In currency (EUR).
offers.standard.cancellationobjectObligatoireCancellation policy of this offer.
offers.standard.cancellation.freeUntildatetimefacultatifFree cancellation until this moment (Romanian time); null = free until pick-up.
offers.standard.cancellation.stagesarrayObligatoireCancellation fees after the free period.
offers.standard.cancellation.stages[].fromdatetimeObligatoireFrom this moment.
offers.standard.cancellation.stages[].amountnumberObligatoireCancellation fee. In currency (EUR).
offers.standard.cancellation.noShownumberfacultatifNo-show fee in EUR, or null.
offers.standard.advanceobjectfacultatifAlways null for partners (an advance can be asked only for website bookings).
offers.standard.advance.amountnumberObligatoireAdvance amount. In currency (EUR).
offers.extraProtectionobjectfacultatifWithout damage deposit (SCDW), or null when the car has no such option. Same fields as standard.
bookRq Book the selection.

Requête

ChampTypeObligatoireDescription
commandstringObligatoireThe command name.
languagero|en|fr|it|de|esfacultatifLanguage of names and messages. Default en.
pickupobjectObligatoireThe pickup place and moment.
pickup.locationIdintegerObligatoireLocation code (locationsRq).
pickup.dateTimedatetimeObligatoireRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatoireThe dropoff place and moment.
dropoff.locationIdintegerObligatoireLocation code (locationsRq).
dropoff.dateTimedatetimeObligatoireRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatoireMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatoireThe chosen car type (carTypesRq / searchRq).
extrasarrayfacultatifChosen equipment.
extras[].codeintegerObligatoireEquipment code (extrasRq).
extras[].qtyintegerfacultatifQuantity, default 1; capped at maxQuantity.
crossBordersarray<integer>facultatifChosen cross-border destination codes (crossBordersRq).
offerstandard|extraProtectionObligatoireThe chosen offer.
expectedTotalnumberObligatoireThe total the customer saw (searchDetailsRq). A different current total gives PRICE_CHANGED with the new total.
driverobjectObligatoireMain driver (signs the contract).
driver.fullNamestringObligatoireFull name.
driver.phonestringObligatoirePhone with country code (WhatsApp if possible).
driver.emailstringObligatoireEmail (confirmation and booking link).
driver.personalIdstringfacultatifPersonal ID number.
driver.birthDatestringfacultatifYYYY-MM-DD.
driver.citizenshipstringfacultatifCitizenship: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.addrCountrystringfacultatifAddress country: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.addrStateRomaniastringfacultatifCounty code, 2 letters, e.g. IS, B (only when addrCountry is RO).
driver.addrStatestringfacultatifRegion (other countries).
driver.addrCitystringfacultatifCity.
driver.addrStreetstringfacultatifStreet.
driver.idTypeintegerfacultatifID document type: 1 = identity card, 2 = passport, 3 = residence permit. Default 1; another value gives FIELD_INVALID.
driver.idCountrystringfacultatifCountry that issued the ID document: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.idNumberstringfacultatifID document number.
driver.idExpiresAtstringfacultatifYYYY-MM-DD.
driver.licCountrystringfacultatifCountry that issued the driving licence: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.licNumberstringfacultatifLicence number.
driver.licIssuedAtstringfacultatifYYYY-MM-DD.
driver.licExpiresAtstringfacultatifYYYY-MM-DD.
additionalDriverobjectfacultatifSecond driver, same fields (email not required). Free of charge.
billingobjectfacultatifInvoice 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).
flightobjectfacultatifArrival flight, so we can follow delays.
flight.numberstringfacultatifFlight number.
flight.fromstringfacultatifDeparture airport.
messagestringfacultatifMessage for us.
consentbooleanObligatoiretrue: the customer accepted the rental conditions and the privacy policy.
confirmDuplicatebooleanfacultatiftrue: book again after DUPLICATE_BOOKING.
partnerVoucherstringfacultatifYour own booking reference (up to 60 characters).

Données de la réponse

ChampTypeObligatoireDescription
bookingCodeintegerObligatoireOur booking number.
statusrequest|confirmedObligatoireconfirmed = instant confirmation; request = we confirm it by email.
bookingTokenstringObligatoireSigned proof of the booking.
totalnumberObligatoireBooked total.
currencystringObligatoireEUR.

Codes des messages

Les codes ne changent jamais et ne sont jamais supprimés (de nouveaux peuvent être ajoutés) ; les textes peuvent être améliorés à tout moment. Fiez-vous au code, pas au texte.

CodeNiveauHTTPTexte
INVALID_JSONerror400La requête n’est pas un JSON valide.
UNKNOWN_COMMANDerror404Commande inconnue : {value}.
METHOD_NOT_ALLOWEDerror405Envoie la requête en POST, avec la commande en JSON dans le corps.
EMPTY_BODYerror400La requête n’a pas de corps : envoie la commande en JSON, par exemple {"command": "searchRq", ...}.
AUTH_REQUIREDerror401Signe la requête avec les en-têtes X-Api-Key, X-Api-Timestamp et X-Api-Signature.
AUTH_INVALIDerror401Les identifiants de partenaire ne sont pas valides.
SIGNATURE_INVALIDerror401La signature de la requête n’est pas valide.
SIGNATURE_EXPIREDerror401L’heure de la requête est trop éloignée de la nôtre : signe chaque requête avec l’heure actuelle.
FIELD_REQUIREDerror400Ce champ est obligatoire : {value}.
FIELD_INVALIDerror400Ce champ a une valeur invalide : {value}.
LOCATION_UNKNOWNerror400Ce lieu n’existe pas : {value}.
PICKUP_IN_PASTerror400La date et l’heure de prise en charge doivent être dans le futur.
DROPOFF_BEFORE_PICKUPerror400Le retour doit être après la prise en charge.
AGE_GROUP_UNKNOWNerror400Cette tranche d’âge n’existe pas.
CAR_TYPE_NOT_OFFEREDerror400Cette voiture n’est pas proposée pour cette recherche.
TOO_MANY_ATTEMPTSerror429Trop de tentatives. Réessaie dans quelques minutes.
TRY_AGAINerror503Une autre réservation pour cette voiture est en cours d’enregistrement. Réessaie dans quelques secondes.
EXTRA_NOT_OFFEREDwarning—Cet équipement n’est pas proposé avec cette voiture, il n’a donc pas été ajouté : {value}.
EXTRA_QTY_REDUCEDwarning—La quantité a été réduite au maximum par réservation : {value}.
CROSS_BORDER_NOT_ALLOWEDwarning—Cette voiture ne peut pas sortir du pays vers cette destination, elle n’a donc pas été ajoutée : {value}.
NO_RESULTSinfo—Aucune voiture ne correspond à ta recherche.
BELOW_MIN_DAYSinfo—Le prix correspond à la location minimale de {value} jours.
CONSENT_REQUIREDerror400Accepte les conditions de location et la politique de confidentialité pour envoyer la réservation.
PRICE_CHANGEDerror409Le prix a changé entre-temps : le nouveau total est de {value}. Vérifie-le et envoie à nouveau la réservation.
DUPLICATE_BOOKINGerror409Tu as déjà une réservation avec le même conducteur, les mêmes dates et les mêmes lieux. Renvoie-la seulement si tu en veux une de plus.
OFFER_UNAVAILABLEerror400L’offre sans caution n’est pas disponible pour cette voiture. Choisis l’offre avec caution.
SERVER_ERRORerror500Un problème est survenu de notre côté. Réessaie, s’il te plaît.

Bon à savoir

  • Tous les montants sont dans la devise de la réponse (EUR aujourd’hui).
  • Toutes les dates et heures sont à l’heure locale roumaine.
  • Le prix n’est garanti que par bookRq : si le total a changé, vous recevez PRICE_CHANGED avec le nouveau total.