Booking Details API
The Booking Details API retrieves full details of a booking made through ZentrumHub. It has two distinct use cases — one for normal product flows, one for error recovery. Implement both.
Two use cases
My Trips / Booking history
When a user views their past bookings, call this API with the bookingId to fetch full booking details — guest info, hotel, dates, rate, cancellation policy, and booking status.
Ghost booking recovery
If a Book API call times out or fails, poll this endpoint repeatedly before showing the user an error. The supplier may have completed the booking in the background after the timeout.
Ghost booking polling pattern
confirmed — show the user the booking confirmation immediatelycorrelationIdWhat the response includes
The full response contains everything needed to display a booking confirmation or trip detail page: hotel name, address, and contact details; check-in and check-out dates; room type and board basis; rate breakdown and cancellation policy; guest names; and current booking status.
Error codes
| Code | Message |
|---|---|
| 4001 | Invalid data in request — refer to fields[] for details |
| 5000 | Unknown system error — contact support with the correlationId |
Updated 12 days ago