RezLive

Book Hotel

Confirms a booking with passenger details. The only endpoint that creates a real reservation in the supplier system.

POST /action/bookhotel
⛔
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.

Multi-Room Booking — pipe (|) separator convention 1 Room — straightforward, no separator <Adults>2</Adults> <Children>1</Children> <ChildrenAges>7</ChildrenAges> <TotalRooms>1</TotalRooms> <TotalRate>332.75</TotalRate> 2 Rooms — values for each room separated by pipe (|), in order <Adults>2|2</Adults> <Children>1|0</Children> <ChildrenAges>7|0</ChildrenAges> <TotalRooms>2</TotalRooms> <TotalRate>332.75|332.75</TotalRate> Room 1: 2 adults + 1 child age 7 · Room 2: 2 adults + 0 children · Same order across all four tags ⛔ Common mistakes that produce cryptic errors: • Wrong order (Room 2 values placed where Room 1 should be) → no error, but wrong booking is created • TotalRooms doesn't match the count of pipe-separated values → "TotalRooms mismatch" error • Using comma or asterisk instead of pipe → request silently treated as single room

Try it

POST /action/bookhotel

Mock — no live call, no real booking

Request fields

FieldTypeRequiredDescription
<SearchSessionId>StringYesFrom Search response (still valid)
<AgentRefNo>StringYesYour unique booking reference. Used for retry deduplication
<BookingKey>StringYesFrom Search response
<Adults>Pipe-separated integersYesPer-room adult count
<Children>Pipe-separated integersYesPer-room child count
<ChildrenAges>Pipe-separatedYesPer-room ages. Pass 0 for rooms with no children
<TotalRooms>IntegerYesNumber of rooms (1–8)
<TotalRate>Pipe-separated decimalsYesPer-room total rate
<Guests>/<Guest>Block (repeated)YesOne <Guest> per pax. Salutation, FirstName, LastName. For children: <IsChild>1</IsChild> + <Age>

Response

FieldDescription
<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 expired
  • RZL-AVAIL-001 — Room no longer available
  • RZL-AVAIL-002 — Price changed; re-run Pre-Book
  • RZL-VAL-020 — More than 8 rooms in one Booking
  • RZL-VAL-030 — Pipe-separated value count mismatch
  • RZL-BOOK-001 — Insufficient agent credit balance (credit agents only)