Response Example :
Main":{"Error":{"Code":123,"Message":"CannotParseApartamentsElement"},
"DebugError":{"Incident":0,"TimeStamp":"2025-09-20 12:30:42",
"Message":"Cannot parse 'Apartments' Element in 'Root/Main'"}
What it means :
The value inside the Apartments element is invalid and cannot be parsed.
About Apartments :
Defines whether to include apartment-type accommodations in the search.
Accepted values: true or false (lowercase).
Common reason :
The value inside <Apartments> contains numbers or any other characters instead of exactly true or false.
Resolution / How to fix :
Set the value inside <Apartments> to true or false only.
✅ Example of a 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>
<CityCode>75</CityCode>
<ArrivalDate>2025-11-20</ArrivalDate>
<Nights>3</Nights>
<Rooms>
<Room Adults="2" RoomCount="1" ChildCount="0"></Room>
</Rooms>
</Main>
</Root>