Book Hotel
Confirms a booking with passenger details. The only endpoint that creates a real reservation in the supplier system.
⛔
Always set a unique AgentRefNo
It is the only reliable way to deduplicate a booking after a network timeout. See the booking-retry trap for full details.
Never blindly retry a Booking call. If your call times out, call /getbookingdetails with your AgentRefNo to check whether the booking succeeded.
Multi-room rule
Up to 8 rooms can be booked in a single Booking request. For multi-room bookings, RezLive uses a pipe-separator convention. This is the most easily misunderstood part of the API.
Try it
POST /action/bookhotel
Mock — no live call, no real bookingRequest fields
| Field | Type | Required | Description |
|---|---|---|---|
<SearchSessionId> | String | Yes | From Search response (still valid) |
<AgentRefNo> | String | Yes | Your unique booking reference. Used for retry deduplication |
<BookingKey> | String | Yes | From Search response |
<Adults> | Pipe-separated integers | Yes | Per-room adult count |
<Children> | Pipe-separated integers | Yes | Per-room child count |
<ChildrenAges> | Pipe-separated | Yes | Per-room ages. Pass 0 for rooms with no children |
<TotalRooms> | Integer | Yes | Number of rooms (1–8) |
<TotalRate> | Pipe-separated decimals | Yes | Per-room total rate |
<Guests>/<Guest> | Block (repeated) | Yes | One <Guest> per pax. Salutation, FirstName, LastName. For children: <IsChild>1</IsChild> + <Age> |
Response
| Field | Description |
|---|---|
<BookingId> | Internal RezLive ID. For support tickets only. |
<BookingCode> | Partner-facing booking reference. Use this on vouchers, customer emails, and any guest-facing document. |
<BookingStatus> | Confirmed | Rejected | Failed | On Request |
<BookingPrice> | Final price in agent currency |
⛔
Use BookingCode (not BookingId) on vouchers
BookingId is internal. Putting it on a voucher means the guest cannot reference their booking when contacting the hotel. BookingCode is the partner-facing reference.
Errors
RZL-SES-001/RZL-SES-002— Session token expiredRZL-AVAIL-001— Room no longer availableRZL-AVAIL-002— Price changed; re-run Pre-BookRZL-VAL-020— More than 8 rooms in one BookingRZL-VAL-030— Pipe-separated value count mismatchRZL-BOOK-001— Insufficient agent credit balance (credit agents only)