Response Example :
{"Error":{"Code":117,"Message":"MissingChildCountAttribute"},
"DebugError":{"Incident":0,"TimeStamp":"2025-09-20 11:57:17",
"Message":"Missing 'ChildCount' attribute in 'Root/Main/Rooms/Room' at position 1"}}
What it means :
The ChildCount attribute is missing from the <Room> tag.
About ChildCount :
Starting from API search version 2.2, the ChildCount attribute is mandatory in every search request.
It specifies the number of children per room.
Value 0 represents no children.
Common reason :
The ChildCount attribute is completely missing in one or more <Room> tags.
Resolution / How to fix :
Add the ChildCount attribute to every <Room> tag and set the appropriate number of children.
Use 0 if there are no children.
✅ 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="1">
<ChildAge>3</ChildAge>
</Room>
</Rooms>
</Main>
</Root>