openapi: 3.0.3 info: title: RezLive / XMLHUB Hotel API description: | B2B Hotel XML/API Integration for RezLive.com — global hotel distribution platform serving 40,000+ agent partners across 60+ countries. ## Authentication All requests require the `x-api-key` header. Contact [xmlsupport@rezlive.com](mailto:xmlsupport@rezlive.com) to get credentials. ## Integration Flow 1. **Search** hotels by ID or destination 2. **Pre-Book** to get final price & cancellation policy 3. **Book** with pax details 4. **Post-Booking**: retrieve details, confirmation, cancel if needed > ⚠️ Both `SearchSessionId` and `BookingKey` expire after **30 minutes**. > ⚠️ Only Pre-Book response cancellation policy is considered final. ## Test Environment Register at: https://alpha.rezlive.com/common/index/action/agentregistration version: "4.7.1" contact: name: RezLive XML Support email: xmlsupport@rezlive.com license: name: Proprietary — RezLive.com url: https://www.rezlive.com servers: - url: http://test.xmlhub.com/testpanel.php description: Test Environment - url: https://www.xmlhub.com description: Production Environment (credentials issued post-certification) tags: - name: Hotel Search description: Search hotels by ID or destination/geo codes - name: Pre-Booking description: Verify final price and cancellation policy before booking - name: Booking description: Confirm hotel bookings with pax details - name: Cancellation description: Cancel bookings and retrieve cancellation policies - name: Post-Booking description: Retrieve booking details and hotel confirmation paths: /action/findhotelbyid: post: tags: - Hotel Search summary: Search Hotels by Hotel IDs description: | Returns available rooms for a list of Hotel IDs. **Tip:** Send up to 50 Hotel IDs per request for optimal speed. Response includes `SearchSessionId` (valid 30 min) and `BookingKey` per room (valid 30 min). operationId: findHotelById parameters: - $ref: '#/components/parameters/ApiKey' requestBody: required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/HotelFindByIdRequest' example: XML: | XXXXX XXXXX 11/10/2024 12/10/2024 AE 968 150884 171888 IN Room-1 2 0 responses: '200': description: Successful search response content: application/xml: schema: $ref: '#/components/schemas/HotelFindResponse' example: | YWRhc2Rhc2Fkc2FkczEyMjMyc2ZzZA== 11/10/2024 12/10/2024 AED IN 150884 Dusit Thani Dubai 5.00 825.93 Deluxe Room, 1 King Bed RZHLjuMgEEV_hTWSLco2fq0... 2 0 0 1 825.93 Free High-speed Internet Room Only No Breakfast '400': description: Invalid request / API key error content: application/xml: example: | We're sorry, but it appears that the API key you provided is invalid or incorrect. /action/findhotel: post: tags: - Hotel Search summary: Search Hotels by Destination description: | Returns available hotels for a given country/city combination and date range. Use `HotelRatings` to filter by star rating (1–5). At least one rating must be provided. For US guest nationality, `PayAtHotelFees` tag is included in each `RoomDetail` showing mandatory fees payable at the property (FTC Junk Fees compliance, v4.7). operationId: findHotel parameters: - $ref: '#/components/parameters/ApiKey' requestBody: required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/HotelFindByGeoRequest' example: XML: | XXXXX XXXXX 25/09/2024 26/09/2024 AE 968 AE 4 5 Room-1 2 0 responses: '200': description: Hotel search results content: application/xml: schema: $ref: '#/components/schemas/HotelFindResponse' /action/prebook: post: tags: - Pre-Booking summary: Pre-Book (Verify Price & Cancellation Policy) description: | Fetches the **latest confirmed price** and **cancellation policy** before booking. ⚠️ **Always call Pre-Book before Book.** Only the cancellation policy from this response is honored as final. If price has changed since search, `BookingBeforePrice` vs `BookingAfterPrice` will differ. Show the difference to the user before proceeding. **Required:** Pass `SearchSessionId` from search response and `BookingKey` from search response. operationId: preBook parameters: - $ref: '#/components/parameters/ApiKey' requestBody: required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/PreBookingRequest' example: XML: | XXXXX XXXXX YWRhc2Rhc2Fkc2FkczEy... 23/10/2024 01/11/2024 IN TR GTR15 150090 USD Double Room VY5PS8QwFMS_Ss85LMkmfW... 2 0 0 1 1079.88 responses: '200': description: Pre-booking verification response with cancellation policy content: application/xml: schema: $ref: '#/components/schemas/PreBookingResponse' example: | ... 11 Apr 2024 00:00:00 07 Jul 2024 23:59:00 Amount 0 USD 08 Jul 2024 00:00:00 05 Aug 2024 23:59:00 Amount 1079.88 USD 1079.88 1079.884844 0.004844 240669.45 USD /action/bookhotel: post: tags: - Booking summary: Book Hotel description: | Confirms a hotel booking. Use **only** the parameters returned from the Pre-Book response. - Max **8 rooms** per booking - Pass `AgentRefNo` to track bookings in your own system - For children: pass `IsChild=1` and `Age` for each child guest - Multiple rooms use pipe `|` separator in `Adults`, `Children`, `ChildrenAges`, `TotalRate` On success, you receive `BookingCode` — use this (not `BookingId`) as the confirmation reference on vouchers. operationId: bookHotel parameters: - $ref: '#/components/parameters/ApiKey' requestBody: required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/BookingRequest' responses: '200': description: Booking confirmation content: application/xml: schema: $ref: '#/components/schemas/BookingResponse' example: | XHUB560 XHUBXI-HL-14424443 Confirmed 16.51 USD /action/cancelhotel: post: tags: - Cancellation summary: Cancel Hotel Booking description: | Cancels an existing booking. Only **one booking** can be cancelled per request. Cancellation charges apply if cancellation deadline has passed, as per the policy from Pre-Book response. operationId: cancelHotel parameters: - $ref: '#/components/parameters/ApiKey' requestBody: required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/CancellationRequest' example: XML: | XXXXX XXXXX XHUB2424 XHUB2145429 responses: '200': description: Cancellation result content: application/xml: schema: $ref: '#/components/schemas/CancellationResponse' example: | XHUB560 XHUBXI-HL-14424443 true 16.51 USD /action/getcancellationpolicy: post: tags: - Cancellation summary: Get Cancellation Policy (Pre-Booking) description: | Returns cancellation policy for a specific hotel room before booking. ⚠️ For the **final** cancellation policy, always rely on the Pre-Book API response, not this endpoint. This is useful to display on the listing page as an indication. operationId: getCancellationPolicy parameters: - $ref: '#/components/parameters/ApiKey' requestBody: required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/CancellationPolicyRequest' responses: '200': description: Cancellation policy details content: application/xml: schema: $ref: '#/components/schemas/CancellationPolicyResponse' example: | 13 Oct 2024 00:00:00 14 Oct 2024 23:59:00 Percentage 50 THB 15 Oct 2024 00:00:00 17 Oct 2024 23:59:00 Percentage 100 THB Early checkout, No Show and Late amendments will result in 100% cancellation charges. /action/getCancellationPolicyAfterBooking: post: tags: - Cancellation summary: Get Cancellation Policy After Booking description: Returns the cancellation policy for an already-confirmed booking using BookingId and BookingCode. operationId: getCancellationPolicyAfterBooking parameters: - $ref: '#/components/parameters/ApiKey' requestBody: required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/BookingReferenceRequest' example: XML: | XXXXX XXXXX XHUB8546EF XHUB46EFFC responses: '200': description: Post-booking cancellation policy content: application/xml: schema: $ref: '#/components/schemas/CancellationPolicyResponse' /action/getbookingdetails: post: tags: - Post-Booking summary: Get Booked Hotel Details description: Retrieves full itinerary and booking details for a confirmed reservation. operationId: getBookingDetails parameters: - $ref: '#/components/parameters/ApiKey' requestBody: required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/BookingReferenceRequest' example: XML: | XXXXX XXXXX XHUB2A34C0 XHUB2ABDC0 responses: '200': description: Full booking details content: application/xml: schema: $ref: '#/components/schemas/GetBookingResponse' /action/getbookinglist: post: tags: - Post-Booking summary: Get Booking List description: Retrieves a paginated list of hotel bookings filtered by Booking Creation Date or Check-In Date. operationId: getBookingList parameters: - $ref: '#/components/parameters/ApiKey' requestBody: required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/GetBookingListRequest' example: XML: | POS 1 YOUR_AGENT_CODE YOUR_USERNAME 2026-08-01 2026-08-30 2026-8-01 2026-8-31 responses: '200': description: List of bookings matching the filter criteria content: application/xml: schema: $ref: '#/components/schemas/GetBookingListResponse' example: | 1 1 1 1 false false 4485B0 2026-08-30 2026-09-01 2026-08-21 11:46:36 On Request 301523 Ahmedabad 21335 IN IN For Charges On Refund On Credit Card, Please Refer To Cards & Refunds Policy Mentioned On Rezlive.com
]]>
2026-08-14 00:00:00 426.40 INR
INR 426.40 426.40 2 0 Adult Mr 30 Adult Mr 30
/action/gethoteldetails: post: tags: - Post-Booking summary: Get Hotel Static Details description: Returns static hotel information — name, address, amenities, images, coordinates. operationId: getHotelDetails parameters: - $ref: '#/components/parameters/ApiKey' requestBody: required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/HotelDetailsRequest' example: XML: | XXXXX XXXXX 150884 responses: '200': description: Hotel static details content: application/xml: schema: $ref: '#/components/schemas/HotelDetailsResponse' /action/getConfirmationDetails: post: tags: - Post-Booking summary: Get Hotel Booking Confirmation description: | Returns hotel-side confirmation details including hotel confirmation number, staff name, and confirmation status. Possible statuses: `Pending`, `Confirmed`, `Unreachable`, `Dispute` operationId: getConfirmationDetails parameters: - $ref: '#/components/parameters/ApiKey' requestBody: required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/BookingReferenceRequest' example: XML: | XXXXX XXXXX XHUB535527 XHUB2145429 responses: '200': description: Hotel confirmation details content: application/xml: schema: $ref: '#/components/schemas/HotelConfirmationResponse' example: | 787****757 Terds Ress 123456 Confirmed Booking Confirmed components: parameters: ApiKey: name: x-api-key in: header required: true description: Unique API key assigned by XMLHUB. Must be passed in all request headers. schema: type: string example: "YOUR_API_KEY_HERE" schemas: HotelFindByIdRequest: type: object required: [XML] properties: XML: type: string description: | URL-encoded XML body. Structure: - `Authentication` > `AgentCode`, `UserName` - `Booking` > `ArrivalDate` (dd/MM/yyyy), `DepartureDate`, `CountryCode`, `City`, `HotelIDs` > `Int[]`, `GuestNationality`, `Rooms` > `Room[]` - Each `Room`: `Type`, `NoOfAdults`, `NoOfChilds`, optionally `ChildrenAges` > `ChildAge[]` (required if children > 0) HotelFindByGeoRequest: type: object required: [XML] properties: XML: type: string description: | URL-encoded XML body. Structure: - `Authentication` > `AgentCode`, `UserName` - `Booking` > `ArrivalDate`, `DepartureDate`, `CountryCode`, `City`, `GuestNationality`, `HotelRatings` > `HotelRating[]` (1-5), `Rooms` > `Room[]` PreBookingRequest: type: object required: [XML] properties: XML: type: string description: | URL-encoded XML body. All values should come from Search response. - `Authentication` > `AgentCode`, `UserName` - `PreBooking` > `SearchSessionId`, `ArrivalDate`, `DepartureDate`, `GuestNationality`, `CountryCode`, `City`, `HotelId`, `Currency` - `RoomDetails` > `RoomDetail[]`: `Type`, `BookingKey`, `Adults`, `Children`, `ChildrenAges` (pass 0 if no children), `TotalRooms`, `TotalRate` BookingRequest: type: object required: [XML] properties: XML: type: string description: | URL-encoded XML. Use only Pre-Book response values. - `Authentication` > `AgentCode`, `UserName` - `Booking` > `SearchSessionId`, `AgentRefNo`, `ArrivalDate`, `DepartureDate`, `GuestNationality`, `CountryCode`, `City`, `HotelId`, `Name`, `Address`, `Currency` - `RoomDetails` > `RoomDetail[]`: `Type`, `BookingKey`, `Adults`, `Children`, `ChildrenAges`, `TotalRooms`, `TotalRate` - `Guests` > `Guest[]`: `Salutation` (Mr/Mrs/Ms/Child), `FirstName`, `LastName`, `IsChild` (0/1), `Age` (if child) - Multiple rooms: pipe `|` separator in Adults, Children, ChildrenAges, TotalRate CancellationRequest: type: object required: [XML] properties: XML: type: string description: | - `CancellationRequest` > `Authentication`, `Cancellation` > `BookingId`, `BookingCode` CancellationPolicyRequest: type: object required: [XML] properties: XML: type: string description: | - `CancellationPolicyRequest` > `Authentication`, `ArrivalDate`, `DepartureDate`, `HotelId`, `CountryCode`, `City`, `GuestNationality`, `Currency` - `RoomDetails` > `RoomDetail[]`: `BookingKey`, `Adults`, `Children`, `ChildrenAges`, `Type` GetBookingListRequest: type: object required: [XML] properties: XML: type: string description: | - > , > , > , , , (optional) > , , (optional) > , BookingReferenceRequest: type: object required: [XML] properties: XML: type: string description: XML with Authentication + BookingId + BookingCode HotelDetailsRequest: type: object required: [XML] properties: XML: type: string description: | - `HotelDetailsRequest` > `Authentication`, `Hotels` > `HotelId[]` HotelFindResponse: type: object properties: SearchSessionId: type: string description: Session ID valid for 30 minutes. Required for Pre-Book. ArrivalDate: type: string DepartureDate: type: string Currency: type: string example: AED GuestNationality: type: string example: IN Hotels: type: array items: $ref: '#/components/schemas/Hotel' error: type: string Hotel: type: object properties: Id: type: string example: "150884" Name: type: string Rating: type: number example: 5.0 Price: type: number description: Minimum room price RoomDetails: type: array items: $ref: '#/components/schemas/RoomDetail' RoomDetail: type: object properties: Type: type: string example: "Deluxe Room, 1 King Bed" BookingKey: type: string description: Unique key per room. Valid 30 minutes. Required for Pre-Book and Cancellation Policy. Adults: type: integer Children: type: integer ChildrenAges: type: string description: Ages separated by `|` for multiple rooms TotalRooms: type: integer description: Max 8 rooms per booking TotalRate: type: number description: Rates separated by `|` for multiple rooms RoomDescription: type: string BoardBasis: type: string example: "Room Only No Breakfast" TermsAndConditions: type: string PayAtHotelFees: type: object description: "⚠️ US guest nationality ONLY (FTC compliance v4.7). Shows fees payable at hotel." properties: Fee: type: object properties: type: type: string example: "HOTEL TAX" description: type: string example: "City Tax" amounttype: type: string example: "Amount" currency: type: string example: "USD" amount: type: string example: "20.00" PreBookingResponse: type: object properties: PreBookingRequest: type: object description: Echo of request with updated room details and cancellation policy PreBookingDetails: type: object properties: Status: type: boolean Reason: type: string BookingBeforePrice: type: number BookingAfterPrice: type: number Difference: type: number AgentBalance: type: number AgentCurrency: type: string BookingResponse: type: object properties: BookingId: type: string example: "XHUB560" BookingCode: type: string description: "Use this (not BookingId) as confirmation reference on vouchers" example: "XHUBXI-HL-14424443" BookingStatus: type: string enum: [Confirmed, Rejected, Failed, OnRequest] BookingPrice: type: number BookingCurrency: type: string CancellationResponse: type: object properties: BookingId: type: string BookingCode: type: string Status: type: string example: "true" CancellationCharges: type: number Currency: type: string error: type: string CancellationPolicyResponse: type: object properties: CancellationInformations: type: array items: type: object properties: StartDate: type: string example: "08 Jul 2024 00:00:00" EndDate: type: string example: "05 Aug 2024 23:59:00" ChargeType: type: string enum: [Amount, Percentage] ChargeAmount: type: number Currency: type: string Info: type: string GetBookingResponse: type: object properties: BookingId: type: string CheckIn: type: string CheckOut: type: string BookingStatus: type: string enum: [Confirmed, Vouchered, Invoiced, Cancelled, OnRequest, Rejected, InProcessCancel] HotelInfo: type: object properties: HotelId: type: string HotelName: type: string HotelCity: type: string HotelCountryCode: type: string Nationality: type: string LeaderFirstName: type: string LeaderLastName: type: string CancellationPolicy: type: object RateInfo: type: object properties: CurrencyCode: type: string TotalRate: type: number RoomInfo: type: object properties: RoomType: type: string NoOfAdult: type: integer NoOfChild: type: integer GuestInfos: type: array items: type: object properties: PaxType: type: string Salutation: type: string FirstName: type: string LastName: type: string HotelDetailsResponse: type: object properties: HotelId: type: string HotelName: type: string Rating: type: integer City: type: string Country: type: string Phone: type: string Email: type: string Website: type: string Description: type: string HotelAddress: type: string Latitude: type: string Longitude: type: string HotelPostalCode: type: string HotelAmenities: type: string RoomAmenities: type: string Images: type: array items: type: string HotelConfirmationResponse: type: object properties: ConfirmationStatus: type: string enum: [Pending, Confirmed, Unreachable, Dispute] HotelTelephoneNo: type: string HotelStaffName: type: string HotelConfirmationNo: type: string ConfirmationNote: type: string GetBookingListResponse: type: object properties: Pagination: type: object properties: TotalPages: type: integer CurrentPage: type: integer TotalRecords: type: integer Bookings: type: array items: type: object properties: BookingId: type: string BookingCode: type: string BookingType: type: string BookingDate: type: string CheckInDate: type: string CheckOutDate: type: string BookingStatus: type: string HotelName: type: string CityName: type: string CountryName: type: string TotalRate: type: number Currency: type: string