Мета поисковики

Выполнение нового поиска

Метод

/air/metasearch

Пример запроса:

RT: https://domain.rezonuniversal.com/api/air/metasearch?key=aaaa&token=aaaabbbbccccddddeeeeffffddddaaaa&refer =Momondo&origin=WAW&destination=BKK&depDate=2016-12-12&retDate=2017-02-01&Class=ECO&adults=2&children=1&Infants=1

OW: https://domain.rezonuniversal.com/api/air/metasearch?key=aaaa&token=aaaabbbbccccddddeeeeffffddddaaaa&refer =Momondo&origin=IEV&destination=TLV&depDate=2016-12-12&Class=ECO&adults=2&children=1&Infants=1

MULTY: https://domain.rezonuniversal.com/api/air/metasearch?key=aaaa&token=aaaabbbbccccddddeeeeffffddddaaaa&refer =Momondo&origin1=WAW&destination1=BKK&depDate1=2016-12-12&origin2=BKK&destination2=MUC&depDate2=2016-12-16&origin3=FRA&destination3=WAW&depDate3=2016-12-18&Class=ECO&adults=2&children=1&Infants=1

Параметры запроса

Описание

domain.rezonuniversal.com

agency domain name

key

Static API key

token

Static API token

refer

Referral [Momondo/TripMyDream]

origin

Departure airport for OW/RT

destination

Arrival airport for OW/RT

depDate

Departure date for OW/ first leg of RT

retDate

Return departure date for RT

origin1 … origin4

Departure airports for multy route

destination1 … destination4

Arrival airport for multy route

depDate1 … depDate4

Departure date for each leg of multy route

adults

Count of adults

children

Count of kids

infants

Count of infants

Class

Cabin class [ECO/BIZ/FIR]

<?xml version="1.0" encoding="UTF-8"?>
<flights xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <flight>
      <price>42307</price>
      <currency>UAH</currency>
      <marketingAirline>TK</marketingAirline>
      <url>https://domain.rezonuniversal.com/DEFAULT_LANGUAGE/AirTickets/BookingForm?hid=ddef5904-72ad-4063-a08f-4b00d68b7b08&amp;VariantId=1367b80b-7a5f-4ed6-84d9-a2c5a838e11e&amp;itemNumber1=1&amp;itemNumber2=1&amp;Momondo=true</url>
      <bookingCode>9750cb95-7c8e-4df5-bc1a-ef9254c8a6bc.dd544175-ad0d-4ba9-a681-84f745ec42d5.1.2035.1</bookingCode>
      <fees>
         <fee>
            <paymentName>Oplata nalichnimi</paymentName>
            <amount>2</amount>
         </fee>
         <fee>
            <paymentName>Avalj</paymentName>
            <amount>423</amount>
         </fee>
         <fee>
            <paymentName>Portmone</paymentName>
            <amount>10</amount>
         </fee>
         <fee>
            <paymentName>Schet dlya fiz lic</paymentName>
            <amount>0</amount>
         </fee>
         <fee>
            <paymentName>TasLink</paymentName>
            <amount>0</amount>
         </fee>
      </fees>
      <segment>
         <leg>
            <operatingAirline>TK</operatingAirline>
            <flightNumber>418</flightNumber>
            <origin>WAW</origin>
            <destination>IST</destination>
            <departureDate>2017-12-12</departureDate>
            <departureTime>14:55</departureTime>
            <arrivalDate>2017-12-12</arrivalDate>
            <arrivalTime>18:10</arrivalTime>
            <equipment>73J</equipment>
            <StartTerminal>A</StartTerminal>
            <EndTerminal>I</EndTerminal>
            <JrnyTm>890</JrnyTm>
            <FltTm>195</FltTm>
            <Miles xsi:nil="true" />
            <NumTecnicalStops>0</NumTecnicalStops>
         </leg>
         <leg>
            <operatingAirline>TK</operatingAirline>
            <flightNumber>64</flightNumber>
            <origin>IST</origin>
            <destination>BKK</destination>
            <departureDate>2017-12-12</departureDate>
            <departureTime>20:40</departureTime>
            <arrivalDate>2017-12-13</arrivalDate>
            <arrivalTime>09:45</arrivalTime>
            <equipment>333</equipment>
            <StartTerminal>I</StartTerminal>
            <JrnyTm>890</JrnyTm>
            <FltTm>545</FltTm>
            <Miles xsi:nil="true" />
            <NumTecnicalStops>0</NumTecnicalStops>
         </leg>
      </segment>
      <segment>
         <leg>
            <operatingAirline>TK</operatingAirline>
            <flightNumber>65</flightNumber>
            <origin>BKK</origin>
            <destination>IST</destination>
            <departureDate>2018-02-01</departureDate>
            <departureTime>11:30</departureTime>
            <arrivalDate>2018-02-01</arrivalDate>
            <arrivalTime>18:25</arrivalTime>
            <equipment>333</equipment>
            <EndTerminal>I</EndTerminal>
            <JrnyTm>1820</JrnyTm>
            <FltTm>655</FltTm>
            <Miles xsi:nil="true" />
            <NumTecnicalStops>0</NumTecnicalStops>
         </leg>
         <leg>
            <operatingAirline>TK</operatingAirline>
            <flightNumber>417</flightNumber>
            <origin>IST</origin>
            <destination>WAW</destination>
            <departureDate>2018-02-02</departureDate>
            <departureTime>10:55</departureTime>
            <arrivalDate>2018-02-02</arrivalDate>
            <arrivalTime>13:50</arrivalTime>
            <equipment>73J</equipment>
            <StartTerminal>I</StartTerminal>
            <EndTerminal>A</EndTerminal>
            <JrnyTm>1820</JrnyTm>
            <FltTm>175</FltTm>
            <Miles xsi:nil="true" />
            <NumTecnicalStops>0</NumTecnicalStops>
         </leg>
      </segment>
      <prices>
         <category>
            <Type>ADT</Type>
            <PassengerCount>2</PassengerCount>
            <FareAmount>3448</FareAmount>
            <Currency>UAH</Currency>
            <Taxes>10801</Taxes>
            <Total>14249</Total>
         </category>
         <category>
            <Type>CNN</Type>
            <PassengerCount>1</PassengerCount>
            <FareAmount>2579</FareAmount>
            <Currency>UAH</Currency>
            <Taxes>10801</Taxes>
            <Total>13380</Total>
         </category>
         <category>
            <Type>INF</Type>
            <PassengerCount>1</PassengerCount>
            <FareAmount>348</FareAmount>
            <Currency>UAH</Currency>
            <Taxes>81</Taxes>
            <Total>429</Total>
         </category>
      </prices>
   </flight>
</flights>

Получение списка направлений

Метод

/air/directions

Параметр запрос

Параметры запроса

Описание

key

Static API key

token

Static API token

refer

Referral [Momondo/TripMyDream]

https://domain.rezonuniversal.com/api/air/directions?key=aaaa&token=aaaabbbbccccddddeeeeffffddddaaaa&refer=Momondo

Ответ содержит пары городов/аэропортов/стран, настроенные агентом в БекОфисе.

<?xml version="1.0" encoding="UTF-8"?>
<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <StatusCode>200</StatusCode>
   <Status>OK</Status>
   <Data xsi:type="ArrayOfAirDirectionPair">
      <AirDirectionPair>
         <StartPt>IEV</StartPt>
         <EndPt>TLV</EndPt>
      </AirDirectionPair>
      <AirDirectionPair>
         <StartPt>IEV</StartPt>
         <EndPt>NYC</EndPt>
      </AirDirectionPair>
      <AirDirectionPair>
         <StartPt>IEV</StartPt>
         <EndPt>BCN</EndPt>
      </AirDirectionPair>
      <AirDirectionPair>
         <StartPt>IEV</StartPt>
         <EndPt>LON</EndPt>
      </AirDirectionPair>
      <AirDirectionPair>
         <StartPt>!UA</StartPt>
         <EndPt>!US</EndPt>
      </AirDirectionPair>
   </Data>
</Response>

Last updated