API für Partner und KI
Unsere Verfügbarkeit und Preise in Echtzeit, für KI-Assistenten und für Partner, die unsere Autos verkaufen.
Zwei Wege, unsere Daten zu nutzen
Suche für KI
Für KI-Assistenten und einfache Integrationen: eine öffentliche GET-Anfrage, ohne Schlüssel. Verfügbarkeit in Echtzeit, Endpreise, Kautionen und ein Buchungslink für jedes Auto.
Partner-API
Für Reisebüros, Wiederverkäufer und Websites, die unsere Autos verkaufen: Suche, Optionen und Buchung, mit denselben Preisen und Regeln wie auf unserer Website. Jede Anfrage wird signiert.
Suche für KI
GET https://romaniancarhire.com/api/ai-search.php
Ohne Authentifizierung. Nur lesend: Sie kann nicht buchen; der Kunde bucht über die bookingUrl jedes Angebots.
OpenAPI-Spezifikation (JSON, Englisch): https://romaniancarhire.com/api/ai-search.openapi.json
Die Fakten für KI-Assistenten: https://romaniancarhire.com/llms.txt
Beispiel
Parameter
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
pickup_location | integer | Pflicht | Location code (see llms.txt or locationsRq). |
return_location | integer | Pflicht | Location code. |
pickup_date | string | Pflicht | Romanian local time, YYYY-MM-DDTHH:MM. With a zone (Z, +02:00) it is converted to Romanian time. |
return_date | string | Pflicht | Same format, after the pick-up. |
lang | ro|en|fr|it|de|es | optional | Language of names, messages and of the booking page. Default en. |
Antwort
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
success | boolean | Pflicht | false = see messages. |
request | object | Pflicht | Dates as understood, timezone, lang, currency. |
items | array | Pflicht | Cars that can be rented for the dates. |
items[].carTypeId | integer | Pflicht | Car type code. |
items[].carTypeName | string | Pflicht | Name (or similar). |
items[].carTypeCategoryId | integer | Pflicht | Category code. |
items[].carTypeCategoryName | string | Pflicht | Category. |
items[].carSpecs | object | Pflicht | passengers, doors, luggage, transmission, fuel, ac, awd, minRent, pictures. |
items[].available | boolean | Pflicht | Always true (unavailable cars are not returned). |
items[].instantConfirmation | boolean | Pflicht | Confirmed immediately when booked. |
items[].availableStatus | object | Pflicht | {status: available|onRequest, requestNote: 1 instant confirmation | 2 on request}. |
items[].chargedDays | integer | Pflicht | Days charged. |
items[].offers | object | Pflicht | The two offers: read item.offers.standard.total, never item.offers.total. |
items[].offers.standard | object | Pflicht | With damage deposit. |
items[].offers.standard.total | integer | Pflicht | Final price, all included. |
items[].offers.standard.perDay | number | Pflicht | Average per day. |
items[].offers.standard.currency | string | Pflicht | EUR. |
items[].offers.standard.appliedDiscount | number | Pflicht | Discount amount already applied. |
items[].offers.standard.appliedDiscountPercent | number | Pflicht | Discount percent. |
items[].offers.standard.totalBeforeDiscount | integer | Pflicht | Total before discount. |
items[].offers.standard.deposit | number | Pflicht | Deposit at pick-up. 0 = no deposit at all. |
items[].offers.standard.allowedKmPerDay | integer | Pflicht | Included km per day. |
items[].offers.standard.totalAllowedKm | integer | Pflicht | Total km included. |
items[].offers.standard.extraKmPrice | number | Pflicht | Price per extra km. |
items[].offers.standard.cancellationPolicy | object | Pflicht | {freeCancellationUntil (null = until pick-up), stages, noShowFee}. |
items[].offers.standard.advance | object | optional | {amount} asked after confirmation, or null. |
items[].offers.standard.bookingUrl | string | Pflicht | Where the customer books this car and offer. |
items[].offers.extraProtection | object | optional | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
itemsNo | integer | Pflicht | Number of items. |
daysNo | integer | Pflicht | Rental days. |
facets | object | Pflicht | Counts per category, transmission, fuel, seats, luggage, availability. |
messages | array | Pflicht | [{code, level, field?, text}]. |
Regeln für die Darstellung der Ergebnisse
- total ist der Endpreis für die gesamte Miete: Versicherung, Steuern und Standortgebühren sind enthalten. Nicht aus perDay berechnen.
- deposit 0 bedeutet keinerlei Kaution bei der Abholung.
- requestNote 1 bedeutet, dass die Buchung sofort bestätigt wird; 2 bedeutet, dass wir sie bestätigen, meist schnell.
- Preise und Verfügbarkeit ändern sich ständig: Suche bei jeder Frage neu und verwende keine alten Ergebnisse.
Partner-API
POST https://romaniancarhire.com/api/v1/
OpenAPI-Spezifikation (JSON, Englisch): https://romaniancarhire.com/api/v1/openapi.json
Für einen Zugang (Benutzername und Secret) schreib uns an office@romaniancarhire.com.
Anfrage und Antwort
Der Body ist JSON mit dem Befehl und der Sprache; jede Antwort hat dieselbe Hülle. Ein Fehler beendet die Anfrage (success false, data null); Warnungen und Hinweise kommen zusammen mit den Daten.
{"command": "searchRq", "language": "en", ...}
{"success": true, "version": "v1", "command": "searchRq", "language": "en",
"data": {...}, "messages": [{"code": "NO_RESULTS", "level": "info", "text": "..."}]} Signieren der Anfrage
- X-Api-Key: dein Benutzername.
- X-Api-Timestamp: die aktuelle Zeit in Unix-Sekunden (höchstens 5 Minuten Abweichung von unserer).
- X-Api-Signature: HMAC-SHA256 mit deinem Secret, hexadezimal, über: Timestamp, Methode, Pfad und den SHA-256 des exakt gesendeten Bodys, getrennt durch Zeilenumbrüche.
signature = hex(HMAC-SHA256(secret, timestamp + "\n" + "POST" + "\n" + "/api/v1/" + "\n" + hex(SHA256(body)))) Prüfe deinen Code mit diesem Beispiel:
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();Die übliche Reihenfolge
Lade die Listen einmal und behalte sie, bis sich siteVersion ändert. Dann: searchRq für einen Zeitraum, extrasRq und crossBordersRq für das gewählte Auto, searchDetailsRq für den genauen Gesamtbetrag und bookRq mit diesem Betrag als expectedTotal.
Befehle
locationsRq Pick-up and return locations.
Anfrage
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
command | string | Pflicht | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names. Default en. |
Antwortdaten
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
siteVersion | integer | Pflicht | Version of our data: reload the list only when it changes. |
locations | array | Pflicht | Active locations. |
locations[].code | integer | Pflicht | Location code (pickup.locationId / dropoff.locationId). |
locations[].name | string | Pflicht | Name with type, e.g. "Iași Airport". |
locations[].city | string | Pflicht | City. |
locations[].type | object | Pflicht | city|airport|trainStation|office, with name. |
locations[].iata | string | optional | Airport code, or null. |
locations[].kind | object | Pflicht | office|fleet|pool|request, with name: own office, local fleet, car brought from the nearest fleet, on request. |
locations[].lat | number | optional | Latitude. |
locations[].lng | number | optional | Longitude. |
categoriesRq Car classes.
Anfrage
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
command | string | Pflicht | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names. Default en. |
Antwortdaten
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
siteVersion | integer | Pflicht | Version of our data: reload the list only when it changes. |
categories | array | Pflicht | Active classes, in our order. |
categories[].code | integer | Pflicht | Category code. |
categories[].name | string | Pflicht | Name. |
categories[].description | string | optional | Description, or null. |
carTypesRq Car types you can sell.
Anfrage
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
command | string | Pflicht | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names. Default en. |
Antwortdaten
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
siteVersion | integer | Pflicht | Version of our data: reload the list only when it changes. |
carTypes | array | Pflicht | Active car types you have access to. |
carTypes[].code | integer | Pflicht | Car type code. |
carTypes[].name | string | Pflicht | Car type name (the car or a similar one of the same class or higher). |
carTypes[].category | object | Pflicht | Car class. |
carTypes[].category.code | integer | Pflicht | Category code (categoriesRq). |
carTypes[].category.name | string | Pflicht | Name. |
carTypes[].acriss | string | optional | ACRISS code, or null. |
carTypes[].specs | object | Pflicht | Features. |
carTypes[].specs.seats | integer | optional | Seats. |
carTypes[].specs.doors | integer | optional | Doors. |
carTypes[].specs.luggage | integer | optional | Suitcases. |
carTypes[].specs.transmission | object | optional | Code (manual|automatic) and name in the request language, or null. |
carTypes[].specs.transmission.code | string | Pflicht | manual|automatic |
carTypes[].specs.transmission.name | string | Pflicht | Name. |
carTypes[].specs.fuel | object | optional | Fuel {code, name}, or null. |
carTypes[].specs.consumption | number | optional | Litres / 100 km, or null. |
carTypes[].specs.airConditioning | object | optional | Code (automatic|manual) and name in the request language, or null. |
carTypes[].specs.airConditioning.code | string | Pflicht | automatic|manual |
carTypes[].specs.airConditioning.name | string | Pflicht | Name. |
carTypes[].specs.drive | object | optional | Code (front|rear|4x4) and name in the request language, or null. |
carTypes[].specs.drive.code | string | Pflicht | front|rear|4x4 |
carTypes[].specs.drive.name | string | Pflicht | Name. |
carTypes[].specs.isofix | boolean | Pflicht | Isofix. |
carTypes[].specs.wagon | boolean | Pflicht | Estate body. |
carTypes[].specs.smartphone | boolean | Pflicht | Smartphone integration. |
carTypes[].pictures | array<string> | Pflicht | Photo URLs. |
carTypes[].minimumDays | integer | Pflicht | Minimum rental days of the type. |
ageGroupsRq Driver age groups.
Anfrage
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
command | string | Pflicht | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names. Default en. |
Antwortdaten
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
siteVersion | integer | Pflicht | Version of our data: reload the list only when it changes. |
ageGroups | array | Pflicht | Active age groups. |
ageGroups[].code | integer | Pflicht | Age group code (ageGroup). |
ageGroups[].fromAge | integer | Pflicht | From age. |
ageGroups[].toAge | integer | optional | To age, or null (and over). |
ageGroups[].name | string | Pflicht | Name, e.g. "23–69 years". |
ageGroups[].default | boolean | Pflicht | The usual group (no surcharge). |
searchRq Available cars and prices for a period.
Anfrage
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
command | string | Pflicht | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names and messages. Default en. |
pickup | object | Pflicht | The pickup place and moment. |
pickup.locationId | integer | Pflicht | Location code (locationsRq). |
pickup.dateTime | datetime | Pflicht | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Pflicht | The dropoff place and moment. |
dropoff.locationId | integer | Pflicht | Location code (locationsRq). |
dropoff.dateTime | datetime | Pflicht | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Pflicht | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | optional | Optional: a car type to return first (if it is offered for the search). |
availability | available|onRequest|both | optional | Which cars to return. Default both. |
filters | object | optional | Filters. |
filters.categories | array<integer> | optional | Category codes. |
filters.seats | array<integer> | optional | Seat counts. |
filters.luggage | integer | optional | Minimum suitcases. |
filters.fuel | array<integer> | optional | Fuel codes. |
filters.transmission | array<string> | optional | manual / automatic. |
Antwortdaten
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
currency | string | Pflicht | Currency of all amounts (ISO 4217, EUR). |
request | object | Pflicht | The request as understood. |
days | integer | Pflicht | Rental days. |
types | array | Pflicht | Cars that can be rented for the search (the others are not returned). |
types[].code | integer | Pflicht | Car type code. |
types[].name | string | Pflicht | Car type name (the car or a similar one of the same class or higher). |
types[].category | object | Pflicht | Car class. |
types[].category.code | integer | Pflicht | Category code (categoriesRq). |
types[].category.name | string | Pflicht | Name. |
types[].acriss | string | optional | ACRISS code, or null. |
types[].specs | object | Pflicht | Features. |
types[].specs.seats | integer | optional | Seats. |
types[].specs.doors | integer | optional | Doors. |
types[].specs.luggage | integer | optional | Suitcases. |
types[].specs.transmission | object | optional | Code (manual|automatic) and name in the request language, or null. |
types[].specs.transmission.code | string | Pflicht | manual|automatic |
types[].specs.transmission.name | string | Pflicht | Name. |
types[].specs.fuel | object | optional | Fuel {code, name}, or null. |
types[].specs.consumption | number | optional | Litres / 100 km, or null. |
types[].specs.airConditioning | object | optional | Code (automatic|manual) and name in the request language, or null. |
types[].specs.airConditioning.code | string | Pflicht | automatic|manual |
types[].specs.airConditioning.name | string | Pflicht | Name. |
types[].specs.drive | object | optional | Code (front|rear|4x4) and name in the request language, or null. |
types[].specs.drive.code | string | Pflicht | front|rear|4x4 |
types[].specs.drive.name | string | Pflicht | Name. |
types[].specs.isofix | boolean | Pflicht | Isofix. |
types[].specs.wagon | boolean | Pflicht | Estate body. |
types[].specs.smartphone | boolean | Pflicht | Smartphone integration. |
types[].pictures | array<string> | Pflicht | Photo URLs. |
types[].requested | boolean | Pflicht | This is the carTypeCode from the request. |
types[].status | available|onRequest | Pflicht | available = can be booked now; onRequest = we confirm it. |
types[].instantConfirmation | boolean | Pflicht | The booking is confirmed immediately (24 h+ before pick-up, car in the fleet). |
types[].days | integer | Pflicht | Rental days. |
types[].chargedDays | integer | Pflicht | Days charged (the minimum, when the period is shorter). |
types[].minimumDays | integer | Pflicht | Minimum days here. |
types[].offers | object | Pflicht | The two offers. |
types[].offers.standard | object | Pflicht | With damage deposit. |
types[].offers.standard.total | integer | Pflicht | Final price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay. |
types[].offers.standard.perDay | number | Pflicht | Average price per day (information only). In currency (EUR). |
types[].offers.standard.discount | object | optional | The discount already applied, or null. |
types[].offers.standard.discount.amount | number | Pflicht | Amount saved. In currency (EUR). |
types[].offers.standard.discount.percent | number | Pflicht | Percent saved. |
types[].offers.standard.discount.totalBefore | integer | Pflicht | Total before the discount. |
types[].offers.standard.deposit | object | Pflicht | Security deposit at pick-up, by part (all keys always present, 0 when not required). |
types[].offers.standard.deposit.car | number | Pflicht | Damage deposit (0 with extraProtection). In currency (EUR). |
types[].offers.standard.deposit.fuel | number | Pflicht | Fuel deposit. In currency (EUR). |
types[].offers.standard.deposit.extras | number | Pflicht | Equipment deposit. In currency (EUR). |
types[].offers.standard.deposit.crossBorder | number | Pflicht | Cross-border deposit. In currency (EUR). |
types[].offers.standard.deposit.age | number | Pflicht | Extra deposit for the driver age group. In currency (EUR). |
types[].offers.standard.deposit.total | number | Pflicht | Total deposit. 0 = no deposit at all. In currency (EUR). |
types[].offers.standard.km | object | Pflicht | Kilometres. |
types[].offers.standard.km.perDay | integer | Pflicht | Included km per day. |
types[].offers.standard.km.included | integer | Pflicht | Total km included for the rental. |
types[].offers.standard.km.extraKmPrice | number | Pflicht | Price per extra km, charged at the end over the total included. In currency (EUR). |
types[].offers.standard.cancellation | object | Pflicht | Cancellation policy of this offer. |
types[].offers.standard.cancellation.freeUntil | datetime | optional | Free cancellation until this moment (Romanian time); null = free until pick-up. |
types[].offers.standard.cancellation.stages | array | Pflicht | Cancellation fees after the free period. |
types[].offers.standard.cancellation.stages[].from | datetime | Pflicht | From this moment. |
types[].offers.standard.cancellation.stages[].amount | number | Pflicht | Cancellation fee. In currency (EUR). |
types[].offers.standard.cancellation.noShow | number | optional | No-show fee in EUR, or null. |
types[].offers.standard.advance | object | optional | Always null for partners (an advance can be asked only for website bookings). |
types[].offers.standard.advance.amount | number | Pflicht | Advance amount. In currency (EUR). |
types[].offers.extraProtection | object | optional | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
types[].note | string | optional | A note on the price (e.g. minimum days). |
facets | object | Pflicht | Counts per availability, category, transmission, fuel, seats, luggage: [{code, name, count}]. |
extrasRq Equipment offered with a car.
Anfrage
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
command | string | Pflicht | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names and messages. Default en. |
pickup | object | Pflicht | The pickup place and moment. |
pickup.locationId | integer | Pflicht | Location code (locationsRq). |
pickup.dateTime | datetime | Pflicht | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Pflicht | The dropoff place and moment. |
dropoff.locationId | integer | Pflicht | Location code (locationsRq). |
dropoff.dateTime | datetime | Pflicht | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Pflicht | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Pflicht | The chosen car type (carTypesRq / searchRq). |
Antwortdaten
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
currency | string | Pflicht | EUR. |
carTypeCode | integer | Pflicht | The car type. |
chargedDays | integer | Pflicht | Days charged. |
extras | array | Pflicht | Equipment. |
extras[].code | integer | Pflicht | Equipment code. |
extras[].name | string | Pflicht | Name. |
extras[].description | string | optional | Description. |
extras[].photo | string | optional | Photo URL. |
extras[].pricePerDay | number | Pflicht | Price per day. In currency (EUR). |
extras[].maxQuantity | integer | Pflicht | Maximum per booking. |
extras[].deposit | number | Pflicht | Deposit per piece. In currency (EUR). |
extras[].total | number | Pflicht | Price of one piece for the whole rental. In currency (EUR). |
crossBordersRq Countries the car may be driven to.
Anfrage
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
command | string | Pflicht | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names and messages. Default en. |
pickup | object | Pflicht | The pickup place and moment. |
pickup.locationId | integer | Pflicht | Location code (locationsRq). |
pickup.dateTime | datetime | Pflicht | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Pflicht | The dropoff place and moment. |
dropoff.locationId | integer | Pflicht | Location code (locationsRq). |
dropoff.dateTime | datetime | Pflicht | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Pflicht | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Pflicht | The chosen car type (carTypesRq / searchRq). |
Antwortdaten
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
currency | string | Pflicht | EUR. |
carTypeCode | integer | Pflicht | The car type. |
chargedDays | integer | Pflicht | Days charged. |
crossBorders | array | Pflicht | Allowed destinations. Without one, leaving Romania is forbidden. |
crossBorders[].code | integer | Pflicht | Destination code. |
crossBorders[].name | string | Pflicht | Name. |
crossBorders[].description | string | optional | Documents and rules. |
crossBorders[].pricePerDay | number | Pflicht | Price per day. In currency (EUR). |
crossBorders[].minTotal | number | Pflicht | Minimum per rental (0 = none). In currency (EUR). |
crossBorders[].maxTotal | number | Pflicht | Maximum per rental (0 = none). In currency (EUR). |
crossBorders[].deposit | number | Pflicht | Extra deposit. In currency (EUR). |
crossBorders[].total | number | Pflicht | Price for the whole rental. In currency (EUR). |
searchDetailsRq Exact price of a selection (car, equipment, cross-border), before booking.
Anfrage
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
command | string | Pflicht | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names and messages. Default en. |
pickup | object | Pflicht | The pickup place and moment. |
pickup.locationId | integer | Pflicht | Location code (locationsRq). |
pickup.dateTime | datetime | Pflicht | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Pflicht | The dropoff place and moment. |
dropoff.locationId | integer | Pflicht | Location code (locationsRq). |
dropoff.dateTime | datetime | Pflicht | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Pflicht | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Pflicht | The chosen car type (carTypesRq / searchRq). |
extras | array | optional | Chosen equipment. |
extras[].code | integer | Pflicht | Equipment code (extrasRq). |
extras[].qty | integer | optional | Quantity, default 1; capped at maxQuantity. |
crossBorders | array<integer> | optional | Chosen cross-border destination codes (crossBordersRq). |
Antwortdaten
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
currency | string | Pflicht | EUR. |
request | object | Pflicht | The request as understood. |
type | object | Pflicht | The car type with status, days, chargedDays, minimumDays, note. |
type.code | integer | Pflicht | Car type code. |
type.name | string | Pflicht | Car type name (the car or a similar one of the same class or higher). |
type.category | object | Pflicht | Car class. |
type.category.code | integer | Pflicht | Category code (categoriesRq). |
type.category.name | string | Pflicht | Name. |
type.acriss | string | optional | ACRISS code, or null. |
type.specs | object | Pflicht | Features. |
type.specs.seats | integer | optional | Seats. |
type.specs.doors | integer | optional | Doors. |
type.specs.luggage | integer | optional | Suitcases. |
type.specs.transmission | object | optional | Code (manual|automatic) and name in the request language, or null. |
type.specs.transmission.code | string | Pflicht | manual|automatic |
type.specs.transmission.name | string | Pflicht | Name. |
type.specs.fuel | object | optional | Fuel {code, name}, or null. |
type.specs.consumption | number | optional | Litres / 100 km, or null. |
type.specs.airConditioning | object | optional | Code (automatic|manual) and name in the request language, or null. |
type.specs.airConditioning.code | string | Pflicht | automatic|manual |
type.specs.airConditioning.name | string | Pflicht | Name. |
type.specs.drive | object | optional | Code (front|rear|4x4) and name in the request language, or null. |
type.specs.drive.code | string | Pflicht | front|rear|4x4 |
type.specs.drive.name | string | Pflicht | Name. |
type.specs.isofix | boolean | Pflicht | Isofix. |
type.specs.wagon | boolean | Pflicht | Estate body. |
type.specs.smartphone | boolean | Pflicht | Smartphone integration. |
type.pictures | array<string> | Pflicht | Photo URLs. |
extras | array | Pflicht | Equipment added. |
extras[].code | integer | Pflicht | Code. |
extras[].name | string | Pflicht | Name. |
extras[].quantity | integer | Pflicht | Quantity. |
extras[].total | number | Pflicht | Total. In currency (EUR). |
crossBorders | array | Pflicht | Destinations added. |
crossBorders[].code | integer | Pflicht | Code. |
crossBorders[].name | string | Pflicht | Name. |
crossBorders[].total | number | Pflicht | Total. In currency (EUR). |
offers | object | Pflicht | The two offers for the selection; send the chosen total as expectedTotal in bookRq. |
offers.standard | object | Pflicht | With damage deposit. |
offers.standard.total | integer | Pflicht | Final price for the whole rental, all included (rounded up to whole euro). Never compute it from perDay. |
offers.standard.perDay | number | Pflicht | Average price per day (information only). In currency (EUR). |
offers.standard.rentalTotal | number | Pflicht | The rental without equipment and cross-border (summary line). In currency (EUR). |
offers.standard.discount | object | optional | The discount already applied, or null. |
offers.standard.discount.amount | number | Pflicht | Amount saved. In currency (EUR). |
offers.standard.discount.percent | number | Pflicht | Percent saved. |
offers.standard.discount.totalBefore | integer | Pflicht | Total before the discount. |
offers.standard.deposit | object | Pflicht | Security deposit at pick-up, by part (all keys always present, 0 when not required). |
offers.standard.deposit.car | number | Pflicht | Damage deposit (0 with extraProtection). In currency (EUR). |
offers.standard.deposit.fuel | number | Pflicht | Fuel deposit. In currency (EUR). |
offers.standard.deposit.extras | number | Pflicht | Equipment deposit. In currency (EUR). |
offers.standard.deposit.crossBorder | number | Pflicht | Cross-border deposit. In currency (EUR). |
offers.standard.deposit.age | number | Pflicht | Extra deposit for the driver age group. In currency (EUR). |
offers.standard.deposit.total | number | Pflicht | Total deposit. 0 = no deposit at all. In currency (EUR). |
offers.standard.km | object | Pflicht | Kilometres. |
offers.standard.km.perDay | integer | Pflicht | Included km per day. |
offers.standard.km.included | integer | Pflicht | Total km included for the rental. |
offers.standard.km.extraKmPrice | number | Pflicht | Price per extra km, charged at the end over the total included. In currency (EUR). |
offers.standard.cancellation | object | Pflicht | Cancellation policy of this offer. |
offers.standard.cancellation.freeUntil | datetime | optional | Free cancellation until this moment (Romanian time); null = free until pick-up. |
offers.standard.cancellation.stages | array | Pflicht | Cancellation fees after the free period. |
offers.standard.cancellation.stages[].from | datetime | Pflicht | From this moment. |
offers.standard.cancellation.stages[].amount | number | Pflicht | Cancellation fee. In currency (EUR). |
offers.standard.cancellation.noShow | number | optional | No-show fee in EUR, or null. |
offers.standard.advance | object | optional | Always null for partners (an advance can be asked only for website bookings). |
offers.standard.advance.amount | number | Pflicht | Advance amount. In currency (EUR). |
offers.extraProtection | object | optional | Without damage deposit (SCDW), or null when the car has no such option. Same fields as standard. |
bookRq Book the selection.
Anfrage
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
command | string | Pflicht | The command name. |
language | ro|en|fr|it|de|es | optional | Language of names and messages. Default en. |
pickup | object | Pflicht | The pickup place and moment. |
pickup.locationId | integer | Pflicht | Location code (locationsRq). |
pickup.dateTime | datetime | Pflicht | Romanian local time, YYYY-MM-DDTHH:MM, in the future. |
dropoff | object | Pflicht | The dropoff place and moment. |
dropoff.locationId | integer | Pflicht | Location code (locationsRq). |
dropoff.dateTime | datetime | Pflicht | Romanian local time, YYYY-MM-DDTHH:MM, in the future, after the pick-up. |
ageGroup | integer | Pflicht | Main driver age group code (ageGroupsRq). |
carTypeCode | integer | Pflicht | The chosen car type (carTypesRq / searchRq). |
extras | array | optional | Chosen equipment. |
extras[].code | integer | Pflicht | Equipment code (extrasRq). |
extras[].qty | integer | optional | Quantity, default 1; capped at maxQuantity. |
crossBorders | array<integer> | optional | Chosen cross-border destination codes (crossBordersRq). |
offer | standard|extraProtection | Pflicht | The chosen offer. |
expectedTotal | number | Pflicht | The total the customer saw (searchDetailsRq). A different current total gives PRICE_CHANGED with the new total. |
driver | object | Pflicht | Main driver (signs the contract). |
driver.fullName | string | Pflicht | Full name. |
driver.phone | string | Pflicht | Phone with country code (WhatsApp if possible). |
driver.email | string | Pflicht | Email (confirmation and booking link). |
driver.personalId | string | optional | Personal ID number. |
driver.birthDate | string | optional | YYYY-MM-DD. |
driver.citizenship | string | optional | Citizenship: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.addrCountry | string | optional | Address country: ISO 3166-1 alpha-2 code, 2 letters, e.g. RO; a country name gives FIELD_INVALID. |
driver.addrStateRomania | string | optional | County code, 2 letters, e.g. IS, B (only when addrCountry is RO). |
driver.addrState | string | optional | Region (other countries). |
driver.addrCity | string | optional | City. |
driver.addrStreet | string | optional | Street. |
driver.idType | integer | optional | ID document type: 1 = identity card, 2 = passport, 3 = residence permit. Default 1; another value gives FIELD_INVALID. |
driver.idCountry | string | optional | 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 | optional | ID document number. |
driver.idExpiresAt | string | optional | YYYY-MM-DD. |
driver.licCountry | string | optional | 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 | optional | Licence number. |
driver.licIssuedAt | string | optional | YYYY-MM-DD. |
driver.licExpiresAt | string | optional | YYYY-MM-DD. |
additionalDriver | object | optional | Second driver, same fields (email not required). Free of charge. |
billing | object | optional | 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 | optional | Arrival flight, so we can follow delays. |
flight.number | string | optional | Flight number. |
flight.from | string | optional | Departure airport. |
message | string | optional | Message for us. |
consent | boolean | Pflicht | true: the customer accepted the rental conditions and the privacy policy. |
confirmDuplicate | boolean | optional | true: book again after DUPLICATE_BOOKING. |
partnerVoucher | string | optional | Your own booking reference (up to 60 characters). |
Antwortdaten
| Feld | Art | Pflicht | Beschreibung |
|---|---|---|---|
bookingCode | integer | Pflicht | Our booking number. |
status | request|confirmed | Pflicht | confirmed = instant confirmation; request = we confirm it by email. |
bookingToken | string | Pflicht | Signed proof of the booking. |
total | number | Pflicht | Booked total. |
currency | string | Pflicht | EUR. |
Meldungscodes
Codes ändern sich nie und werden nie entfernt (neue können hinzukommen); Texte können jederzeit verbessert werden. Verlass dich auf den Code, nicht auf den Text.
| Code | Stufe | HTTP | Text |
|---|---|---|---|
INVALID_JSON | error | 400 | Die Anfrage ist kein gültiges JSON. |
UNKNOWN_COMMAND | error | 404 | Unbekannter Befehl: {value}. |
METHOD_NOT_ALLOWED | error | 405 | Sende die Anfrage per POST, mit dem Befehl als JSON im Body. |
EMPTY_BODY | error | 400 | Die Anfrage hat keinen Body: Sende den Befehl als JSON, zum Beispiel {"command": "searchRq", ...}. |
AUTH_REQUIRED | error | 401 | Signiere die Anfrage mit den Headern X-Api-Key, X-Api-Timestamp und X-Api-Signature. |
AUTH_INVALID | error | 401 | Die Partner-Zugangsdaten sind ungültig. |
SIGNATURE_INVALID | error | 401 | Die Signatur der Anfrage ist ungültig. |
SIGNATURE_EXPIRED | error | 401 | Die Uhrzeit der Anfrage weicht zu stark von unserer ab: Signiere jede Anfrage mit der aktuellen Uhrzeit. |
FIELD_REQUIRED | error | 400 | Dieses Feld ist erforderlich: {value}. |
FIELD_INVALID | error | 400 | Dieses Feld hat einen ungültigen Wert: {value}. |
LOCATION_UNKNOWN | error | 400 | Dieser Standort existiert nicht: {value}. |
PICKUP_IN_PAST | error | 400 | Datum und Uhrzeit der Abholung müssen in der Zukunft liegen. |
DROPOFF_BEFORE_PICKUP | error | 400 | Die Rückgabe muss nach der Abholung liegen. |
AGE_GROUP_UNKNOWN | error | 400 | Diese Altersgruppe existiert nicht. |
CAR_TYPE_NOT_OFFERED | error | 400 | Dieses Auto wird für diese Suche nicht angeboten. |
TOO_MANY_ATTEMPTS | error | 429 | Zu viele Versuche. Versuche es in ein paar Minuten erneut. |
TRY_AGAIN | error | 503 | Gerade wird eine andere Buchung für dieses Auto gespeichert. Versuche es in ein paar Sekunden erneut. |
EXTRA_NOT_OFFERED | warning | — | Diese Ausstattung wird mit diesem Auto nicht angeboten und wurde daher nicht hinzugefügt: {value}. |
EXTRA_QTY_REDUCED | warning | — | Die Anzahl wurde auf das Maximum pro Buchung reduziert: {value}. |
CROSS_BORDER_NOT_ALLOWED | warning | — | Mit diesem Auto ist die Fahrt in dieses Ziel nicht erlaubt, daher wurde es nicht hinzugefügt: {value}. |
NO_RESULTS | info | — | Kein Auto passt zu deiner Suche. |
BELOW_MIN_DAYS | info | — | Der Preis gilt für die Mindestmiete von {value} Tagen. |
CONSENT_REQUIRED | error | 400 | Akzeptiere die Mietbedingungen und die Datenschutzerklärung, um die Buchung zu senden. |
PRICE_CHANGED | error | 409 | Der Preis hat sich inzwischen geändert: Der neue Gesamtbetrag ist {value}. Prüfe ihn und sende die Buchung erneut. |
DUPLICATE_BOOKING | error | 409 | Du hast schon eine Buchung mit demselben Fahrer, denselben Daten und Orten. Sende sie nur erneut, wenn du noch eine willst. |
OFFER_UNAVAILABLE | error | 400 | Das Angebot ohne Kaution ist für dieses Fahrzeug nicht verfügbar. Wähle das Angebot mit Kaution. |
SERVER_ERROR | error | 500 | Bei uns ist etwas schiefgelaufen. Bitte versuche es erneut. |
Gut zu wissen
- Alle Beträge sind in der Währung der Antwort (heute EUR).
- Alle Daten und Uhrzeiten sind rumänische Ortszeit.
- Der Preis ist nur durch bookRq garantiert: Hat sich der Betrag geändert, erhältst du PRICE_CHANGED mit dem neuen Betrag.