Romanian Car Hire 24 horas+40 741 644 169 Reservar online

API para socios e IA

Nuestra disponibilidad y nuestros precios, en tiempo real, para asistentes de IA y para socios que venden nuestros coches.

4,7 en Google, 206 reseñas Confirmación al instante, sin esperar a un agente 24 horas, también de nocheSin tarjeta de créditoDesde 2006

Dos formas de usar nuestros datos

Búsqueda para IA

Para asistentes de IA e integraciones sencillas: una petición GET pública, sin clave. Disponibilidad en tiempo real, precios finales, fianzas y un enlace de reserva para cada coche.

Ver la búsqueda para IA

API para socios

Para agencias de viajes, revendedores y webs que venden nuestros coches: búsqueda, opciones y reserva, con los mismos precios y reglas que en nuestra web. Cada petición va firmada.

Ver la API para socios

API para socios

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

Especificación OpenAPI (JSON, en inglés): https://romaniancarhire.com/api/v1/openapi.json

Para obtener acceso (usuario y secreto), escríbenos a office@romaniancarhire.com.

Petición y respuesta

El cuerpo es JSON con el comando y el idioma; cada respuesta tiene el mismo sobre. Un error detiene la petición (success false, data null); los avisos y notas llegan junto con los datos.

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

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

Firma de la petición

  1. X-Api-Key: tu nombre de usuario.
  2. X-Api-Timestamp: la hora actual en segundos Unix (como mucho 5 minutos de diferencia con la nuestra).
  3. X-Api-Signature: HMAC-SHA256 con tu secreto, en hexadecimal, de: timestamp, método, ruta y el SHA-256 del cuerpo exacto que envías, separados por saltos de línea.
signature = hex(HMAC-SHA256(secret, timestamp + "\n" + "POST" + "\n" + "/api/v1/" + "\n" + hex(SHA256(body))))

Comprueba tu código con este ejemplo:

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

El orden habitual

Carga las listas una vez y guárdalas hasta que cambie siteVersion. Después: searchRq para un periodo, extrasRq y crossBordersRq para el coche elegido, searchDetailsRq para el total exacto y bookRq con ese total como expectedTotal.

Comandos

locationsRq Pick-up and return locations.

Petición

CampoTipoObligatorioDescripción
commandstringObligatorioThe command name.
languagero|en|fr|it|de|esopcionalLanguage of names. Default en.

Datos de la respuesta

CampoTipoObligatorioDescripción
siteVersionintegerObligatorioVersion of our data: reload the list only when it changes.
locationsarrayObligatorioActive locations.
locations[].codeintegerObligatorioLocation code (pickup.locationId / dropoff.locationId).
locations[].namestringObligatorioName with type, e.g. "Iași Airport".
locations[].citystringObligatorioCity.
locations[].typeobjectObligatoriocity|airport|trainStation|office, with name.
locations[].iatastringopcionalAirport code, or null.
locations[].kindobjectObligatoriooffice|fleet|pool|request, with name: own office, local fleet, car brought from the nearest fleet, on request.
locations[].latnumberopcionalLatitude.
locations[].lngnumberopcionalLongitude.
categoriesRq Car classes.

Petición

CampoTipoObligatorioDescripción
commandstringObligatorioThe command name.
languagero|en|fr|it|de|esopcionalLanguage of names. Default en.

Datos de la respuesta

CampoTipoObligatorioDescripción
siteVersionintegerObligatorioVersion of our data: reload the list only when it changes.
categoriesarrayObligatorioActive classes, in our order.
categories[].codeintegerObligatorioCategory code.
categories[].namestringObligatorioName.
categories[].descriptionstringopcionalDescription, or null.
carTypesRq Car types you can sell.

Petición

CampoTipoObligatorioDescripción
commandstringObligatorioThe command name.
languagero|en|fr|it|de|esopcionalLanguage of names. Default en.

Datos de la respuesta

CampoTipoObligatorioDescripción
siteVersionintegerObligatorioVersion of our data: reload the list only when it changes.
carTypesarrayObligatorioActive car types you have access to.
carTypes[].codeintegerObligatorioCar type code.
carTypes[].namestringObligatorioCar type name (the car or a similar one of the same class or higher).
carTypes[].categoryobjectObligatorioCar class.
carTypes[].category.codeintegerObligatorioCategory code (categoriesRq).
carTypes[].category.namestringObligatorioName.
carTypes[].acrissstringopcionalACRISS code, or null.
carTypes[].specsobjectObligatorioFeatures.
carTypes[].specs.seatsintegeropcionalSeats.
carTypes[].specs.doorsintegeropcionalDoors.
carTypes[].specs.luggageintegeropcionalSuitcases.
carTypes[].specs.transmissionobjectopcionalCode (manual|automatic) and name in the request language, or null.
carTypes[].specs.transmission.codestringObligatoriomanual|automatic
carTypes[].specs.transmission.namestringObligatorioName.
carTypes[].specs.fuelobjectopcionalFuel {code, name}, or null.
carTypes[].specs.consumptionnumberopcionalLitres / 100 km, or null.
carTypes[].specs.airConditioningobjectopcionalCode (automatic|manual) and name in the request language, or null.
carTypes[].specs.airConditioning.codestringObligatorioautomatic|manual
carTypes[].specs.airConditioning.namestringObligatorioName.
carTypes[].specs.driveobjectopcionalCode (front|rear|4x4) and name in the request language, or null.
carTypes[].specs.drive.codestringObligatoriofront|rear|4x4
carTypes[].specs.drive.namestringObligatorioName.
carTypes[].specs.isofixbooleanObligatorioIsofix.
carTypes[].specs.wagonbooleanObligatorioEstate body.
carTypes[].specs.smartphonebooleanObligatorioSmartphone integration.
carTypes[].picturesarray<string>ObligatorioPhoto URLs.
carTypes[].minimumDaysintegerObligatorioMinimum rental days of the type.
ageGroupsRq Driver age groups.

Petición

CampoTipoObligatorioDescripción
commandstringObligatorioThe command name.
languagero|en|fr|it|de|esopcionalLanguage of names. Default en.

Datos de la respuesta

CampoTipoObligatorioDescripción
siteVersionintegerObligatorioVersion of our data: reload the list only when it changes.
ageGroupsarrayObligatorioActive age groups.
ageGroups[].codeintegerObligatorioAge group code (ageGroup).
ageGroups[].fromAgeintegerObligatorioFrom age.
ageGroups[].toAgeintegeropcionalTo age, or null (and over).
ageGroups[].namestringObligatorioName, e.g. "23–69 years".
ageGroups[].defaultbooleanObligatorioThe usual group (no surcharge).
searchRq Available cars and prices for a period.

Petición

CampoTipoObligatorioDescripción
commandstringObligatorioThe command name.
languagero|en|fr|it|de|esopcionalLanguage of names and messages. Default en.
pickupobjectObligatorioThe pickup place and moment.
pickup.locationIdintegerObligatorioLocation code (locationsRq).
pickup.dateTimedatetimeObligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatorioThe dropoff place and moment.
dropoff.locationIdintegerObligatorioLocation code (locationsRq).
dropoff.dateTimedatetimeObligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatorioMain driver age group code (ageGroupsRq).
carTypeCodeintegeropcionalOptional: a car type to return first (if it is offered for the search).
availabilityavailable|onRequest|bothopcionalWhich cars to return. Default both.
filtersobjectopcionalFilters.
filters.categoriesarray<integer>opcionalCategory codes.
filters.seatsarray<integer>opcionalSeat counts.
filters.luggageintegeropcionalMinimum suitcases.
filters.fuelarray<integer>opcionalFuel codes.
filters.transmissionarray<string>opcionalmanual / automatic.

Datos de la respuesta

CampoTipoObligatorioDescripción
currencystringObligatorioCurrency of all amounts (ISO 4217, EUR).
requestobjectObligatorioThe request as understood.
daysintegerObligatorioRental days.
typesarrayObligatorioCars that can be rented for the search (the others are not returned).
types[].codeintegerObligatorioCar type code.
types[].namestringObligatorioCar type name (the car or a similar one of the same class or higher).
types[].categoryobjectObligatorioCar class.
types[].category.codeintegerObligatorioCategory code (categoriesRq).
types[].category.namestringObligatorioName.
types[].acrissstringopcionalACRISS code, or null.
types[].specsobjectObligatorioFeatures.
types[].specs.seatsintegeropcionalSeats.
types[].specs.doorsintegeropcionalDoors.
types[].specs.luggageintegeropcionalSuitcases.
types[].specs.transmissionobjectopcionalCode (manual|automatic) and name in the request language, or null.
types[].specs.transmission.codestringObligatoriomanual|automatic
types[].specs.transmission.namestringObligatorioName.
types[].specs.fuelobjectopcionalFuel {code, name}, or null.
types[].specs.consumptionnumberopcionalLitres / 100 km, or null.
types[].specs.airConditioningobjectopcionalCode (automatic|manual) and name in the request language, or null.
types[].specs.airConditioning.codestringObligatorioautomatic|manual
types[].specs.airConditioning.namestringObligatorioName.
types[].specs.driveobjectopcionalCode (front|rear|4x4) and name in the request language, or null.
types[].specs.drive.codestringObligatoriofront|rear|4x4
types[].specs.drive.namestringObligatorioName.
types[].specs.isofixbooleanObligatorioIsofix.
types[].specs.wagonbooleanObligatorioEstate body.
types[].specs.smartphonebooleanObligatorioSmartphone integration.
types[].picturesarray<string>ObligatorioPhoto URLs.
types[].requestedbooleanObligatorioThis is the carTypeCode from the request.
types[].statusavailable|onRequestObligatorioavailable = can be booked now; onRequest = we confirm it.
types[].instantConfirmationbooleanObligatorioThe booking is confirmed immediately (24 h+ before pick-up, car in the fleet).
types[].daysintegerObligatorioRental days.
types[].chargedDaysintegerObligatorioDays charged (the minimum, when the period is shorter).
types[].minimumDaysintegerObligatorioMinimum days here.
types[].offersobjectObligatorioThe two offers.
types[].offers.standardobjectObligatorioWith damage deposit.
types[].offers.standard.totalintegerObligatorioFinal price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay.
types[].offers.standard.perDaynumberObligatorioAverage price per day (information only). In currency (EUR).
types[].offers.standard.discountobjectopcionalThe discount already applied, or null.
types[].offers.standard.discount.amountnumberObligatorioAmount saved. In currency (EUR).
types[].offers.standard.discount.percentnumberObligatorioPercent saved.
types[].offers.standard.discount.totalBeforeintegerObligatorioTotal before the discount.
types[].offers.standard.depositobjectObligatorioSecurity deposit at pick-up, by part (all keys always present, 0 when not required).
types[].offers.standard.deposit.carnumberObligatorioDamage deposit (0 with extraProtection). In currency (EUR).
types[].offers.standard.deposit.fuelnumberObligatorioFuel deposit. In currency (EUR).
types[].offers.standard.deposit.extrasnumberObligatorioEquipment deposit. In currency (EUR).
types[].offers.standard.deposit.crossBordernumberObligatorioCross-border deposit. In currency (EUR).
types[].offers.standard.deposit.agenumberObligatorioExtra deposit for the driver age group. In currency (EUR).
types[].offers.standard.deposit.totalnumberObligatorioTotal deposit. 0 = no deposit at all. In currency (EUR).
types[].offers.standard.kmobjectObligatorioKilometres.
types[].offers.standard.km.perDayintegerObligatorioIncluded km per day.
types[].offers.standard.km.includedintegerObligatorioTotal km included for the rental.
types[].offers.standard.km.extraKmPricenumberObligatorioPrice per extra km, charged at the end over the total included. In currency (EUR).
types[].offers.standard.cancellationobjectObligatorioCancellation policy of this offer.
types[].offers.standard.cancellation.freeUntildatetimeopcionalFree cancellation until this moment (Romanian time); null = free until pick-up.
types[].offers.standard.cancellation.stagesarrayObligatorioCancellation fees after the free period.
types[].offers.standard.cancellation.stages[].fromdatetimeObligatorioFrom this moment.
types[].offers.standard.cancellation.stages[].amountnumberObligatorioCancellation fee. In currency (EUR).
types[].offers.standard.cancellation.noShownumberopcionalNo-show fee in EUR, or null.
types[].offers.standard.advanceobjectopcionalAlways null for partners (an advance can be asked only for website bookings).
types[].offers.standard.advance.amountnumberObligatorioAdvance amount. In currency (EUR).
types[].offers.extraProtectionobjectopcionalWithout damage deposit (SCDW), or null when the car has no such option. Same fields as standard.
types[].notestringopcionalA note on the price (e.g. minimum days).
facetsobjectObligatorioCounts per availability, category, transmission, fuel, seats, luggage: [{code, name, count}].
extrasRq Equipment offered with a car.

Petición

CampoTipoObligatorioDescripción
commandstringObligatorioThe command name.
languagero|en|fr|it|de|esopcionalLanguage of names and messages. Default en.
pickupobjectObligatorioThe pickup place and moment.
pickup.locationIdintegerObligatorioLocation code (locationsRq).
pickup.dateTimedatetimeObligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatorioThe dropoff place and moment.
dropoff.locationIdintegerObligatorioLocation code (locationsRq).
dropoff.dateTimedatetimeObligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatorioMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatorioThe chosen car type (carTypesRq / searchRq).

Datos de la respuesta

CampoTipoObligatorioDescripción
currencystringObligatorioEUR.
carTypeCodeintegerObligatorioThe car type.
chargedDaysintegerObligatorioDays charged.
extrasarrayObligatorioEquipment.
extras[].codeintegerObligatorioEquipment code.
extras[].namestringObligatorioName.
extras[].descriptionstringopcionalDescription.
extras[].photostringopcionalPhoto URL.
extras[].pricePerDaynumberObligatorioPrice per day. In currency (EUR).
extras[].maxQuantityintegerObligatorioMaximum per booking.
extras[].depositnumberObligatorioDeposit per piece. In currency (EUR).
extras[].totalnumberObligatorioPrice of one piece for the whole rental. In currency (EUR).
crossBordersRq Countries the car may be driven to.

Petición

CampoTipoObligatorioDescripción
commandstringObligatorioThe command name.
languagero|en|fr|it|de|esopcionalLanguage of names and messages. Default en.
pickupobjectObligatorioThe pickup place and moment.
pickup.locationIdintegerObligatorioLocation code (locationsRq).
pickup.dateTimedatetimeObligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatorioThe dropoff place and moment.
dropoff.locationIdintegerObligatorioLocation code (locationsRq).
dropoff.dateTimedatetimeObligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatorioMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatorioThe chosen car type (carTypesRq / searchRq).

Datos de la respuesta

CampoTipoObligatorioDescripción
currencystringObligatorioEUR.
carTypeCodeintegerObligatorioThe car type.
chargedDaysintegerObligatorioDays charged.
crossBordersarrayObligatorioAllowed destinations. Without one, leaving Romania is forbidden.
crossBorders[].codeintegerObligatorioDestination code.
crossBorders[].namestringObligatorioName.
crossBorders[].descriptionstringopcionalDocuments and rules.
crossBorders[].pricePerDaynumberObligatorioPrice per day. In currency (EUR).
crossBorders[].minTotalnumberObligatorioMinimum per rental (0 = none). In currency (EUR).
crossBorders[].maxTotalnumberObligatorioMaximum per rental (0 = none). In currency (EUR).
crossBorders[].depositnumberObligatorioExtra deposit. In currency (EUR).
crossBorders[].totalnumberObligatorioPrice for the whole rental. In currency (EUR).
searchDetailsRq Exact price of a selection (car, equipment, cross-border), before booking.

Petición

CampoTipoObligatorioDescripción
commandstringObligatorioThe command name.
languagero|en|fr|it|de|esopcionalLanguage of names and messages. Default en.
pickupobjectObligatorioThe pickup place and moment.
pickup.locationIdintegerObligatorioLocation code (locationsRq).
pickup.dateTimedatetimeObligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatorioThe dropoff place and moment.
dropoff.locationIdintegerObligatorioLocation code (locationsRq).
dropoff.dateTimedatetimeObligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatorioMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatorioThe chosen car type (carTypesRq / searchRq).
extrasarrayopcionalChosen equipment.
extras[].codeintegerObligatorioEquipment code (extrasRq).
extras[].qtyintegeropcionalQuantity, default 1; capped at maxQuantity.
crossBordersarray<integer>opcionalChosen cross-border destination codes (crossBordersRq).

Datos de la respuesta

CampoTipoObligatorioDescripción
currencystringObligatorioEUR.
requestobjectObligatorioThe request as understood.
typeobjectObligatorioThe car type with status, days, chargedDays, minimumDays, note.
type.codeintegerObligatorioCar type code.
type.namestringObligatorioCar type name (the car or a similar one of the same class or higher).
type.categoryobjectObligatorioCar class.
type.category.codeintegerObligatorioCategory code (categoriesRq).
type.category.namestringObligatorioName.
type.acrissstringopcionalACRISS code, or null.
type.specsobjectObligatorioFeatures.
type.specs.seatsintegeropcionalSeats.
type.specs.doorsintegeropcionalDoors.
type.specs.luggageintegeropcionalSuitcases.
type.specs.transmissionobjectopcionalCode (manual|automatic) and name in the request language, or null.
type.specs.transmission.codestringObligatoriomanual|automatic
type.specs.transmission.namestringObligatorioName.
type.specs.fuelobjectopcionalFuel {code, name}, or null.
type.specs.consumptionnumberopcionalLitres / 100 km, or null.
type.specs.airConditioningobjectopcionalCode (automatic|manual) and name in the request language, or null.
type.specs.airConditioning.codestringObligatorioautomatic|manual
type.specs.airConditioning.namestringObligatorioName.
type.specs.driveobjectopcionalCode (front|rear|4x4) and name in the request language, or null.
type.specs.drive.codestringObligatoriofront|rear|4x4
type.specs.drive.namestringObligatorioName.
type.specs.isofixbooleanObligatorioIsofix.
type.specs.wagonbooleanObligatorioEstate body.
type.specs.smartphonebooleanObligatorioSmartphone integration.
type.picturesarray<string>ObligatorioPhoto URLs.
extrasarrayObligatorioEquipment added.
extras[].codeintegerObligatorioCode.
extras[].namestringObligatorioName.
extras[].quantityintegerObligatorioQuantity.
extras[].totalnumberObligatorioTotal. In currency (EUR).
crossBordersarrayObligatorioDestinations added.
crossBorders[].codeintegerObligatorioCode.
crossBorders[].namestringObligatorioName.
crossBorders[].totalnumberObligatorioTotal. In currency (EUR).
offersobjectObligatorioThe two offers for the selection; send the chosen total as expectedTotal in bookRq.
offers.standardobjectObligatorioWith damage deposit.
offers.standard.totalintegerObligatorioFinal price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay.
offers.standard.perDaynumberObligatorioAverage price per day (information only). In currency (EUR).
offers.standard.rentalTotalnumberObligatorioThe rental without equipment and cross-border (summary line). In currency (EUR).
offers.standard.discountobjectopcionalThe discount already applied, or null.
offers.standard.discount.amountnumberObligatorioAmount saved. In currency (EUR).
offers.standard.discount.percentnumberObligatorioPercent saved.
offers.standard.discount.totalBeforeintegerObligatorioTotal before the discount.
offers.standard.depositobjectObligatorioSecurity deposit at pick-up, by part (all keys always present, 0 when not required).
offers.standard.deposit.carnumberObligatorioDamage deposit (0 with extraProtection). In currency (EUR).
offers.standard.deposit.fuelnumberObligatorioFuel deposit. In currency (EUR).
offers.standard.deposit.extrasnumberObligatorioEquipment deposit. In currency (EUR).
offers.standard.deposit.crossBordernumberObligatorioCross-border deposit. In currency (EUR).
offers.standard.deposit.agenumberObligatorioExtra deposit for the driver age group. In currency (EUR).
offers.standard.deposit.totalnumberObligatorioTotal deposit. 0 = no deposit at all. In currency (EUR).
offers.standard.kmobjectObligatorioKilometres.
offers.standard.km.perDayintegerObligatorioIncluded km per day.
offers.standard.km.includedintegerObligatorioTotal km included for the rental.
offers.standard.km.extraKmPricenumberObligatorioPrice per extra km, charged at the end over the total included. In currency (EUR).
offers.standard.cancellationobjectObligatorioCancellation policy of this offer.
offers.standard.cancellation.freeUntildatetimeopcionalFree cancellation until this moment (Romanian time); null = free until pick-up.
offers.standard.cancellation.stagesarrayObligatorioCancellation fees after the free period.
offers.standard.cancellation.stages[].fromdatetimeObligatorioFrom this moment.
offers.standard.cancellation.stages[].amountnumberObligatorioCancellation fee. In currency (EUR).
offers.standard.cancellation.noShownumberopcionalNo-show fee in EUR, or null.
offers.standard.advanceobjectopcionalAlways null for partners (an advance can be asked only for website bookings).
offers.standard.advance.amountnumberObligatorioAdvance amount. In currency (EUR).
offers.extraProtectionobjectopcionalWithout damage deposit (SCDW), or null when the car has no such option. Same fields as standard.
bookRq Book the selection.

Petición

CampoTipoObligatorioDescripción
commandstringObligatorioThe command name.
languagero|en|fr|it|de|esopcionalLanguage of names and messages. Default en.
pickupobjectObligatorioThe pickup place and moment.
pickup.locationIdintegerObligatorioLocation code (locationsRq).
pickup.dateTimedatetimeObligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future.
dropoffobjectObligatorioThe dropoff place and moment.
dropoff.locationIdintegerObligatorioLocation code (locationsRq).
dropoff.dateTimedatetimeObligatorioRomanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up.
ageGroupintegerObligatorioMain driver age group code (ageGroupsRq).
carTypeCodeintegerObligatorioThe chosen car type (carTypesRq / searchRq).
extrasarrayopcionalChosen equipment.
extras[].codeintegerObligatorioEquipment code (extrasRq).
extras[].qtyintegeropcionalQuantity, default 1; capped at maxQuantity.
crossBordersarray<integer>opcionalChosen cross-border destination codes (crossBordersRq).
offerstandard|extraProtectionObligatorioThe chosen offer.
expectedTotalnumberObligatorioThe total the customer saw (searchDetailsRq). A different current total gives PRICE_CHANGED with the new total.
driverobjectObligatorioMain driver (signs the contract).
driver.fullNamestringObligatorioFull name.
driver.phonestringObligatorioPhone with country code (WhatsApp if possible).
driver.emailstringObligatorioEmail (confirmation and booking link).
driver.personalIdstringopcionalPersonal ID number.
driver.birthDatestringopcionalYYYY-MM-DD.
driver.citizenshipstringopcionalCitizenship: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.addrCountrystringopcionalAddress country: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.addrStateRomaniastringopcionalCounty code, 2 letters, e.g. IS, B (only when addrCountry is RO).
driver.addrStatestringopcionalRegion (other countries).
driver.addrCitystringopcionalCity.
driver.addrStreetstringopcionalStreet.
driver.idTypeintegeropcionalID document type: 1 = identity card, 2 = passport, 3 = residence permit. Default 1; another value gives FIELD_INVALID.
driver.idCountrystringopcionalCountry that issued the ID document: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.idNumberstringopcionalID document number.
driver.idExpiresAtstringopcionalYYYY-MM-DD.
driver.licCountrystringopcionalCountry that issued the driving licence: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID.
driver.licNumberstringopcionalLicence number.
driver.licIssuedAtstringopcionalYYYY-MM-DD.
driver.licExpiresAtstringopcionalYYYY-MM-DD.
additionalDriverobjectopcionalSecond driver, same fields (email not required). Free of charge.
billingobjectopcionalInvoice 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).
flightobjectopcionalArrival flight, so we can follow delays.
flight.numberstringopcionalFlight number.
flight.fromstringopcionalDeparture airport.
messagestringopcionalMessage for us.
consentbooleanObligatoriotrue: the customer accepted the rental conditions and the privacy policy.
confirmDuplicatebooleanopcionaltrue: book again after DUPLICATE_BOOKING.
partnerVoucherstringopcionalYour own booking reference (up to 60 characters).

Datos de la respuesta

CampoTipoObligatorioDescripción
bookingCodeintegerObligatorioOur booking number.
statusrequest|confirmedObligatorioconfirmed = instant confirmation; request = we confirm it by email.
bookingTokenstringObligatorioSigned proof of the booking.
totalnumberObligatorioBooked total.
currencystringObligatorioEUR.

Códigos de los mensajes

Los códigos nunca cambian ni se eliminan (pueden añadirse nuevos); los textos pueden mejorarse en cualquier momento. Fíate del código, no del texto.

CódigoNivelHTTPTexto
INVALID_JSONerror400La solicitud no es un JSON válido.
UNKNOWN_COMMANDerror404Comando desconocido: {value}.
METHOD_NOT_ALLOWEDerror405Envía la solicitud con POST, con el comando en JSON en el cuerpo.
EMPTY_BODYerror400La solicitud no tiene cuerpo: envía el comando en JSON, por ejemplo {"command": "searchRq", ...}.
AUTH_REQUIREDerror401Firma la solicitud con las cabeceras X-Api-Key, X-Api-Timestamp y X-Api-Signature.
AUTH_INVALIDerror401Las credenciales de socio no son válidas.
SIGNATURE_INVALIDerror401La firma de la solicitud no es válida.
SIGNATURE_EXPIREDerror401La hora de la solicitud está demasiado lejos de la nuestra: firma cada solicitud con la hora actual.
FIELD_REQUIREDerror400Este campo es obligatorio: {value}.
FIELD_INVALIDerror400Este campo tiene un valor no válido: {value}.
LOCATION_UNKNOWNerror400Esta ubicación no existe: {value}.
PICKUP_IN_PASTerror400La fecha y la hora de recogida deben ser futuras.
DROPOFF_BEFORE_PICKUPerror400La devolución debe ser posterior a la recogida.
AGE_GROUP_UNKNOWNerror400Este grupo de edad no existe.
CAR_TYPE_NOT_OFFEREDerror400Este coche no se ofrece para esta búsqueda.
TOO_MANY_ATTEMPTSerror429Demasiados intentos. Vuelve a intentarlo en unos minutos.
TRY_AGAINerror503Ahora mismo se está guardando otra reserva para este coche. Vuelve a intentarlo en unos segundos.
EXTRA_NOT_OFFEREDwarning—Este equipamiento no se ofrece con este coche, así que no se ha añadido: {value}.
EXTRA_QTY_REDUCEDwarning—La cantidad se ha reducido al máximo por reserva: {value}.
CROSS_BORDER_NOT_ALLOWEDwarning—Con este coche no se puede salir hacia este destino, así que no se ha añadido: {value}.
NO_RESULTSinfo—Ningún coche coincide con tu búsqueda.
BELOW_MIN_DAYSinfo—El precio es para el alquiler mínimo de {value} días.
CONSENT_REQUIREDerror400Acepta las condiciones de alquiler y la política de privacidad para enviar la reserva.
PRICE_CHANGEDerror409El precio ha cambiado mientras tanto: el nuevo total es {value}. Revísalo y envía de nuevo la reserva.
DUPLICATE_BOOKINGerror409Ya tienes una reserva con el mismo conductor, las mismas fechas y los mismos lugares. Envíala de nuevo solo si quieres otra.
OFFER_UNAVAILABLEerror400La oferta sin fianza no está disponible para este coche. Elige la oferta con fianza.
SERVER_ERRORerror500Algo ha fallado por nuestra parte. Vuelve a intentarlo, por favor.

Conviene saber

  • Todos los importes están en la moneda de la respuesta (hoy EUR).
  • Todas las fechas y horas están en hora local de Rumanía.
  • El precio solo lo garantiza bookRq: si el total ha cambiado, recibes PRICE_CHANGED con el nuevo total.