GetSearchResults

GetSearchResults

Getting the results of a certain search from the avia server.

Request

  • SearchID - ID of the search occasion which results are needed to get. Data type - long.
  • FlightID - flight ID that is needed to get. Data type - string.
  • RawData - attribute of getting XML content of search requests to the supplier (optional). Data type - bool.

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">
   <soapenv:Header/>
   <soapenv:Body>
      <avia:GetSearchResults>
         <avia:Request>
            <stl:Requisites>
               <stl:AuthToken>token</stl:AuthToken>
            </stl:Requisites>
            <stl:UserID>11111</stl:UserID>
            <stl:RequestType>P</stl:RequestType>
            <stl:RequestBody>
               <avia:SearchID>1000014962</avia:SearchID>
               <avia:RawData>false</avia:RawData>
               <avia:SearchContext>
                  <avia:ResultsGrouping>None</avia:ResultsGrouping>
               </avia:SearchContext>
            </stl:RequestBody>
         </avia:Request>
      </avia:GetSearchResults>
   </soapenv:Body>
</soapenv:Envelope>

Response

Includes all fields from the Search response. Also additionally has the following fields:

  • RawData - XML content of search requests to the supplier. Data type - array.
  • RawData.LogData - content of one of the search requests to the supplier. Data type - array.
  • LogData.ServiceLogID - ID of the service log of communication with the supplier. Data type - long.
  • LogData.OriginalSourceID - ID of the source (package), within which this log was received. Data type - int32.
  • LogData.SearchDT - date and time of the search. Data type - DateTime.
  • LogData.RequestName - name of the request to the supplier. Data type - string.
  • LogData.Request - XML content of the request to the supplier. Data type - string.
  • LogData.Response - XML content of the supplier's response. Data type - string.

Sample

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <GetSearchResultsResponse xmlns="http://ws-ibe.com/Avia">
      <GetSearchResultsResult xmlns:a="http://ws-ibe.com/STL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <a:RequestID>10002968401</a:RequestID>
        <a:ResponseBody>
          <SearchData>
            <Now>2019-01-01 23:59:00 +00:00</Now>
            <StartTime>2019-01-01 20:00:00 +00:00</StartTime>
            <IsComplete>true</IsComplete>
            <IsAsync>false</IsAsync>
            <Sources>
              <SourceInfo>
                <ID>1277680</ID>
                <Supplier>GalileoUAPI</Supplier>
              </SourceInfo>
              <SourceInfo>
                <ID>1198015</ID>
                <Supplier>SITAGabriel</Supplier>
              </SourceInfo>
            </Sources>
            <ProcessingData>
              <FlightsFromSuppliersCount>6</FlightsFromSuppliersCount>
              <FlightsFromSuppliersSources>
                <SourceData>
                  <SourceID>1277680</SourceID>
                  <Count>6</Count>
                </SourceData>
              </FlightsFromSuppliersSources>
              <PropogatedFlightsCount>6</PropogatedFlightsCount>
              <PropogatedFlightsSources>
                <SourceData>
                  <SourceID>1111111</SourceID>
                  <Count>6</Count>
                </SourceData>
              </PropogatedFlightsSources>
            </ProcessingData>
          </SearchData>
          <PlaneFlights>
            <Flight>
              <a:ID>11111222222000000</a:ID>
              <SourceID>1111111</SourceID>
              <TypeInfo>
                <Type>Regular</Type>
                <DirectionType>OW</DirectionType>
              </TypeInfo>
              <Segments>
                <Segment>
                  <a:ID>1</a:ID>
                  <DepAirp>
                    <AirportCode>PAR</AirportCode>
                    <CityCode>PAR</CityCode>
                    <UTC>2</UTC>
                  </DepAirp>
                  <ArrAirp>
                    <AirportCode>BCN</AirportCode>
                    <CityCode>BCN</CityCode>
                    <UTC>2</UTC>
                    <Terminal>2</Terminal>
                  </ArrAirp>
                  <FlightNumber>101</FlightNumber>
                  <FlightTime>225</FlightTime>
                  <OpAirline>AY</OpAirline>
                  <MarkAirline>AY</MarkAirline>
                  <AircraftType>788</AircraftType>
                  <DepDateTime>2019-01-28T11:45:00</DepDateTime>
                  <ArrDateTime>2019-01-28T17:30:00</ArrDateTime>
                  <BookingClass>
                    <BaseClass>Economy</BaseClass>
                    <BookingClassCode>U</BookingClassCode>
                    <FreeSeatCount>4</FreeSeatCount>
                  </BookingClass>
                  <ETicket>true</ETicket>
                  <RequestedSegment>0</RequestedSegment>
                </Segment>
              </Segments>
              <PriceInfo>
                <Price>
                  <a:ID>1</a:ID>
                  <ValidatingCompany>AY</ValidatingCompany>
                  <Refundable>Refundable</Refundable>
                  <PrivateFareInd>false</PrivateFareInd>
                  <TicketTimeLimit>2019-05-24T23:59:00</TicketTimeLimit>
                  <PassengerFares>
                    <PassengerFare>
                      <Type>ADT</Type>
                      <Quantity>1</Quantity>
                      <BaseFare>
                        <a:Amount>90</a:Amount>
                        <a:Currency>EUR</a:Currency>
                      </BaseFare>
                      <EquiveFare>
                        <a:Amount>90</a:Amount>
                        <a:Currency>EUR</a:Currency>
                      </EquiveFare>
                      <TotalFare>
                        <a:Amount>90</a:Amount>
                        <a:Currency>EUR</a:Currency>
                      </TotalFare>
                      <Tariffs>
                        <Tariff>
                          <Code>UPR12M</Code>
                          <Type>Public</Type>
                          <SegNum>1</SegNum>
                          <FreeBaggage>
                            <a:Value>30</a:Value>
                            <a:Measure>Kilograms</a:Measure>
                          </FreeBaggage>
                          <FareFamilyDescID>145</FareFamilyDescID>
                        </Tariff>
                      </Tariffs>
                      <FareCalc>Text</FareCalc>
                    </PassengerFare>
                  </PassengerFares>
                </Price>
              </PriceInfo>
            </Flight>
          </PlaneFlights>
          <FareFamiliesDescription>
            <a:Description>
              <a:ID>145</a:ID>
              <a:Name>Name</a:Name>
              <a:UniversalParameters/>
            </a:Description>
          </FareFamiliesDescription>
        </a:ResponseBody>
      </GetSearchResultsResult>
    </GetSearchResultsResponse>
  </s:Body>
</s:Envelope>