Hotel API Flow
Every booking moves through five phases. Understanding the full life cycle before integrating any one endpoint will save significant rework.
Phase 1 — Discovery (static content)
Before any guest searches, populate your local cache with the master files (Countries, Cities, Hotels, Property Amenities, Room Amenities, Hotel Images). These are large CSV files updated periodically by RezLive. They power your destination autocomplete, hotel detail pages, and search filters. Master files are not real-time — fetch nightly is sufficient.
The companion endpoint is /action/gethoteldetails which returns full static detail for a single hotel by ID.
Phase 2 — Search
Guest enters their search criteria. Your system calls one of two endpoints:
/action/findhotelbyid— when you already know which hotels to query (curated lists, hotels near a landmark). Up to 50 IDs per request./action/findhotel— when searching by destination (country + city).
Both endpoints return a SearchSessionId and one or more BookingKey values (one per room). These two values are the inputs for every subsequent step in this booking. They expire after 30 minutes.
Phase 3 — Pre-Book
The Pre-Book step (/action/prebook) performs three jobs at once:
- Re-confirms the rate at the supplier. Late price changes are caught here.
- Returns the final cancellation policy. This is the only policy RezLive honors.
- Returns FTC-compliant pay-at-hotel fees for US-nationality searches.
The cancellation policy returned at Search time is indicative; the policy returned at Pre-Book is contractual. Any partner UI that displays a cancellation policy at booking time MUST source it from the Pre-Book response, not Search.
Phase 4 — Book
With the verified Pre-Book values in hand, send the booking request (/action/bookhotel). This is the first step that creates a real reservation. The response gives you two identifiers:
BookingId— internal RezLive ID. Useful for support tickets but not customer-facing.BookingCode— the partner-facing booking reference. Always use BookingCode on vouchers, customer emails, and any document the guest sees.
Phase 5 — Post-Booking
Four operations are available once a booking exists:
/action/getbookingdetails— full itinerary, guest details, current cancellation policy./action/getbookinglist— paginated list of bookings filtered by creation or check-in dates./action/getConfirmationDetails— hotel-side confirmation number and status./action/cancelhotel— cancel the booking. Charges apply per the Pre-Book cancellation policy if the cancellation deadline has passed.
RezLive does not support partial cancellation of a multi-room booking. To remove a single room from a confirmed booking, you must cancel the entire booking and rebook the rooms you want to keep.