The main section would be like:
Search with hote search code:
<Root>
<Header>
<Agency></Agency>
<User></User>
<Password></Password>
<Operation>HOTEL_INFO_REQUEST</Operation>
<OperationType>Request</OperationType>
</Header>
<Main Version="2.3">
<HotelSearchCode>2222/45/65</HotelSearchCode>
<InfoLanguage>ru</InfoLanguage>
</Main>
</Root>
Search with info searh code :
<Root>
<Header>
<Agency></Agency>
<User></User>
<Password></Password>
<Operation>HOTEL_INFO_REQUEST</Operation>
<OperationType>Request</OperationType>
</Header>
<Main Version="2.3">
<HotelSearchCode>26</HotelSearchCode>
<InfoLanguage>ru</InfoLanguage>
</Main>
</Root>
In regards to the documentation, we received a data from Booking.com or Expedia . In case requsted language not available it will returns only in English .
Language code should be NOT with capiital letters .
You have the basic elements:
HotelId
HotelName
Street
City (name)
Country (iso)
Then there are 3 sections:
HotelDetails -
Has a list of HotelDetail Elements with a name (section desc) and type (code) attributes.
Each has multiple FactSheet elements with the id, name and value of the element detail.
For example: object_information has details about the fax and phone number as in the provided sample.
There is a facilities HotelDetail element <HotelDetail name="facilities" type="1007"> with a list of facilities and indication of existance (value = true or false) or count (value indicating a number)
There is also a room_facilities element, meals (basis) etc.
HotelInfoList -
Has a list of descriptions under HotelInfo element with title, type and content in the specified language.
Location, Facilities, Rooms, etc.
Pictures -
List of Picture elements with Description (title) and a url for the image