Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 5 Next »

Hotel Availability Request is used to check rooms availability and prices for the requested hotel(s) or for the hotels in the requested area for a certain range of dates and passengers group.

OTA_HotelAvailRQ:

*mandatory

Element

Attribute

Type

Description

Min…Max occurs

AvailRatesOnly*

boolean

If it is set to "true", it is used to search for available hotels only that could be immediately confirmed.

If it is set to "false", it is used to search for all hotels including hotels with "on request" availability.

1…1

ShowCharges

boolean (default - false)

Influences on CancellationPenalties block's appearance on Hotel Availability Response.

Note: This functionality supported for limited suppliers. Please check with GP Travel HUB development if you are interested in specific supplier.

0…1

PrimaryLangID

For more information see Common Data Description section in Glossary.

RateRangeOnly*

boolean (always false)

А special option that allows to request price breakdown for selected hotel (see HotelPriceBreakdown).

1…1

RequestedCurrency

For more information see Common Data Description section in Glossary.

BestOnly*

bollean (default - false)

Indicates the response message should send back only the best rate available at the hotel property, as there could be multiple room types and rates that meet the requested criteria.

1…1

PackageRate

boolean (default - false)

Indicates if package rates should be included in response. Possible values are "true" (include package rates), and "false" (don't include package rates).

Note: The Package Rates only can be used in a package with another item in your system. Normally the price of the hotel cannot be displayed; you only can display the price of the package without breaking down the rates. Package Rates is a point of contract with supplier.

0…1

AllowPartialAvail 

boolean (default - false)

If it is set to true HUB returns part of all available offers (pagination search). Available request can be repeated until all offers is returned. If it is set to false then usual search is done with all available offers. It works only with search by location. 

Note: This functionality supported for limited suppliers. Please check with GP Travel HUB development if you are interested in specific supplier.

0…1

AvailRequestSegments/ AvailRequestSegment:*

1…1

OTA_HotelAvailRQ/AvailRequestSegments/AvailRequestSegment*:

Element

Attribute

Type

Description

Min…Max occurs

MoreDataEchoToken

string (1 - 128)

Should be specified only if the AllowPartialAvail=true in request. Attribute identifies where the data with offers which was not loaded in primary availability request is located.

Note: This functionality supported for limited suppliers. Please check with GP Travel HUB development if you are interested in specific supplier.

0…1

StayDateRange*

Start*

yyyy-mm-dd

Start date of staying in hotel.

1…1

End*

yyyy-mm-dd

End date of staying in hotel.

1…1

RatePlanCandidates/RatePlanCandidate

Note: This functionality supported for limited suppliers. Please check with GP Travel HUB development if you are interested in specific supplier.

0…*

RatePlanCode

string

0…1

PromotionCode

string

0…1

RoomStayCandidates/ RoomStayCandidate*

Describes guests for accommodation. Multiple RoomStayCandidate elements must be defined to perform multi search for different rooms.

1…*

HotelSearchCriteria/Criterion

Specifies hotel geographical coordinates.

1…*

OTA_HotelAvailRQ/AvailRequestSegments/AvailRequestSegment/RoomStayCandidates/RoomStayCandidate*:

Element

Attribute

Type

Description

Min…Max occurs

Quantity*

integer (default - 1)

 The number of requested rooms for particular guest set. Quantity attribute must be always "1" since HUB 5.4.0. 

1…1

RPH*

integer (default - 1)

A special identifier of requested rooms. Also, RPH identifies the offers related to search accommodation set in the response. If the multi search is performed, the RPHs should be unique for each room.

1…1

GuestCounts/GuestCount*

Paxes in one room.  

1…*

AgeQualifyingCode*

For more information see Common Data Description section in Glossary.

Count*

integer

Specifies the number of tourists of defined age group.

Note: Count attribute must always be "1" for children and infants. If you need to add several children in the request then there must be a GuestCount element created for each child (infant). You are not allowed to describe two children in one GuestCount element even if they are the same age.

1…1

Age

integer (0 - 150)

Optional attribute; but if a tourist is a child or infant, it is required to specify his/her age. It is assumed that this is full child age on a date of check out from hotel.

0…1

OTA_HotelAvailRQ/AvailRequestSegments/AvailRequestSegment/HotelSearchCriteria/Criterion:

Element

Attribute

Type

Description

Min…Max occurs

Position

Specifies position of the hotel.

0…1

Latitude*

string (1 - 16)

Specifies the north–south position of a point on the Earth's surface.

1…1

Longitude*

string (1 - 16)

Specifies the east–west position of a point on the Earth's surface.

1…1

HotelRef*

1…1

HotelCityCode

string

City code where hotels to search.

0…1

HotelCodeContext*

string (1-64)

Specifies the context the HotelCityCode and HotelCode should be taken from (GEO, supplier code, customer code).

1…1

AreaID

string

Is Country Code.

0…1

HotelCode

string (1-64)

Hotel code, if you already know it and would like to check available offers for certain hotel. Please note that hotel code depends on vendor.

0…1

HotelName

string

Is a part of hotel name. GP Travel HUB uses 'inclusive' search for hotel name.

0…1

ChainCode

string (1-64)

Is a code of hotel chain.

0…1

MapArea

0…1

NorthLatitude*

string (1 - 16)

The latitude of the northern boundary of the map.

1…1

SouthLatitude*

string (1 - 16)

The latitude of the southern boundary of the map.

1…1

EastLongitude*

string (1 - 16)

The longitude of the eastern boundary of the map.

1…1

WestLongitude*

string (1 - 16)

The longitude of the eastern boundary of the map.

1…1

Radius

0…1

Distance*

integer

Contains distance to the nearest important places.

1…1

UnitOfMeasureCode*

integer (1 - mile, 2 - km)

Units of measure. GP HUB uses standard OTA code "Unit of Measure Code (UOM)".

1…1

Award

Describes the required hotel rating.

0…1

Rating*

integer (0 - 5)

Number of stars. If specified, the search results will include hotels with official star rating greater or equal to defined value.

1…1

Service

Describes the required hotel or room service. In case it specified in request, GP Travel HUB returns only the offers where the services provided. In case several Service elements included in the request, GP Travel HUB returns only the offers where all the included services provided.

0…99

ServiceType*

string ("Hotel", "Room")

Identifies if the service should relate with room or hotel.

1…1

Code*

integer (0 - 1000)

The standard OTA service code. If the ServiceType is "Hotel", then the Code refers to OTA List "Hotel Amenity Code (HAC)". If the ServiceType is "Room", then the Code refers to OTA List "Room Amenity Code (RMA)".

1…1

Quantity

integer

Contains numeric information about service. For example: amount of swimming pools; year of most recent renovation; room size (sqm), etc.

0…1

Profiles/ProfileInfo/Profile/Customer/CitizenCountryName

For some suppliers it is necessary to provide country of domicile for correct pricing. Should contain ISO country code which is tour lead's country of domicile.

0…2

Code

string (2 - 3)

0…1

 Availability Request Sample XML - Search by hotel code 2 adults + 1 child
<OTA_HotelAvailRQ AvailRatesOnly="false" EchoToken="tok1" PrimaryLangID="en" BestOnly="false" RateRangeOnly="false" RequestedCurrency="EUR" PackageRate="true" Version="2">
   <POS>
      <Source>
         <RequestorID ID="client" MessagePassword="pwd" Type="22"/>
         <BookingChannel Type="7" PriceDomain="1"/>
      </Source>
   </POS>
   <AvailRequestSegments>
      <AvailRequestSegment>
         <StayDateRange Start="2020-05-18" End="2020-05-22"/>
         <RoomStayCandidates>
            <RoomStayCandidate Quantity="1" RPH="1">
               <GuestCounts>
                  <GuestCount AgeQualifyingCode="10" Count="2"/>
                  <GuestCount AgeQualifyingCode="8" Count="1" Age="4"/>
               </GuestCounts>
            </RoomStayCandidate>
         </RoomStayCandidates>
         <HotelSearchCriteria>
            <Criterion>
               <HotelRef HotelCityCode="LON" HotelCode="157292" HotelCodeContext="supplierCode"/>
               <Award Rating="3"/>
               <Service Code="80" ServiceType="Hotel"/>
               <Profiles>
                  <ProfileInfo>
                     <UniqueID ID="1" Type="1"/>
                     <Profile>
                        <Customer>
                           <PersonName>
                              <NamePrefix>Mr</NamePrefix>
                              <GivenName>TourLeadName</GivenName>
                              <Surname>TourLeadSurname</Surname>
                           </PersonName>
                           <Address>
                              <AddressLine>TourLeadAddress</AddressLine>
                              <CityName>TourLeadCity</CityName>
                              <PostalCode>TourLeadPostal</PostalCode>
                              <CountryName/>
                           </Address>
                           <CitizenCountryName Code="GB"/>
                        </Customer>
                     </Profile>
                  </ProfileInfo>
               </Profiles>
            </Criterion>
         </HotelSearchCriteria>
      </AvailRequestSegment>
   </AvailRequestSegments>
</OTA_HotelAvailRQ>
 Multibooking Availability Request Sample XML - Search by GEO code 1 room: 2 adults 1 child; 2 room: 2 adults 2 children
<OTA_HotelAvailRQ AvailRatesOnly="false" BestOnly="false" EchoToken="tok1" PrimaryLangID="en" RateRangeOnly="false" Version="2" xmlns="http://www.opentravel.org/OTA/2003/05">
   <POS>
      <Source>
         <RequestorID ID="client" MessagePassword="pwd" Type="22"/>
         <RequestorOptions>
            <RequestorOption Name="MultiSearch" Value="true"/>
         </RequestorOptions>
      </Source>
   </POS>
   <AvailRequestSegments>
      <AvailRequestSegment>
         <StayDateRange End="2022-11-02" Start="2022-11-01"/>
         <RoomStayCandidates>
            <RoomStayCandidate Quantity="1" RPH="1">
               <GuestCounts>
                  <GuestCount AgeQualifyingCode="10" Count="2"/>
                  <GuestCount Age="2" AgeQualifyingCode="8" Count="1"/>
               </GuestCounts>
            </RoomStayCandidate>
            <RoomStayCandidate Quantity="1" RPH="2">
               <GuestCounts>
                  <GuestCount AgeQualifyingCode="10" Count="2"/>
                  <GuestCount Age="3" AgeQualifyingCode="8" Count="1"/>
                  <GuestCount Age="6" AgeQualifyingCode="8" Count="1"/>
               </GuestCounts>
            </RoomStayCandidate>
         </RoomStayCandidates>
         <HotelSearchCriteria>
            <Criterion>
               <HotelRef HotelCityCode="23707" HotelCodeContext="GEO.supplierCode"/>
            </Criterion>
         </HotelSearchCriteria>
      </AvailRequestSegment>
   </AvailRequestSegments>
</OTA_HotelAvailRQ>
  • No labels