ImportPnrFromHost

ImportPnrFromHost

Getting GDS locator, if airline locator provided.

Request

Format description
  • HostLocator — Booking ID in airline host. Data type — string.
  • AirlineCode — Airline code. Data type — string.
  • FlightNumber — Flight number. Data type — string.
  • Source — ID of the source in which PNR is stored. Data type — 32-bit integer.
  • LastName — Passenger's last name in PNR (mandatory). Data type — string.
Examples
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:avia="http://ws-ibe.com/Avia" xmlns:stl="http://ws-ibe.com/STL" xmlns:avia1="http://websky.travel/Avia">
   <soapenv:Header/>
   <soapenv:Body>
      <avia:ImportPnrFromHost>
         <avia:Request>
            <stl:Requisites>
               <stl:AuthToken>token</stl:AuthToken>
            </stl:Requisites>
            <stl:UserID>11111</stl:UserID>
            <stl:RequestType>P</stl:RequestType>
            <stl:RequestBody>
               <avia1:HostLocator>ABCDEF</avia1:HostLocator>
               <avia1:AirlineCode>AY</avia1:AirlineCode>
               <avia1:FlightNumber>205</avia1:FlightNumber>
               <avia1:LastName>VETTEL</avia1:LastName>
               <avia1:Source>-10000</avia1:Source>
            </stl:RequestBody>
         </avia:Request>
      </avia:ImportPnrFromHost>
   </soapenv:Body>
</soapenv:Envelope>

Response

Format Description
  • GdsPnrLocator — Booking locator in GDS. Data type — string.
Examples
<ResponseWithImportPnrFromHostRSBody xmlns="http://ws-ibe.com/STL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <RequestID>1000000067</RequestID>
  <ResponseBody xmlns:a="http://ws.travel/Avia">
    <a:GdsPnrLocator>ABBCCDDEE</a:GdsPnrLocator>
  </ResponseBody>
</ResponseWithImportPnrFromHostRSBody>