Response Example:
Error":{"Code":111,"Message":"MissingNightsElement"},"DebugError":{"Incident":0,"TimeStamp":"2025-09-20 10:15:59","Message":"Missing 'Nights' Element under 'Root/Main'"
What it means :
Your Search request does not include the required Nights element.
Common reasons :
<Nights> tag is completely missing from the XML.
Typo in the tag name (e.g., <Night> or any other incorrect spelling instead of <Nights>).
Example of a wrong request :
<Root>
<Header debug="1">
<Agency></Agency>
<User></User>
<Password></Password>
<Operation>HOTEL_SEARCH_REQUEST</Operation>
<OperationType>Request</OperationType>
</Header>
<Main Version="2.4" ResponseFormat="JSON">
<SortOrder>1</SortOrder>
<FilterPriceMin>0</FilterPriceMin>
<Nationality>US</Nationality>
<FilterPriceMax>10000</FilterPriceMax>
<MaximumWaitTime>20</MaximumWaitTime>
<MaxResponses>10000</MaxResponses>
<FilterRoomBasises>
<FilterRoomBasis></FilterRoomBasis>
</FilterRoomBasises>
<HotelName></HotelName>
<Apartments>false</Apartments>
<Hotels>
<HotelId>96773</HotelId>
</Hotels>
<ArrivalDate>2025-11-20</ArrivalDate>
<Rooms>
<Room Adults="2" RoomCount="1" ChildCount="0"></Room>
</Rooms>
</Main>
</Root>
Resolution / How to fix
Add the
<Nights>element with a valid number of nights.Example:
<Nights>3</Nights>
Make sure the tag name is spelled exactly as
<Nights>and is placed inside<Root><Main>.
Example of correct request :
<Root>
<Header debug="1">
<Agency></Agency>
<User></User>
<Password></Password>
<Operation>HOTEL_SEARCH_REQUEST</Operation>
<OperationType>Request</OperationType>
</Header>
<Main Version="2.4" ResponseFormat="JSON">
<SortOrder>1</SortOrder>
<FilterPriceMin>0</FilterPriceMin>
<Nationality>US</Nationality>
<FilterPriceMax>10000</FilterPriceMax>
<MaximumWaitTime>20</MaximumWaitTime>
<MaxResponses>10000</MaxResponses>
<FilterRoomBasises>
<FilterRoomBasis></FilterRoomBasis>
</FilterRoomBasises>
<HotelName></HotelName>
<Apartments>false</Apartments>
<Hotels>
<HotelId>96773</HotelId>
</Hotels>
<ArrivalDate>2025-11-20</ArrivalDate>
<Nights>3</Nights>
<Rooms>
<Room Adults="2" RoomCount="1" ChildCount="0"></Room>
</Rooms>
</Main>
</Root>