Hotel Rule Search by Number of Travelers
By default, a Hotel Rule Search processes a request for one adult traveler. However, the number of adult travelers in a request can be modified.
Note: Child travelers can be added to a room and rate request using a Hotel Rate and Rule Search with Children. The number of adults plus the number of children must not exceed a total of 9 (4 adults, 5 children).
Request
A standard Hotel Rule Search request is made to one room. In addition to the minimum required search data, the NumberOfAdults attribute of HotelRulesReq/HotelRulesLookup/HotelRulesModifiers is used to the set the number of adults in the search.
@NumberOfAdults in HotelDetailsReq/HotelRulesModifiers is used to the indicate the number of adults in the booking. @NumberOfAdults is supported by all providers.
In Release 6.1 (Hotel v26.0), Worldspan support @TotalOccupants, which indicates the total number of travelers in the booking, inclusive of both adults and children. This value may be used in place of @NumberOfAdults and /NumberOfChildren.
Note: This attribute is not supported by Galileo and Apollo.
- If the Total Occupants value is greater than the Number of Adults and Number of Children combined, an error is returned: TotalOccupants cannot be greater than sum of Number of Adults, Number of Children.
- If a hotel chain does not support Total Occupants, an error is returned: TOC- NOT SUPPORTED FOR CP.
- If a provider does not support Total Occupants, the modifier is ignored and an error is returned: Total Occupants was ignored, not supported by provider.
NumberOfChildren is used to indicate children and their corresponding ages in the booking.
The number of children must be entered first in the Count attribute, followed by the child age. The number of children in a request can be 1 to 5. The child count must include one age for each child listed in the number of children.
Response
The Hotel Rule Search response returns rules for the specified property with availabilities for the requested number of adults.