API para socios e IA
Nuestra disponibilidad y nuestros precios, en tiempo real, para asistentes de IA y para socios que venden nuestros coches.
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.
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.
Búsqueda para IA
GET https://romaniancarhire.com/api/ai-search.php
Sin autenticación. Solo lectura: no puede reservar; el cliente reserva desde el bookingUrl de cada oferta.
Especificación OpenAPI (JSON, en inglés): https://romaniancarhire.com/api/ai-search.openapi.json
Los datos para asistentes de IA: https://romaniancarhire.com/llms.txt
Ejemplo
Parámetros
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
pickup_location | integer | Obligatorio | Location code (see llms.txt or locationsRq). |
return_location | integer | Obligatorio | Location code. |
pickup_date | string | Obligatorio | Romanian local time, YYYY-MM-DDTHH:MM. With a zone (Z, +02:00) it is converted to Romanian time. |
return_date | string | Obligatorio | Same format, after the pick-up. |
lang | ro|en|fr|it|de|es | opcional | Language of names, messages and of the booking page. Default en. |
Respuesta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
success | boolean | Obligatorio | false = see messages. |
request | object | Obligatorio | Dates as understood, timezone, lang, currency. |
items | array | Obligatorio | Cars that can be rented for the dates. |
items[].carTypeId | integer | Obligatorio | Car type code. |
items[].carTypeName | string | Obligatorio | Name (or similar). |
items[].carTypeCategoryId | integer | Obligatorio | Category code. |
items[].carTypeCategoryName | string | Obligatorio | Category. |
items[].carSpecs | object | Obligatorio | passengers, doors, luggage, transmission, fuel, ac, awd, minRent, pictures. |
items[].available | boolean | Obligatorio | Always true (unavailable cars are not returned). |
items[].instantConfirmation | boolean | Obligatorio | Confirmed immediately when booked. |
items[].availableStatus | object | Obligatorio | {status: available|onRequest, requestNote: 1 instant confirmation | 2 on request}. |
items[].chargedDays | integer | Obligatorio | Days charged. |
items[].offers | object | Obligatorio | The two offers: read item.offers.standard.total, never item.offers.total. |
items[].offers.standard | object | Obligatorio | With damage deposit. |
items[].offers.standard.total | integer | Obligatorio | Final price, all included. |
items[].offers.standard.perDay | number | Obligatorio | Average per day. |
items[].offers.standard.currency | string | Obligatorio | EUR. |
items[].offers.standard.appliedDiscount | number | Obligatorio | Discount amount already applied. |
items[].offers.standard.appliedDiscountPercent | number | Obligatorio | Discount percent. |
items[].offers.standard.totalBeforeDiscount | integer | Obligatorio | Total before discount. |
items[].offers.standard.deposit | number | Obligatorio | Deposit at pick-up. 0 = no deposit at all. |
items[].offers.standard.allowedKmPerDay | integer | Obligatorio | Included km per day. |
items[].offers.standard.totalAllowedKm | integer | Obligatorio | Total km included. |
items[].offers.standard.extraKmPrice | number | Obligatorio | Price per extra km. |
items[].offers.standard.cancellationPolicy | object | Obligatorio | {freeCancellationUntil (null = until pick-up), stages, noShowFee}. |
items[].offers.standard.advance | object | opcional | {amount} asked after confirmation, or null. |
items[].offers.standard.bookingUrl | string | Obligatorio | Where the customer books this car and offer. |
items[].offers.extraProtection | object | opcional | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
itemsNo | integer | Obligatorio | Number of items. |
daysNo | integer | Obligatorio | Rental days. |
facets | object | Obligatorio | Counts per category, transmission, fuel, seats, luggage, availability. |
messages | array | Obligatorio | [{code, level, field?, text}]. |
Reglas para presentar los resultados
- total es el precio final de todo el alquiler: seguro, impuestos y costes de las oficinas están incluidos. No lo calcules a partir de perDay.
- deposit 0 significa ninguna fianza en la recogida.
- requestNote 1 significa que la reserva se confirma al instante; 2 significa que la confirmamos nosotros, normalmente enseguida.
- Los precios y la disponibilidad cambian constantemente: busca de nuevo en cada pregunta y no reutilices resultados antiguos.
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
- X-Api-Key: tu nombre de usuario.
- X-Api-Timestamp: la hora actual en segundos Unix (como mucho 5 minutos de diferencia con la nuestra).
- 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
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
command | string | Obligatorio | The command name. |
language | ro|en|fr|it|de|es | opcional | Language of names. Default en. |
Datos de la respuesta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
siteVersion | integer | Obligatorio | Version of our data: reload the list only when it changes. |
locations | array | Obligatorio | Active locations. |
locations[].code | integer | Obligatorio | Location code (pickup.locationId / dropoff.locationId). |
locations[].name | string | Obligatorio | Name with type, e.g. "Iași Airport". |
locations[].city | string | Obligatorio | City. |
locations[].type | object | Obligatorio | city|airport|trainStation|office, with name. |
locations[].iata | string | opcional | Airport code, or null. |
locations[].kind | object | Obligatorio | office|fleet|pool|request, with name: own office, local fleet, car brought from the nearest fleet, on request. |
locations[].lat | number | opcional | Latitude. |
locations[].lng | number | opcional | Longitude. |
categoriesRq Car classes.
Petición
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
command | string | Obligatorio | The command name. |
language | ro|en|fr|it|de|es | opcional | Language of names. Default en. |
Datos de la respuesta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
siteVersion | integer | Obligatorio | Version of our data: reload the list only when it changes. |
categories | array | Obligatorio | Active classes, in our order. |
categories[].code | integer | Obligatorio | Category code. |
categories[].name | string | Obligatorio | Name. |
categories[].description | string | opcional | Description, or null. |
carTypesRq Car types you can sell.
Petición
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
command | string | Obligatorio | The command name. |
language | ro|en|fr|it|de|es | opcional | Language of names. Default en. |
Datos de la respuesta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
siteVersion | integer | Obligatorio | Version of our data: reload the list only when it changes. |
carTypes | array | Obligatorio | Active car types you have access to. |
carTypes[].code | integer | Obligatorio | Car type code. |
carTypes[].name | string | Obligatorio | Car type name (the car or a similar one of the same class or higher). |
carTypes[].category | object | Obligatorio | Car class. |
carTypes[].category.code | integer | Obligatorio | Category code (categoriesRq). |
carTypes[].category.name | string | Obligatorio | Name. |
carTypes[].acriss | string | opcional | ACRISS code, or null. |
carTypes[].specs | object | Obligatorio | Features. |
carTypes[].specs.seats | integer | opcional | Seats. |
carTypes[].specs.doors | integer | opcional | Doors. |
carTypes[].specs.luggage | integer | opcional | Suitcases. |
carTypes[].specs.transmission | object | opcional | Code (manual|automatic) and name in the request language, or null. |
carTypes[].specs.transmission.code | string | Obligatorio | manual|automatic |
carTypes[].specs.transmission.name | string | Obligatorio | Name. |
carTypes[].specs.fuel | object | opcional | Fuel {code, name}, or null. |
carTypes[].specs.consumption | number | opcional | Litres / 100 km, or null. |
carTypes[].specs.airConditioning | object | opcional | Code (automatic|manual) and name in the request language, or null. |
carTypes[].specs.airConditioning.code | string | Obligatorio | automatic|manual |
carTypes[].specs.airConditioning.name | string | Obligatorio | Name. |
carTypes[].specs.drive | object | opcional | Code (front|rear|4x4) and name in the request language, or null. |
carTypes[].specs.drive.code | string | Obligatorio | front|rear|4x4 |
carTypes[].specs.drive.name | string | Obligatorio | Name. |
carTypes[].specs.isofix | boolean | Obligatorio | Isofix. |
carTypes[].specs.wagon | boolean | Obligatorio | Estate body. |
carTypes[].specs.smartphone | boolean | Obligatorio | Smartphone integration. |
carTypes[].pictures | array<string> | Obligatorio | Photo URLs. |
carTypes[].minimumDays | integer | Obligatorio | Minimum rental days of the type. |
ageGroupsRq Driver age groups.
Petición
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
command | string | Obligatorio | The command name. |
language | ro|en|fr|it|de|es | opcional | Language of names. Default en. |
Datos de la respuesta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
siteVersion | integer | Obligatorio | Version of our data: reload the list only when it changes. |
ageGroups | array | Obligatorio | Active age groups. |
ageGroups[].code | integer | Obligatorio | Age group code (ageGroup). |
ageGroups[].fromAge | integer | Obligatorio | From age. |
ageGroups[].toAge | integer | opcional | To age, or null (and over). |
ageGroups[].name | string | Obligatorio | Name, e.g. "23–69 years". |
ageGroups[].default | boolean | Obligatorio | The usual group (no surcharge). |
searchRq Available cars and prices for a period.
Petición
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
command | string | Obligatorio | The command name. |
language | ro|en|fr|it|de|es | opcional | Language of names and messages. Default en. |
pickup | object | Obligatorio | The pickup place and moment. |
pickup.locationId | integer | Obligatorio | Location code (locationsRq). |
pickup.dateTime | datetime | Obligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obligatorio | The dropoff place and moment. |
dropoff.locationId | integer | Obligatorio | Location code (locationsRq). |
dropoff.dateTime | datetime | Obligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obligatorio | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | opcional | Optional: a car type to return first (if it is offered for the search). |
availability | available|onRequest|both | opcional | Which cars to return. Default both. |
filters | object | opcional | Filters. |
filters.categories | array<integer> | opcional | Category codes. |
filters.seats | array<integer> | opcional | Seat counts. |
filters.luggage | integer | opcional | Minimum suitcases. |
filters.fuel | array<integer> | opcional | Fuel codes. |
filters.transmission | array<string> | opcional | manual / automatic. |
Datos de la respuesta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
currency | string | Obligatorio | Currency of all amounts (ISO 4217, EUR). |
request | object | Obligatorio | The request as understood. |
days | integer | Obligatorio | Rental days. |
types | array | Obligatorio | Cars that can be rented for the search (the others are not returned). |
types[].code | integer | Obligatorio | Car type code. |
types[].name | string | Obligatorio | Car type name (the car or a similar one of the same class or higher). |
types[].category | object | Obligatorio | Car class. |
types[].category.code | integer | Obligatorio | Category code (categoriesRq). |
types[].category.name | string | Obligatorio | Name. |
types[].acriss | string | opcional | ACRISS code, or null. |
types[].specs | object | Obligatorio | Features. |
types[].specs.seats | integer | opcional | Seats. |
types[].specs.doors | integer | opcional | Doors. |
types[].specs.luggage | integer | opcional | Suitcases. |
types[].specs.transmission | object | opcional | Code (manual|automatic) and name in the request language, or null. |
types[].specs.transmission.code | string | Obligatorio | manual|automatic |
types[].specs.transmission.name | string | Obligatorio | Name. |
types[].specs.fuel | object | opcional | Fuel {code, name}, or null. |
types[].specs.consumption | number | opcional | Litres / 100 km, or null. |
types[].specs.airConditioning | object | opcional | Code (automatic|manual) and name in the request language, or null. |
types[].specs.airConditioning.code | string | Obligatorio | automatic|manual |
types[].specs.airConditioning.name | string | Obligatorio | Name. |
types[].specs.drive | object | opcional | Code (front|rear|4x4) and name in the request language, or null. |
types[].specs.drive.code | string | Obligatorio | front|rear|4x4 |
types[].specs.drive.name | string | Obligatorio | Name. |
types[].specs.isofix | boolean | Obligatorio | Isofix. |
types[].specs.wagon | boolean | Obligatorio | Estate body. |
types[].specs.smartphone | boolean | Obligatorio | Smartphone integration. |
types[].pictures | array<string> | Obligatorio | Photo URLs. |
types[].requested | boolean | Obligatorio | This is the carTypeCode from the request. |
types[].status | available|onRequest | Obligatorio | available = can be booked now; onRequest = we confirm it. |
types[].instantConfirmation | boolean | Obligatorio | The booking is confirmed immediately (24 h+ before pick-up, car in the fleet). |
types[].days | integer | Obligatorio | Rental days. |
types[].chargedDays | integer | Obligatorio | Days charged (the minimum, when the period is shorter). |
types[].minimumDays | integer | Obligatorio | Minimum days here. |
types[].offers | object | Obligatorio | The two offers. |
types[].offers.standard | object | Obligatorio | With damage deposit. |
types[].offers.standard.total | integer | Obligatorio | Final price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay. |
types[].offers.standard.perDay | number | Obligatorio | Average price per day (information only). In currency (EUR). |
types[].offers.standard.discount | object | opcional | The discount already applied, or null. |
types[].offers.standard.discount.amount | number | Obligatorio | Amount saved. In currency (EUR). |
types[].offers.standard.discount.percent | number | Obligatorio | Percent saved. |
types[].offers.standard.discount.totalBefore | integer | Obligatorio | Total before the discount. |
types[].offers.standard.deposit | object | Obligatorio | Security deposit at pick-up, by part (all keys always present, 0 when not required). |
types[].offers.standard.deposit.car | number | Obligatorio | Damage deposit (0 with extraProtection). In currency (EUR). |
types[].offers.standard.deposit.fuel | number | Obligatorio | Fuel deposit. In currency (EUR). |
types[].offers.standard.deposit.extras | number | Obligatorio | Equipment deposit. In currency (EUR). |
types[].offers.standard.deposit.crossBorder | number | Obligatorio | Cross-border deposit. In currency (EUR). |
types[].offers.standard.deposit.age | number | Obligatorio | Extra deposit for the driver age group. In currency (EUR). |
types[].offers.standard.deposit.total | number | Obligatorio | Total deposit. 0 = no deposit at all. In currency (EUR). |
types[].offers.standard.km | object | Obligatorio | Kilometres. |
types[].offers.standard.km.perDay | integer | Obligatorio | Included km per day. |
types[].offers.standard.km.included | integer | Obligatorio | Total km included for the rental. |
types[].offers.standard.km.extraKmPrice | number | Obligatorio | Price per extra km, charged at the end over the total included. In currency (EUR). |
types[].offers.standard.cancellation | object | Obligatorio | Cancellation policy of this offer. |
types[].offers.standard.cancellation.freeUntil | datetime | opcional | Free cancellation until this moment (Romanian time); null = free until pick-up. |
types[].offers.standard.cancellation.stages | array | Obligatorio | Cancellation fees after the free period. |
types[].offers.standard.cancellation.stages[].from | datetime | Obligatorio | From this moment. |
types[].offers.standard.cancellation.stages[].amount | number | Obligatorio | Cancellation fee. In currency (EUR). |
types[].offers.standard.cancellation.noShow | number | opcional | No-show fee in EUR, or null. |
types[].offers.standard.advance | object | opcional | Always null for partners (an advance can be asked only for website bookings). |
types[].offers.standard.advance.amount | number | Obligatorio | Advance amount. In currency (EUR). |
types[].offers.extraProtection | object | opcional | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
types[].note | string | opcional | A note on the price (e.g. minimum days). |
facets | object | Obligatorio | Counts per availability, category, transmission, fuel, seats, luggage: [{code, name, count}]. |
extrasRq Equipment offered with a car.
Petición
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
command | string | Obligatorio | The command name. |
language | ro|en|fr|it|de|es | opcional | Language of names and messages. Default en. |
pickup | object | Obligatorio | The pickup place and moment. |
pickup.locationId | integer | Obligatorio | Location code (locationsRq). |
pickup.dateTime | datetime | Obligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obligatorio | The dropoff place and moment. |
dropoff.locationId | integer | Obligatorio | Location code (locationsRq). |
dropoff.dateTime | datetime | Obligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obligatorio | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obligatorio | The chosen car type (carTypesRq / searchRq). |
Datos de la respuesta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
currency | string | Obligatorio | EUR. |
carTypeCode | integer | Obligatorio | The car type. |
chargedDays | integer | Obligatorio | Days charged. |
extras | array | Obligatorio | Equipment. |
extras[].code | integer | Obligatorio | Equipment code. |
extras[].name | string | Obligatorio | Name. |
extras[].description | string | opcional | Description. |
extras[].photo | string | opcional | Photo URL. |
extras[].pricePerDay | number | Obligatorio | Price per day. In currency (EUR). |
extras[].maxQuantity | integer | Obligatorio | Maximum per booking. |
extras[].deposit | number | Obligatorio | Deposit per piece. In currency (EUR). |
extras[].total | number | Obligatorio | Price of one piece for the whole rental. In currency (EUR). |
crossBordersRq Countries the car may be driven to.
Petición
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
command | string | Obligatorio | The command name. |
language | ro|en|fr|it|de|es | opcional | Language of names and messages. Default en. |
pickup | object | Obligatorio | The pickup place and moment. |
pickup.locationId | integer | Obligatorio | Location code (locationsRq). |
pickup.dateTime | datetime | Obligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obligatorio | The dropoff place and moment. |
dropoff.locationId | integer | Obligatorio | Location code (locationsRq). |
dropoff.dateTime | datetime | Obligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obligatorio | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obligatorio | The chosen car type (carTypesRq / searchRq). |
Datos de la respuesta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
currency | string | Obligatorio | EUR. |
carTypeCode | integer | Obligatorio | The car type. |
chargedDays | integer | Obligatorio | Days charged. |
crossBorders | array | Obligatorio | Allowed destinations. Without one, leaving Romania is forbidden. |
crossBorders[].code | integer | Obligatorio | Destination code. |
crossBorders[].name | string | Obligatorio | Name. |
crossBorders[].description | string | opcional | Documents and rules. |
crossBorders[].pricePerDay | number | Obligatorio | Price per day. In currency (EUR). |
crossBorders[].minTotal | number | Obligatorio | Minimum per rental (0 = none). In currency (EUR). |
crossBorders[].maxTotal | number | Obligatorio | Maximum per rental (0 = none). In currency (EUR). |
crossBorders[].deposit | number | Obligatorio | Extra deposit. In currency (EUR). |
crossBorders[].total | number | Obligatorio | Price for the whole rental. In currency (EUR). |
searchDetailsRq Exact price of a selection (car, equipment, cross-border), before booking.
Petición
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
command | string | Obligatorio | The command name. |
language | ro|en|fr|it|de|es | opcional | Language of names and messages. Default en. |
pickup | object | Obligatorio | The pickup place and moment. |
pickup.locationId | integer | Obligatorio | Location code (locationsRq). |
pickup.dateTime | datetime | Obligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obligatorio | The dropoff place and moment. |
dropoff.locationId | integer | Obligatorio | Location code (locationsRq). |
dropoff.dateTime | datetime | Obligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obligatorio | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obligatorio | The chosen car type (carTypesRq / searchRq). |
extras | array | opcional | Chosen equipment. |
extras[].code | integer | Obligatorio | Equipment code (extrasRq). |
extras[].qty | integer | opcional | Quantity, default 1; capped at maxQuantity. |
crossBorders | array<integer> | opcional | Chosen cross-border destination codes (crossBordersRq). |
Datos de la respuesta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
currency | string | Obligatorio | EUR. |
request | object | Obligatorio | The request as understood. |
type | object | Obligatorio | The car type with status, days, chargedDays, minimumDays, note. |
type.code | integer | Obligatorio | Car type code. |
type.name | string | Obligatorio | Car type name (the car or a similar one of the same class or higher). |
type.category | object | Obligatorio | Car class. |
type.category.code | integer | Obligatorio | Category code (categoriesRq). |
type.category.name | string | Obligatorio | Name. |
type.acriss | string | opcional | ACRISS code, or null. |
type.specs | object | Obligatorio | Features. |
type.specs.seats | integer | opcional | Seats. |
type.specs.doors | integer | opcional | Doors. |
type.specs.luggage | integer | opcional | Suitcases. |
type.specs.transmission | object | opcional | Code (manual|automatic) and name in the request language, or null. |
type.specs.transmission.code | string | Obligatorio | manual|automatic |
type.specs.transmission.name | string | Obligatorio | Name. |
type.specs.fuel | object | opcional | Fuel {code, name}, or null. |
type.specs.consumption | number | opcional | Litres / 100 km, or null. |
type.specs.airConditioning | object | opcional | Code (automatic|manual) and name in the request language, or null. |
type.specs.airConditioning.code | string | Obligatorio | automatic|manual |
type.specs.airConditioning.name | string | Obligatorio | Name. |
type.specs.drive | object | opcional | Code (front|rear|4x4) and name in the request language, or null. |
type.specs.drive.code | string | Obligatorio | front|rear|4x4 |
type.specs.drive.name | string | Obligatorio | Name. |
type.specs.isofix | boolean | Obligatorio | Isofix. |
type.specs.wagon | boolean | Obligatorio | Estate body. |
type.specs.smartphone | boolean | Obligatorio | Smartphone integration. |
type.pictures | array<string> | Obligatorio | Photo URLs. |
extras | array | Obligatorio | Equipment added. |
extras[].code | integer | Obligatorio | Code. |
extras[].name | string | Obligatorio | Name. |
extras[].quantity | integer | Obligatorio | Quantity. |
extras[].total | number | Obligatorio | Total. In currency (EUR). |
crossBorders | array | Obligatorio | Destinations added. |
crossBorders[].code | integer | Obligatorio | Code. |
crossBorders[].name | string | Obligatorio | Name. |
crossBorders[].total | number | Obligatorio | Total. In currency (EUR). |
offers | object | Obligatorio | The two offers for the selection; send the chosen total as expectedTotal in bookRq. |
offers.standard | object | Obligatorio | With damage deposit. |
offers.standard.total | integer | Obligatorio | Final price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay. |
offers.standard.perDay | number | Obligatorio | Average price per day (information only). In currency (EUR). |
offers.standard.rentalTotal | number | Obligatorio | The rental without equipment and cross-border (summary line). In currency (EUR). |
offers.standard.discount | object | opcional | The discount already applied, or null. |
offers.standard.discount.amount | number | Obligatorio | Amount saved. In currency (EUR). |
offers.standard.discount.percent | number | Obligatorio | Percent saved. |
offers.standard.discount.totalBefore | integer | Obligatorio | Total before the discount. |
offers.standard.deposit | object | Obligatorio | Security deposit at pick-up, by part (all keys always present, 0 when not required). |
offers.standard.deposit.car | number | Obligatorio | Damage deposit (0 with extraProtection). In currency (EUR). |
offers.standard.deposit.fuel | number | Obligatorio | Fuel deposit. In currency (EUR). |
offers.standard.deposit.extras | number | Obligatorio | Equipment deposit. In currency (EUR). |
offers.standard.deposit.crossBorder | number | Obligatorio | Cross-border deposit. In currency (EUR). |
offers.standard.deposit.age | number | Obligatorio | Extra deposit for the driver age group. In currency (EUR). |
offers.standard.deposit.total | number | Obligatorio | Total deposit. 0 = no deposit at all. In currency (EUR). |
offers.standard.km | object | Obligatorio | Kilometres. |
offers.standard.km.perDay | integer | Obligatorio | Included km per day. |
offers.standard.km.included | integer | Obligatorio | Total km included for the rental. |
offers.standard.km.extraKmPrice | number | Obligatorio | Price per extra km, charged at the end over the total included. In currency (EUR). |
offers.standard.cancellation | object | Obligatorio | Cancellation policy of this offer. |
offers.standard.cancellation.freeUntil | datetime | opcional | Free cancellation until this moment (Romanian time); null = free until pick-up. |
offers.standard.cancellation.stages | array | Obligatorio | Cancellation fees after the free period. |
offers.standard.cancellation.stages[].from | datetime | Obligatorio | From this moment. |
offers.standard.cancellation.stages[].amount | number | Obligatorio | Cancellation fee. In currency (EUR). |
offers.standard.cancellation.noShow | number | opcional | No-show fee in EUR, or null. |
offers.standard.advance | object | opcional | Always null for partners (an advance can be asked only for website bookings). |
offers.standard.advance.amount | number | Obligatorio | Advance amount. In currency (EUR). |
offers.extraProtection | object | opcional | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
bookRq Book the selection.
Petición
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
command | string | Obligatorio | The command name. |
language | ro|en|fr|it|de|es | opcional | Language of names and messages. Default en. |
pickup | object | Obligatorio | The pickup place and moment. |
pickup.locationId | integer | Obligatorio | Location code (locationsRq). |
pickup.dateTime | datetime | Obligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Obligatorio | The dropoff place and moment. |
dropoff.locationId | integer | Obligatorio | Location code (locationsRq). |
dropoff.dateTime | datetime | Obligatorio | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Obligatorio | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Obligatorio | The chosen car type (carTypesRq / searchRq). |
extras | array | opcional | Chosen equipment. |
extras[].code | integer | Obligatorio | Equipment code (extrasRq). |
extras[].qty | integer | opcional | Quantity, default 1; capped at maxQuantity. |
crossBorders | array<integer> | opcional | Chosen cross-border destination codes (crossBordersRq). |
offer | standard|extraProtection | Obligatorio | The chosen offer. |
expectedTotal | number | Obligatorio | The total the customer saw (searchDetailsRq). A different current total gives PRICE_CHANGED with the new total. |
driver | object | Obligatorio | Main driver (signs the contract). |
driver.fullName | string | Obligatorio | Full name. |
driver.phone | string | Obligatorio | Phone with country code (WhatsApp if possible). |
driver.email | string | Obligatorio | Email (confirmation and booking link). |
driver.personalId | string | opcional | Personal ID number. |
driver.birthDate | string | opcional | YYYY-MM-DD. |
driver.citizenship | string | opcional | Citizenship: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.addrCountry | string | opcional | Address country: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.addrStateRomania | string | opcional | County code, 2 letters, e.g. IS, B (only when addrCountry is RO). |
driver.addrState | string | opcional | Region (other countries). |
driver.addrCity | string | opcional | City. |
driver.addrStreet | string | opcional | Street. |
driver.idType | integer | opcional | ID document type: 1 = identity card, 2 = passport, 3 = residence permit. Default 1; another value gives FIELD_INVALID. |
driver.idCountry | string | opcional | Country that issued the ID document: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.idNumber | string | opcional | ID document number. |
driver.idExpiresAt | string | opcional | YYYY-MM-DD. |
driver.licCountry | string | opcional | Country that issued the driving licence: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.licNumber | string | opcional | Licence number. |
driver.licIssuedAt | string | opcional | YYYY-MM-DD. |
driver.licExpiresAt | string | opcional | YYYY-MM-DD. |
additionalDriver | object | opcional | Second driver, same fields (email not required). Free of charge. |
billing | object | opcional | Invoice to: {type: person} (the main driver, default) or {type: company, name, taxId, vatPayer, tradeRegisterNo, country, stateRomania, state, city, street}; country: ISO 3166-1 alpha-2 code, 2 letters (e.g. RO), stateRomania: county code (e.g. IS, B). |
flight | object | opcional | Arrival flight, so we can follow delays. |
flight.number | string | opcional | Flight number. |
flight.from | string | opcional | Departure airport. |
message | string | opcional | Message for us. |
consent | boolean | Obligatorio | true: the customer accepted the rental conditions and the privacy policy. |
confirmDuplicate | boolean | opcional | true: book again after DUPLICATE_BOOKING. |
partnerVoucher | string | opcional | Your own booking reference (up to 60 characters). |
Datos de la respuesta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
bookingCode | integer | Obligatorio | Our booking number. |
status | request|confirmed | Obligatorio | confirmed = instant confirmation; request = we confirm it by email. |
bookingToken | string | Obligatorio | Signed proof of the booking. |
total | number | Obligatorio | Booked total. |
currency | string | Obligatorio | EUR. |
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ódigo | Nivel | HTTP | Texto |
|---|---|---|---|
INVALID_JSON | error | 400 | La solicitud no es un JSON válido. |
UNKNOWN_COMMAND | error | 404 | Comando desconocido: {value}. |
METHOD_NOT_ALLOWED | error | 405 | Envía la solicitud con POST, con el comando en JSON en el cuerpo. |
EMPTY_BODY | error | 400 | La solicitud no tiene cuerpo: envía el comando en JSON, por ejemplo {"command": "searchRq", ...}. |
AUTH_REQUIRED | error | 401 | Firma la solicitud con las cabeceras X-Api-Key, X-Api-Timestamp y X-Api-Signature. |
AUTH_INVALID | error | 401 | Las credenciales de socio no son válidas. |
SIGNATURE_INVALID | error | 401 | La firma de la solicitud no es válida. |
SIGNATURE_EXPIRED | error | 401 | La hora de la solicitud está demasiado lejos de la nuestra: firma cada solicitud con la hora actual. |
FIELD_REQUIRED | error | 400 | Este campo es obligatorio: {value}. |
FIELD_INVALID | error | 400 | Este campo tiene un valor no válido: {value}. |
LOCATION_UNKNOWN | error | 400 | Esta ubicación no existe: {value}. |
PICKUP_IN_PAST | error | 400 | La fecha y la hora de recogida deben ser futuras. |
DROPOFF_BEFORE_PICKUP | error | 400 | La devolución debe ser posterior a la recogida. |
AGE_GROUP_UNKNOWN | error | 400 | Este grupo de edad no existe. |
CAR_TYPE_NOT_OFFERED | error | 400 | Este coche no se ofrece para esta búsqueda. |
TOO_MANY_ATTEMPTS | error | 429 | Demasiados intentos. Vuelve a intentarlo en unos minutos. |
TRY_AGAIN | error | 503 | Ahora mismo se está guardando otra reserva para este coche. Vuelve a intentarlo en unos segundos. |
EXTRA_NOT_OFFERED | warning | — | Este equipamiento no se ofrece con este coche, así que no se ha añadido: {value}. |
EXTRA_QTY_REDUCED | warning | — | La cantidad se ha reducido al máximo por reserva: {value}. |
CROSS_BORDER_NOT_ALLOWED | warning | — | Con este coche no se puede salir hacia este destino, así que no se ha añadido: {value}. |
NO_RESULTS | info | — | Ningún coche coincide con tu búsqueda. |
BELOW_MIN_DAYS | info | — | El precio es para el alquiler mínimo de {value} días. |
CONSENT_REQUIRED | error | 400 | Acepta las condiciones de alquiler y la política de privacidad para enviar la reserva. |
PRICE_CHANGED | error | 409 | El precio ha cambiado mientras tanto: el nuevo total es {value}. Revísalo y envía de nuevo la reserva. |
DUPLICATE_BOOKING | error | 409 | Ya tienes una reserva con el mismo conductor, las mismas fechas y los mismos lugares. Envíala de nuevo solo si quieres otra. |
OFFER_UNAVAILABLE | error | 400 | La oferta sin fianza no está disponible para este coche. Elige la oferta con fianza. |
SERVER_ERROR | error | 500 | Algo 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.