Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Hotel Booking Retrieval Import request is used to import booking record that was made in the supplier's system from this system to GP Travel HUB.

OTA_HotelResRQ:

*mandatory

Element

Attribute

Type

Description

Min…Max occurs

PrimaryLangID

For more information see Common Data Description section in Glossary.

0…1

ResStatus*

string ("Import")

Must be always "Import" for that step.

1...1

HotelReservations/ HotelReservation

Include the information about the booking imported.

0...*

HotelReservations/ HotelReservation/ ResGlobalInfo/ HotelReservationIDs/ HotelReservationID*

Element should be used several times in this request with attributes that have different values every time.

2…3

ResID_Source*

string (“agent“, “client“, “supplier“)

Info

Note: HotelReservationID for Agent is not mandatory for import, but “client“ and “supplier“ must be identified.

1…1

ResID_SourceContext

string

Сontains the supplier's name. Mandatory only if ResID_Source - “supplier“.

0…1

ResID_Value*

string

Preferred identifier in client system.

1…1

Expand
titleHotel Booking Retrieval Import Request Sample XML
Code Block
languagexml
<OTA_HotelResRQ EchoToken="tok1EchoToken" ResStatus="Import" Version="2" xmlns="http://www.opentravel.org/OTA/2003/05">
   <POS>
      <Source>
         <RequestorID ID="client" MessagePassword="pwd" Type="22"/>
         <BookingChannel Type="7"/>
      </Source>
   </POS>
   <HotelReservations>
      <HotelReservation>
         <ResGlobalInfo>
            <HotelReservationIDs>
               <HotelReservationID ResID_Source="client" ResID_Value="c06118b"/>
               <HotelReservationID ResID_Source="supplier" ResID_SourceContext="hotelbeds" ResID_Value="1-3086905"/>
            </HotelReservationIDs>
         </ResGlobalInfo>
      </HotelReservation>
   </HotelReservations>
</OTA_HotelResRQ>