callback.centra.globalSend a reservation webhook
Legacy authenticated agency webhook. This route exists in the deployed callback gateway but is absent from its current main router. Confirm availability and the approved protected setup with the integration team before use.
Public gateway endpoint #
/api/reservations/push/{token}/{hotel_id}Data direction: Local Travel Agency → Centra
Authentication #
Centra token and hotel identifier in the URL path, validated by XML auth middleware. Authentication errors are XML even for JSON payloads. Redact path tokens from logs.
Required and optional fields #
| Field | Requirement | Meaning |
|---|---|---|
token, hotel_id | Required · path | Centra-issued token and property identifier. |
reservation JSON | Required · body | hr_number, channel, channel_display, state, modified, guest, cancel_reason, completed_at, updated_at, sub_total, extras_total, adjustments_total, tax_total, total, currency, checkin_date, checkout_date, note, payment, paid_amount, requires_response, address and rooms. See complete synthetic sample. |
rooms[] | Required · body | Include mapped rate_code/inv_code, state, non_refundable, price, nights, guest counts, child_ages, name, dates, extra_info, daily_prices and extras. |
Synthetic request #
All identifiers, tokens and guest details below are invented. These samples are reference text; the docs never send API requests.
POST https://callback.centra.global/api/reservations/push/SYNTHETIC-NOT-A-VALID-TOKEN/SYNTHETIC-CRH-ID
Content-Type: application/json
{
"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"
}Success response #
{
"status": "ok",
"message": "success"
}Errors and acknowledgement #
401/403 XML credential errors; 400 XML/JSON parse or processing errors matching request format; 429 global rate-limit error. Success acknowledges processing by Centra, not completion of every downstream operation.
{
"status": "error",
"message": "Invalid webhook data"
}