Response Example :
Main":{"Error":{"Code":130,"Message":"CannotParseMaxOffersAttribute"},
"DebugError":{"Incident":0,"TimeStamp":"2025-09-28 09:32:17",
"Message":"Cannot parse 'MaxOffers' Attribute in 'Root/Main'"}
What it means :
The MaxOffers attribute value is invalid or missing and cannot be parsed.
About MaxOffers :
This parameter represents the number of offers per hotel ID that the client wants to receive in the search response.
It can be used when searching by destination or by specific hotel ID(s)
Common reasons :
MaxOffersattribute is empty.Value is 0 (must be greater than 0).
Value contains letters or any incorrect characters.
Resolution / How to fix :
Add the
MaxOffersattribute inside<Main>and ensure it contains a valid integer greater than 0.Use only numbers—no letters, symbols, or spaces.
✅ 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" MaxOffers="2">
<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-28</ArrivalDate>
<Nights>3</Nights>
<Rooms>
<Room Adults="2" RoomCount="1" ChildCount="0"></Room>
</Rooms>
</Main>
</Root>