The function getHotels is designed for external channels to retrieve the Hoteliers.com internal hotelIDs but also the name, city and country of the hotel. The hotelID is required in all other functions.
<?xml version="1.0" encoding="UTF-8"?> <request function="getHotels"> <extChannel ID="15" name="test" password="F@k3Pa$4"/> </request> |
Element | Number | Required | Description |
request | 1 | Required | Container element for the request |
@Function | 1 | Required | Name of the function |
request / extChannel | 1 | Required | Indicates the channel ID and gives authentication information for hoteliers.com |
@ID | 1 | Required | Extchannel id supplied by Hoteliers.com |
@name | 1 | Required | username supplied by Hoteliers.com |
@password | 1 | Required | Password supplied by Hoteliers.com |
<?xml version="1.0" encoding="UTF-8" ?> <response function="getHotels"> <extChannel ID="15" name="test"/> <hotels> <hotel ID="8"> <name>Hoteliers dot com Resorts</name> <city>Amsterdam</city> <country>Netherlands</country> </hotel> <hotel ID="867"> <name>Testhotel PMS</name> <city>Amsterdam</city> <country>Netherlands</country> </hotel> </hotels> </response> |
Element | Number | Description |
response | 1 | Container element for the response |
@function | 1 | Name of the function |
response / extChannel | 1 | Indicates the channel ID and gives authentication information for Hoteliers.com |
@ID | 1 | Extchannel id supplied by Hoteliers.com. This is copied from the request. |
@name | 1 | username supplied by Hoteliers.com. This is copied from the request. |
response / hotels | 1 | Container element for hotel |
response / hotels / hotel | 1..n | Hotel information |
@ID | 1 | hotelID |
hotels /hotel / name | 1 | Name of the hotel |
hotels /hotel / city | 1 | City of the hotel (in English) |
hotels /hotel / country | 1 | Country of the hotel (in English) |