ImportBook

ImportBook_2_0

Creation of the booking based on PNR received from the GDS.

ImportBook_2_2

The latest request version, the differences are only in the response in the ancillary services block from Book_2_2 request.

Request

Format Description
  • Source - ID of the source in which the PNR is located, on the basis of which it is required to create the booking. Data type - 32-bit integer:
  • PNRCode - ID of the PNR in the GDS. Data type - string.
  • TicketNumber - the ticket number in the GDS. Data type - string. (Currently supported only in GDS MixvelPlatform. Optional, used only when working with MixvelPlatform. Import is possible by only PNRCode, only TicketNumber or by PNRCode and TicketNumber together.)
  • MainPassengerLastName - last name of the main passenger in the PNR, required parameter while of working with the GDS MixvelPlatform. Data type - string.
  • WithReprice - attribute of the need to actualize the booking price after its creation. Data type - bool.
  • ValidatingCompany - validating company of the booking, needed to the correct booking import in case of situations when different requisites are used in a package for the different airlines. Data type - string.
  • UseFlexFares - attribute of using flex fare families while importing the booking (specific feature of SITA Gabriel). Data type - bool.
  • SourceDescription.Supplier - supplier. Data type - enumeration with air suppliers.
  • SourceDescription.SupplierRequisiteID - booking package ID for the specified supplier, for example, PCC. Data type - non-negative 32-bit integer.
    • AdditionalInformation - a container with additional information. Data type - complex.
  • AdditionalInformation.TripPointInfoList - a container with a list of pairs of airports. Optional parameter used for performance optimization. Data type - complex
  • AdditionalInformation.TripPointInfoList.AirportsPair - pair of airports (3-letter code), for example, BCN-CDG. Data type - string.
Sample
<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" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://websky-ibe.com/STL" xmlns:ns2="http://websky-ibe.com/Avia">
  <soapenv:Header/>
   <soapenv:Body>
    <avia:ImportBook_2_2>
         <avia:Request>
        <stl:Requisites>
               <stl:AuthToken>token</stl:AuthToken>
            </stl:Requisites>
            <stl:UserID>11111</stl:UserID>
            <stl:RequestType>P</stl:RequestType>
            <stl:RequestBody>
               <avia:Source>-11111</avia:Source>
               <avia:PNRCode>ABCDFEF</avia:PNRCode>
               <avia:MainPassengerLastName>VETTEL</avia:MainPassengerLastName>
               <avia:WithReprice>false</avia:WithReprice>
               <avia:ValidatingCompany>AY</avia:ValidatingCompany>
            </stl:RequestBody>
         </avia:Request>
      </avia:ImportBook_2_2>
   </soapenv:Body>
</soapenv:Envelope>

Response

Similar to the booking format of the Book.

Sample
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <ImportBook_2_2Response xmlns="http://ws-ibe.com/Avia">
      <ImportBook_2_2Result xmlns:a="http://ws-ibe.com/STL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <a:RequestID>19656</a:RequestID>
        <a:ResponseBody>
          <a:ID>30067</a:ID>
          <a:OwnerID>30329</a:OwnerID>
          <a:DateInfo>
            <a:Created>2017-06-20 10:06:00  03:00</a:Created>
            <a:LastUpdate>2017-06-20 20:46:42  03:00</a:LastUpdate>
          </a:DateInfo>
          <a:PossibleActions>
            <a:Action>Get</a:Action>
            <a:Action>Update</a:Action>
            <a:Action>GetHistory</a:Action>
            <a:Action>Ticket</a:Action>
            <a:Action>Modify</a:Action>
            <a:Action>Cancel</a:Action>
          </a:PossibleActions>
          <a:Travellers>
            <a:Traveller>
              <a:ID>1</a:ID>
              <a:IDInPNR>2</a:IDInPNR>
              <a:Type>ADT</a:Type>
              <a:NamePrefix>MS</a:NamePrefix>
              <a:Name>ALEXA</a:Name>
              <a:LastName>VETTEL</a:LastName>
              <a:DateOfBirth>01.01.1977</a:DateOfBirth>
              <a:Nationality>DE</a:Nationality>
              <a:Gender>F</a:Gender>
            </a:Traveller>
          </a:Travellers>
          <a:Services>
            <a:Service i:type="a:FlightService">
              <a:ID>0</a:ID>
              <a:SupplierID>ABCDFEF</a:SupplierID>
              <a:Status>Booked</a:Status>
              <a:SubStatus/>
              <a:Type>Regular</a:Type>
              <a:DirectionType>RT</a:DirectionType>
              <a:Segments>
                <a:FlightSegment>
                  <a:ID>0</a:ID>
                  <a:DepatureAirport>
                    <a:Code>PAR</a:Code>
                    <a:CityCode>PAR</a:CityCode>
                    <a:UTC>5</a:UTC>
                  </a:DepatureAirport>
                  <a:ArrivalAirport>
                    <a:Code>DXB</a:Code>
                    <a:SubPointCode>3</a:SubPointCode>
                    <a:CityCode>DXB</a:CityCode>
                    <a:UTC>4</a:UTC>
                  </a:ArrivalAirport>
                  <a:DepatureDateTime>2017-08-31T16:55:00</a:DepatureDateTime>
                  <a:ArrivalDateTime>2017-08-31T22:55:00</a:ArrivalDateTime>
                  <a:FlightNumber>134</a:FlightNumber>
                  <a:AircraftType>77W</a:AircraftType>
                  <a:OperatingAirline>AY</a:OperatingAirline>
                  <a:MarketingAirline>AY</a:MarketingAirline>
                  <a:ETicket>true</a:ETicket>
                  <a:BookingClassCode>T</a:BookingClassCode>
                  <a:Status>Confirmed</a:Status>
                  <a:StatusCode>HK</a:StatusCode>
                  <a:SupplierRef>ABCCCCC</a:SupplierRef>
                  <a:RequestedSegment>0</a:RequestedSegment>
                </a:FlightSegment>
                <a:FlightSegment>
                  <a:ID>1</a:ID>
                  <a:DepatureAirport>
                    <a:Code>DXB</a:Code>
                    <a:SubPointCode>3</a:SubPointCode>
                    <a:CityCode>DXB</a:CityCode>
                    <a:UTC>4</a:UTC>
                  </a:DepatureAirport>
                  <a:ArrivalAirport>
                    <a:Code>PAR</a:Code>
                    <a:SubPointCode>I</a:SubPointCode>
                    <a:CityCode>PAR</a:CityCode>
                    <a:UTC>7</a:UTC>
                  </a:ArrivalAirport>
                  <a:DepatureDateTime>2017-09-01T10:30:00</a:DepatureDateTime>
                  <a:ArrivalDateTime>2017-09-01T20:00:00</a:ArrivalDateTime>
                  <a:FlightNumber>378</a:FlightNumber>
                  <a:AircraftType>77W</a:AircraftType>
                  <a:OperatingAirline>AY</a:OperatingAirline>
                  <a:MarketingAirline>AY</a:MarketingAirline>
                  <a:ETicket>true</a:ETicket>
                  <a:BookingClassCode>T</a:BookingClassCode>
                  <a:Status>Confirmed</a:Status>
                  <a:StatusCode>HK</a:StatusCode>
                  <a:SupplierRef>ABCDDA</a:SupplierRef>
                  <a:RequestedSegment>1</a:RequestedSegment>
                </a:FlightSegment>
              </a:Segments>
            </a:Service>
          </a:Services>
          <a:Price>
            <a:TotalPrice>
              <a:Amount>210</a:Amount>
              <a:Currency>EUR</a:Currency>
            </a:TotalPrice>
            <a:PriceBreakdown>
              <a:PricePart>
                <a:ServiceRef>
                  <a:Ref>0</a:Ref>
                </a:ServiceRef>
                <a:TotalPrice>
                  <a:Amount>210</a:Amount>
                  <a:Currency>EUR</a:Currency>
                </a:TotalPrice>
                <a:ValidatingCompany>AY</a:ValidatingCompany>
                <a:Refundable>Unknown</a:Refundable>
                <a:PassengerTypePriceBreakdown>
                  <a:PassengerTypePrice>
                    <a:TravellerRef>
                      <a:Ref>1</a:Ref>
                    </a:TravellerRef>
                    <a:PricingType>ADT</a:PricingType>
                    <a:BaseFare>
                      <a:Amount>190</a:Amount>
                      <a:Currency>EUR</a:Currency>
                    </a:BaseFare>
                    <a:EquiveFare>
                      <a:Amount>190</a:Amount>
                      <a:Currency>EUR</a:Currency>
                    </a:EquiveFare>
                    <a:TotalFare>
                      <a:Amount>210</a:Amount>
                      <a:Currency>EUR</a:Currency>
                    </a:TotalFare>
                    <a:Taxes>
                      <a:Tax>
                        <a:Amount>10</a:Amount>
                        <a:Currency>EUR</a:Currency>
                        <a:TaxCode>YQ</a:TaxCode>
                        <a:Type>X</a:Type>
                      </a:Tax>
                      <a:Tax>
                        <a:Amount>10</a:Amount>
                        <a:Currency>EUR</a:Currency>
                        <a:TaxCode>YR</a:TaxCode>
                        <a:Type>X</a:Type>
                      </a:Tax>
                    </a:Taxes>
                    <a:Tariffs>
                      <a:Tariff i:type="a:AirTariff">
                        <a:Code>TEEMPRU1</a:Code>
                        <a:Type>Public</a:Type>
                        <a:ClassOfService>Economy</a:ClassOfService>
                        <a:BookingClassCode>T</a:BookingClassCode>
                        <a:SegmentID>0</a:SegmentID>
                        <a:FreeBaggage>
                          <a:Value>30</a:Value>
                          <a:Measure>Kilograms</a:Measure>
                        </a:FreeBaggage>
                      </a:Tariff>
                      <a:Tariff i:type="a:AirTariff">
                        <a:Code>TEEMPRU1</a:Code>
                        <a:Type>Public</a:Type>
                        <a:ClassOfService>Economy</a:ClassOfService>
                        <a:BookingClassCode>T</a:BookingClassCode>
                        <a:SegmentID>1</a:SegmentID>
                        <a:FreeBaggage>
                          <a:Value>30</a:Value>
                          <a:Measure>Kilograms</a:Measure>
                        </a:FreeBaggage>
                      </a:Tariff>
                    </a:Tariffs>
                    <a:FareCalc>Text</a:FareCalc>
                  </a:PassengerTypePrice>
                </a:PassengerTypePriceBreakdown>
              </a:PricePart>
            </a:PriceBreakdown>
          </a:Price>
          <a:DataItems>
            <a:DataItem>
              <a:ID>0</a:ID>
              <a:Type>SourceInfo</a:Type>
              <a:SourceInfo>
                <a:ID>5675675678</a:ID>
                <a:BookingSupplierAgencyID>AAAA28CL</a:BookingSupplierAgencyID>
                <a:TicketingSupplierAgencyID i:nil="true"/>
                <a:Supplier>Amadeus</a:Supplier>
                <a:Environment>TEST</a:Environment>
              </a:SourceInfo>
            </a:DataItem>
            <a:DataItem>
              <a:ID>1</a:ID>
              <a:Type>TL</a:Type>
              <a:TimeLimits>
                <a:EffectiveTimeLimit>2017-06-23 20:59:00  05:00</a:EffectiveTimeLimit>
                <a:PriceTimeLimit>2017-06-23 20:59:00  05:00</a:PriceTimeLimit>
              </a:TimeLimits>
            </a:DataItem>
            <a:DataItem>
              <a:ID>2</a:ID>
              <a:Type>ValidatingCompany</a:Type>
              <a:ValidatingCompany>
                <a:Code>AY</a:Code>
              </a:ValidatingCompany>
            </a:DataItem>
            <a:DataItem>
              <a:ID>3</a:ID>
              <a:TravellerRef>
                <a:Ref>1</a:Ref>
              </a:TravellerRef>
              <a:Type>IDDocument</a:Type>
              <a:Document>
                <a:Type>InternationalPassport</a:Type>
                <a:Number>C8W83GGG1</a:Number>
                <a:IssueCountryCode>DE</a:IssueCountryCode>
                <a:ElapsedTime>06.06.2019</a:ElapsedTime>
                <a:AddedAsDOCS>true</a:AddedAsDOCS>
              </a:Document>
            </a:DataItem>
            <a:DataItem>
              <a:ID>4</a:ID>
              <a:TravellerRef>
                <a:Ref>1</a:Ref>
              </a:TravellerRef>
              <a:Type>ContactInfo</a:Type>
              <a:ContactInfo>
                <a:Telephone>
                  <a:Type>M</a:Type>
                  <a:PhoneNumber>+4915903777777</a:PhoneNumber>
                </a:Telephone>
              </a:ContactInfo>
            </a:DataItem>
          </a:DataItems>
        </a:ResponseBody>
      </ImportBook_2_2Result>
    </ImportBook_2_2Response>
  </s:Body>
</s:Envelope>