HotelRunner callback compatibility
Unauthenticated compatibility adapter, excluded from recommended self-service setup. Contact the integration team for an approved protected configuration. This is an internal service path, not the public gateway URL.
Bridge service endpoint (not exposed by the callback gateway) #
/api/callbackData direction: HotelRunner-compatible channel → Centra
Compatible alias: POST /api/callback/{hotel_id}.
Authentication #
Public compatibility route: no validated token authentication. A supplied token is not an authentication guarantee. The legacy /api/callback/{hotel_id} route is also public.
Required and optional fields #
| Field | Requirement | Meaning |
|---|---|---|
crh-id or hr_id | Required · query | Property lookup identifier. Legacy alias uses hotel_id in path. |
channel | Optional · query | Defaults to hotel_runner. |
data | Required · form | JSON string containing one reservation or a nonempty reservations[] wrapper. See synthetic payload. |
Synthetic request #
All identifiers, tokens and guest details below are invented. These samples are reference text; the docs never send API requests.
POST /api/callback?crh-id=SYNTHETIC-CRH-ID
Content-Type: application/x-www-form-urlencoded
data=%7B%22reservations%22%3A%5B%7B%22hr_number%22%3A%22SYNTHETIC-RES-001%22%2C%22provider_number%22%3Anull%2C%22channel%22%3A%22online%22%2C%22channel_display%22%3A%22Online%22%2C%22state%22%3A%22reserved%22%2C%22modified%22%3Afalse%2C%22guest%22%3A%22Example+Guest%22%2C%22cancel_reason%22%3Anull%2C%22completed_at%22%3A%222026-11-01T10%3A00%3A00Z%22%2C%22updated_at%22%3A%222026-11-01T10%3A00%3A00Z%22%2C%22sub_total%22%3A120%2C%22extras_total%22%3A0%2C%22adjustments_total%22%3A0%2C%22tax_total%22%3A0%2C%22total%22%3A120%2C%22currency%22%3A%22EUR%22%2C%22checkin_date%22%3A%222026-11-10%22%2C%22checkout_date%22%3A%222026-11-11%22%2C%22note%22%3Anull%2C%22payment%22%3A%22cash%22%2C%22paid_amount%22%3A0%2C%22requires_response%22%3Atrue%2C%22address%22%3A%7B%22city%22%3A%22Example+City%22%2C%22state%22%3A%22%22%2C%22country%22%3A%22Morocco%22%2C%22country_code%22%3A%22MA%22%2C%22phone%22%3A%22%22%2C%22email%22%3A%22guest%40example.invalid%22%2C%22street%22%3A%22%22%2C%22street_2%22%3Anull%7D%2C%22rooms%22%3A%5B%7B%22state%22%3A%22reserved%22%2C%22rate_code%22%3A%22HR%3ASYNTHETIC-RATE%22%2C%22inv_code%22%3A%22HR%3ASYNTHETIC-ROOM%22%2C%22non_refundable%22%3Afalse%2C%22price%22%3A120%2C%22nights%22%3A1%2C%22total_guest%22%3A2%2C%22total_adult%22%3A2%2C%22child_ages%22%3A%5B%5D%2C%22name%22%3A%22Example+Double%22%2C%22checkin_date%22%3A%222026-11-10%22%2C%22checkout_date%22%3A%222026-11-11%22%2C%22extra_info%22%3A%22%22%2C%22daily_prices%22%3A%5B%7B%22date%22%3A%222026-11-10%22%2C%22price%22%3A%22120.0%22%7D%5D%2C%22extras%22%3A%5B%5D%7D%5D%2C%22message_uid%22%3A%22SYNTHETIC-MESSAGE-001%22%7D%5D%2C%22count%22%3A1%2C%22current_page%22%3A1%2C%22pages%22%3A1%7D{
"reservations": [
{
"hr_number": "SYNTHETIC-RES-001",
"provider_number": null,
"channel": "online",
"channel_display": "Online",
"state": "reserved",
"modified": false,
"guest": "Example Guest",
"cancel_reason": null,
"completed_at": "2026-11-01T10:00:00Z",
"updated_at": "2026-11-01T10:00:00Z",
"sub_total": 120,
"extras_total": 0,
"adjustments_total": 0,
"tax_total": 0,
"total": 120,
"currency": "EUR",
"checkin_date": "2026-11-10",
"checkout_date": "2026-11-11",
"note": null,
"payment": "cash",
"paid_amount": 0,
"requires_response": true,
"address": {
"city": "Example City",
"state": "",
"country": "Morocco",
"country_code": "MA",
"phone": "",
"email": "guest@example.invalid",
"street": "",
"street_2": null
},
"rooms": [
{
"state": "reserved",
"rate_code": "HR:SYNTHETIC-RATE",
"inv_code": "HR:SYNTHETIC-ROOM",
"non_refundable": false,
"price": 120,
"nights": 1,
"total_guest": 2,
"total_adult": 2,
"child_ages": [],
"name": "Example Double",
"checkin_date": "2026-11-10",
"checkout_date": "2026-11-11",
"extra_info": "",
"daily_prices": [
{
"date": "2026-11-10",
"price": "120.0"
}
],
"extras": []
}
],
"message_uid": "SYNTHETIC-MESSAGE-001"
}
],
"count": 1,
"current_page": 1,
"pages": 1
}Success response #
{
"status": "ok"
}Errors and acknowledgement #
400 malformed form/JSON or unsupported channel; 404 missing integration; 500 callback processing failure; 429 rate limit. Successful responses are JSON, including the legacy path.
{
"status": "error",
"message": "Invalid callback data"
}