Quickstart
Make your first successful API call in under 5 minutes.
Step 1 · Get your API key
Email xmlsupport@rezlive.com requesting sandbox access. You will receive three values:
x-api-key— the credential you send in the HTTP header.AgentCode— your routing identifier (sent in the request body).UserName— companion routing identifier (sent in the request body).
Whitelist your server's outbound IP address with RezLive support. Requests from a non-whitelisted IP are rejected even with a valid API key.
Step 2 · Make your first call
The simplest call is a hotel search by destination. The example below searches Dubai (city 968) for one room with two adults, checking in tomorrow.
Request
curl -X POST https://test.xmlhub.com/testpanel.php/action/findhotel \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode 'XML=<HotelFindRequest>
<Authentication>
<AgentCode>YOUR_AGENT_CODE</AgentCode>
<UserName>YOUR_USERNAME</UserName>
</Authentication>
<Booking>
<ArrivalDate>15/06/2026</ArrivalDate>
<DepartureDate>16/06/2026</DepartureDate>
<CountryCode>AE</CountryCode>
<City>968</City>
<GuestNationality>IN</GuestNationality>
<HotelRatings><HotelRating>5</HotelRating></HotelRatings>
<Rooms><Room>
<Type>Room-1</Type>
<NoOfAdults>2</NoOfAdults>
<NoOfChilds>0</NoOfChilds>
</Room></Rooms>
</Booking>
</HotelFindRequest>'
<?php
$ch = curl_init('https://test.xmlhub.com/testpanel.php/action/findhotel');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => 'XML=' . urlencode($xmlBody),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'x-api-key: YOUR_API_KEY',
'Content-Type: application/x-www-form-urlencoded',
],
]);
$response = curl_exec($ch);
echo $response;
const res = await fetch('https://test.xmlhub.com/testpanel.php/action/findhotel', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: 'XML=' + encodeURIComponent(xmlBody)
});
console.log(await res.text());
import requests
from urllib.parse import urlencode
response = requests.post(
'https://test.xmlhub.com/testpanel.php/action/findhotel',
headers={
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/x-www-form-urlencoded',
},
data=urlencode({'XML': xml_body}),
timeout=30,
)
print(response.text)
Step 3 · Try it now
Click "Send Request" below to call a mocked Search endpoint and see the response shape. No real API key needed.
POST /action/findhotel
Mock — no live callStep 4 · Continue the booking flow
Once Search returns a SearchSessionId and a BookingKey, the rest of the flow is:
- Pre-Book — verify final price and cancellation policy. Mandatory.
- Book — confirm with passenger details. Returns a BookingCode.
- Post-Book — retrieve booking, confirmation, or cancel if needed.
The cancellation policy returned at Search time is indicative. Only the policy returned by Pre-Book is treated as final by RezLive. Skipping Pre-Book is the most common cause of partner disputes about cancellation charges.
Continue to Authentication for full credential details, or jump straight to the Search endpoint reference.