Master-Interlook:IntegrationService (en) — различия между версиями

Материал из Megatec
Перейти к: навигация, поиск
[досмотренная версия][досмотренная версия]
(Методы работы со справочниками)
(Метод работы с квотами)
 
(не показано 12 промежуточных версий этого же участника)
Строка 101: Строка 101:
 
Rebooking of a tour occurs if the request contains the parameters ExternalId, ID is already available in the Interlook database.<br /><br />
 
Rebooking of a tour occurs if the request contains the parameters ExternalId, ID is already available in the Interlook database.<br /><br />
 
Accepted request parameters ( '''*''' – required):
 
Accepted request parameters ( '''*''' – required):
* '''Guid *''' – authentification ID (returns when requesting the [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]] method)
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 
* '''Reserv *''' – class – object of the tour  
 
* '''Reserv *''' – class – object of the tour  
 
** '''HasInvoices  *''' – is the tour invoice issued
 
** '''HasInvoices  *''' – is the tour invoice issued
Строка 110: Строка 110:
 
** '''TouristServices *''' – an array of services, used by tourists
 
** '''TouristServices *''' – an array of services, used by tourists
 
*** '''TouristService *''' – a separate service, used by tourists
 
*** '''TouristService *''' – a separate service, used by tourists
**** '''TouristRoomNumber''' – the number of the room. If the accommodation is, for example, Double, then we specify the same room number for each tourist. For other services we leave the field empty.
+
**** '''TouristRoomNumber''' – the number of the room. If the accommodation is, for example, Double, then we specify the same room number for each tourist. For other services we leave the field empty.
 
**** '''TouristID *''' – the ID of the tourist
 
**** '''TouristID *''' – the ID of the tourist
 
**** '''ServiceID *''' – the ID of the service  
 
**** '''ServiceID *''' – the ID of the service  
Строка 124: Строка 124:
 
***** '''ID *''' – id of service using for binding the service to the tourists
 
***** '''ID *''' – id of service using for binding the service to the tourists
 
***** '''Hotel *''' – array of data hotel
 
***** '''Hotel *''' – array of data hotel
****** '''AdditionalParams''' – o AdditionalParams – additional parameters (providing as pair key – value)
+
****** '''AdditionalParams''' – additional parameters (providing as pair key – value)
 
******* '''ParameterPair Key''' – key
 
******* '''ParameterPair Key''' – key
 
******** '''Value''' – value
 
******** '''Value''' – value
Строка 143: Строка 143:
 
***** '''ID *''' – id of service using for binding the service to the tourists
 
***** '''ID *''' – id of service using for binding the service to the tourists
 
***** '''Transfer *''' – array of data Transfer
 
***** '''Transfer *''' – array of data Transfer
****** '''ID *''' – key of transfer from table TransferDirecions (returns in the request for the method [[Master-Interlook:IntegrationService (en)#GetTransfers (получение списка трансферов)|GetTransfers]])
+
****** '''ID *''' – key of transfer from table TransferDirecions (returns in the request for the method [[Master-Interlook:IntegrationService (en)#GetTransfers (Receiving the list of the transfers by parameters)|GetTransfers]])
 
***** '''Transport *''' – array of data Transport
 
***** '''Transport *''' – array of data Transport
 
****** '''ID *''' – key of transport from table Transport
 
****** '''ID *''' – key of transport from table Transport
Строка 155: Строка 155:
 
***** '''Duration''' – duration of service. If the parameter is not sent, it is considered Duration=1
 
***** '''Duration''' – duration of service. If the parameter is not sent, it is considered Duration=1
 
***** '''ID *''' – id of service using for binding the service to the tourists
 
***** '''ID *''' – id of service using for binding the service to the tourists
***** '''Code *''' – code of the service (return in the request for method [[Master-Interlook:IntegrationService (en)#GetExtraService (получение списка сервисов)|GetExtraService]])   
+
***** '''Code *''' – code of the service (return in the request for method [[Master-Interlook:IntegrationService (en)#GetExtraServices (Receiving the list of additional services including services of AdHot type)|GetExtraService]])   
 
**** '''ExcursionService''' - parameters for the service type '''Excursion'''
 
**** '''ExcursionService''' - parameters for the service type '''Excursion'''
 
***** '''ExternalID''' – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter.
 
***** '''ExternalID''' – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter.
Строка 165: Строка 165:
 
***** '''Duration''' – duration of service. If the parameter is not sent, it is considered Duration=1
 
***** '''Duration''' – duration of service. If the parameter is not sent, it is considered Duration=1
 
***** '''ID *''' – id of service using for binding the service to the tourists
 
***** '''ID *''' – id of service using for binding the service to the tourists
***** '''ExcursionID *''' – id of excursion (returns in the request for method [[Master-Interlook:IntegrationService (en)#GetExcursions (получение списка экскурсий)|GetExcursions]])<br />     
+
***** '''ExcursionID *''' – id of excursion (returns in the request for method [[Master-Interlook:IntegrationService (en)#GetExcursions (Receiving the list of the excursions by parameters)|GetExcursions]])<br />     
 
***** '''CountryID'''  – – id of country, if it is not transmitted, then receive -1 in response  
 
***** '''CountryID'''  – – id of country, if it is not transmitted, then receive -1 in response  
 
***** '''CityID''' – id of city
 
***** '''CityID''' – id of city
Строка 1227: Строка 1227:
 
</div></div><br />
 
</div></div><br />
  
===GetReservation (Получение путевки по ключу)===
+
===GetReservation (Getting the reservation by key)===
Метод производит получение информации по путевке по ключу путевки.<br />
+
The method receives information about the reservation by the reservation key.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' – required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DgKey *''' – ключ путевки
+
* '''DgKey *''' – key of the reservation
Возвращаемый результат:<br />
+
Returning result:<br />
* '''HasInvoices''' – выставлен ли счет по путевке
+
* '''HasInvoices''' – is the tour invoice issued
** '''true''' – счет выставлен
+
** '''true''' – is issued
** '''false''' – счет не выставлен
+
** '''false''' – is not issued
* '''AgentDiscount''' – скидка агента
+
* '''AgentDiscount''' – agent discount
* '''Rate''' – валюта путевки
+
* '''Rate''' – currency of the tour
** '''Name''' – название валюты
+
** '''Name''' – name of the currency
** '''ID''' – идентификатор валюты
+
** '''ID''' – id of the currency
** '''Description''' – описание валюты
+
** '''Description''' – description of the currency
** '''NameLat''' – наименование валюты латиницей
+
** '''NameLat''' – name of the currency in Latin
** '''Code''' – код валюты
+
** '''Code''' – code of the currency
** '''CodeLat''' – код валюты латиницей
+
** '''CodeLat''' – code of the currency in Latin
** '''Unicode''' – код ISO для валюты
+
** '''Unicode''' – ISO-code for the currency
** '''IsMain''' – является ли валюта главной ('''true''' – является, '''false''' – не является)
+
** '''IsMain''' – is the currency main  ('''true''' – is, '''false''' – is not)
** '''IsNational''' – является ли валюта национальной ('''true''' – является, '''false''' – не является)
+
** '''IsNational''' – is the currency national ('''true''' – is, '''false''' – is not)
* '''TouristServices''' – массив услуг, используемых туристами
+
* '''TouristServices''' – array of services, using by tourists
** '''TouristService''' – отдельная услуга, используемая туристом
+
** '''TouristService''' – parate service, using by tourist
*** '''ID''' – идентификатор услуги, используемой туристом
+
*** '''ID''' – id of service, using by tourist
*** '''TouristRoomNumber''' – номер комнаты
+
*** '''TouristRoomNumber''' – number of room
*** '''TouristID''' – идентификатор туриста (''-1'' для новой путевки)
+
*** '''TouristID''' – id of the tourist (''-1'' for the new tour)
*** '''ServiceID''' – идентификатор услуги (''-1'' для новой путевки)
+
*** '''
* '''Services''' – массив услуг по путевке (определенного типа, в зависимости от типа услуги, например: '''ExcursionService''', '''ExtraService''', '''HotelService''', '''TransferService''')
 
** '''HotelService''' – параметры для услуги типа HotelService
 
*** '''ExternalID''' –  не используется
 
*** '''Price''' – цена брутто
 
*** '''NMen''' – количество взрослых туристов
 
*** '''Partner''' – массив данных партнера
 
**** '''Name''' – наименование партнера
 
**** '''ID''' – идентификатор партнера
 
**** '''Description''' – описание партнера
 
**** '''NameLat''' – наименование партнера латиницей
 
**** '''Code''' – код партнера
 
**** '''CodeLat''' – код партнера латиницей
 
**** '''Unicode''' – код ISO партнера
 
**** '''PartnersGroupID''' – идентификатор группы партнера
 
**** '''FullName''' – полное наименование партнера
 
**** '''Fax''' – факс партнера
 
**** '''Address''' – адрес партнера
 
**** '''Zip''' – почтовый код партнера
 
**** '''Email''' – email партнера
 
**** ''
 
 
                   <PartnerID>1035</PartnerID>
 
                   <PartnerID>1035</PartnerID>
 
                   <Quota>NotChecked</Quota>
 
                   <Quota>NotChecked</Quota>
 
                   <PacketKey>0</PacketKey>
 
                   <PacketKey>0</PacketKey>
 
                   <AdditionalParams>
 
                   <AdditionalParams>
                    <ParameterPair Key="HotelDlKey">
 
                        <Value xsi:type="xsd:int">168804</Value>
 
                    </ParameterPair>
 
 
                     <ParameterPair Key="ContractPrKey">
 
                     <ParameterPair Key="ContractPrKey">
                         <Value xsi:type="xsd:int">1035</Value>
+
                         <Value xsi:type="xsd:int">2930</Value>
 
                     </ParameterPair>
 
                     </ParameterPair>
                  </AdditionalParams>
+
                    <ParameterPair Key="CancellationPolicy">
                  <DetailBrutto>(100,00(0-120)[Регресс] * 2 pax * 1 days) = 200,00</DetailBrutto>
+
                        <Value xsi:type="ArrayOfPenaltyCost">
                  <Notes/>
+
                          <PenaltyCost>
                  <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
+
                              <PolicyKey>-1</PolicyKey>
                  <StartDate>2022-08-23T00:00:00</StartDate>
+
                              <DateFrom xsi:nil="true"/>
                  <StartDay xsi:nil="true"/>
+
                              <DateTo>2022-08-15T00:00:00</DateTo>
                  <Duration>1</Duration>
+
                              <PenaltyValue>0</PenaltyValue>
                  <RateBrutto>EU</RateBrutto>
+
                              <IsPercent>false</IsPercent>
                  <Brutto>200</Brutto>
+
                              <TotalPenalty>0</TotalPenalty>
                  <ServiceClassID>79</ServiceClassID>
+
                              <Description>If canceled before 15.08.2022, no penalty Penalty value is 0.00 EU</Description>
                  <TouristCount>2</TouristCount>
+
                          </PenaltyCost>
                  <ID>168807</ID>
+
                          <PenaltyCost>
                  <Status>
+
                              <PolicyKey>125</PolicyKey>
                    <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
+
                              <DateFrom>2022-08-15T00:00:00</DateFrom>
                    <ID>1</ID>
+
                              <DateTo>2022-08-16T23:59:59</DateTo>
                  </Status>
+
                              <PenaltyValue>6</PenaltyValue>
                  <CityKey>80</CityKey>
+
                              <IsPercent>true</IsPercent>
                  <IsPackage>false</IsPackage>
+
                              <TotalPenalty>231</TotalPenalty>
                  <Code>694</Code>
+
                              <Description>If canceled in period 15.08.2022 - 16.08.2022, the penalty will be  6.00 % of the cost of accommodation Penalty value is 231.00 EU</Description>
                  <HasDuration>false</HasDuration>
+
                          </PenaltyCost>
              </Service>
+
                          <PenaltyCost>
              <Service xsi:type="ExtraService">
+
                              <PolicyKey>200</PolicyKey>
                  <ExternalID xsi:nil="true"/>
+
                              <DateFrom>2022-08-17T00:00:00</DateFrom>
                  <Price>478</Price>
+
                              <DateTo>2022-08-17T23:59:59</DateTo>
                  <NMen>2</NMen>
+
                              <PenaltyValue>11</PenaltyValue>
                  <PartnerID>1035</PartnerID>
+
                              <IsPercent>true</IsPercent>
                  <Quota>NotChecked</Quota>
+
                              <TotalPenalty>423.5</TotalPenalty>
                  <PacketKey>0</PacketKey>
+
                              <Description>If canceled in period 17.08.2022 - 17.08.2022, the penalty will be  11.00 % of the cost of accommodation Penalty value is 423.50 EU</Description>
                  <AdditionalParams>
+
                          </PenaltyCost>
                    <ParameterPair Key="HotelDlKey">
+
                          <PenaltyCost>
                        <Value xsi:type="xsd:int">168804</Value>
+
                              <PolicyKey>123</PolicyKey>
                    </ParameterPair>
+
                              <DateFrom>2022-08-18T00:00:00</DateFrom>
                    <ParameterPair Key="ContractPrKey">
+
                              <DateTo>2022-08-19T23:59:59</DateTo>
                        <Value xsi:type="xsd:int">2930</Value>
+
                              <PenaltyValue>20</PenaltyValue>
 +
                              <IsPercent>true</IsPercent>
 +
                              <TotalPenalty>770</TotalPenalty>
 +
                              <Description>If canceled in period 18.08.2022 - 19.08.2022, the penalty will be  20.00 % of the cost of accommodation Penalty value is 770.00 EU</Description>
 +
                          </PenaltyCost>
 +
                          <PenaltyCost>
 +
                              <PolicyKey>208</PolicyKey>
 +
                              <DateFrom>2022-08-20T00:00:00</DateFrom>
 +
                              <DateTo xsi:nil="true"/>
 +
                              <PenaltyValue>20</PenaltyValue>
 +
                              <IsPercent>true</IsPercent>
 +
                              <TotalPenalty>770</TotalPenalty>
 +
                              <Description>If canceled from 20.08.2022, the penalty will be 20.00 % of the cost of accommodation Penalty value is 770.00 EU</Description>
 +
                          </PenaltyCost>
 +
                        </Value>
 
                     </ParameterPair>
 
                     </ParameterPair>
 
                   </AdditionalParams>
 
                   </AdditionalParams>
                   <DetailBrutto>(239,00(0-120)[тестэкстрарэд220822] * 2 pax * 1 days) = 478,00</DetailBrutto>
+
                   <DetailBrutto>(550,00[kolesnyk2/kolesnyk2]*7) * 1 room = 3850,00</DetailBrutto>
 
                   <Notes/>
 
                   <Notes/>
                   <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
+
                   <Name>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB</Name>
                   <StartDate>2022-08-22T00:00:00</StartDate>
+
                   <StartDate>2022-08-20T00:00:00</StartDate>
 
                   <StartDay xsi:nil="true"/>
 
                   <StartDay xsi:nil="true"/>
                   <Duration>1</Duration>
+
                   <Duration>8</Duration>
 
                   <RateBrutto>EU</RateBrutto>
 
                   <RateBrutto>EU</RateBrutto>
                   <Brutto>478</Brutto>
+
                   <Brutto>3850</Brutto>
                   <ServiceClassID>102</ServiceClassID>
+
                   <ServiceClassID>0</ServiceClassID>
 
                   <TouristCount>2</TouristCount>
 
                   <TouristCount>2</TouristCount>
                   <ID>168803</ID>
+
                   <ID>168804</ID>
 
                   <Status>
 
                   <Status>
                     <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
+
                     <Name>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB</Name>
 
                     <ID>1</ID>
 
                     <ID>1</ID>
 
                   </Status>
 
                   </Status>
                   <CityKey>80</CityKey>
+
                   <Hotel>
                  <IsPackage>false</IsPackage>
+
                    <Name>Red</Name>
                  <Code>713</Code>
+
                    <ID>2930</ID>
                  <HasDuration>false</HasDuration>
+
                    <Description>4 stars (A)  (Ukraine\Kiev\Kiev)</Description>
              </Service>
+
                    <Code>Red</Code>
            </Services>
+
                    <City>
            <ID>37263</ID>
+
                        <Name>Kiev</Name>
            <Name>MT140101A62</Name>
+
                        <ID>80</ID>
            <Brutto>4948</Brutto>
+
                        <Code>IEV</Code>
            <CountryID>6</CountryID>
+
                        <Country>
            <CityID>80</CityID>
+
                          <Name>Ukraine</Name>
            <PartnerID>1035</PartnerID>
+
                          <ID>6</ID>
            <Status>WaitingConfirmation</Status>
+
                          <IsIncoming>true</IsIncoming>
            <StartDate>2022-08-20T00:00:00</StartDate>
+
                        </Country>
            <EndDate>2022-08-27T00:00:00</EndDate>
+
                        <CountryID>6</CountryID>
            <Duration>7</Duration>
+
                        <RegionID>28</RegionID>
            <CreationDate>2022-03-04T16:56:48.953</CreationDate>
+
                    </City>
            <CreatorID>101</CreatorID>
+
                    <RegionID>28</RegionID>
            <Tourists>
+
                    <PriceType>None</PriceType>
              <Tourist Sex="Male" BirthDate="1979-08-10T00:00:00" FirstNameLat="Alex" SurNameLat="Vladimirov" AgeType="Adult" IsMain="true" ID="88548" Phone="89610553087" Email="dfj@ety.ua">
+
                    <CountCosts xsi:nil="true"/>
                  <ForeignPassport Serie="1234" Number="123456" EndDate="2025-01-01T00:00:00"/>
+
                    <CityID>80</CityID>
                  <ExternalID>0</ExternalID>
+
                    <HotelCategoryID>4</HotelCategoryID>
              </Tourist>
+
                  </Hotel>
              <Tourist Sex="Male" BirthDate="1972-08-11T00:00:00" FirstNameLat="Alexa" SurNameLat="Vladimirovicha" AgeType="Adult" IsMain="false" ID="88549" Phone="" Email="">
+
                  <Room>
                  <ForeignPassport Serie="" Number="" EndDate="2025-01-01T00:00:00"/>
+
                    <RoomType>
                  <ExternalID>0</ExternalID>
+
                        <Name/>
              </Tourist>
+
                        <ID>3</ID>
            </Tourists>
+
                        <Code>Double Room</Code>
            <OwnerID xsi:nil="true"/>
+
                        <Places>2</Places>
            <TourOperatorID>-1</TourOperatorID>
+
                        <ExPlaces>2</ExPlaces>
            <TourOperatorCode>0</TourOperatorCode>
+
                        <PrintOrder>0</PrintOrder>
            <ExternalID>0</ExternalID>
+
                    </RoomType>
            <AdditionalParams>
+
                    <RoomTypeID>3</RoomTypeID>
              <ParameterPair Key="PcnId">
+
                    <RoomCategory>
                  <Value xsi:type="xsd:int">116</Value>
+
                        <Name>Jakuzzi</Name>
              </ParameterPair>
+
                        <ID>20</ID>
            </AdditionalParams>
+
                        <MainPlaces>0</MainPlaces>
        </GetReservationResult>
+
                        <ExtraPlaces>0</ExtraPlaces>
      </GetReservationResponse>
+
                        <IsMain>false</IsMain>
  </soap:Body>
+
                    </RoomCategory>
</soap:Envelope>
+
                    <RoomCategoryID>20</RoomCategoryID>
 
+
                    <RoomAccomodation>
</syntaxhighlight>
+
                        <Name>2AD</Name>
</TD></TR></TABLE>
+
                        <ID>5558</ID>
</div></div><br />
+
                        <PerRoom>false</PerRoom>
 
+
                        <AdultMainPalces>0</AdultMainPalces>
===GetArrivalsByDate (Получение списка туристов на дату начала тура)===
+
                        <ChildMainPalces>0</ChildMainPalces>
Метод возвращает данные по списку прилетов в формате json. Метод возвращает данные по главному туристу из путевки. В случае если у главного туриста не задан номер телефона, вернутся данные следующего туриста по путевке,  у которого задан номер телефона.<br />  
+
                        <AdultExtraPalces>0</AdultExtraPalces>
Если у главного туриста аннулирована услуга проживания в отеле, то вернутся данные следующего туриста у которого задан номер телефона. <br />
+
                        <ChildExtraPalces>0</ChildExtraPalces>
За доступность метода для пользователя отвечает настройка '''ShowhotelReservationsByDate'''. По умолчанию настройка отключена.<br />
+
                        <MainPlaces>2</MainPlaces>
Для включения настройки необходимо из клиентского приложения Master-Interlook перейти в '''Master-Interlook &rarr; Settings &rarr; Online users &rarr; User &rarr; Person connection &rarr; edit role'''.<br />
+
                        <ExtraPlaces>0</ExtraPlaces>
Если у пользователя не включена настройка '''ShowhotelReservationsByDat''' - доступа к этому методу нет, в ответ будет возвращаться сообщение о недостаточности прав. Проверка проводится по идентификатору аутентификации Guid'''. <br />
+
                        <IsMain>true</IsMain>
<br />[[Файл:Ea_33.png|Настройка доступа]]<br />
+
                        <AgeFrom>0</AgeFrom>
Принимаемые параметры запроса ( * – обязательный):<br />
+
                        <AgeTo>0</AgeTo>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                        <Age2From>0</Age2From>
* '''ArrivalDate *''' – дата заезда
+
                        <Age2To>0</Age2To>
* '''CountryKey''' – ключ страны
+
                    </RoomAccomodation>
* '''RegionKey''' – ключ региона
+
                    <RoomAccomodationID>5558</RoomAccomodationID>
* '''CityKey''' – ключ города
+
                    <ID>0</ID>
* '''HotelKey''' – ключ отеля
+
                    <Name/>
 
+
                  </Room>
Возвращаемый результат:<br />
+
                  <RoomID>0</RoomID>
* '''GetArrivalsByDateResult''' – результат поиска
+
                  <PansionID>3</PansionID>
** '''ReservationId''' – номер путевки в клиенте Interlook
+
              </Service>
** '''Email''' – электронный адрес если есть
+
              <Service xsi:type="TransferService">
** '''Name''' – имя фамилия туриста
+
                  <ExternalID>-2</ExternalID>
** '''Phone''' – номер телефона (выводится в формате только цифр, обрабатывается при формирование ответа)
+
                  <Price>240</Price>
** '''CheckIn''' – дата заезда
+
                  <NMen>2</NMen>
** '''CheckOut''' – дата выезда
+
                  <Partner>
** '''HotelId''' – ключ отеля
+
                    <Name>Mouzenidis Travel 1</Name>
** '''HasTransferArrival''' – трансфер в отель (true – есть трансфер в отель, если трансфера в заявке нет выводится false)
+
                    <ID>1035</ID>
** '''FlightArrival''' – номер прямого рейса
+
                    <PartnersGroupID>1051</PartnersGroupID>
** '''FlightDeparture''' – номер обратного рейса
+
                    <FullName>Mouzenidis Travel 1</FullName>
** '''FlightArrivalTime''' – время вылета прямого перелета
+
                    <Fax>007-(495)-950-4-950</Fax>
** '''FlightDepartureTime''' – время вылета обратного перелета
+
                    <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
 
+
                    <Email>aefremov@megatec.ru</Email>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                  </Partner>
<div class="mw-collapsible-content">
+
                  <PartnerID>1035</PartnerID>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                  <Quota>NotChecked</Quota>
Вызов метода GetArrivalsByDate
+
                  <PacketKey>0</PacketKey>
<syntaxhighlight lang="java" enclose="div">
+
                  <AdditionalParams>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                    <ParameterPair Key="CityToKey">
<soapenv:Header/>
+
                        <Value xsi:type="xsd:int">80</Value>
<soapenv:Body>
+
                    </ParameterPair>
<meg:GetArrivalsByDate>
+
                    <ParameterPair Key="PointFromId">
<!--Optional:-->
+
                        <Value xsi:type="xsd:int">1000028</Value>
<meg:guid>96ab8f68-9a13-4845-b338-fdb29be4970b</meg:guid>
+
                    </ParameterPair>
<meg:arrivalDate>2021-07-15</meg:arrivalDate>
+
                    <ParameterPair Key="PointToId">
</meg:GetArrivalsByDate>
+
                        <Value xsi:type="xsd:int">2930</Value>
</soapenv:Body>
+
                    </ParameterPair>
</soapenv:Envelope>
+
                    <ParameterPair Key="ContractPrKey">
</syntaxhighlight>
+
                        <Value xsi:type="xsd:int">1171</Value>
Возвращаемый результат метода GetArrivalsByDate
+
                    </ParameterPair>
<syntaxhighlight lang="java" enclose="div">
+
                  </AdditionalParams>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
                  <DetailBrutto>(120,00(0-120)[Vedi_test/Vedi_test] * 2 pax) = 240,00</DetailBrutto>
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
                  <Notes/>
  <soap:Body>
+
                  <Name>TRF::Arrival transfer/Mini Bus/Kiev ap-Red/Kiev/</Name>
      <GetArrivalsByDateResponse xmlns="http://www.megatec.ru/">
+
                  <StartDate>2022-08-20T00:00:00</StartDate>
        <GetArrivalsByDateResult>[{"reservationId":"MT110831A01","email":"","name":"Gusn Genna","phone":"","checkIn"
+
                  <StartDay xsi:nil="true"/>
:"31.08.2021","checkOut":"05.09.2021","hotelId":2945,"hasTransferArrival":false,"hasTransferDeparture"
+
                  <Duration>1</Duration>
:false,"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""}]</GetArrivalsByDateResult>
+
                  <RateBrutto>EU</RateBrutto>
      </GetArrivalsByDateResponse>
+
                  <Brutto>240</Brutto>
  </soap:Body>
+
                  <ServiceClassID>2</ServiceClassID>
</soap:Envelope>
+
                  <TouristCount>2</TouristCount>
</syntaxhighlight>
+
                  <ID>168805</ID>
</TD></TR></TABLE>
+
                  <Status>
</div></div><br />
+
                    <Name>TRF::Arrival transfer/Mini Bus/Kiev ap-Red/Kiev/</Name>
 
+
                    <ID>2</ID>
===GetDeparturesByDate (Получение списка туристов на дату окончания тура)===
+
                  </Status>
Метод возвращает данные по списку вылетов в формате json. Метод возвращает данные по главному туристу из путевки. В случае если у главного туриста не задан номер телефона, вернутся данные следующего туриста по путевке,  у которого задан номер телефона.<br />  
+
                  <Transfer>
Если у главного туриста аннулирована услуга проживания в отеле, то вернутся данные следующего туриста у которого задан номер телефона. <br />
+
                    <AdditionalParams>
За доступность метода для пользователя отвечает настройка '''ShowhotelReservationsByDate'''. По умолчанию настройка отключена.<br />
+
                        <ParameterPair Key="SlKey">
Для включения настройки необходимо из клиентского приложения Master-Interlook перейти в '''Master-Interlook &rarr; Settings &rarr; Online users &rarr; User &rarr; Person connection &rarr; edit role'''.<br />
+
                          <Value xsi:type="xsd:int">1</Value>
Если у пользователя не включена настройка '''ShowhotelReservationsByDat''' - доступа к этому методу нет, в ответ будет возвращаться сообщение о недостаточности прав. Проверка проводится по идентификатору аутентификации Guid'''. <br />
+
                        </ParameterPair>
<br />[[Файл:Ea_33.png|Настройка доступа]]<br />
+
                    </AdditionalParams>
Принимаемые параметры запроса ( * – обязательный):<br />
+
                    <Name/>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                    <ID>606</ID>
* '''DepartureDate *''' – дата выезда
+
                  </Transfer>
* '''CountryKey''' – ключ страны
+
                  <Transport>
* '''RegionKey''' – ключ региона
+
                    <Name>Mini Bus</Name>
* '''CityKey''' – ключ города
+
                    <ID>4</ID>
* '''HotelKey''' – ключ отеля
+
                  </Transport>
 
+
                  <PointToId>2930</PointToId>
Возвращаемый результат:<br />
+
                  <CityKey>80</CityKey>
* '''GetDeparturesByDateResult''' – результат поиска
+
                  <PointToName>Red</PointToName>
** '''ReservationId''' – номер путевки в ИЛ(выводим номер путевки который видим в интерук клиенте)
+
                  <PointFromId>1000028</PointFromId>
** '''Email''' – электронный адрес если есть
+
                  <PointFromName>Kiev ap</PointFromName>
** '''Name''' – имя фамилия туриста
+
              </Service>
** '''Phone''' – номер телефона (выводится в формате только цифры, не смотря на то как это в интерлке, обрабатывается при формирование ответа)
+
              <Service xsi:type="TransferService">
** '''CheckIn''' – дата заезда
+
                  <ExternalID>-3</ExternalID>
** '''checkOut''' – дата выезда
+
                  <Price>60</Price>
** '''HotelId''' – ключ отеля
+
                  <NMen>2</NMen>
** '''HasTransferArrival''' – трансфер в отель (true – есть трансфер в отель, если трансфера в заявке нет выводится false)
+
                  <Partner>
** '''HasTransferDeparture''' – трансфер из отеля (true – есть трансфер из отеля, если трансфера в заявке нет выводится false)
+
                    <Name>Mouzenidis Travel 1</Name>
** '''FlightArrival''' – номер прямого рейса
+
                    <ID>1035</ID>
** '''FlightDeparture''' – номер обратного рейса
+
                    <PartnersGroupID>1051</PartnersGroupID>
** '''FlightArrivalTime''' – время вылета прямого перелета
+
                    <FullName>Mouzenidis Travel 1</FullName>
** '''FlightDepartureTime''' – время вылета обратного перелета
+
                    <Fax>007-(495)-950-4-950</Fax>
 
+
                    <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                    <Email>aefremov@megatec.ru</Email>
<div class="mw-collapsible-content">
+
                  </Partner>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                  <PartnerID>1035</PartnerID>
Вызов метода GetDeparturesByDate
+
                  <Quota>NotChecked</Quota>
<syntaxhighlight lang="java" enclose="div">
+
                  <PacketKey>0</PacketKey>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                  <AdditionalParams>
  <soapenv:Header/>
+
                    <ParameterPair Key="CityToKey">
  <soapenv:Body>
+
                        <Value xsi:type="xsd:int">80</Value>
      <meg:GetDeparturesByDate>
+
                    </ParameterPair>
        <!--Optional:-->
+
                    <ParameterPair Key="PointFromId">
        <meg:guid>a1b232d3-6971-4ede-8ac3-54f43d43c867</meg:guid>
+
                        <Value xsi:type="xsd:int">2930</Value>
        <meg:departureDate>2021-07-27</meg:departureDate>
+
                    </ParameterPair>
      </meg:GetDeparturesByDate>
+
                    <ParameterPair Key="PointToId">
  </soapenv:Body>
+
                        <Value xsi:type="xsd:int">1000028</Value>
</soapenv:Envelope>
+
                    </ParameterPair>
</syntaxhighlight>
+
                    <ParameterPair Key="ContractPrKey">
Возвращаемый результат метода GetDeparturesByDate
+
                        <Value xsi:type="xsd:int">1171</Value>
<syntaxhighlight lang="java" enclose="div">
+
                    </ParameterPair>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
                  </AdditionalParams>
  <soap:Body>
+
                  <DetailBrutto>(15,00(0-120)[Vedi_test/Vedi_test] * 2 pax) = 30,00</DetailBrutto>
      <GetDeparturesByDateResponse xmlns="http://www.megatec.ru/">
+
                  <Notes/>
        <GetDeparturesByDateResult>[{"reservationId":"MT110714A02","email":"","name":"dfsgd gfjf","phone":"","checkIn":"14.07.2021",
+
                  <Name>TRF::Departure transfer/Group/Red-Kiev ap/Kiev/</Name>
"checkOut":"27.07.2021","hotelId":2940,"hasTransferArrival":false,"hasTransferDeparture"
+
                  <StartDate>2022-08-27T00:00:00</StartDate>
:false,"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""},{"reservationId":"MT110713A02","email":"","name":"eter rtet","phone":""
+
                  <StartDay xsi:nil="true"/>
,"checkIn":"13.07.2021","checkOut":"27.07.2021","hotelId":2940,"hasTransferArrival":false,"hasTransferDeparture":false,
+
                  <Duration>1</Duration>
"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""}]</GetDeparturesByDateResult>
+
                  <RateBrutto>EU</RateBrutto>
      </GetDeparturesByDateResponse>
+
                  <Brutto>60</Brutto>
  </soap:Body>
+
                  <ServiceClassID>2</ServiceClassID>
</soap:Envelope>
+
                  <TouristCount>2</TouristCount>
</syntaxhighlight>
+
                  <ID>168806</ID>
</TD></TR></TABLE>
+
                  <Status>
</div></div><br />
+
                    <Name>TRF::Departure transfer/Group/Red-Kiev ap/Kiev/</Name>
 
+
                    <ID>2</ID>
===CancelReservation (Аннулирование путевки)===
+
                  </Status>
Метод производит аннуляцию путевки.<br />
+
                  <Transfer>
Выдача результатов метода регулируется лицензией.<br />
+
                    <AdditionalParams>
Принимаемые параметры запроса ( * – обязательный):<br />
+
                        <ParameterPair Key="SlKey">
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                          <Value xsi:type="xsd:int">2</Value>
* '''DgKey *''' – ключ путевки (не номер путевки)
+
                        </ParameterPair>
* '''AnnulReasonID *''' – ключ причины аннуляции (1001 – Cancel of the touroperator, 1009 – sdf. Если такой ключ причины аннуляции отсутствует в базе данных, то получим сообщение '''There is no this annulating reason in database''')
+
                    </AdditionalParams>
* '''Note''' – комментарий к аннуляции
+
                    <Name/>
Возвращаемые значения.
+
                    <ID>608</ID>
* '''CancelReservationResult''' – результат аннуляции. <br />
+
                  </Transfer>
В случае успешного аннулирования в ответе получаем полную характеристику удаленной путевки с датой отмены. <br />
+
                  <Transport>
В случае ошибки получаем в ответ расшифровку ошибки.<br />
+
                    <Name>Group</Name>
В случае некорректности идентификатора аутентификации ошибка примет вид: "Invalid user or password (Invalid GUID)". <br />
+
                    <ID>2</ID>
Если отсутствует один из обязательных параметров или значение некорректно " Check the parameter 'dgKey' = 0. There is no any reservation for you in the database".<br />
+
                  </Transport>
 
+
                  <PointToId>1000028</PointToId>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                  <CityKey>80</CityKey>
<div class="mw-collapsible-content">
+
                  <PointToName>Kiev ap</PointToName>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                  <PointFromId>2930</PointFromId>
Вызов метода CancelReservation
+
                  <PointFromName>Red</PointFromName>
<syntaxhighlight lang="java" enclose="div">
+
              </Service>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
              <Service xsi:type="ExcursionService">
  <soapenv:Header/>
+
                  <ExternalID>-5</ExternalID>
  <soapenv:Body>
+
                  <Price>120</Price>
      <meg:CancelReservation>
+
                  <NMen>2</NMen>
        <!--Optional:-->
+
                  <Partner>
        <meg:guid>e5910963-6f5a-4c18-8799-34417675bfe9</meg:guid>
+
                    <Name>Mouzenidis Travel 1</Name>
        <meg:dgKey>36018</meg:dgKey>
+
                    <ID>1035</ID>
        <meg:annulReasonID>1001</meg:annulReasonID>
+
                    <PartnersGroupID>1051</PartnersGroupID>
        <!--Optional:-->
+
                    <FullName>Mouzenidis Travel 1</FullName>
        <meg:note>Проверка штрафа</meg:note>
+
                    <Fax>007-(495)-950-4-950</Fax>
      </meg:CancelReservation>
+
                    <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
  </soapenv:Body>
+
                    <Email>aefremov@megatec.ru</Email>
</soapenv:Envelope>
+
                  </Partner>
</syntaxhighlight>
+
                  <PartnerID>1035</PartnerID>
Возвращаемый результат метода CancelReservation
+
                  <Quota>NotChecked</Quota>
<syntaxhighlight lang="java" enclose="div">
+
                  <PacketKey>0</PacketKey>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
                  <AdditionalParams>
  <soap:Body>
+
                    <ParameterPair Key="ContractPrKey">
      <CancelReservationResponse xmlns="http://www.megatec.ru/">
+
                        <Value xsi:type="xsd:int">1035</Value>
        <CancelReservationResult>
+
                    </ParameterPair>
        HTL::Kiev/Maska/Double Room/2AD/Jakuzzi/BB - For cancellation date 19.08.2021,
+
                  </AdditionalParams>
        the penalty is 1 night(s). Penalty value is 19.80 EU</CancelReservationResult>
+
                  <DetailBrutto>(50,00(0-120)[test_exc] * 2 pax) = 100,00</DetailBrutto>
      </CancelReservationResponse>
+
                  <Notes/>
  </soap:Body>
+
                  <Name>EXC::Kiev City</Name>
</soap:Envelope>
+
                  <StartDate>2022-08-23T00:00:00</StartDate>
</syntaxhighlight>
+
                  <StartDay xsi:nil="true"/>
</TD></TR></TABLE>
+
                  <Duration>1</Duration>
</div></div><br />
+
                  <RateBrutto>EU</RateBrutto>
 
+
                  <Brutto>120</Brutto>
===CancelReservationExtended (Аннулирование путевки с выводом информации о штрафах)===
+
                  <ServiceClassID>1</ServiceClassID>
Метод производит аннуляцию путевки и выдает информацию о штрафе.<br />
+
                  <TouristCount>2</TouristCount>
Выдача результатов метода регулируется лицензией.<br />
+
                  <ID>168808</ID>
Принимаемые параметры запроса ( * – обязательный):<br />
+
                  <Status>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                    <Name>EXC::Kiev City</Name>
* '''DgKey *''' – ключ путевки
+
                    <ID>1</ID>
* '''AnnulReasonID *''' – ключ причины аннуляции (1001 – Cancel of the touroperator, 1009 – sdf. Если такой ключ причины аннуляции отсутствует в базе данных, то получим сообщение '''There is no this annulating reason in database''')
+
                  </Status>
* '''Note''' – комментарий к аннуляции
+
                  <CityKey>80</CityKey>
Возвращаемые значения.
+
                  <ExcursionID>714</ExcursionID>
* '''Number''' – номер сервиса
+
              </Service>
* '''ResultMessage''' – результат аннуляции с полным описанием. В случае успешного аннулирования в ответе получаем полную характеристику удаленной путевки с датой отмены. В случае ошибки получаем в ответ расшифровку ошибки.
+
              <Service xsi:type="ExtraService">
** '''PenaltyCost''' - объект со значением штрафа и условиями, по которым штраф был рассчитан
+
                  <ExternalID xsi:nil="true"/>
*** '''PolicyKey''' - ключ условия по штрафу в БД (''-1'' - "псевдоусловие", до начала всех условий, или после окончания всех, или вообще никаких условий нет)
+
                  <Price>200</Price>
*** '''DateFrom''' -  дата начала действия условия в формате ГГГГ-ММ-ДДT00:00:00 (может быть ''null'', обычно для "псевдоусловия": "без штрафа до...")  
+
                  <NMen>2</NMen>
*** '''DateTo''' - дата окончания (может быть ''null'', для "псевдоусловия" : "100% после ...")
+
                  <PartnerID>1035</PartnerID>
*** '''PenaltyValue''' - размер штрафа
+
                  <Quota>NotChecked</Quota>
*** '''IsPercent''' - процент, указывающий,  что штраф в "%" (''true'') или в "ночах" (''false'')
+
                  <PacketKey>0</PacketKey>
*** '''TotalPenalty''' - полная сумма штрафа
+
                  <AdditionalParams>
*** '''Description''' - описание
+
                    <ParameterPair Key="HotelDlKey">
 
+
                        <Value xsi:type="xsd:int">168804</Value>
 
+
                    </ParameterPair>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                    <ParameterPair Key="ContractPrKey">
<div class="mw-collapsible-content">
+
                        <Value xsi:type="xsd:int">1035</Value>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                    </ParameterPair>
Вызов метода CancelReservation
+
                  </AdditionalParams>
<syntaxhighlight lang="java" enclose="div">
+
                  <DetailBrutto>(100,00(0-120)[Регресс] * 2 pax * 1 days) = 200,00</DetailBrutto>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                  <Notes/>
  <soapenv:Header/>
+
                  <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
  <soapenv:Body>
+
                  <StartDate>2022-08-23T00:00:00</StartDate>
      <meg:CancelReservationExtended>
+
                  <StartDay xsi:nil="true"/>
        <!--Optional:-->
+
                  <Duration>1</Duration>
        <meg:guid>16e129b9-5e69-4f53-808d-2fca840a32c1</meg:guid>
+
                  <RateBrutto>EU</RateBrutto>
        <meg:dgKey>37084</meg:dgKey>
+
                  <Brutto>200</Brutto>
        <meg:annulReasonID>1001</meg:annulReasonID>
+
                  <ServiceClassID>79</ServiceClassID>
        <!--Optional:-->
+
                  <TouristCount>2</TouristCount>
        <meg:note>567658</meg:note>
+
                  <ID>168807</ID>
      </meg:CancelReservationExtended>
+
                  <Status>
  </soapenv:Body>
+
                    <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
</soapenv:Envelope>
+
                    <ID>1</ID>
</syntaxhighlight>
+
                  </Status>
Возвращаемый результат метода CancelReservation
+
                  <CityKey>80</CityKey>
<syntaxhighlight lang="java" enclose="div">
+
                  <IsPackage>false</IsPackage>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
                  <Code>694</Code>
  <soap:Body>
+
                  <HasDuration>false</HasDuration>
      <CancelReservationExtendedResponse xmlns="http://www.megatec.ru/">
+
              </Service>
        <CancelReservationExtendedResult>
+
              <Service xsi:type="ExtraService">
             <CanceledServiceResult>
+
                  <ExternalID xsi:nil="true"/>
              <Number>1</Number>
+
                  <Price>478</Price>
              <ResultMessage>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB - If canceled in period 15.02.2022 - 16.02.2022, the penalty will be  20.00 % of the cost of accommodation Penalty value is 840.00 EU</ResultMessage>
+
                  <NMen>2</NMen>
              <PenaltyCost>
+
                  <PartnerID>1035</PartnerID>
                  <PolicyKey>123</PolicyKey>
+
                  <Quota>NotChecked</Quota>
                  <DateFrom>2022-02-15T00:00:00</DateFrom>
+
                  <PacketKey>0</PacketKey>
                  <DateTo>2022-02-16T23:59:59</DateTo>
+
                  <AdditionalParams>
                  <PenaltyValue>20</PenaltyValue>
+
                    <ParameterPair Key="HotelDlKey">
                  <IsPercent>true</IsPercent>
+
                        <Value xsi:type="xsd:int">168804</Value>
                  <TotalPenalty>840</TotalPenalty>
+
                    </ParameterPair>
                  <Description>If canceled in period 15.02.2022 - 16.02.2022, the penalty will be 20.00 % of the cost of accommodation Penalty value is 840.00 EU</Description>
+
                    <ParameterPair Key="ContractPrKey">
              </PenaltyCost>
+
                        <Value xsi:type="xsd:int">2930</Value>
            </CanceledServiceResult>
+
                    </ParameterPair>
        </CancelReservationExtendedResult>
+
                  </AdditionalParams>
      </CancelReservationExtendedResponse>
+
                  <DetailBrutto>(239,00(0-120)[тестэкстрарэд220822] * 2 pax * 1 days) = 478,00</DetailBrutto>
  </soap:Body>
+
                  <Notes/>
</soap:Envelope>
+
                  <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
</syntaxhighlight>
+
                  <StartDate>2022-08-22T00:00:00</StartDate>
</TD></TR></TABLE>
+
                  <StartDay xsi:nil="true"/>
</div></div><br />
+
                  <Duration>1</Duration>
 
+
                  <RateBrutto>EU</RateBrutto>
===GetReservationsFrom (Отбор данных по дате создания путевки)===
+
                  <Brutto>478</Brutto>
Метод производит вывод данных по дате создания путевки.
+
                  <ServiceClassID>102</ServiceClassID>
 
+
                  <TouristCount>2</TouristCount>
Принимаемые параметры запроса ( * – обязательный):<br />
+
                  <ID>168803</ID>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                  <Status>
* '''DateFrom *''' – дата от
+
                    <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
* '''DateTo''' – дата до
+
                    <ID>1</ID>
 
+
                  </Status>
Возвращаемый результат:<br />
+
                  <CityKey>80</CityKey>
* '''Key''' – ключ путевки
+
                  <IsPackage>false</IsPackage>
* '''Code''' – номер путевки
+
                  <Code>713</Code>
В случае ошибок в запросе в ответе получаем сообщение с расшифровкой ошибок.<br />
+
                  <HasDuration>false</HasDuration>
В случае ошибки в GUID получим сообщение "Invalid user or password (Invalid GUID)."<br />
+
              </Service>
В случае если дата начала больше даты окончания получим сообщение "Parameter 'DateTo' can't be less than 'DateFrom'."<br />
+
            </Services>
В случае отсутствия одного из обязательных параметров получим сообщение "Parameter '<значение параметра>' is required."<br />
+
            <ID>37263</ID>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
            <Name>MT140101A62</Name>
<div class="mw-collapsible-content">
+
            <Brutto>4948</Brutto>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
            <CountryID>6</CountryID>
Вызов метода GetReservationsFrom
+
            <CityID>80</CityID>
<syntaxhighlight lang="java" enclose="div">
+
            <PartnerID>1035</PartnerID>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
            <Status>WaitingConfirmation</Status>
  <soapenv:Header/>
+
            <StartDate>2022-08-20T00:00:00</StartDate>
  <soapenv:Body>
+
            <EndDate>2022-08-27T00:00:00</EndDate>
      <meg:GetReservationsFrom>
+
            <Duration>7</Duration>
        <!--Optional:-->
+
            <CreationDate>2022-03-04T16:56:48.953</CreationDate>
        <meg:guid>b4c08d98-0c24-4e34-abcc-e7794e3225a8</meg:guid>
+
            <CreatorID>101</CreatorID>
        <meg:dateFrom>2021-08-17</meg:dateFrom>
+
            <Tourists>
        <meg:dateTo>2021-09-17</meg:dateTo>
+
              <Tourist Sex="Male" BirthDate="1979-08-10T00:00:00" FirstNameLat="Alex" SurNameLat="Vladimirov" AgeType="Adult" IsMain="true" ID="88548" Phone="89610553087" Email="dfj@ety.ua">
      </meg:GetReservationsFrom>
+
                  <ForeignPassport Serie="1234" Number="123456" EndDate="2025-01-01T00:00:00"/>
  </soapenv:Body>
+
                  <ExternalID>0</ExternalID>
</soapenv:Envelope>
+
              </Tourist>
</syntaxhighlight>
+
              <Tourist Sex="Male" BirthDate="1972-08-11T00:00:00" FirstNameLat="Alexa" SurNameLat="Vladimirovicha" AgeType="Adult" IsMain="false" ID="88549" Phone="" Email="">
Возвращаемый результат метода GetReservationsFrom
+
                  <ForeignPassport Serie="" Number="" EndDate="2025-01-01T00:00:00"/>
<syntaxhighlight lang="java" enclose="div">
+
                  <ExternalID>0</ExternalID>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
              </Tourist>
  <soap:Body>
+
            </Tourists>
      <GetReservationsFromResponse xmlns="http://www.megatec.ru/">
+
            <OwnerID xsi:nil="true"/>
        <GetReservationsFromResult Message="Ok">
+
            <TourOperatorID>-1</TourOperatorID>
            <Data>
+
             <TourOperatorCode>0</TourOperatorCode>
              <ReservationKeyCode Key="35990" Code="MT110820A0J"/>
+
            <ExternalID>0</ExternalID>
              <ReservationKeyCode Key="35991" Code="MT110820A0K"/>
+
            <AdditionalParams>
              <ReservationKeyCode Key="35992" Code="MT110821A01"/>
+
              <ParameterPair Key="PcnId">
              <ReservationKeyCode Key="35993" Code="MT110821A02"/>
+
                  <Value xsi:type="xsd:int">116</Value>
              <ReservationKeyCode Key="35994" Code="MT110821A03"/>
+
              </ParameterPair>
              <ReservationKeyCode Key="35995" Code="MT110820A0L"/>
+
            </AdditionalParams>
              <ReservationKeyCode Key="35996" Code="MT110820A0M"/>
+
        </GetReservationResult>
              <ReservationKeyCode Key="35997" Code="MT110820A0N"/>
+
      </GetReservationResponse>
              <ReservationKeyCode Key="35998" Code="MT110820A0P"/>
+
  </soap:Body>
              <ReservationKeyCode Key="35999" Code="MT110820A0Q"/>
+
</soap:Envelope>
              <ReservationKeyCode Key="36000" Code="MT110820A0R"/>
+
 
              <ReservationKeyCode Key="36001" Code="MT110820A0S"/>
+
</syntaxhighlight>
              <ReservationKeyCode Key="36002" Code="MT110820A0T"/>
+
</TD></TR></TABLE>
              <ReservationKeyCode Key="36003" Code="MT110820A0U"/>
+
</div></div><br />
              <ReservationKeyCode Key="36004" Code="MT110820A0V"/>
+
 
              <ReservationKeyCode Key="36005" Code="MT110820A0W"/>
+
===GetArrivalsByDate (Getting a list of tourists on the start date of the tour)===
              <ReservationKeyCode Key="36006" Code="MT110820A0X"/>
+
The method returns data on the list of arrivals in json format. The method returns data on the main tourist from the reservation. If the main tourist does not have a phone number set, the data of the next tourist on the ticket, who has a phone number set, will be returning.<br />
              <ReservationKeyCode Key="36007" Code="MT110820A0Y"/>
+
If the main tourist's hotel accommodation service is canceled, the data of the next tourist who has a phone number will be returning. <br />
              <ReservationKeyCode Key="36008" Code="MT110820A0Z"/>
+
The '''ShowhotelReservationsByDate''' setting is responsible for the accessibility of the method for the user. By default, the setting is disabled.<br />
              <ReservationKeyCode Key="36009" Code="MT110820A10"/>
+
To enable the setting, you need to go from the Master-Interlook client application to '''Master-Interlook → Settings → Online users → User → Person connection → edit role'''.<br />
              <ReservationKeyCode Key="36010" Code="MT110820A11"/>
+
If the current user does not have the '''ShowhotelReservationsByDate''' setting enabled – there will be no access to this method, a message about insufficient rights will be returning in response. Verification is performed by the authentication identifier Guid. <br />
              <ReservationKeyCode Key="36011" Code="MT110820A12"/>
+
<br />[[Файл:Ea_33.png|Настройка доступа]]<br />
              <ReservationKeyCode Key="36012" Code="MT110820A13"/>
+
Accepted request parameters ( '''*''' required):<br />
              <ReservationKeyCode Key="36013" Code="MT110820A14"/>
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
              <ReservationKeyCode Key="36014" Code="MT110829A03"/>
+
* '''ArrivalDate *''' – date of arrival
              <ReservationKeyCode Key="36015" Code="MT110829A04"/>
+
* '''CountryKey''' – key of the country
              <ReservationKeyCode Key="36016" Code="MT110827A01"/>
+
* '''RegionKey''' – key of the region
              <ReservationKeyCode Key="36017" Code="MT110827A02"/>
+
* '''CityKey''' – key of the city
            </Data>
+
* '''HotelKey''' – key of the hotel
        </GetReservationsFromResult>
+
 
      </GetReservationsFromResponse>
+
Returning result:<br />
  </soap:Body>
+
* '''GetArrivalsByDateResult''' – result of the search
</soap:Envelope>
+
** '''ReservationId''' – the reservation number in the Interlook client
</syntaxhighlight>
+
** '''Email''' – e-mail address if available
</TD></TR></TABLE>
+
** '''Name''' – the first and last name of the tourist
</div></div><br />
+
** '''Phone''' – phone number (displayed in the format of digits only, processed when forming a response)
 
+
** '''CheckIn''' – date of arrival
===CreateReservationMessage (Создание сообщения для путевки)===
+
** '''CheckOut''' – departure date
Метод создает сообщение для конкретной путевки.<br />
+
** '''HotelId''' – departure date
Принимаемые параметры запроса ( * – обязательный):<br />
+
** '''HasTransferArrival''' – transfer to the hotel (true – there is a transfer to the hotel, if there is no transfer in the application, false is output)
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
** '''FlightArrival''' – direct flight number
* '''DgKey *''' – ключ путевки
+
** '''FlightDeparture''' – return flight number
* '''Message *''' – текст сообщения
+
** '''FlightArrivalTime''' – departure time of a direct flight
* '''SenderName *''' – имя отправителя сообщения
+
** '''FlightDepartureTime''' – departure time of the return flight
Возвращаемый результат: не возвращает результата
+
 
 
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
+
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
The invocation of the method GetArrivalsByDate
Вызов метода CreateReservationMessage
+
<syntaxhighlight lang="java" enclose="div">
<syntaxhighlight lang="java" enclose="div">
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
<soapenv:Header/>
  <soapenv:Header/>
+
<soapenv:Body>
  <soapenv:Body>
+
<meg:GetArrivalsByDate>
      <meg:CreateReservationMessage>
+
<!--Optional:-->
        <!--Optional:-->
+
<meg:guid>96ab8f68-9a13-4845-b338-fdb29be4970b</meg:guid>
        <meg:guid>b4c08d98-0c24-4e34-abcc-e7794e3225a8</meg:guid>
+
<meg:arrivalDate>2021-07-15</meg:arrivalDate>
        <meg:dgKey>35950</meg:dgKey>
+
</meg:GetArrivalsByDate>
        <!--Optional:-->
+
</soapenv:Body>
        <meg:message>testmessage</meg:message>
+
</soapenv:Envelope>
        <!--Optional:-->
+
</syntaxhighlight>
        <meg:senderName>testsender</meg:senderName>
+
Returning result of the method GetArrivalsByDate
      </meg:CreateReservationMessage>
+
<syntaxhighlight lang="java" enclose="div">
  </soapenv:Body>
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
</soapenv:Envelope>
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
</syntaxhighlight>
+
  <soap:Body>
Возвращаемый результат метода CreateReservationMessage
+
      <GetArrivalsByDateResponse xmlns="http://www.megatec.ru/">
<syntaxhighlight lang="java" enclose="div">
+
        <GetArrivalsByDateResult>[{"reservationId":"MT110831A01","email":"","name":"Gusn Genna","phone":"","checkIn"
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
:"31.08.2021","checkOut":"05.09.2021","hotelId":2945,"hasTransferArrival":false,"hasTransferDeparture"
  <soap:Body>
+
:false,"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""}]</GetArrivalsByDateResult>
      <CreateReservationMessageResponse xmlns="http://www.megatec.ru/"/>
+
      </GetArrivalsByDateResponse>
  </soap:Body>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
 
===GetReservationMessages (Получение сообщений по путевке)===
 
Метод производит получение сообщений для конкретной путевки.<br />
 
Принимаемые параметры запроса ( * – обязательный):<br />
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''DgKey *''' – ключ путевки
 
* '''MessageDirection *''' – директория расположения сообщений (по умолчанию 1)
 
Возвращаемый результат:<br />
 
* '''DogovorMessageItem''' – результат поиска
 
** '''Id''' – идентификатор сообщения
 
** '''IsOutgouing''' – исходящее (true - исходящее, false - входящее )
 
** '''DogovorId''' – номер путевки
 
** '''DateCreate''' – дата создания сообщения
 
** '''SenderName''' – имя отправителя
 
** '''IsRead''' – прочитано (true - прочитано, false - не прочитано )
 
** '''TourOperKey''' – ключ туроператора
 
** '''Processed''' – статус обработки
 
** '''Text''' – текст сообщения
 
В случае ошибки приходит расшифровка ошибки.<br />
 
При ошибке в Guid получим сообщение: "Invalid user or password (Invalid GUID)".<br />
 
При ошибке в ключе путевки получим сообщение: "Check the parameter 'dgKey' = <значение в запросе>. There is no any reservation for you in the database".<br />
 
В случае отсутствия в выбранной директории сообщений получим ответ: "Ok. There is no any message with 'messageDirection' = <значение в запросе>".<br />
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода GetReservationMessages
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
  <soapenv:Header/>
 
  <soapenv:Body>
 
      <meg:GetReservationMessages>
 
        <!--Optional:-->
 
        <meg:guid>b4c08d98-0c24-4e34-abcc-e7794e3225a8</meg:guid>
 
        <meg:dgKey>35950</meg:dgKey>
 
        <meg:messageDirection>1</meg:messageDirection>
 
      </meg:GetReservationMessages>
 
  </soapenv:Body>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
Возвращаемый результат метода GetReservationMessages
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
  <soap:Body>
 
      <GetReservationMessagesResponse xmlns="http://www.megatec.ru/">
 
        <GetReservationMessagesResult Message="Ok">
 
            <Data>
 
              <DogovorMessageItem>
 
                  <Id>778841</Id>
 
                  <IsOutgouing>false</IsOutgouing>
 
                  <DogovorId>35950</DogovorId>
 
                  <DateCreate>2021-08-23T09:44:13.49</DateCreate>
 
                  <SenderName>testsender</SenderName>
 
                  <IsRead>false</IsRead>
 
                  <TourOperKey>1035</TourOperKey>
 
                  <Processed>1</Processed>
 
                  <Text>testmessage</Text>
 
              </DogovorMessageItem>
 
              <DogovorMessageItem>
 
                  <Id>778838</Id>
 
                  <IsOutgouing>false</IsOutgouing>
 
                  <DogovorId>35950</DogovorId>
 
                  <DateCreate>2021-08-23T09:40:37.2</DateCreate>
 
                  <SenderName>testsender</SenderName>
 
                  <IsRead>false</IsRead>
 
                  <TourOperKey>1035</TourOperKey>
 
                  <Processed>1</Processed>
 
                  <Text>testmessage</Text>
 
              </DogovorMessageItem>
 
              <DogovorMessageItem>
 
                  <Id>778837</Id>
 
                  <IsOutgouing>false</IsOutgouing>
 
                  <DogovorId>35950</DogovorId>
 
                  <DateCreate>2021-08-23T09:40:28.177</DateCreate>
 
                  <SenderName>testsender</SenderName>
 
                  <IsRead>false</IsRead>
 
                  <TourOperKey>1035</TourOperKey>
 
                  <Processed>1</Processed>
 
                  <Text>estmessage</Text>
 
              </DogovorMessageItem>
 
            </Data>
 
        </GetReservationMessagesResult>
 
      </GetReservationMessagesResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 2569: Строка 2177:
 
</div></div><br />
 
</div></div><br />
  
==Методы поиска==
+
===GetDeparturesByDate (Receiving the list of the tourists for the date of the end of the tour)===
 +
The method returns data on the list of departures in json format. The method returns data on the main tourist from the reservation. If the main tourist does not have a phone number set, the data of the next tourist on the ticket, who has a phone number set, will be returning.<br />
 +
If the main tourist's hotel accommodation service is canceled, the data of the next tourist who has a phone number will be returning. <br />
 +
The '''ShowhotelReservationsByDate''' setting is responsible for the accessibility of the method for the user. By default, the setting is disabled.<br />
 +
To enable the setting, you need to go from the Master-Interlook client application to '''Master-Interlook → Settings → Online users → User → Person connection → edit role'''.<br />
 +
If the current user does not have the '''ShowhotelReservationsByDate''' setting enabled – there will be no access to this method, a message about insufficient rights will be returning in response. Verification is performed by the authentication identifier Guid. <br />
 +
<br />[[Файл:Ea_33.png|Настройка доступа]]<br />
 +
Accepted request parameters ( '''*''' – required):<br />
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''DepartureDate *''' – date of departure
 +
* '''CountryKey''' – key of the country
 +
* '''RegionKey''' – key of the country
 +
* '''CityKey''' – key of the city
 +
* '''HotelKey''' – key of the hotel
  
===SearchHotelServices (Получение вариантов проживаний по параметрам запроса)===
+
Returning result:<br />
Метод производит получение возможных вариантов проживаний по параметрам запроса.<br />
+
* '''GetDeparturesByDateResult''' – result of the search
Принимаемые параметры запроса ( * – обязательный):<br />
+
** '''ReservationId''' – the reservation number in the Interlook client
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
** '''Email''' – e-mail address if available
* '''Request ''' – объект с параметрами запроса
+
** '''Name''' – the first and last name of the tourist
** '''PageSize *''' – размер страницы возвращаемых данных, то есть на каком количестве рассчитанных цен останавливаться и выдавать результат поиска. Если задано PageSize = 5, то поиск пойдет по ценам и как только наберет 5 рассчитанных (но перебрать цен он может больше, не все цены подходят) цен, выдаст их в результат. Количество перебранных внутренних цен будет выдано в строке TotalCount.
+
** '''Phone''' – phone number (displayed in the format of digits only, processed when forming a response)
** '''RowIndexFrom *''' – с какой строчки выдавать результат.  Для первой страницы указываем RowIndexFrom = 0 – перебор идет с самой первой цены. Чтобы получить вторую страницу или последующие страницы поиска в RowIndexFrom надо передавать внутренний номер цены на котором остановился поиск предыдущей страницы цен (этот номер будет в ответе в строке TotalCount)
+
** '''CheckIn''' – date of arrival
** '''DateFrom *''' – дата «С»
+
** '''checkOut''' – departure date
** '''DateTo *''' – дата «По»
+
** '''HotelId''' – hotel key
** '''RegionKeys''' – идентификаторы регионов (если не заданы города и отели – поиск по всем регионам, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
** '''HasTransferArrival''' – transfer to the hotel (true there is a transfer to the hotel, if there is no transfer in the application, false is output)
** '''CityKeys''' – идентификаторы городов (если не заданы отели – ищем поиск для всех отелей городов, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
** '''HasTransferDeparture''' – transfer from the hotel (true there is a transfer to the hotel, if there is no transfer in the application, false is output)
** '''HotelKeys''' – идентификаторы отелей (если заданы отели – поиск только для них, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
** '''FlightArrival''' – direct flight number
** '''RoomDescriptions''' – идентификаторы описаний комнат. Если не предавать будет искать для всех
+
** '''FlightDeparture''' – return flight number
** '''PansionKeys''' – идентификаторы питаний. Если не передавать будет искать для всех
+
** '''FlightArrivalTime''' – departure time of a direct flight
** '''Ages''' возраст детей (если не указан, то размещения с детьми не ищутся, туристы считаются взрослыми)
+
** '''FlightDepartureTime''' – departure time of the return flight
** '''Pax *''' – размещение
 
** '''Tariffs''' идентификаторы тарифов по которым рассчитывать результат. Если не передавать будет считать по тарифу Ordinary
 
** '''CacheGuid''' – идентификатор поиска, который ускоряет переход по страницам. При первом поиске его передавать не нужно. Поиск вернет этот идентификатор в параметре ResponseGuid. Далее, используя пейджинг, передаем этот идентификатор дальше (но только в рамках одного поиска!)
 
** '''ResultView''' – тип вывода результата (1 – cортировка по суточной цене с группировкой по отелям, 2 – сортировка по суточной цене)
 
** '''QuotaTypes''' – фильтр по типу квоты(0 – запрос, 1 – квота, 2 – стоп). Получаем все возможные результаты. Если не указано, то значение=0
 
** ''' Mode''' – не указываем или указываем 0
 
  
Возвращаемый результат:<br />
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
* '''DataRequestResult''' – результат поиска
 
** '''ResultTable''' – таблица с результатом
 
*** '''HotelServices''' – услуга отеля
 
**** '''HotelName''' – наименование отеля
 
**** '''HotelKey''' – ключ отеля
 
**** '''RtCode''' – тип номера
 
**** '''RtKey''' – ключ типа номера
 
**** '''RcName''' – категория номера
 
**** '''RcKey''' – ключ категории номера
 
**** '''RdName''' – тип+категория номера
 
**** '''RdKey''' – ключ тип+категория номера
 
**** '''AcName''' – тип размещения
 
**** '''AcKey''' – ключ типа размещения
 
**** '''PnCode''' – тип питания
 
**** '''PnKey''' – ключ типа питания
 
**** '''TotalCost''' – конечная стоимость проживания в отеле включая обязательные доплаты Cost + AdHotCost. Сортировка по минимальной цене производиться по параметру TotalCost от наименьшей цены к наибольшей
 
**** '''Cost''' – размер обязательной доплаты Cost
 
**** '''AddHotsCost''' – размер обязательной доплаты AdHot
 
**** '''AddHotsWithCosts''' – размер обязательной доплаты AdHot типа With costs (выдает -1 если настройка отображения Adhot типа With Costs в конфиге Integration Service Interlook. Описание настройки [[Master-Interlook:Обмен. Настройка Web-сервиса Master-Interlook#Настройка параметров конфига web.config Integration Service ]])
 
**** '''DetailBrutto''' – формула расчета цены
 
**** '''QuoteType''' – тип квоты. Может принимать 3 значения: 0 – на запрос,1 – в квоте, 2 – стоит стоп сейл.
 
**** '''CountryKey''' – ключ страны предоставления услуги
 
**** '''CityKey''' – ключ города предоставления услуги
 
**** '''CityName''' – наименование города предоставления услуги
 
**** '''HotelWebSite''' – адрес сайта отеля
 
**** '''TariffId''' – идентификатор тарифа
 
**** '''TariffName''' – наименование тарифа
 
**** '''TariffDescription''' – описание тарифа
 
**** '''AddHots''' – идентификатор Adhot
 
**** '''ContractPrKey''' – ключ партнера, предоставляющего услугу
 
**** '''HotelImage''' – фото отеля
 
**** '''Rate''' – валюта
 
**** '''AddHotsWithCostID''' – идентификатор AddHotsWithCost
 
** '''ColunmNames''' – название столбцов таблицы
 
*** '''HotelName''' – наименование отеля
 
*** '''HotelKey''' – ключ отеля
 
*** '''RtCode''' – тип номера
 
*** '''RtKey''' – ключ типа номера
 
*** '''RcName''' – категория номера
 
*** '''RcKey''' – ключ категории номера
 
*** '''RdName''' – тип+категория номера
 
*** '''RdKey''' – ключ тип+категория номера
 
*** '''AcName''' – тип размещения
 
*** '''AcKey''' – ключ типа размещения
 
*** '''PnCode''' – тип питания
 
*** '''PnKey''' – ключ типа питания
 
*** '''TotalCost''' – конечная стоимость проживания в отеле включая обязательные доплаты Cost + AdHotCost. Сортировка по минимальной цене производиться по параметру TotalCost от наименьшей цены к наибольшей
 
*** '''Cost''' – размер обязательной доплаты Cost
 
*** '''AddHotsCost''' – размер обязательной доплаты AddHotsCost
 
*** '''DetailBrutto''' – формула расчета цены
 
*** '''QuoteType''' – тип квоты. Может принимать 3 значения: 0 – на запрос,1 – в квоте, 2 – стоит стоп сейл.
 
*** '''CountryKey''' – ключ страны предоставления услуги
 
*** '''CityKey''' – ключ города предоставления услуги
 
*** '''CityName''' – наименование города предоставления услуги
 
*** '''HotelWebSite''' – адрес сайта отеля
 
*** '''TariffId''' – идентификатор тарифа
 
*** '''TariffName''' – наименование тарифа
 
*** '''TariffDescription''' – описание тарифа
 
*** '''AddHots''' – идентификатор Adhot
 
*** '''ContractPrKey''' – ключ партнера, предоставляющего услугу
 
*** '''HotelImage''' – фото отеля
 
*** '''Rate''' – валюта
 
*** '''AddHotsWithCostID''' – идентификатор AddHotsWithCost
 
** '''TotalCount''' – номер строки, на которой закончился поиск
 
** '''PageSize''' – количество возвращаемых строк данных
 
** '''PageIndex''' – номер строки, с которой начали поиск
 
** '''IsLastPage''' – при отображении последней страницы результатов поиска с отелями параметр IsLastPage принимает значение '''true'''. Если не обрабатывать параметр IsLastPage, то следующее значение TotalCount вернет пустой результат по отелям
 
** '''AdditionalData''' – список обязательных Addhots
 
*** '''ArrayOfAnyType''' – массив типов услуг
 
**** '''anyType''' – тип услуги
 
***** '''ExternalID''' –  параметр для внутреннего использования
 
***** '''Price''' – стоимость
 
***** '''NMen''' – количество туристов по путевке
 
***** '''PartnerID''' – идентификатор партнера
 
***** '''Quota''' – квота по услуге
 
***** '''PacketKey''' – ключ пакета
 
***** '''AdditionalParams''' – массив дополнительных параметры (представляются в виде пары ключ – значение)
 
****** '''ParameterPair Key''' – ключ
 
******* '''Value''' – значение
 
***** '''Tourists''' – туристы
 
***** '''DetailNetto''' – подробности нетто
 
***** '''DetailBrutto''' – подробности брутто
 
***** '''Notes''' – примечания к услуге
 
***** '''Name''' – наименование услуги
 
***** '''StartDate''' – дата предоставления услуги (в формате ГГГГ-ММ-ДДT00:00:00)
 
***** '''StartDay''' – день предоставления услуги
 
***** '''Duration''' – продолжительность услуги
 
***** '''RateBrutto''' – валюта брутто
 
***** '''Brutto''' – цена брутто
 
***** '''RateNetto''' – валюта нетто
 
***** '''Netto''' – цена нетто
 
***** '''ServiceClassID''' – идентификатор класса услуги
 
***** '''TouristCount''' – количество туристов, пользующихся услугой
 
***** '''ID''' – идентификатор услуги (-1 для новой путевки )
 
***** '''Status''' – статус услуги
 
****** '''Name''' – наименование статуса услуги
 
****** '''ID''' –  идентификатор статуса услуги
 
****** '''Description''' – описание статуса услуги
 
****** '''NameLat''' – наименование статуса услуги латиницей
 
****** '''Code''' – код статуса услуги
 
****** '''CodeLat''' – код статуса услуги латиницей
 
****** '''Unicode''' – код ISO статуса услуги
 
***** '''CityKey''' – ключ города предоставления услуги
 
***** '''IsPackage''' – признак пакетной услуги
 
***** '''Code''' – идентификатор услуги
 
***** '''HasDuration''' – услуга с продолжительностью или без
 
** '''ResponseGuid''' – идентификатор ответа, который необходимо передать, если мы двигаемся по тому же поиску используя пейджинг<br />
 
В случае ошибок в запросе в ответе получаем сообщение с расшифровкой ошибок.<br />
 
В случае ошибки в GUID получим сообщение "Invalid user or password (Invalid GUID)."<br />
 
В случае если дата начала больше даты окончания получим сообщение "Parameter 'DateTo' can't be less than 'DateFrom'."<br />
 
В случае отсутствия одного из обязательных параметров получим сообщение "Parameter '<значение параметра>' is required."<br />
 
В случае отсутствия ключа отеля, ключа города, ключа региона получим сообщение "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'." <br />
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода SearchHotelServices<br />
+
The invocation of the method GetDeparturesByDate
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
<meg:SearchHotelServices>
+
      <meg:GetDeparturesByDate>
<!--Optional:-->
 
        <meg:guid>ef5bafbc-722f-4d8b-bdd5-844e8633788f</meg:guid>
 
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:request>
+
         <meg:guid>a1b232d3-6971-4ede-8ac3-54f43d43c867</meg:guid>
<meg:PageSize>100000</meg:PageSize>
+
        <meg:departureDate>2021-07-27</meg:departureDate>
            <meg:RowIndexFrom>1</meg:RowIndexFrom>
+
       </meg:GetDeparturesByDate>
            <meg:DateFrom>2021-12-01</meg:DateFrom>
 
            <meg:DateTo>2021-12-22</meg:DateTo>
 
            <!--Optional:-->
 
<meg:RegionKeys>
 
              <!--Zero or more repetitions:-->
 
              <meg:int>28</meg:int>
 
            </meg:RegionKeys>
 
            <!--Optional:-->
 
<meg:HotelKeys>
 
              <!--Zero or more repetitions:-->
 
              <meg:int>2932</meg:int>
 
          </meg:HotelKeys>
 
            <!--Optional:-->
 
<meg:Ages>
 
<!--Zero or more repetitions:-->
 
            </meg:Ages>
 
            <meg:Pax>2</meg:Pax>
 
            <!--Optional:-->
 
<meg:CacheGuid>9f542137-9403-472c-807d-ae839fb2ee29</meg:CacheGuid>
 
<meg:ResultView>1</meg:ResultView>
 
            <meg:Mode>0</meg:Mode>
 
            <!--Optional:-->
 
<meg:QuotaTypes>
 
              <!--Zero or more repetitions:-->
 
            </meg:QuotaTypes>
 
        </meg:request>
 
       </meg:SearchHotelServices>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода SearchHotelServices<br />
+
Returning result for the method GetDeparturesByDate
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
      <SearchHotelServicesResponse xmlns="http://www.megatec.ru/">
+
      <GetDeparturesByDateResponse xmlns="http://www.megatec.ru/">
        <SearchHotelServicesResult Message="Ok">
+
        <GetDeparturesByDateResult>[{"reservationId":"MT110714A02","email":"","name":"dfsgd gfjf","phone":"","checkIn":"14.07.2021",
            <Data>
+
"checkOut":"27.07.2021","hotelId":2940,"hasTransferArrival":false,"hasTransferDeparture"
              <DataRequestResult>
+
:false,"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""},{"reservationId":"MT110713A02","email":"","name":"eter rtet","phone":""
                  <ResultTable>
+
,"checkIn":"13.07.2021","checkOut":"27.07.2021","hotelId":2940,"hasTransferArrival":false,"hasTransferDeparture":false,
                    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+
"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""}]</GetDeparturesByDateResult>
                        <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="HotelServices" msdata:UseCurrentLocale="true">
+
      </GetDeparturesByDateResponse>
                          <xs:complexType>
+
  </soap:Body>
                              <xs:choice minOccurs="0" maxOccurs="unbounded">
+
</soap:Envelope>
                                <xs:element name="HotelServices">
+
</syntaxhighlight>
                                    <xs:complexType>
+
</TD></TR></TABLE>
                                      <xs:sequence>
+
</div></div><br />
                                          <xs:element name="HotelName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
 
                                          <xs:element name="HotelKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
===CancelReservation (Cancellation of the reservation)===
                                          <xs:element name="RtCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
The method provides the cancellation of the reservation.<br />
                                          <xs:element name="RtKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
The output of the method results is regulated by the license.<br />
                                          <xs:element name="RcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs
+
Accepted request parameters ( '''*''' – required):<br />
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''DgKey *''' – key of the reservation (not the number)
 +
* '''AnnulReasonID *''' – key of the reason of the cancellation (1001 – Cancel by the touroperator, 1009 – sdf. If such a cancellation reason key is not available in the database, we will receive the message. There is no this annulating reason in database))
 +
* '''Note''' – comment for the cancellation
 +
Returning results.
 +
* '''CancelReservationResult''' – result of the cancellation.<br />
 +
In case of successful cancellation in response we receive full description of the deleted reservation with the date of the cancellation.<br />
 +
In case of an error we receive a transcript of the error in response.<br />
 +
If one of the required parameters is missing or the value is incorrect, we will receive notification" Check the parameter 'dgKey' = 0. There is no such reservation in the database".<br />
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method CancelReservation
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soapenv:Envelope xmlns:soapenv
 
                           <PacketKey>0</PacketKey>
 
                           <PacketKey>0</PacketKey>
 
                           <AdditionalParams>
 
                           <AdditionalParams>
Строка 3207: Строка 2949:
 
                           <DetailBrutto/>
 
                           <DetailBrutto/>
 
                           <Notes/>
 
                           <Notes/>
                           <Name>тестовый ужин на 100921</Name>
+
                           <Name>Hardlink</Name>
                           <StartDate>2021-12-05T00:00:00</StartDate>
+
                           <StartDate>2021-12-01T00:00:00</StartDate>
 
                           <StartDay>0</StartDay>
 
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
+
                           <Duration>0</Duration>
 
                           <RateBrutto/>
 
                           <RateBrutto/>
                           <Brutto>40</Brutto>
+
                           <Brutto>48</Brutto>
 
                           <RateNetto/>
 
                           <RateNetto/>
 
                           <Netto>0</Netto>
 
                           <Netto>0</Netto>
                           <ServiceClassID>70</ServiceClassID>
+
                           <ServiceClassID>99</ServiceClassID>
 
                           <TouristCount>0</TouristCount>
 
                           <TouristCount>0</TouristCount>
                           <ID>-7</ID>
+
                           <ID>0</ID>
                           <CityKey>0</CityKey>
+
                          <Status>
                           <IsPackage>false</IsPackage>
+
                              <Name>Hardlink</Name>
                           <Code>704</Code>
+
                              <ID>0</ID>
 +
                              <Description/>
 +
                              <NameLat/>
 +
                              <Code/>
 +
                              <CodeLat/>
 +
                              <Unicode/>
 +
                          </Status>
 +
                           <CityKey>80</CityKey>
 +
                           <IsPackage>false</IsPackage>
 +
                           <Code>699</Code>
 
                           <HasDuration>false</HasDuration>
 
                           <HasDuration>false</HasDuration>
 
                         </anyType>
 
                         </anyType>
 
                         <anyType xsi:type="ExtraService">
 
                         <anyType xsi:type="ExtraService">
 
                           <ExternalID>0</ExternalID>
 
                           <ExternalID>0</ExternalID>
                           <Price>20</Price>
+
                           <Price>30</Price>
 
                           <NMen>0</NMen>
 
                           <NMen>0</NMen>
 
                           <PartnerID>0</PartnerID>
 
                           <PartnerID>0</PartnerID>
Строка 3239: Строка 2990:
 
                           <DetailBrutto/>
 
                           <DetailBrutto/>
 
                           <Notes/>
 
                           <Notes/>
                           <Name>_Прачечная, химчистка</Name>
+
                           <Name>Hardlink</Name>
 
                           <StartDate>2021-12-01T00:00:00</StartDate>
 
                           <StartDate>2021-12-01T00:00:00</StartDate>
 
                           <StartDay>0</StartDay>
 
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
+
                           <Duration>0</Duration>
 
                           <RateBrutto/>
 
                           <RateBrutto/>
                           <Brutto>20</Brutto>
+
                           <Brutto>30</Brutto>
 
                           <RateNetto/>
 
                           <RateNetto/>
 
                           <Netto>0</Netto>
 
                           <Netto>0</Netto>
                           <ServiceClassID>78</ServiceClassID>
+
                           <ServiceClassID>99</ServiceClassID>
 
                           <TouristCount>0</TouristCount>
 
                           <TouristCount>0</TouristCount>
                           <ID>-8</ID>
+
                           <ID>-1</ID>
                           <CityKey>0</CityKey>
+
                          <Status>
 +
                              <Name>Hardlink</Name>
 +
                              <ID>0</ID>
 +
                              <Description/>
 +
                              <NameLat/>
 +
                              <Code/>
 +
                              <CodeLat/>
 +
                              <Unicode/>
 +
                          </Status>
 +
                           <CityKey>80</CityKey>
 
                           <IsPackage>false</IsPackage>
 
                           <IsPackage>false</IsPackage>
                           <Code>639</Code>
+
                           <Code>699</Code>
 
                           <HasDuration>false</HasDuration>
 
                           <HasDuration>false</HasDuration>
 
                         </anyType>
 
                         </anyType>
Строка 3271: Строка 3031:
 
                           <DetailBrutto/>
 
                           <DetailBrutto/>
 
                           <Notes/>
 
                           <Notes/>
                           <Name>тестовый ужин на 100921</Name>
+
                           <Name>Hardlink</Name>
                           <StartDate>2021-12-05T00:00:00</StartDate>
+
                           <StartDate>2021-12-01T00:00:00</StartDate>
 
                           <StartDay>0</StartDay>
 
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
+
                           <Duration>0</Duration>
 
                           <RateBrutto/>
 
                           <RateBrutto/>
 
                           <Brutto>40</Brutto>
 
                           <Brutto>40</Brutto>
 
                           <RateNetto/>
 
                           <RateNetto/>
 
                           <Netto>0</Netto>
 
                           <Netto>0</Netto>
                           <ServiceClassID>70</ServiceClassID>
+
                           <ServiceClassID>99</ServiceClassID>
 
                           <TouristCount>0</TouristCount>
 
                           <TouristCount>0</TouristCount>
                           <ID>-9</ID>
+
                           <ID>-2</ID>
                           <CityKey>0</CityKey>
+
                          <Status>
 +
                              <Name>Hardlink</Name>
 +
                              <ID>0</ID>
 +
                              <Description/>
 +
                              <NameLat/>
 +
                              <Code/>
 +
                              <CodeLat/>
 +
                              <Unicode/>
 +
                          </Status>
 +
                          <CityKey>80</CityKey>
 +
                          <IsPackage>false</IsPackage>
 +
                          <Code>699</Code>
 +
                          <HasDuration>false</HasDuration>
 +
                        </anyType>
 +
                        <anyType xsi:type="ExtraService">
 +
                          <ExternalID>0</ExternalID>
 +
                          <Price>40</Price>
 +
                          <NMen>0</NMen>
 +
                          <PartnerID>0</PartnerID>
 +
                          <Quota>NotChecked</Quota>
 +
                          <PacketKey>0</PacketKey>
 +
                          <AdditionalParams>
 +
                              <ParameterPair Key="ContractPrKey">
 +
                                <Value xsi:type="xsd:int">0</Value>
 +
                              </ParameterPair>
 +
                          </AdditionalParams>
 +
                          <Tourists/>
 +
                          <DetailNetto/>
 +
                          <DetailBrutto/>
 +
                          <Notes/>
 +
                          <Name>тестовый ужин на 100921</Name>
 +
                          <StartDate>2021-12-05T00:00:00</StartDate>
 +
                          <StartDay>0</StartDay>
 +
                          <Duration>1</Duration>
 +
                          <RateBrutto/>
 +
                          <Brutto>40</Brutto>
 +
                          <RateNetto/>
 +
                          <Netto>0</Netto>
 +
                          <ServiceClassID>70</ServiceClassID>
 +
                          <TouristCount>0</TouristCount>
 +
                          <ID>-3</ID>
 +
                           <CityKey>0</CityKey>
 
                           <IsPackage>false</IsPackage>
 
                           <IsPackage>false</IsPackage>
 
                           <Code>704</Code>
 
                           <Code>704</Code>
Строка 3313: Строка 3114:
 
                           <ServiceClassID>78</ServiceClassID>
 
                           <ServiceClassID>78</ServiceClassID>
 
                           <TouristCount>0</TouristCount>
 
                           <TouristCount>0</TouristCount>
                           <ID>-10</ID>
+
                           <ID>-4</ID>
 
                           <CityKey>0</CityKey>
 
                           <CityKey>0</CityKey>
 
                           <IsPackage>false</IsPackage>
 
                           <IsPackage>false</IsPackage>
Строка 3319: Строка 3120:
 
                           <HasDuration>false</HasDuration>
 
                           <HasDuration>false</HasDuration>
 
                         </anyType>
 
                         </anyType>
                    </ArrayOfAnyType>
+
                        <anyType xsi:type="ExtraService">
                  </AdditionalData>
+
                          <ExternalID>0</ExternalID>
                  <ResponseGuid>36d4defd-a39d-48c5-8288-32a22822f411</ResponseGuid>
+
                          <Price>40</Price>
              </DataRequestResult>
+
                          <NMen>0</NMen>
            </Data>
+
                          <PartnerID>0</PartnerID>
        </SearchHotelServicesResult>
+
                          <Quota>NotChecked</Quota>
      </SearchHotelServicesResponse>
+
                          <PacketKey>0</PacketKey>
  </soap:Body>
+
                          <AdditionalParams>
</soap:Envelope>
+
                              <ParameterPair Key="ContractPrKey">
</syntaxhighlight>
+
                                <Value xsi:type="xsd:int">0</Value>
</TD></TR></TABLE>
+
                              </ParameterPair>
</div></div><br />
+
                          </AdditionalParams>
 
+
                          <Tourists/>
===SearchHotelServicesMinHotel (Получение одной минимальной рассчитанной цены для отеля)===
+
                          <DetailNetto/>
Метод выводит одну минимальную (сортировка по суточной цене) рассчитанную цену для отеля.<br />
+
                          <DetailBrutto/>
Принимаемые параметры запроса ( * – обязательный):<br />
+
                          <Notes/>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                          <Name>тестовый ужин на 100921</Name>
* '''Request ''' – объект с параметрами запроса
+
                          <StartDate>2021-12-05T00:00:00</StartDate>
** '''PageSize *''' – размер страницы возвращаемых данных, то есть на каком количестве рассчитанных цен останавливаться и выдавать результат поиска. Если задано PageSize = 5, то поиск пойдет по ценам и как только наберет 5 рассчитанных (но перебрать цен он может больше, не все цены подходят) цен, выдаст их в результат. Количество перебранных внутренних цен будет выдано в строке TotalCount.
+
                          <StartDay>0</StartDay>
** '''RowIndexFrom *''' – с какой строчки выдавать результат.  Для первой страницы указываем RowIndexFrom = 0 – перебор идет с самой первой цены. Чтобы получить вторую страницу или последующие страницы поиска в RowIndexFrom надо передавать внутренний номер цены на котором остановился поиск предыдущей страницы цен (этот номер будет в ответе в строке TotalCount)
+
                          <Duration>1</Duration>
** '''DateFrom *''' – дата «С»
+
                          <RateBrutto/>
** '''DateTo *''' – дата «По»
+
                          <Brutto>40</Brutto>
** '''RegionKeys''' – идентификаторы регионов (если не заданы города и отели – поиск по всем регионам, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
                          <RateNetto/>
** '''CityKeys''' – идентификаторы городов (если не заданы отели – ищем поиск для всех отелей городов, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
                          <Netto>0</Netto>
** '''HotelKeys''' – идентификаторы отелей (если заданы отели – поиск только для них, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
                          <ServiceClassID>70</ServiceClassID>
** '''RoomDescriptions''' – идентификаторы описаний комнат. Если не предавать будет искать для всех (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetRoomFescriptions|GetRoomFescriptions]])<br />
+
                          <TouristCount>0</TouristCount>
** '''PansionKeys''' – идентификаторы питаний. Если не передавать будет искать для всех (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetPansions|GetPansions]])
+
                          <ID>-5</ID>
** '''Ages''' – возраст детей
+
                          <CityKey>0</CityKey>
** '''Pax *''' – размещение
+
                          <IsPackage>false</IsPackage>
** '''Tariffs''' – идентификаторы тарифов по которым рассчитывать результат. Если не передавать будет считать по тарифу Ordinary (0 - Ordinary, 1 - SPO)
+
                          <Code>704</Code>
** '''CacheGuid''' – идентификатор поиска, который ускоряет переход по страницам. При первом поиске его передавать не нужно. Поиск вернет этот идентификатор в параметре ResponseGuid. Далее, используя пейджинг, передаем этот идентификатор дальше (но только в рамках одного поиска!)
+
                          <HasDuration>false</HasDuration>
** '''ResultView''' – тип вывода результата (1 – cортировка по суточной цене с группировкой по отелям, 2 – сортировка по суточной цене)
+
                        </anyType>
** '''QuotaTypes''' – фильтр по типу квоты(0 – запрос, 1 – квота, 2 – стоп). Получаем все возможные результаты. Если не указано, то значение=0
+
                        <anyType xsi:type="ExtraService">
** ''' Mode''' – не указываем или указываем 0
+
                          <ExternalID>0</ExternalID>
 
+
                          <Price>20</Price>
Возвращаемый результат:<br />
+
                          <NMen>0</NMen>
* '''DataRequestResult''' – результат поиска
+
                          <PartnerID>0</PartnerID>
** '''ResultTable''' – таблица с результатом
+
                          <Quota>NotChecked</Quota>
*** '''HotelServices''' – услуга отеля
+
                          <PacketKey>0</PacketKey>
**** '''HotelName''' – наименование отеля
+
                          <AdditionalParams>
**** '''HotelKey''' – ключ отеля
+
                              <ParameterPair Key="ContractPrKey">
**** '''RtCode''' – тип номера
+
                                <Value xsi:type="xsd:int">0</Value>
**** '''RtKey''' – ключ типа номера
+
                              </ParameterPair>
**** '''RcName''' – категория номера
+
                          </AdditionalParams>
**** '''RcKey''' – ключ категории номера
+
                          <Tourists/>
**** '''RdName''' – тип+категория номера
+
                          <DetailNetto/>
**** '''RdKey''' – ключ тип+категория номера
+
                          <DetailBrutto/>
**** '''AcName''' – тип размещения
+
                          <Notes/>
**** '''AcKey''' – ключ типа размещения
+
                          <Name>_Прачечная, химчистка</Name>
**** '''PnCode''' – тип питания
+
                          <StartDate>2021-12-01T00:00:00</StartDate>
**** '''PnKey''' – ключ типа питания
+
                          <StartDay>0</StartDay>
**** '''TotalCost''' – конечная стоимость проживания в отеле включая обязательные доплаты Cost + AdHotCost. Сортировка по минимальной цене производиться по параметру TotalCost от наименьшей цены к наибольшей
+
                          <Duration>1</Duration>
**** '''Cost''' – размер обязательной доплаты Cost
+
                          <RateBrutto/>
**** '''AddHotsCost''' – размер обязательной доплаты AdHot
+
                          <Brutto>20</Brutto>
**** '''AddHotsWithCosts''' – размер обязательной доплаты AdHot типа With costs (выдает -1 если настройка отображения Adhot типа With Costs в конфиге Integration Service Interlook. Описание настройки [[Master-Interlook:Обмен. Настройка Web-сервиса Master-Interlook#Настройка параметров конфига web.config Integration Service ]])
+
                          <RateNetto/>
**** '''DetailBrutto''' – формула расчета цены
+
                          <Netto>0</Netto>
**** '''QuoteType''' – тип квоты. Может принимать 3 значения: 0 – на запрос,1 – в квоте, 2 – стоит стоп сейл.
+
                          <ServiceClassID>78</ServiceClassID>
**** '''CountryKey''' – ключ страны предоставления услуги
+
                          <TouristCount>0</TouristCount>
**** '''CityKey''' – ключ города предоставления услуги
+
                          <ID>-6</ID>
**** '''CityName''' – наименование города предоставления услуги
+
                          <CityKey>0</CityKey>
**** '''HotelWebSite''' – адрес веб-сайта отеля
+
                          <IsPackage>false</IsPackage>
**** '''TariffId''' – идентификатор тарифа
+
                          <Code>639</Code>
**** '''TariffName''' – наименование тарифа
+
                          <HasDuration>false</HasDuration>
**** '''TariffDescription''' – описание тарифа
+
                        </anyType>
**** '''AddHots''' – идентификатор Adhot
+
                        <anyType xsi:type="ExtraService">
**** '''ContractPrKey''' – ключ партнера предоставляющего услугу
+
                          <ExternalID>0</ExternalID>
**** '''HotelImage''' – фото отеля
+
                          <Price>40</Price>
**** '''AddHotsWithCostID''' – идентификатор AddHotsWithCost
+
                          <NMen>0</NMen>
**** '''Rate''' – валюта
+
                          <PartnerID>0</PartnerID>
** '''ColunmNames''' – название столбцов таблицы
+
                          <Quota>NotChecked</Quota>
*** '''HotelName''' – наименование отеля
+
                          <PacketKey>0</PacketKey>
*** '''HotelKey''' – ключ отеля
+
                          <AdditionalParams>
*** '''RtCode''' – тип номер
+
                              <ParameterPair Key="ContractPrKey">
*** '''RtKey''' – ключ типа номера
+
                                <Value xsi:type="xsd:int">0</Value>
*** '''RcName''' – категория номера
+
                              </ParameterPair>
*** '''RcKey''' – ключ категории номера
+
                          </AdditionalParams>
*** '''RdName''' – тип+категория номера
+
                          <Tourists/>
*** '''RdKey''' – ключ тип+категория номера
+
                          <DetailNetto/>
*** '''AcName''' – тип размещения
+
                          <DetailBrutto/>
*** '''AcKey''' – ключ типа размещения
+
                          <Notes/>
*** '''PnCode''' – тип питания
+
                          <Name>тестовый ужин на 100921</Name>
*** '''PnKey''' – ключ типа питания
+
                          <StartDate>2021-12-05T00:00:00</StartDate>
*** '''TotalCost''' – конечная стоимость проживания в отеле включая обязательные доплаты Cost + AdHotCost. Сортировка по минимальной цене производиться по параметру TotalCost от наименьшей цены к наибольшей
+
                          <StartDay>0</StartDay>
*** '''Cost''' – размер обязательной доплаты Cost
+
                          <Duration>1</Duration>
*** '''AddHotsCost''' – размер обязательной доплаты AddHotsCost
+
                          <RateBrutto/>
*** '''DetailBrutto''' – формула расчета цены
+
                          <Brutto>40</Brutto>
*** '''QuoteType''' – тип квоты. Может принимать 3 значения: 0 – на запрос,1 – в квоте, 2 – стоит стоп сейл.
+
                          <RateNetto/>
*** '''CountryKey''' – ключ страны предоставления услуги
+
                          <Netto>0</Netto>
*** '''CityKey''' – ключ города предоставления услуги
+
                          <ServiceClassID>70</ServiceClassID>
*** '''CityName''' – наименование города предоставления услуги
+
                          <TouristCount>0</TouristCount>
*** '''HotelWebSite''' – адрес сайта отеля
+
                          <ID>-7</ID>
*** '''TariffId''' – идентификатор тарифа
+
                          <CityKey>0</CityKey>
*** '''TariffName''' – наименование тарифа
+
                          <IsPackage>false</IsPackage>
*** '''TariffDescription''' – описание тарифа
+
                          <Code>704</Code>
*** '''AddHots''' – доплата
+
                          <HasDuration>false</HasDuration>
*** '''ContractPrKey''' – ключ партнера, предоставляющего услугу
+
                        </anyType>
*** '''HotelImage''' – фото отеля
+
                        <anyType xsi:type="ExtraService">
*** '''AddHotsWithCostID''' – идентификатор AddHotsWithCost
+
                          <ExternalID>0</ExternalID>
*** '''Rate''' – валюта
+
                          <Price>20</Price>
** '''TotalCount''' – номер строки, на которой закончился поиск
+
                          <NMen>0</NMen>
** '''PageSize''' – количество возвращаемых строк данных
+
                          <PartnerID>0</PartnerID>
** '''PageIndex''' – номер строки, с которой начали поиск
+
                          <Quota>NotChecked</Quota>
** '''IsLastPage''' – при отображении последней страницы результатов поиска с отелями параметр IsLastPage принимает значение '''true'''. Если не обрабатывать параметр IsLastPage, то следующее значение TotalCount вернет пустой результат по отелям
+
                          <PacketKey>0</PacketKey>
** '''AdditionalData''' – список обязательных Adhot
+
                          <AdditionalParams>
*** '''ArrayOfAnyType''' – массив типов услуг
+
                              <ParameterPair Key="ContractPrKey">
**** '''anyType''' – тип услуги
+
                                <Value xsi:type="xsd:int">0</Value>
***** '''ExternalID''' –  параметр для внутреннего использования
+
                              </ParameterPair>
***** '''Price''' – стоимость
+
                          </AdditionalParams>
***** '''NMen''' – количество туристов по путевке
+
                          <Tourists/>
***** '''PartnerID''' – идентификатор партнера
+
                          <DetailNetto/>
***** '''Quota''' – квота по услуге
+
                          <DetailBrutto/>
***** '''PacketKey''' – ключ пакета
+
                          <Notes/>
***** '''AdditionalParams''' – массив дополнительных параметры (представляются в виде пары ключ – значение)
+
                          <Name>_Прачечная, химчистка</Name>
****** '''ParameterPair Key''' – ключ
+
                          <StartDate>2021-12-01T00:00:00</StartDate>
******* '''Value''' – значение
+
                          <StartDay>0</StartDay>
***** '''Tourists''' – туристы
+
                          <Duration>1</Duration>
***** '''DetailNetto''' – подробности нетто
+
                          <RateBrutto/>
***** '''DetailBrutto''' – подробности брутто
+
                          <Brutto>20</Brutto>
***** '''Notes''' – примечания к услуге
+
                          <RateNetto/>
***** '''Name''' – наименование услуги
+
                          <Netto>0</Netto>
***** '''StartDate''' – дата предоставления услуги (в формате ГГГГ-ММ-ДДT00:00:00)
+
                          <ServiceClassID>78</ServiceClassID>
***** '''StartDay''' – день предоставления услуги
+
                          <TouristCount>0</TouristCount>
***** '''Duration''' – продолжительность услуги
+
                          <ID>-8</ID>
***** '''RateBrutto''' – валюта брутто
+
                          <CityKey>0</CityKey>
***** '''Brutto''' – цена брутто
+
                          <IsPackage>false</IsPackage>
***** '''RateNetto''' – валюта нетто
+
                          <Code>639</Code>
***** '''Netto''' – цена нетто
+
                          <HasDuration>false</HasDuration>
***** '''ServiceClassID''' – идентификатор класса услуги
+
                        </anyType>
***** '''TouristCount''' – количество туристов, пользующихся услугой
+
                        <anyType xsi:type="ExtraService">
***** '''ID''' – идентификатор услуги (-1 для новой путевки )
+
                          <ExternalID>0</ExternalID>
***** '''Status''' – статус услуги
+
                          <Price>40</Price>
****** '''Name''' – наименование статуса услуги
+
                          <NMen>0</NMen>
****** '''ID''' –  идентификатор статуса услуги
+
                          <PartnerID>0</PartnerID>
****** '''Description''' – описание статуса услуги
+
                          <Quota>NotChecked</Quota>
****** '''NameLat''' – наименование статуса услуги латиницей
+
                          <PacketKey>0</PacketKey>
****** '''Code''' – код статуса услуги
+
                          <AdditionalParams>
****** '''CodeLat''' – код статуса услуги латиницей
+
                              <ParameterPair Key="ContractPrKey">
****** '''Unicode''' – код ISO статуса услуги
+
                                <Value xsi:type="xsd:int">0</Value>
***** '''CityKey''' – ключ города предоставления услуги
+
                              </ParameterPair>
***** '''IsPackage''' – признак пакетной услуги
+
                          </AdditionalParams>
***** '''Code''' – идентификатор услуги
+
                          <Tourists/>
***** '''HasDuration''' – услуга с продолжительностью или без
+
                          <DetailNetto/>
** '''ResponseGuid''' – идентификатор ответа<br />
+
                          <DetailBrutto/>
В случае ошибок в запросе в ответе получаем сообщение с расшифровкой ошибок и/или номер строки с ошибкой.<br />
+
                          <Notes/>
В случае ошибки в GUID получим сообщение "Invalid user or password (Invalid GUID)."<br />
+
                          <Name>тестовый ужин на 100921</Name>
В случае если дата начала больше даты окончания получим сообщение "Parameter 'DateTo' can't be less than 'DateFrom'."<br />
+
                          <StartDate>2021-12-05T00:00:00</StartDate>
В случае отсутствия одного из обязательных параметров получим сообщение "Parameter '<значение параметра>' is required."<br />
+
                          <StartDay>0</StartDay>
В случае отсутствия ключа отеля, ключа города, ключа региона получим сообщение "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'." <br />
+
                          <Duration>1</Duration>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                          <RateBrutto/>
<div class="mw-collapsible-content">
+
                          <Brutto>40</Brutto>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                          <RateNetto/>
Вызов метода SearchHotelServicesMinHotel<br />
+
                          <Netto>0</Netto>
<syntaxhighlight lang="java" enclose="div">
+
                          <ServiceClassID>70</ServiceClassID>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                          <TouristCount>0</TouristCount>
  <soapenv:Header/>
+
                          <ID>-9</ID>
  <soapenv:Body>
+
                          <CityKey>0</CityKey>
      <meg:SearchHotelServicesMinHotel>
+
                          <IsPackage>false</IsPackage>
    <!--Optional:-->
+
                          <Code>704</Code>
        <meg:guid>138e178e-6c1c-4e5a-9f82-8280cb014804</meg:guid>
+
                          <HasDuration>false</HasDuration>
        <!--Optional:-->
+
                        </anyType>
        <meg:request>
+
                        <anyType xsi:type="ExtraService">
<meg:PageSize>100000</meg:PageSize>
+
                          <ExternalID>0</ExternalID>
            <meg:RowIndexFrom>0</meg:RowIndexFrom>
+
                          <Price>20</Price>
            <meg:DateFrom>2021-12-01</meg:DateFrom>
+
                          <NMen>0</NMen>
            <meg:DateTo>2022-12-22</meg:DateTo>
+
                          <PartnerID>0</PartnerID>
            <!--Optional:-->
+
                          <Quota>NotChecked</Quota>
            <meg:RegionKeys>
+
                          <PacketKey>0</PacketKey>
              <!--Zero or more repetitions:-->
+
                          <AdditionalParams>
              <meg:int>6</meg:int>
+
                              <ParameterPair Key="ContractPrKey">
            </meg:RegionKeys>
+
                                <Value xsi:type="xsd:int">0</Value>
            <!--Optional:-->
+
                              </ParameterPair>
            <meg:CityKeys>
+
                          </AdditionalParams>
              <!--Zero or more repetitions:-->
+
                          <Tourists/>
              <meg:int>80</meg:int>
+
                          <DetailNetto/>
            </meg:CityKeys>
+
                          <DetailBrutto/>
            <!--Optional:-->
+
                          <Notes/>
            <meg:HotelKeys>
+
                          <Name>_Прачечная, химчистка</Name>
              <!--Zero or more repetitions:-->
+
                          <StartDate>2021-12-01T00:00:00</StartDate>
              <meg:int>2932</meg:int>
+
                          <StartDay>0</StartDay>
            </meg:HotelKeys>
+
                          <Duration>1</Duration>
            <!--Optional:-->
+
                          <RateBrutto/>
            <meg:RoomDescriptionsKeys>
+
                          <Brutto>20</Brutto>
              <!--Zero or more repetitions:-->
+
                          <RateNetto/>
              <meg:int>1894</meg:int>
+
                          <Netto>0</Netto>
            </meg:RoomDescriptionsKeys>
+
                          <ServiceClassID>78</ServiceClassID>
            <!--Optional:-->
+
                          <TouristCount>0</TouristCount>
            <meg:PansionKeys>
+
                          <ID>-10</ID>
              <!--Zero or more repetitions:-->
+
                          <CityKey>0</CityKey>
              <meg:int>3</meg:int>
+
                          <IsPackage>false</IsPackage>
            </meg:PansionKeys>
+
                          <Code>639</Code>
            <!--Optional:-->
+
                          <HasDuration>false</HasDuration>
            <meg:Ages>
+
                        </anyType>
              <!--Zero or more repetitions:-->
+
                    </ArrayOfAnyType>
              <meg:int>0</meg:int>
+
                  </AdditionalData>
            </meg:Ages>
+
                  <ResponseGuid>36d4defd-a39d-48c5-8288-32a22822f411</ResponseGuid>
            <meg:Pax>2</meg:Pax>
+
              </DataRequestResult>
            <!--Optional:-->
+
            </Data>
            <meg:Tariffs>
+
        </SearchHotelServicesResult>
              <!--Zero or more repetitions:-->
+
      </SearchHotelServicesResponse>
              <meg:int>0</meg:int>
+
  </soap:Body>
            </meg:Tariffs>
+
</soap:Envelope>
            <!--Optional:-->
+
</syntaxhighlight>
            <meg:CacheGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</meg:CacheGuid>
+
</TD></TR></TABLE>
            <meg:ResultView>1</meg:ResultView>
+
</div></div><br />
            <meg:Mode>0</meg:Mode>
+
 
            <!--Optional:-->
+
===SearchHotelServicesMinHotel (Receiving one minimal calculated price for the hotel)===
            <meg:QuotaTypes>
+
The method outputs one minimal (sorted by daily price) calculated price for the hotel.<br />
              <!--Zero or more repetitions:-->
+
Accepted request parameters ( '''*''' – required):<br />
              <meg:int>0</meg:int>
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
            </meg:QuotaTypes>
+
* '''Request ''' – object with request parameters
        </meg:request>
+
** '''PageSize *''' – from which line to output the result. For the first page, specify RowIndexFrom = 0 – the search starts from the very first price. To get the second page or subsequent search pages in Row Index From, you need to pass the internal price number at which the search for the previous price page stopped (this number will be in the response in the totalCount line).
      </meg:SearchHotelServicesMinHotel>
+
** '''RowIndexFrom *''' – from which line the result must be output from. For the first page, specify RowIndexFrom = 0 – the search starts from the very first price. To get the second page or subsequent search pages in RowIndexFrom, you need to pass the internal price number at which the search for the previous price page stopped (this number will be in the response in the TotalCount line)
  </soapenv:Body>
+
** '''DateFrom *''' – date «from»
</soapenv:Envelope>
+
** '''DateTo *''' – date «to»
</syntaxhighlight>
+
** '''RegionKeys''' – ids of regions (if cities and hotels are not specified – search wiil be made for all regions, RegionKeys or CityKeys or HotelKeys must be filled in)
Возвращаемый результат метода SearchHotelServicesMinHotel<br />
+
** '''CityKeys''' – ids of cities (if hotels are not specified, we are looking for a search for all hotels in cities, RegionKeys, CityKeys or HotelKeys must be filled in)
<syntaxhighlight lang="java" enclose="div">
+
** '''HotelKeys''' – hotel IDs (if hotels are specified, search will be made only for them, RegionKeys, CityKeys or HotelKeys must be filled in)
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
** '''RoomDescriptions''' – ids of room descriptions. If not transmitted, it will search for everyone (returning when requesting the [[Master-Interlook:IntegrationService (en)#GetRoomDescriptions (Receiving an array of the descriptions of the rooms)|GetRoomDescriptions]] method)<br />
  <soap:Body>
+
** '''PansionKeys''' – pansion IDs. If were not transferred it will search for all (returning when querying the [[Master-Interlook:IntegrationService (en)#GetPansions (Receiving the list of the pansion types)|GetPansions]] method)
      <SearchHotelServicesMinHotelResponse xmlns="http://www.megatec.ru/">
+
** '''Ages''' – age of children
        <SearchHotelServicesMinHotelResult Message="Ok">
+
** '''Pax *''' – accommodation
            <Data>
+
** '''Tariffs''' – IDs of tariffs for which to calculate the result. If you do not transmit it, it will be counted according to the Ordinary tariff (0 – Ordinary, 1 – SPO)
              <DataRequestResult>
+
** '''CacheGuid''' – the search ID that speeds up the navigation through the pages. You don't need to transmit it during the first search. The search will return this ID in the ResponseGuid parameter. Then, using paging, we transmit this ID further (but only within the framework of one search!)
                  <ResultTable>
+
** '''ResultView''' – the type of output of the result (1 – sorting by daily price with grouping by hotels, 2 – sorting by daily price)
                    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+
** '''QuotaTypes''' – filter by quota type (0 – request, 1 – quota, 2 – stop). We get all possible results. If not specified, the value=0
                        <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="HotelServices" msdata:UseCurrentLocale="true">
+
** ''' Mode''' – do not specify or specify 0
                          <xs:complexType>
+
 
                              <xs:choice minOccurs="0" maxOccurs="unbounded">
+
The returning result:<br />
                                <xs:element name="HotelServices">
+
* '''DataRequestResult''' – the search result
                                    <xs:complexType>
+
** '''ResultTable''' – the table with the result
                                      <xs:sequence>
+
*** '''HotelServices''' – the hotel service
                                          <xs:element name="HotelName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''HotelName''' – the name of the hotel
                                          <xs:element name="HotelKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''HotelKey''' – the hotel key
                                          <xs:element name="RtCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''RtCode''' – the room type
                                          <xs:element name="RtKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''RtKey''' – the room type key
                                          <xs:element name="RcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''RcName''' – the room category
                                          <xs:element name="RcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''RcKey''' – the room category key
                                          <xs:element name="RdName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''RdName''' – type+room category
                                          <xs:element name="RdKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''RdKey''' – key type+room category
                                          <xs:element name="AcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''AcName''' – type of accommodation
                                          <xs:element name="AcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''AcKey''' – the key of the accommodation type
                                          <xs:element name="PnCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''PnCode''' – the type of pansion
                                          <xs:element name="PnKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''PnKey''' – the type of pansion key
                                          <xs:element name="TotalCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''TotalCost''' – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
                                          <xs:element name="Cost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''Cost''' – the amount of the mandatory surcharge Cost
                                          <xs:element name="AddHotsCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''AddHotsCost''' – the amount of the mandatory AdHot surcharge
                                          <xs:element name="AddHotsWithCosts" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''AddHotsWithCosts''' – the amount of the mandatory surcharge of the AdHot type With costs (returns -1 if the display setting of the Adhot type With Costs is in the Integration Service Interlook config. [[Master-Interlook:Обмен. Настройка Web-сервиса Master-Interlook#Настройка параметров конфига web.config Integration Service|Description]].
                                          <xs:element name="DetailBrutto" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''DetailBrutto''' – the price calculation formula
                                          <xs:element name="QuoteType" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''QuoteType''' – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
                                          <xs:element name="CountryKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''CountryKey''' – the key of the country where the service is provided
                                          <xs:element name="CityKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''CityKey''' – the key of the city where the service is provided
                                          <xs:element name="CityName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''CityName''' – the name of the city where the service is provided
                                          <xs:element name="HotelWebSite" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''HotelWebSite''' – the address of the hotel's website
                                          <xs:element name="TariffId" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''TariffId''' – the tariff ID
                                          <xs:element name="TariffName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''TariffName''' – the name of the tariff
                                          <xs:element name="TariffDescription" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''TariffDescription''' – the description of the tariff
                                          <xs:element name="AddHots" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''AddHots''' – the Adhot ID
                                          <xs:element name="ContractPrKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''ContractPrKey''' – the key of the partner providing the service
                                          <xs:element name="HotelImage" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''HotelImage''' – the hotel photo
                                          <xs:element name="Rate" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
**** '''Rate''' – the currency
                                      </xs:sequence>
+
**** '''AddHotsWithCostID''' – ID of AddHotsWithCost
                                    </xs:complexType>
+
** '''ColunmNames''' – the name of table columns
                                </xs:element>
+
*** '''HotelName''' – the name of the hotel
                              </xs:choice>
+
*** '''HotelKey''' – the hotel key
                          </xs:complexType>
+
*** '''RtCode''' – the room type
                        </xs:element>
+
*** '''RtKey''' – the room type key
                    </xs:schema>
+
*** '''RcName''' – the room category
                    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
+
*** '''RcKey''' – the room category key
                        <DocumentElement xmlns="">
+
*** '''RdName''' – the type+room category
                          <HotelServices diffgr:id="HotelServices1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
+
*** '''RdKey''' – the key type+room category
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
+
*** '''AcName''' – type of accommodation
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
+
*** '''AcKey''' – the key of the accommodation type
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room</RtCode>
+
*** '''PnCode''' – the type of pansion
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</RtKey>
+
*** '''PnKey''' – the type of pansion key
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Jakuzzi</RcName>
+
*** '''TotalCost''' – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">20</RcKey>
+
*** '''Cost''' – the amount of the mandatory surcharge Cost
                              <RdName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room Jakuzzi</RdName>
+
*** '''AddHotsCost''' – the amount of the mandatory AddHotsCost surcharge
                              <RdKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">1894</RdKey>
+
*** '''DetailBrutto''' – the price calculation formula
                              <AcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">2AD</AcName>
+
*** '''QuoteType''' – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
+
*** '''CountryKey''' – the key of the country where the service is provided
                              <PnCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">BB</PnCode>
+
*** '''CityKey''' – the key of the city where the service is provided
                              <PnKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</PnKey>
+
*** '''CityName''' – the name of the city where the service is provided
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125470.0000</TotalCost>
+
*** '''HotelWebSite''' – the address of the hotel's website
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125450.00</Cost>
+
*** '''TariffId''' – the tariff ID
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">20.00</AddHotsCost>
+
*** '''TariffName''' – the name of the tariff
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">-1</AddHotsWithCosts>
+
*** '''TariffDescription''' – the description of the tariff
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(325,00[kolesnyk2]*386) * 1 room = 125450,00</DetailBrutto>
+
*** '''AddHots''' – the Adhot ID
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
+
*** '''ContractPrKey''' – the key of the partner providing the service
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
+
*** '''HotelImage''' – the hotel photo
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
+
*** '''Rate''' – the currency
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
+
*** '''AddHotsWithCostID''' – ID of AddHotsWithCost
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
+
** '''TotalCount''' – the number of the line where the search ended
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
+
** '''PageSize''' – the number of data rows returning
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
+
** '''PageIndex''' – the number of the line from which the search was started
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
+
** '''IsLastPage''' – when displaying the last page of search results with hotels, the IsLastPage parameter takes the value true. If the IsLastPage parameter is not processed, the following totalCount value will return an empty result for hotels
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</AddHots>
+
** '''AdditionalData''' – the list of required Addhots
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
+
*** '''ArrayOfAnyType''' – an array of service types
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
+
**** '''anyType''' – the type of service
                          </HotelServices>
+
***** '''ExternalID''' –  the parameter for internal use
                        </DocumentElement>
+
***** '''Price''' – the cost
                    </diffgr:diffgram>
+
***** '''NMen''' – the number of tourists in the reservation
                  </ResultTable>
+
***** '''PartnerID''' – the Partner ID
                  <ColunmNames>
+
***** '''Quota''' – the quota for the service
                    <string>HotelName</string>
+
***** '''PacketKey''' – the package key
                    <string>HotelKey</string>
+
***** '''AdditionalParams''' – an array of additional parameters (represented as a key – value pair)
                    <string>RtCode</string>
+
****** '''ParameterPair Key''' – the key
                    <string>RtKey</string>
+
******* '''Value''' – the value
                    <string>RcName</string>
+
***** '''Tourists''' – the tourists
                    <string>RcKey</string>
+
***** '''DetailNetto''' – netto details
                    <string>RdName</string>
+
***** '''DetailBrutto''' – gross details
                    <string>RdKey</string>
+
***** '''Notes''' – notes to the service
                    <string>AcName</string>
+
***** '''Name''' – the name of the service
                    <string>AcKey</string>
+
***** '''StartDate''' – the date of providing service (in the format YYYY-MM-DDT00:00:00)
                    <string>PnCode</string>
+
***** '''StartDay''' – the day of providing service
                    <string>PnKey</string>
+
***** '''Duration''' – the duration of the service
                    <string>TotalCost</string>
+
***** '''RateBrutto''' – the gross currency
                    <string>Cost</string>
+
***** '''Brutto''' – the gross price
                    <string>AddHotsCost</string>
+
***** '''RateNetto''' – the netto currency
                    <string>AddHotsWithCosts</string>
+
***** '''Netto''' – the netto price
                    <string>DetailBrutto</string>
+
***** '''ServiceClassID''' – the ID of the service class
                    <string>QuoteType</string>
+
***** '''TouristCount''' – the number of tourists using the service
                    <string>CountryKey</string>
+
***** '''ID''' – the service ID (-1 for a new reservation)
                    <string>CityKey</string>
+
***** '''Status''' – the service status
                    <string>CityName</string>
+
****** '''Name''' – the name of the service status
                    <string>HotelWebSite</string>
+
****** '''ID''' –  ID of the service status
                    <string>TariffId</string>
+
****** '''Description''' – the description of the service status
                    <string>TariffName</string>
+
****** '''NameLat''' – the name of the service status in Latin
                    <string>TariffDescription</string>
+
****** '''Code''' – the service status code
                    <string>AddHots</string>
+
****** '''CodeLat''' – the service status code in Latin
                    <string>ContractPrKey</string>
+
****** '''Unicode''' – ISO code of the service status
                    <string>HotelImage</string>
+
***** '''CityKey''' – the key of the city where the service is provided
                    <string>Rate</string>
+
***** '''IsPackage''' – the attribute of a package service
                  </ColunmNames>
+
***** '''Code''' – the service ID
                  <TotalCount>1</TotalCount>
+
***** '''HasDuration''' – is the service with or without duration
                  <PageSize>100000</PageSize>
+
** '''ResponseGuid''' – ID of the response that needs to be transmitted if we are moving through the same search using paging<br />
                  <PageIndex>0</PageIndex>
+
In case of errors in the request, we receive a message in the response with a transcript of the errors/or number of a string with an error.<br />
                  <IsLastPage>true</IsLastPage>
+
In case of an error in GUID we receive the message "Invalid user or password (Invalid GUID)."<br />
                  <AdditionalData>
+
If the start date is bigger than the end date, we will receive the message "The parameter 'DateTo' can not be less than 'DateFrom'."<br />
                    <ArrayOfAnyType>
+
If one of the required parameters is missing, we will receive the message "The parameter '<parameter value>' is required."<br />
                        <anyType xsi:type="ExtraService">
+
If there is no hotel key, city key, region key, we will receive the message "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'."<br />
                          <ExternalID xsi:nil="true"/>
+
 
                          <Price>20</Price>
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
                          <NMen>0</NMen>
+
<div class="mw-collapsible-content">
                          <PartnerID>0</PartnerID>
+
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
                          <Quota>NotChecked</Quota>
+
The invocation of the method SearchHotelServicesMinHotel<br />
                          <PacketKey>0</PacketKey>
+
<syntaxhighlight lang="java" enclose="div">
                          <AdditionalParams>
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
                              <ParameterPair Key="ContractPrKey">
+
  <soapenv:Header/>
                                <Value xsi:type="xsd:int">0</Value>
+
  <soapenv:Body>
                              </ParameterPair>
+
      <meg:SearchHotelServicesMinHotel>
                          </AdditionalParams>
+
    <!--Optional:-->
                          <DetailBrutto/>
+
        <meg:guid>138e178e-6c1c-4e5a-9f82-8280cb014804</meg:guid>
                          <Notes/>
 
                          <Name>Hardlink</Name>
 
                          <StartDate>2021-12-01T00:00:00</StartDate>
 
                          <StartDay xsi:nil="true"/>
 
                          <Duration>0</Duration>
 
                          <RateBrutto/>
 
                          <Brutto>20</Brutto>
 
                          <ServiceClassID>99</ServiceClassID>
 
                          <TouristCount xsi:nil="true"/>
 
                          <ID>0</ID>
 
                          <Status>
 
                              <Name>Hardlink</Name>
 
                              <ID>0</ID>
 
                          </Status>
 
                          <CityKey>80</CityKey>
 
                          <IsPackage>false</IsPackage>
 
                          <Code>699</Code>
 
                          <HasDuration>false</HasDuration>
 
                        </anyType>
 
                    </ArrayOfAnyType>
 
                  </AdditionalData>
 
                  <ResponseGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</ResponseGuid>
 
              </DataRequestResult>
 
            </Data>
 
        </SearchHotelServicesMinHotelResult>
 
      </SearchHotelServicesMinHotelResponse>
 
  </soap:Body>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
 
===SearchActualCostCalculationVariant (Поиск возможных вариантов типов комнат, категорий комнат, размещений и питаний на которые есть актуальные цены по отелю)===
 
Метод выдает возможные варианты типов комнат, категорий комнат, размещений и питаний на которые есть актуальные цены по отелю.<br />
 
Принимаемые параметры запроса ( * – обязательный):<br />
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''Request ''' – объект с параметрами запроса:
 
** '''HotelId *''' – идентификатор отеля (обязательный параметр, значения 0 и -1 не допустимы)
 
** '''DateFrom *''' – дата «с»
 
** '''DateTo *''' – дата «по»
 
** '''ValidateQuoata''' – проверять ли квоту (true – проверять, false – нет)
 
** '''QuotaTypes''' – фильтр по типу квоты (0 – запрос, 1 – квота, 2 – стоп)
 
** '''CheckAdHot''' – учитывать ли цены на обязательные адхоты (true – учитывать, false – нет)
 
** '''Rate *''' – код валюты, в которой будет вестись расчет
 
Возвращаемый результат:<br />
 
* '''SearchActualCostCalculationVariantResult''' – результат поиска
 
** '''CostCalculationVariant''' – массив данных
 
*** '''RoomAccommodationId''' – ключ размещения
 
*** '''RoomTypeId''' – ключ типа комнаты
 
*** '''RoomCategoryId''' – ключ категории комнаты
 
*** '''PansionId''' – ключ питания
 
*** '''RoomAccommodationName''' – код размещения
 
*** '''RoomTypeName''' – код типа комнаты
 
*** '''RoomCategoryName''' – код категории комнаты
 
*** '''PansionName''' – код питания
 
*** '''CountAdult''' – количество взрослых
 
*** '''CountChildren''' – количество детей
 
*** '''Quota''' – значение квоты
 
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода SearchActualCostCalculationVariant
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
  <soapenv:Header/>
 
  <soapenv:Body>
 
      <meg:SearchActualCostCalculationVariant>
 
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:guid>d1ac9f4d-20bd-43e0-b5b5-ad60c3cf0065</meg:guid>
+
         <meg:request>
        <!--Optional:-->
+
<meg:PageSize>100000</meg:PageSize>
        <meg:request HotelId="2940" DateFrom="2021-09-08" DateTo="2021-09-09" ValidateQuota="true" CheckAdHot="true" Rate="1" QuotaTypes="0"/>
+
            <meg:RowIndexFrom>0</meg:RowIndexFrom>
      </meg:SearchActualCostCalculationVariant>
+
            <meg:DateFrom>2021-12-01</meg:DateFrom>
  </soapenv:Body>
+
            <meg:DateTo>2022-12-22</meg:DateTo>
</soapenv:Envelope>
+
            <!--Optional:-->
</syntaxhighlight>
+
            <meg:RegionKeys>
Возвращаемый результат метода SearchActualCostCalculationVariant
+
              <!--Zero or more repetitions:-->
<syntaxhighlight lang="java" enclose="div">
+
              <meg:int>6</meg:int>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
            </meg:RegionKeys>
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
            <!--Optional:-->
  <soap:Body>
+
             <meg:CityKeys>
      <SearchActualCostCalculationVariantResponse xmlns="http://www.megatec.ru/">
+
               <!--Zero or more repetitions:-->
        <SearchActualCostCalculationVariantResult Message="Ok">
+
              <meg:int>80</meg:int>
             <Data>
+
            </meg:CityKeys>
               <CostCalculationVariant>
+
            <!--Optional:-->
                  <RoomAccommodationId>5558</RoomAccommodationId>
+
            <meg:HotelKeys>
                  <RoomTypeId>3</RoomTypeId>
+
              <!--Zero or more repetitions:-->
                  <RoomCategoryId>20</RoomCategoryId>
+
              <meg:int>2932</meg:int>
                  <PansionId>3</PansionId>
+
            </meg:HotelKeys>
                  <RoomAccommodationName>2AD</RoomAccommodationName>
+
            <!--Optional:-->
                  <RoomTypeName>Double Room</RoomTypeName>
+
            <meg:RoomDescriptionsKeys>
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
+
               <!--Zero or more repetitions:-->
                  <PansionName>BB</PansionName>
+
               <meg:int>1894</meg:int>
                  <CountAdult>2</CountAdult>
+
            </meg:RoomDescriptionsKeys>
                  <CountChildren>0</CountChildren>
+
            <!--Optional:-->
                  <Quota>0</Quota>
+
            <meg:PansionKeys>
               </CostCalculationVariant>
+
              <!--Zero or more repetitions:-->
               <CostCalculationVariant>
+
              <meg:int>3</meg:int>
                  <RoomAccommodationId>5558</RoomAccommodationId>
+
            </meg:PansionKeys>
                  <RoomTypeId>45</RoomTypeId>
+
            <!--Optional:-->
                  <RoomCategoryId>20</RoomCategoryId>
+
            <meg:Ages>
                  <PansionId>4</PansionId>
+
              <!--Zero or more repetitions:-->
                  <RoomAccommodationName>2AD</RoomAccommodationName>
+
              <meg:int>0</meg:int>
                  <RoomTypeName>Junior Suite</RoomTypeName>
+
            </meg:Ages>
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
+
            <meg:Pax>2</meg:Pax>
                  <PansionName>HB</PansionName>
+
            <!--Optional:-->
                  <CountAdult>2</CountAdult>
+
            <meg:Tariffs>
                  <CountChildren>0</CountChildren>
+
              <!--Zero or more repetitions:-->
                  <Quota>0</Quota>
+
              <meg:int>0</meg:int>
              </CostCalculationVariant>
+
            </meg:Tariffs>
            </Data>
+
            <!--Optional:-->
        </SearchActualCostCalculationVariantResult>
+
            <meg:CacheGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</meg:CacheGuid>
      </SearchActualCostCalculationVariantResponse>
+
            <meg:ResultView>1</meg:ResultView>
  </soap:Body>
+
            <meg:Mode>0</meg:Mode>
</soap:Envelope>
+
            <!--Optional:-->
</syntaxhighlight>
+
            <meg:QuotaTypes>
</TD></TR></TABLE>
+
              <!--Zero or more repetitions:-->
</div></div><br />
+
              <meg:int>0</meg:int>
 
+
            </meg:QuotaTypes>
==Методы работы с ценами==
+
         </meg:request>
===GetSpoList (Получение списка SPO согласно запросу)===
+
       </meg:SearchHotelServicesMinHotel>
Метод возвращает  список SPO согласно запросу.<br />
 
Важный момент: возвращается информация только по тем Costoffers, на которые есть публикация партнеру (группе партнера) пользователя, которые подключились к веб сервису.<br />
 
Принимаемые параметры запроса (* – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''Request''' – класс с параметрами запроса
 
** '''SvKey *''' – ключ класса услуги (1 – проживание, 2 – трансфер, 4 – экскурсия, 5 – экстрасервис, 0 или -1 не принимаются)
 
** '''PublicationDateBegin *''' – дата публикации SPO «с»
 
** '''PublicationDateEnd *''' – дата публикации цены «по»
 
Возвращаемый результат:<br />
 
* '''SPOInfo''' – результат поиска
 
** '''ResultTable''' – таблица с результатом
 
** '''Id''' – ключ SPO
 
** '''Name''' – название SPO
 
** '''PeriodBeforeCheckIn''' – период до заезда
 
** '''SaleDateBegin''' – дата с которой возможно бронирование
 
** '''SaleDateEnd''' – дата до которой возможно бронирование
 
** '''Comment''' – описание SPO
 
** '''CreateDate''' – дата создания
 
** '''UpdateDate''' – дата обновления
 
** '''SpoType''' – тип SPO (Ordinary – 0, Spo – 1)
 
** '''SvKey''' – класс услуги
 
** '''COLinkServices''' – услуги SPO
 
*** '''COLinkService''' – конкретная услуга SPO
 
**** '''SvKey''' –  ключ типа услуги
 
**** '''Code''' –  ключ услуги
 
**** '''DurationMin''' – минимальная продолжительность
 
**** '''DurationMax''' – максимальная продолжительность
 
**** '''IsDisable''' – заблокирована ли услуга
 
**** '''DisableDate''' – дата блокировки
 
** '''COServices''' – информация о ценах на услуги в этом SPO
 
*** '''COService''' – информация о цене на конкретную услугу в этом SPO
 
**** '''Code''' – идентификатор услуги
 
**** '''CostCount''' – количество цен для услуги в SPO
 
**** '''CostLastUpdate''' – дата последнего изменения (добавления, удаления) цен для услуги в этом СПО
 
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода GetSpoList
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
  <soapenv:Header/>
 
  <soapenv:Body>
 
      <meg:GetSpoList>
 
        <!--Optional:-->
 
        <meg:guid>16f4e0ca-725a-4ffe-8a5e-c41d16ef1b01</meg:guid>
 
        <!--Optional:-->
 
         <meg:request SvKey="1" PublicationDateBegin="2021-08-01" PublicationDateEnd="2021-08-04"/>
 
       </meg:GetSpoList>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetSpoList
+
Returning result of the method SearchHotelServicesMinHotel<br />
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetSpoListResponse xmlns="http://www.megatec.ru/">
+
       <SearchHotelServicesMinHotelResponse xmlns="http://www.megatec.ru/">
         <GetSpoListResult Message="Ok">
+
         <SearchHotelServicesMinHotelResult Message="Ok">
 
             <Data>
 
             <Data>
               <SPOInfo Id="2049" Name="Maska Ordinary" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:31:38.35" UpdateDate="2021-08-03T12:32:35.897" SpoType="0" SvKey="1">
+
               <DataRequestResult>
                  <COLinkServices>
+
                  <ResultTable>
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
+
                    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
                  </COLinkServices>
+
                        <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="HotelServices" msdata:UseCurrentLocale="true">
                  <XYRules/>
+
                          <xs:complexType>
                  <COServices>
+
                              <xs:choice minOccurs="0" maxOccurs="unbounded">
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
+
                                <xs:element name="HotelServices">
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
+
                                    <xs:complexType>
                  </COServices>
+
                                      <xs:sequence>
              </SPOInfo>
+
                                          <xs:element name="HotelName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
              <SPOInfo Id="2050" Name="Maska 7=6" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:33:37.847" UpdateDate="2021-08-03T12:35:11.367" SpoType="1" SvKey="1">
+
                                          <xs:element name="HotelKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  <COLinkServices>
+
                                          <xs:element name="RtCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
+
                                          <xs:element name="RtKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  </COLinkServices>
+
                                          <xs:element name="RcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  <XYRules>
+
                                          <xs:element name="RcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                    <XYRule ExcludeBy="0" Sign="-" XFrom="2" XTo="7" Y="1"/>
+
                                          <xs:element name="RdName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  </XYRules>
+
                                          <xs:element name="RdKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  <COServices>
+
                                          <xs:element name="AcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
+
                                          <xs:element name="AcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
+
                                          <xs:element name="PnCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  </COServices>
+
                                          <xs:element name="PnKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
              </SPOInfo>
+
                                          <xs:element name="TotalCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
              <SPOInfo Id="2051" Name="Maska 14=12" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:35:15.797" UpdateDate="2021-08-03T12:35:42.75" SpoType="1" SvKey="1">
+
                                          <xs:element name="Cost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  <COLinkServices>
+
                                          <xs:element name="AddHotsCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
+
                                          <xs:element name="AddHotsWithCosts" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  </COLinkServices>
+
                                          <xs:element name="DetailBrutto" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  <XYRules>
+
                                          <xs:element name="QuoteType" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                    <XYRule ExcludeBy="0" Sign="-" XFrom="8" XTo="14" Y="2"/>
+
                                          <xs:element name="CountryKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  </XYRules>
+
                                          <xs:element name="CityKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  <COServices>
+
                                          <xs:element name="CityName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
+
                                          <xs:element name="HotelWebSite" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
+
                                          <xs:element name="TariffId" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                  </COServices>
+
                                          <xs:element name="TariffName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
              </SPOInfo>
+
                                          <xs:element name="TariffDescription" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
            </Data>
+
                                          <xs:element name="AddHots" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        </GetSpoListResult>
+
                                          <xs:element name="ContractPrKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
      </GetSpoListResponse>
+
                                          <xs:element name="HotelImage" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
  </soap:Body>
+
                                          <xs:element name="Rate" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
</soap:Envelope>
+
                                      </xs:sequence>
</syntaxhighlight>
+
                                    </xs:complexType>
</TD></TR></TABLE>
+
                                </xs:element>
</div></div><br />
+
                              </xs:choice>
 
+
                          </xs:complexType>
===GetCosts (Получение брутто цены по параметрам запроса)===
+
                        </xs:element>
Метод возвращает брутто цены по параметрам запроса.<br />
+
                    </xs:schema>
Принимаемые параметры запроса ( * – обязательный):
+
                    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                        <DocumentElement xmlns="">
* '''Request''' – объект с параметрами запроса
+
                          <HotelServices diffgr:id="HotelServices1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
** '''SpoId *''' – ключ SPO ((Параметр CO_Id таблицы CostOffers). Список SPO возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetSpoList (Получение списка СПО согласно запросу)|GetSpoList]])<br />
+
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
** '''TariffId *''' – ключ тарифа ((В таблице цен соответствует параметру CS_CVId). При установке "-1" подбираются все тарифы)
+
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
** '''SvKey *''' – тип услуги(1 – проживание, 2 – трансфер, 4 – экскурсия, 5 – экстрасервис)
+
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room</RtCode>
** '''Code *''' – ключ услуги (Для отеля это ключ из таблицы Partners. Для всех остальных  услуг – это ключ SL_KEY из таблицы ServiceList. Так же эти ключи можно получить методами веб сервиса: GetServiceList, GetExcursions, GetTransfers, GetHotels)
+
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</RtKey>
** '''PriceType''' – тип цены проживания (0 – за человека, 1 – за комнату, 2 – все). Если не указан, то запрашивается 2.
+
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Jakuzzi</RcName>
** '''DownloadOnlyActualCosts *''' – закачка только актуальных цен (1 – получать актуальные, 0 – получать все) 
+
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">20</RcKey>
** '''DownloadUpdateCostsFromDate *''' – закачивать цены только с выбранной даты (1 – настройка включена, 0 – получаем все)
+
                              <RdName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room Jakuzzi</RdName>
** '''CostsUpdateDateBegin *''' – дата, с которой закачивать цены (используется при установке параметра DownloadUpdateCostsFromDate)
+
                              <RdKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">1894</RdKey>
Возвращаемый результат:<br />
+
                              <AcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">2AD</AcName>
* '''GetCostsResult''' – результаты выдачи
+
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
** '''CostInfo''' – массив данных
+
                              <PnCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">BB</PnCode>
*** '''Id''' – ключ цены
+
                              <PnKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</PnKey>
*** '''SvKey''' – ключ типа услуги
+
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125470.0000</TotalCost>
*** '''SpoId''' – идентификатор SPO
+
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125450.00</Cost>
*** '''Code''' – ключ услуги
+
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">20.00</AddHotsCost>
*** '''AgeFrom''' – возраст «с»
+
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">-1</AddHotsWithCosts>
*** '''AgeTo''' – возраст «по»
+
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(325,00[kolesnyk2]*386) * 1 room = 125450,00</DetailBrutto>
*** '''CreateDate''' – дата создания цены
+
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
*** '''CheckInDateBegin''' – дата заезда «с»
+
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
*** '''CheckInDateEnd''' – дата заезда «до»
+
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
*** '''CheckOutDateBegin''' – дата выезда «с»
+
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
*** '''CheckOutDateEnd''' – дата выезда «до»
+
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
*** '''DateBegin''' – дата действия цены «с»
+
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
*** '''DateEnd''' – дата действия цены «до»
+
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
*** '''UpdateDate''' – последняя дата обновления цены
+
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
*** '''Price''' – значение цены
+
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</AddHots>
*** '''Rate''' – валюта
+
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
*** '''SubCode1''' – параметр цены в зависимости от типа услуги (для проживания – ключ типа номера, для трансфера – TransferType, для Adhot – ключ типа комнаты)
+
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
*** '''SubCode2''' – параметр цены в зависимости от типа услуги (для проживания – ключ питания, для трансфера – точка начала, для Adhot – ключ отеля)
+
                          </HotelServices>
*** '''SubCode3''' – параметр цены в зависимости от типа услуги (для проживания – ключ категории номера, для трансфера – точка окончания, для Adhot – ключ категории комнаты)
+
                        </DocumentElement>
*** '''SubCode4''' – параметр цены в зависимости от типа услуги (для проживания – размещение, для Adhot – размещение)
+
                    </diffgr:diffgram>
*** '''TariffId''' – ключ тарифа
+
                  </ResultTable>
*** '''Type''' – тип цены (1 – групповая, 0 – негрупповая. Для отеля за комнату или за человека.)
+
                  <ColunmNames>
*** '''CountryId''' – ключ страны услуги
+
                    <string>HotelName</string>
*** '''CityFromId''' – ключ города услуги
+
                    <string>HotelKey</string>
*** '''CityToId''' – ключ города услуги «куда» (для трансферов)
+
                    <string>RtCode</string>
*** '''TouroperatorId''' – ключ туроператора
+
                    <string>RtKey</string>
 
+
                    <string>RcName</string>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                    <string>RcKey</string>
<div class="mw-collapsible-content">
+
                    <string>RdName</string>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                    <string>RdKey</string>
Вызов метода GetCosts
+
                    <string>AcName</string>
<syntaxhighlight lang="java" enclose="div">
+
                    <string>AcKey</string>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                    <string>PnCode</string>
  <soapenv:Header/>
+
                    <string>PnKey</string>
  <soapenv:Body>
+
                    <string>TotalCost</string>
      <meg:GetCosts>
+
                    <string>Cost</string>
        <!--Optional:-->
+
                    <string>AddHotsCost</string>
        <meg:guid>5932b280-c780-4c84-a83a-52b25bc22615</meg:guid>
+
                    <string>AddHotsWithCosts</string>
        <!--Optional:-->
+
                    <string>DetailBrutto</string>
        <meg:request SpoId="2049" TariffId="-1" SvKey="1" Code="2945" PriceType="2" DownloadOnlyActualCosts="0" DownloadUpdateCostsFromDate="0" CostsUpdateDateBegin="2021-08-04"/>
+
                    <string>QuoteType</string>
      </meg:GetCosts>
+
                    <string>CountryKey</string>
  </soapenv:Body>
+
                    <string>CityKey</string>
</soapenv:Envelope>
+
                    <string>CityName</string>
</syntaxhighlight>
+
                    <string>HotelWebSite</string>
Возвращаемый результат метода GetCosts
+
                    <string>TariffId</string>
<syntaxhighlight lang="java" enclose="div">
+
                    <string>TariffName</string>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
                    <string>TariffDescription</string>
  <soap:Body>
+
                    <string>AddHots</string>
      <GetCostsResponse xmlns="http://www.megatec.ru/">
+
                    <string>ContractPrKey</string>
        <GetCostsResult Message="Ok">
+
                    <string>HotelImage</string>
            <Data>
+
                    <string>Rate</string>
              <CostInfo Id="7795837" SvKey="1" SpoId="2049" Code="2945" AgeFrom="0" AgeTo="0" CreateDate="2021-08-03T12:56:34.237" CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" DateBegin="2021-01-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2021-08-03T12:56:35.08" Price="30.0000" Rate="EU" SubCode1="2" SubCode2="3" SubCode3="20" SubCode4="459" TariffId="0" Type="1" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035"/>
+
                  </ColunmNames>
              <CostInfo Id="7795835" SvKey="1" SpoId="2049" Code="2945" AgeFrom="0" AgeTo="0" CreateDate="2021-08-03T12:56:34.237" CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" DateBegin="2021-01-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2021-08-03T12:56:35.08" Price="10.0000" Rate="EU" SubCode1="2" SubCode2="3" SubCode3="20" SubCode4="7864" TariffId="0" Type="1" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035"/>
+
                  <TotalCount>1</TotalCount>
          </Data>
+
                  <PageSize>100000</PageSize>
        </GetCostsResult>
+
                  <PageIndex>0</PageIndex>
      </GetCostsResponse>
+
                  <IsLastPage>true</IsLastPage>
  </soap:Body>
+
                  <AdditionalData>
</soap:Envelope>
+
                    <ArrayOfAnyType>
</syntaxhighlight>
+
                        <anyType xsi:type="ExtraService">
</TD></TR></TABLE>
+
                          <ExternalID xsi:nil="true"/>
</div></div><br />
+
                          <Price>20</Price>
 
+
                          <NMen>0</NMen>
===SpoPriceMarkDownloaded (Получение информации о доступности конкретного SPO для продажи)===
+
                          <PartnerID>0</PartnerID>
Метод возвращает информацию о доступности конкретного SPO для продажи.<br />
+
                          <Quota>NotChecked</Quota>
Важный момент: возвращается информация только по тем Costoffers, на которые есть публикация партнеру (группе партнера) пользователя, которые подключились к веб сервису.<br />
+
                          <PacketKey>0</PacketKey>
Принимаемые параметры запроса (* – обязательный):<br />
+
                          <AdditionalParams>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                              <ParameterPair Key="ContractPrKey">
* '''SpoKey *''' – ключ SPO (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetSpoLList (получение списка SPO согласно запросу)|GetSpoLList]])
+
                                <Value xsi:type="xsd:int">0</Value>
* '''VariantOfCost''' – вариант цены
+
                              </ParameterPair>
* '''SvKey''' – ключ класса услуги
+
                          </AdditionalParams>
* '''Code''' – код услуги
+
                          <DetailBrutto/>
Возвращаемый результат:<br />
+
                          <Notes/>
* '''SpoPriceMarkDownloadedResult''' – результат поиска
+
                          <Name>Hardlink</Name>
** '''true''' – SPO доступно
+
                          <StartDate>2021-12-01T00:00:00</StartDate>
** '''false''' – SPO недоступно
+
                          <StartDay xsi:nil="true"/>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                          <Duration>0</Duration>
<div class="mw-collapsible-content">
+
                          <RateBrutto/>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                          <Brutto>20</Brutto>
Вызов метода SpoPriceMarkDownloaded
+
                          <ServiceClassID>99</ServiceClassID>
<syntaxhighlight lang="java" enclose="div">
+
                          <TouristCount xsi:nil="true"/>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                          <ID>0</ID>
  <soapenv:Header/>
+
                          <Status>
  <soapenv:Body>
+
                              <Name>Hardlink</Name>
      <meg:SpoPriceMarkDownloaded>
+
                              <ID>0</ID>
        <!--Optional:-->
+
                          </Status>
        <meg:guid>016e9dd9-802e-46fb-bb79-7c44a31d6560</meg:guid>
+
                          <CityKey>80</CityKey>
        <meg:spoKey>2049</meg:spoKey>
+
                          <IsPackage>false</IsPackage>
        <meg:variantOfCost>0</meg:variantOfCost>
+
                          <Code>699</Code>
        <meg:svKey>0</meg:svKey>
+
                          <HasDuration>false</HasDuration>
        <meg:code>0</meg:code>
+
                        </anyType>
      </meg:SpoPriceMarkDownloaded>
+
                    </ArrayOfAnyType>
  </soapenv:Body>
+
                  </AdditionalData>
</soapenv:Envelope>
+
                  <ResponseGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</ResponseGuid>
</syntaxhighlight>
+
               </DataRequestResult>
Возвращаемый результат метода SpoPriceMarkDownloaded
+
             </Data>
<syntaxhighlight lang="java" enclose="div">
+
        </SearchHotelServicesMinHotelResult>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
       </SearchHotelServicesMinHotelResponse>
  <soap:Body>
 
      <SpoPriceMarkDownloadedResponse xmlns="http://www.megatec.ru/">
 
        <SpoPriceMarkDownloadedResult>true</SpoPriceMarkDownloadedResult>
 
      </SpoPriceMarkDownloadedResponse>
 
  </soap:Body>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
 
==Методы работы с услугами==
 
===GetHotels (Получение списка отелей по параметрам)===
 
Метод возвращает список отелей по параметрам.<br />
 
Принимаемые параметры запроса ( * – обязательный):
 
* '''СountryKey *''' – ключ страны (-1 для всех)
 
* '''RegionKey *''' – ключ региона (-1 для всех)
 
* '''СityKey *''' – ключ города (-1 для всех)
 
Возвращаемый результат:<br />
 
* '''GetHotelsResult''' – результаты выдачи
 
* '''Hotel''' – отель
 
** '''Name''' – название отеля
 
** '''ID''' – идентификатор отеля
 
** '''Description''' – описание отеля
 
** '''NameLat''' – название отеля латиницей
 
** '''Code''' – код отеля
 
** '''CodeLat''' – код отеля латиницей
 
** '''Unicode''' – код ISO отеля
 
** '''City''' – город отеля
 
*** '''Name''' – название города
 
*** '''ID''' – идентификатор города
 
*** '''Description''' – описание города
 
*** '''NameLat''' – название города латиницей
 
*** '''Code''' – код города
 
*** '''CodeLat''' – код города латиницей
 
*** '''Unicode''' – код ISO города
 
*** '''CountryID''' – идентификатор страны отеля
 
*** '''RegionID''' – идентификатор региона отеля
 
** '''RegionID''' – идентификатор региона отеля
 
** '''PriceType''' – тип цены (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
 
** '''CountCosts''' – количество цен на отель
 
** '''CityId''' – идентификатор города отеля
 
** '''HotelCategoryID''' – идентификатор категории отеля
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода GetHotels
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
  <soapenv:Header/>
 
  <soapenv:Body>
 
      <meg:GetHotels>
 
        <meg:countryKey>10</meg:countryKey>
 
        <meg:regionKey>10</meg:regionKey>
 
        <meg:cityKey>10</meg:cityKey>
 
      </meg:GetHotels>
 
  </soapenv:Body>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
Возвращаемый результат метода GetHotels
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
  <soap:Body>
 
      <GetHotelsResponse xmlns="http://www.megatec.ru/">
 
        <GetHotelsResult>
 
            <Hotel>
 
              <Name>Aegean Blue Hotel</Name>
 
              <ID>2254</ID>
 
              <Description>3 stars (B)  (\\Nea KallikratiaABBA)</Description>
 
              <NameLat/>
 
              <Code>AGN</Code>
 
              <CodeLat/>
 
              <Unicode/>
 
              <City>
 
                  <Name>Nea KallikratiaABBA</Name>
 
                  <ID>10</ID>
 
                  <Description/>
 
                  <NameLat/>
 
                  <Code>NKL</Code>
 
                  <CodeLat/>
 
                  <Unicode/>
 
                  <CountryID>4</CountryID>
 
                  <RegionID>6</RegionID>
 
              </City>
 
              <RegionID>6</RegionID>
 
              <PriceType>None</PriceType>
 
              <CountCosts>0</CountCosts>
 
              <CityID>10</CityID>
 
              <HotelCategoryID>6</HotelCategoryID>
 
            </Hotel>
 
            <Hotel>
 
              <Name>Alkyonis Hotel</Name>
 
              <ID>1015</ID>
 
              <Description>2+ stars (C Sup)  (\\Nea KallikratiaABBA)</Description>
 
              <NameLat/>
 
              <Code>ALK</Code>
 
              <CodeLat/>
 
              <Unicode/>
 
              <City>
 
                  <Name>Nea KallikratiaABBA</Name>
 
                  <ID>10</ID>
 
                  <Description/>
 
                  <NameLat/>
 
                  <Code>NKL</Code>
 
                  <CodeLat/>
 
                  <Unicode/>
 
                  <CountryID>4</CountryID>
 
                  <RegionID>6</RegionID>
 
              </City>
 
              <RegionID>6</RegionID>
 
              <PriceType>None</PriceType>
 
              <CountCosts>0</CountCosts>
 
               <CityID>10</CityID>
 
              <HotelCategoryID>7</HotelCategoryID>
 
             </Hotel>
 
          </GetHotelsResult>
 
       </GetHotelsResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4129: Строка 3697:
 
</div></div><br />
 
</div></div><br />
  
===GetTransfers (Получение списка трансферов по параметрам)===
+
===SearchActualCostCalculationVariant (Search for the possible types of rooms, categories of rooms, accommodations and pansions for which there are actual prices for the hotel)===
Метод возвращает список трансферов по параметрам.<br />
+
The method provides possible options for room types, room categories, accommodations and pansions for which there are actual prices for the hotel.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Request''' – объект с параметрами запроса
+
* '''Request ''' – the object with request parameters:
** '''СountryKey *''' – ключ страны (-1 для всех)
+
** '''HotelId *''' – the hotel ID (required parameter, values 0 and -1 are not allowed)
** '''СityKey *''' – ключ города (-1 для всех)
+
** '''DateFrom *''' – date «from»
** '''RegionKey *''' – ключ региона (-1 для всех)
+
** '''DateTo *''' – date «to»
** '''TypeKey *''' – ключ типа трансфера (-1 для всех)
+
** '''ValidateQuoata''' – whether to check the quota (true – check, false – no)
Возвращаемый результат:<br />
+
** '''QuotaTypes''' – the filter by quota type (0 – request, 1 – quota, 2 – stop)
* '''GetTransferResult''' – результаты выдачи
+
** '''CheckAdHot''' – whether to take into account prices for mandatory adhots (true – take into account, false – not)
** '''TransferDirectionInfo''' – массив данных
+
** '''Rate *''' – the code of the currency in which the calculation will be made
*** '''ID''' – идентификатор трансфера
+
The returning result:<br />
*** '''Name''' – название
+
* '''SearchActualCostCalculationVariantResult''' – The returning result
*** '''TransferTypeID''' – ключ типа трансфера
+
** '''CostCalculationVariant''' – an array of the data
*** '''TransferTypeName''' – название типа трансфера
+
*** '''RoomAccommodationId''' – the accommodation key
*** '''CityFromID''' – идентификатор города откуда
+
*** '''RoomTypeId''' – the room type key
*** '''CityFromName''' – название города откуда
+
*** '''RoomCategoryId''' – the room category key
*** '''CityToID''' – идентификатор города куда
+
*** '''PansionId''' – the pansion key
*** '''CityToName''' – название города куда
+
*** '''RoomAccommodationName''' – the accommodation code
*** '''PointFromID''' – идентификатор точки откуда
+
*** '''RoomTypeName''' – the room type code
*** '''PointFromName''' – название точки откуда
+
*** '''RoomCategoryName''' – the room category code
*** '''PointToID''' – идентификатор точки куда
+
*** '''PansionName''' – the pansion code
*** '''PointToName''' – название точки куда
+
*** '''CountAdult''' – the number of adults
 +
*** '''CountChildren''' – the number of children
 +
*** '''Quota''' – the quota value
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetTransfers
+
The invocation of the method SearchActualCostCalculationVariant
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetTransfers>
+
       <meg:SearchActualCostCalculationVariant>
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:guid>699cbbac-6acc-4339-9d3c-2a231357d0c1</meg:guid>
+
         <meg:guid>d1ac9f4d-20bd-43e0-b5b5-ad60c3cf0065</meg:guid>
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:request>
+
         <meg:request HotelId="2940" DateFrom="2021-09-08" DateTo="2021-09-09" ValidateQuota="true" CheckAdHot="true" Rate="1" QuotaTypes="0"/>
            <meg:CountryKey>10</meg:CountryKey>
+
       </meg:SearchActualCostCalculationVariant>
            <meg:CityKey>10</meg:CityKey>
 
            <meg:RegionKey>10</meg:RegionKey>
 
            <meg:TypeKey>1</meg:TypeKey>
 
        </meg:request>
 
       </meg:GetTransfers>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTransfers
+
The returning result for the method SearchActualCostCalculationVariant
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 +
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetTransfersResponse xmlns="http://www.megatec.ru/">
+
       <SearchActualCostCalculationVariantResponse xmlns="http://www.megatec.ru/">
         <GetTransfersResult Message="Ok">
+
         <SearchActualCostCalculationVariantResult Message="Ok">
 
             <Data>
 
             <Data>
               <TransferDirectionInfo Id="527" Name="Arrival transfer: Moscow - All Cities (Finance)" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="87" CityFromName="Moscow" CityToId="0" CityToName="All" PointFromId="0" PointFromName="All" PointToId="1341" PointToName="Finance"/>
+
               <CostCalculationVariant>
               <TransferDirectionInfo Id="530" Name="Arrival transfer: All Cities - All Cities" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="0" CityFromName="All" CityToId="0" CityToName="All" PointFromId="0" PointFromName="All" PointToId="0" PointToName="All"/>
+
                  <RoomAccommodationId>5558</RoomAccommodationId>
               <TransferDirectionInfo Id="576" Name="Arrival transfer: Moscow (lalala) - All Cities" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="87" CityFromName="Moscow" CityToId="0" CityToName="All" PointFromId="3" PointFromName="lalala" PointToId="0" PointToName="All"/>
+
                  <RoomTypeId>3</RoomTypeId>
            </Data>
+
                  <RoomCategoryId>20</RoomCategoryId>
         </GetTransfersResult>
+
                  <PansionId>3</PansionId>
       </GetTransfersResponse>
+
                  <RoomAccommodationName>2AD</RoomAccommodationName>
 +
                  <RoomTypeName>Double Room</RoomTypeName>
 +
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
 +
                  <PansionName>BB</PansionName>
 +
                  <CountAdult>2</CountAdult>
 +
                  <CountChildren>0</CountChildren>
 +
                  <Quota>0</Quota>
 +
              </CostCalculationVariant>
 +
               <CostCalculationVariant>
 +
                  <RoomAccommodationId>5558</RoomAccommodationId>
 +
                  <RoomTypeId>45</RoomTypeId>
 +
                  <RoomCategoryId>20</RoomCategoryId>
 +
                  <PansionId>4</PansionId>
 +
                  <RoomAccommodationName>2AD</RoomAccommodationName>
 +
                  <RoomTypeName>Junior Suite</RoomTypeName>
 +
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
 +
                  <PansionName>HB</PansionName>
 +
                  <CountAdult>2</CountAdult>
 +
                  <CountChildren>0</CountChildren>
 +
                  <Quota>0</Quota>
 +
               </CostCalculationVariant>
 +
            </Data>
 +
         </SearchActualCostCalculationVariantResult>
 +
       </SearchActualCostCalculationVariantResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4195: Строка 3784:
 
</div></div><br />
 
</div></div><br />
  
===GetExcursions (Получение списка экскурсий по параметрам)===
+
==Methods of working with prices==
Метод возвращает экскурсии по параметрам.<br />
+
===GetSpoList (Receiving the list of SPOs according to the request)===
Принимаемые параметры запроса ( * – обязательный):
+
The method returns a list of SPOs according to the request.<br />
* '''СountryKey *''' – ключ страны (-1 для всех)
+
An important point: information is returning only for those Costoffers for which there is a publication to the partner (partner group) of the user who connected to the web service.<br />
* '''RegionKey *''' – ключ региона (-1 для всех)
+
Accepted request parameters ( '''*''' required):
* '''СityKey *''' – ключ города (-1 для всех)
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
Возвращаемый результат:<br />
+
* '''Request''' – the class with request parameters
* '''GetExcursionsResult''' – результаты выдачи
+
** '''SvKey *''' – the service class key (1 – accommodation, 2 – transfer, 4 – excursion, 5 – extraservice, 0 or -1 are not accepted)
** '''Excursion''' – массив данных
+
** '''PublicationDateBegin *''' – the date of publication of the SPO «from»
*** '''Name''' – название экскурсии
+
** '''PublicationDateEnd *''' – the date of publication of the price «till»
*** '''ID''' – идентификатор экскурсии
+
The returning result:<br />
*** '''Description''' – описание экскурсии
+
* '''SPOInfo''' – the search result
*** '''NameLat''' – название экскурсии латиницей
+
** '''ResultTable''' – the search result
*** '''Code''' – код экскурсии
+
** '''Id''' – SPO ID key
*** '''CodeLat''' – код экскурсии латиницей
+
** '''Name''' – the name of the SPO
*** '''Unicode''' – код ISO экскурсии
+
** '''PeriodBeforeCheckIn''' – the period before arrival
*** '''CityID''' – идентификатор города
+
** '''SaleDateBegin''' – the date from which booking is possible
*** '''RegionID''' – идентификатор региона
+
** '''SaleDateEnd''' – the date before which booking is possible
 +
** '''Comment''' – the description of the SPO
 +
** '''CreateDate''' – the creation date
 +
** '''UpdateDate''' – the update date
 +
** '''SpoType''' – the SPO type (Ordinary – 0, Spo – 1)
 +
** '''SvKey''' – the class of service
 +
** '''COLinkServices''' – SPO services
 +
*** '''COLinkService''' – the specific SPO service
 +
**** '''SvKey''' – the service type key
 +
**** '''Code''' – key of the service
 +
**** '''DurationMin''' – minimum duration
 +
**** '''DurationMax''' – maximum duration
 +
**** '''IsDisable''' – is the service blocked
 +
**** '''DisableDate''' – the date of blocking
 +
** '''COServices''' – the date of blocking
 +
*** '''COService''' – the information about the price of a specific service in this SPO
 +
**** '''Code''' – the service ID
 +
**** '''CostCount''' – the number of prices for the service in SPO
 +
**** '''CostLastUpdate''' – the date of the last change (addition, deletion) of prices for the service in this SPO
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetExcursions
+
The invocation of the method GetSpoList
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetExcursions>
+
       <meg:GetSpoList>
         <meg:countryKey>5</meg:countryKey>
+
         <!--Optional:-->
         <meg:regionKey>5</meg:regionKey>
+
         <meg:guid>16f4e0ca-725a-4ffe-8a5e-c41d16ef1b01</meg:guid>
         <meg:cityKey>5</meg:cityKey>
+
         <!--Optional:-->
       </meg:GetExcursions>
+
        <meg:request SvKey="1" PublicationDateBegin="2021-08-01" PublicationDateEnd="2021-08-04"/>
 +
       </meg:GetSpoList>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetExcursions
+
The returning result of the method GetSpoList
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetExcursionsResponse xmlns="http://www.megatec.ru/">
+
       <GetSpoListResponse xmlns="http://www.megatec.ru/">
         <GetExcursionsResult>
+
         <GetSpoListResult Message="Ok">
             <Excursion>
+
             <Data>
               <Name>Exc21_01_2020</Name>
+
               <SPOInfo Id="2049" Name="Maska Ordinary" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:31:38.35" UpdateDate="2021-08-03T12:32:35.897" SpoType="0" SvKey="1">
              <ID>670</ID>
+
                  <COLinkServices>
               <Description/>
+
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
               <NameLat>Exc21_01_2020</NameLat>
+
                  </COLinkServices>
              <Code/>
+
                  <XYRules/>
               <CodeLat/>
+
                  <COServices>
               <Unicode/>
+
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
              <CityID>5</CityID>
+
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
              <RegionID>16</RegionID>
+
                  </COServices>
             </Excursion>
+
               </SPOInfo>
         </GetExcursionsResult>
+
               <SPOInfo Id="2050" Name="Maska 7=6" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:33:37.847" UpdateDate="2021-08-03T12:35:11.367" SpoType="1" SvKey="1">
       </GetExcursionsResponse>
+
                  <COLinkServices>
   </soap:Body>
+
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
</soap:Envelope>
+
                  </COLinkServices>
</soap:Envelope>
+
                  <XYRules>
</syntaxhighlight>
+
                    <XYRule ExcludeBy="0" Sign="-" XFrom="2" XTo="7" Y="1"/>
</TD></TR></TABLE>
+
                  </XYRules>
</div></div><br />
+
                  <COServices>
 
+
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
===GetServiceList (Получение списка дополнительных услуг)===
+
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
Метод возвращает дополнительные услуги.<br />
+
                  </COServices>
Возвращаемый результат:<br />
+
               </SPOInfo>
* '''GetServiceListResult''' – результаты выдачи
+
               <SPOInfo Id="2051" Name="Maska 14=12" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:35:15.797" UpdateDate="2021-08-03T12:35:42.75" SpoType="1" SvKey="1">
** '''ServiceList''' – массив данных
+
                  <COLinkServices>
*** '''AdditionalParams''' – дополнительные параметры
+
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
**** '''Key''' – ключ
+
                  </COLinkServices>
**** '''Value''' – значение
+
                  <XYRules>
*** '''Name''' – название дополнительной услуги
+
                    <XYRule ExcludeBy="0" Sign="-" XFrom="8" XTo="14" Y="2"/>
*** '''ID''' – идентификатор дополнительной услуги
+
                  </XYRules>
*** '''NameLat''' – название дополнительной услуги латиницей
+
                  <COServices>
*** '''Code''' – код дополнительной услуги
+
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
*** '''CodeLat''' – код дополнительной услуги латиницей
+
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
*** '''Unicode''' – код ISO дополнительной услуги
+
                  </COServices>
*** '''ServiceClaseID''' – идентификатор класса дополнительной услуги
+
              </SPOInfo>
*** '''CountryID''' – идентификатор страны дополнительной услуги
+
             </Data>
+
         </GetSpoListResult>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
       </GetSpoListResponse>
 +
   </soap:Body>
 +
</soap:Envelope>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetCosts (Receiving gross price under request parameters)===
 +
The method returns the gross price according to the request parameters.<br />
 +
Accepted request parameters ( '''*''' – required):
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''Request''' – the object with request parameters
 +
** '''SpoId *''' – the SPO key (The CO_Id parameter of the CostOffers table). The SPO list is returning when the [[Master-Interlook:IntegrationService (en)#GetSpoList (Receiving the list of SPOs according to the request)|GetSpoList]] method is requested)<br />
 +
** '''TariffId *''' – the tariff key (In the price table corresponds to the CS_CVId parameter). When setting "-1", all tariffs are selected)
 +
** '''SvKey *''' – the type of service (1 – accommodation, 2 – transfer, 4 – excursion, 5 – extraservice)
 +
** '''Code *''' – the service key (For the hotel this is the key from the Partners table. For all other services, this is the SL_KEY from the ServiceList table. You can also get these keys using web service methods: GetServiceList, GetExcursions, GetTransfers, GetHotels)
 +
** '''PriceType''' – the type of accommodation price (0 per person, 1 – per room, 2 – all)
 +
** '''DownloadOnlyActualCosts *''' – the download of only current prices (1 – get current, 0 – get all) 
 +
** '''DownloadUpdateCostsFromDate *''' – download prices only from the selected date (1 – the setting is enabled, 0 – receive everything)
 +
** '''CostsUpdateDateBegin *''' – the date from which to upload prices (used when setting the DownloadUpdateCostsFromDate parameter)
 +
The returning result:<br />
 +
* '''GetCostsResult''' – output results
 +
** '''CostInfo''' – an array of the data
 +
*** '''Id''' – the price key
 +
*** '''SvKey''' – the service type key
 +
*** '''SpoId''' – ID of the SPO
 +
*** '''Code''' – the key of the service
 +
*** '''AgeFrom''' – age «from»
 +
*** '''AgeTo''' – age «to»
 +
*** '''CreateDate''' – the date of the creation
 +
*** '''CheckInDateBegin''' – the check-in date «from»
 +
*** '''CheckInDateEnd''' – the check-in date «till»
 +
*** '''CheckOutDateBegin''' – the departure date «from»
 +
*** '''CheckOutDateEnd''' – the departure date «till»
 +
*** '''DateBegin''' – the price validity date «from»
 +
*** '''DateEnd''' – the price validity date «till»
 +
*** '''UpdateDate''' – the last date of the price update
 +
*** '''Price''' – the value of the price
 +
*** '''Rate''' – the currency
 +
*** '''SubCode1''' – the price parameter depending on the type of service (for accommodation – the room type key, for transfer – TransferType, for Adhot – the  room type key)
 +
*** '''SubCode2''' – the price parameter depending on the type of service (for accommodation – the pansion key, for transfer – the start point, for Adhot – the hotel key)
 +
*** '''SubCode3''' – the price parameter depending on the type of service (for accommodation – the room category key, for transfer – end point, for Adhot – the room category key)
 +
*** '''SubCode4''' – the price parameter depending on the type of service (for accommodation – the accommodation, for Adhot – the accommodation)
 +
*** '''TariffId''' – the tariff key
 +
*** '''Type''' – the price type (1 – group, 0 – non-group. For a hotel per room or per person)
 +
*** '''CountryId''' – the key of the country of the service
 +
*** '''CityFromId''' – the key of the service city
 +
*** '''CityToId''' – the key of the city of the «where» service (for transfers)
 +
*** '''TouroperatorId''' – the tour operator's key
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetServiceList
+
The invocation of the method GetCosts
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetServiceList/>
+
       <meg:GetCosts>
 +
        <!--Optional:-->
 +
        <meg:guid>5932b280-c780-4c84-a83a-52b25bc22615</meg:guid>
 +
        <!--Optional:-->
 +
        <meg:request SpoId="2049" TariffId="-1" SvKey="1" Code="2945" PriceType="2" DownloadOnlyActualCosts="0" DownloadUpdateCostsFromDate="0" CostsUpdateDateBegin="2021-08-04"/>
 +
      </meg:GetCosts>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetServiceList
+
The returning result of the method GetCosts
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetServiceListResponse xmlns="http://www.megatec.ru/">
+
       <GetCostsResponse xmlns="http://www.megatec.ru/">
         <GetServiceListResult>
+
         <GetCostsResult Message="Ok">
             <ServiceList>
+
             <Data>
               <AdditionalParams>
+
               <CostInfo Id="7795837" SvKey="1" SpoId="2049" Code="2945" AgeFrom="0" AgeTo="0" CreateDate="2021-08-03T12:56:34.237" CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" DateBegin="2021-01-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2021-08-03T12:56:35.08" Price="30.0000" Rate="EU" SubCode1="2" SubCode2="3" SubCode3="20" SubCode4="459" TariffId="0" Type="1" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035"/>
                  <ParameterPair Key="CountryKey">
+
               <CostInfo Id="7795835" SvKey="1" SpoId="2049" Code="2945" AgeFrom="0" AgeTo="0" CreateDate="2021-08-03T12:56:34.237" CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" DateBegin="2021-01-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2021-08-03T12:56:35.08" Price="10.0000" Rate="EU" SubCode1="2" SubCode2="3" SubCode3="20" SubCode4="7864" TariffId="0" Type="1" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035"/>
                    <Value xsi:type="xsd:int">0</Value>
+
          </Data>
                  </ParameterPair>
+
        </GetCostsResult>
                  <ParameterPair Key="CityKey">
+
       </GetCostsResponse>
                    <Value xsi:type="xsd:int">0</Value>
 
                  </ParameterPair>
 
              </AdditionalParams>
 
              <Name>Extra service class\Cancellation penalty</Name>
 
              <ID>10</ID>
 
              <NameLat/>
 
               <Code/>
 
              <CodeLat/>
 
              <Unicode/>
 
              <ServiceClaseID>1</ServiceClaseID>
 
              <CountryID>0</CountryID>
 
            </ServiceList>
 
            <ServiceList>
 
              <AdditionalParams>
 
                  <ParameterPair Key="CountryKey">
 
                    <Value xsi:type="xsd:int">0</Value>
 
                  </ParameterPair>
 
                  <ParameterPair Key="CityKey">
 
                    <Value xsi:type="xsd:int">0</Value>
 
                  </ParameterPair>
 
              </AdditionalParams>
 
              <Name>Shop Tour\Shop Tour With Terms</Name>
 
              <ID>15</ID>
 
              <Description/>
 
              <NameLat/>
 
              <Code/>
 
              <CodeLat/>
 
              <Unicode/>
 
              <ServiceClaseID>4</ServiceClaseID>
 
              <CountryID>0</CountryID>
 
            </ServiceList>
 
          </GetServiceListResult>
 
       </GetServiceListResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4336: Строка 3966:
 
</div></div><br />
 
</div></div><br />
  
===GetExtraServices (Получение списка дополнительных услуг включая услуги типа AdHot)===
+
===SpoPriceMarkDownloaded (Receiving information about availability of a specific SPO for sale)===
Метод возвращает список дополнительных услуг, в том числе и услуги типа AdHot.<br />
+
The method returns information about the availability of a specific SPO for sale.<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
An important point: information is returning only for those Cost offers for which there is a publication to the partner (partner group) of the user who connected to the web service.<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Request''' – объект с параметрами запроса
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
** '''ServiceClassKey *''' – ключ класса дополнительной услуги (-1 для всех)
+
* '''SpoKey *''' – SPO key (returning when requesting the [[Master-Interlook:IntegrationService (en)#GetSpoList (Receiving the list of SPOs according to the request)|GetSpoList]] method)
** '''СountryKey *''' – ключ страны дополнительной услуги (-1 для всех)
+
* '''VariantOfCost''' – the price option
** '''СityKey *''' – ключ города  для AdHot (-1 для всех)
+
* '''SvKey''' – the service class key
** '''HotelKey *''' – ключ отеля для AdHot (-1 для всех)
+
* '''Code''' – the service code
** '''RegionKey *''' – ключ региона (-1 для всех)
+
The returning result:<br />
** '''TypeKey *''' – тип AdHot (-1 – для всех, 1 – Manual, 2 – HardLink, 3 – WithCosts)
+
* '''SpoPriceMarkDownloadedResult''' – The returning result
Возвращаемый результат:<br />
+
** '''true''' – SPO is available
* '''GetExtraServicesResult''' – результаты выдачи
+
** '''false''' – SPO is not available
** '''ExtraServiceInfo''' – массив данных
 
*** '''Id''' – идентификатор дополнительной услуги
 
*** '''Name''' – название дополнительной услуги
 
*** '''Description''' – описание  дополнительной услуги
 
*** '''ServiceClassId''' – идентификатор класса дополнительной услуги
 
*** '''IsWeb''' – доступность дополнительной услуги в онлайн
 
*** '''DurationType''' – c продолжительностью или без (1 – с продолжительностью)
 
*** '''UpdateDate''' – дата последнего обновления дополнительной услуги
 
*** '''IsPartnerLikeHotel''' – партнер у AdHot  такой же как и у проживания
 
*** '''LinkType''' – тип AdHot (1 - Manual, 2 HardLink, 3 - WithCosts)
 
*** '''IsAddHot''' – является ли услуга AdHot (true – является, false – не является)
 
*** '''CountryList''' – список ключей стран для AdHot (если коллекция пустая – значит для всех)
 
*** '''CityList''' – список ключей городов для AdHot (если коллекция пустая – значит для всех)
 
*** '''HotelList''' – список ключей отелей для AdHot (если коллекция пустая – значит для всех)
 
*** '''RoomTypeList''' – список ключей типов комнат для AdHot (если коллекция пустая – значит для всех)
 
*** '''RoomCategoryList''' – список ключей категорий комнат для AdHot (если коллекция пустая – значит для всех)
 
*** '''AccommodationList''' – список ключей размещений для AdHot (если коллекция пустая – значит для всех)
 
*** '''HotelLinkTypeList''' – список переопределений типа AdHot для отелей
 
**** '''HotelLinkTypeEx''' – переопределение типа AdHot для отеля
 
***** '''HotelId''' – ключ отеля
 
***** '''ExtraServiceLinkType''' – переопределенный тип AdHot (1 – Manual, 2 – HardLink, 3 – WithCosts)
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetExtraServices
+
The invocating of the method SpoPriceMarkDownloaded
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetExtraServices>
+
       <meg:SpoPriceMarkDownloaded>
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:guid>e7f7b188-611b-4a01-bcff-b7117c222e1f</meg:guid>
+
         <meg:guid>016e9dd9-802e-46fb-bb79-7c44a31d6560</meg:guid>
        <!--Optional:-->
+
         <meg:spoKey>2049</meg:spoKey>
         <meg:request>
+
        <meg:variantOfCost>0</meg:variantOfCost>
            <meg:ServiceClassKey>-1</meg:ServiceClassKey>
+
        <meg:svKey>0</meg:svKey>
            <meg:CountryKey>10</meg:CountryKey>
+
        <meg:code>0</meg:code>
            <meg:CityKey>10</meg:CityKey>
+
       </meg:SpoPriceMarkDownloaded>
            <meg:HotelKey>10</meg:HotelKey>
 
            <meg:TypeKey>-1</meg:TypeKey>
 
        </meg:request>
 
       </meg:GetExtraServices>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetExtraServices
+
The returning result for the method SpoPriceMarkDownloaded
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetExtraServicesResponse xmlns="http://www.megatec.ru/">
+
       <SpoPriceMarkDownloadedResponse xmlns="http://www.megatec.ru/">
         <GetExtraServicesResult Message="Ok">
+
         <SpoPriceMarkDownloadedResult>true</SpoPriceMarkDownloadedResult>
            <Data>
+
      </SpoPriceMarkDownloadedResponse>
              <ExtraServiceInfo Id="293" Name="Air tickets test transmission Greece" Description="" ServiceClassId="15" IsWeb="true" DurationType="1" UpdateDate="2018-04-26T17:55:50.04" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
+
  </soap:Body>
                  <CountryList/>
+
</soap:Envelope>
                  <CityList/>
+
</syntaxhighlight>
                  <HotelList/>
+
</TD></TR></TABLE>
                  <RoomTypeList/>
+
</div></div><br />
                  <RoomCategoryList/>
+
 
                  <AccommodationList/>
+
==Methods of working with services==
                  <HotelLinkTypeList>
+
===GetHotels (Receiving the list of the hotels by parameters)===
                    <HotelLinkTypeEx HotelId="2830" ExtraServiceLinkType="1"/>
+
The method returns a list of hotels by parameters.<br />
                  </HotelLinkTypeList>
+
Accepted request parameters ( '''*''' – required):
              </ExtraServiceInfo>
+
* '''СountryKey *''' – the country key (-1 for all)
              <ExtraServiceInfo Id="433" Name="111111111111111" ServiceClassId="36" IsWeb="true" DurationType="0" UpdateDate="2018-09-19T10:52:06.937" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
+
* '''RegionKey *''' – the region key (-1 for all)
                  <CountryList/>
+
* '''СityKey *''' – the city key (-1 for all)
                  <CityList/>
+
The returning result:<br />
                  <HotelList/>
+
* '''GetHotelsResult''' – the output results
                  <RoomTypeList/>
+
* '''Hotel''' – the hotel
                  <RoomCategoryList/>
+
** '''Name''' – the name of the hotel
                  <AccommodationList/>
+
** '''ID''' – ID of the hotel
                  <HotelLinkTypeList/>
+
** '''Description''' – the description of the hotel
              </ExtraServiceInfo>
+
** '''NameLat''' – the name of the hotel in Latin
              <ExtraServiceInfo Id="439" Name="3221" Description="" ServiceClassId="36" IsWeb="true" DurationType="0" UpdateDate="2018-09-19T10:52:06.967" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
+
** '''Code''' – the code of the hotel
                  <CountryList/>
+
** '''CodeLat''' – the hotel code in Latin
                  <CityList/>
+
** '''Unicode''' – the ISO code of the hotel
                  <HotelList/>
+
** '''City''' – the hotel city
                  <RoomTypeList/>
+
*** '''Name''' – the name of the city
                  <RoomCategoryList/>
+
*** '''ID''' – ID of the city
                  <AccommodationList/>
+
*** '''Description''' – the description of the city
                  <HotelLinkTypeList>
+
*** '''NameLat''' – the name of the city in Latin
                    <HotelLinkTypeEx HotelId="2821" ExtraServiceLinkType="1"/>
+
*** '''Code''' – the city code
                  </HotelLinkTypeList>
+
*** '''CodeLat''' – the city code in Latin
              </ExtraServiceInfo>
+
*** '''Unicode''' – the ISO code of the city
            </Data>
+
*** '''CountryID''' – ID of the hotel's country
        </GetExtraServicesResult>
+
*** '''RegionID''' – ID of the hotel's region
      </GetExtraServicesResponse>
+
** '''RegionID''' – ID of the hotel's region
  </soap:Body>
+
** '''PriceType''' – the price type (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
</soap:Envelope>
+
** '''CountCosts''' – the number of hotel p
</soap:Envelope>
+
** '''CityId''' – ID of the hotel's city
</syntaxhighlight>
+
** '''HotelCategoryID''' – ID of the hotel category
</TD></TR></TABLE>
 
</div></div><br />
 
  
===GetExtraServiceWithPrices (Получение списка дополнительных услуг включая услуги типа AdHot с ценами)===
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
Метод возвращает список дополнительных услуг, в том числе и услуги типа AdHot с ценами.<br />
 
Принимаемые параметры запроса ( * – обязательный):<br />
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''Request''' – объект с параметрами запроса
 
** '''HotelKey *''' – ключ отеля для AdHot (-1 для всех)
 
** '''DateFrom''' – дата действия от
 
** '''DateTo''' – дата действия до
 
Возвращаемый результат:<br />
 
* '''GetExtraServiceWithPricesResult Message="Ok">
 
** '''CostInfo''' – массив данных
 
*** '''Id''' – ключ цены
 
*** '''SvKey''' – ключ типа услуги
 
*** '''SpoId''' – идентификатор SPO
 
*** '''Code''' – ключ услуги
 
*** '''AgeFrom''' – возраст «с»
 
*** '''AgeTo''' – возраст «по»
 
*** '''CreateDate''' – дата создания цены
 
*** '''CheckInDateBegin''' – дата заезда «с»
 
*** '''CheckInDateEnd''' – дата заезда «до»
 
*** '''CheckOutDateBegin''' – дата выезда «с»
 
*** '''CheckOutDateEnd''' – дата выезда «до»
 
*** '''DateBegin''' – дата действия цены «с»
 
*** '''DateEnd''' – дата действия цены «до»
 
*** '''UpdateDate''' – последняя дата обновления цены
 
*** '''Price''' – значение цены
 
*** '''Rate''' – валюта
 
*** '''SubCode1''' – параметр цены в зависимости от типа услуги (для проживания – ключ типа номера, для трансфера – TransferType, для Adhot – ключ типа комнаты)
 
*** '''SubCode2''' – параметр цены в зависимости от типа услуги (для проживания – ключ питания, для трансфера – точка начала, для Adhot – ключ отеля)
 
*** '''SubCode3''' – параметр цены в зависимости от типа услуги (для проживания – ключ категории номера, для трансфера – точка окончания, для Adhot – ключ категории комнаты)
 
*** '''SubCode4''' – параметр цены в зависимости от типа услуги (для проживания – размещение, для Adhot – размещение)
 
*** '''TariffId''' – ключ тарифа
 
*** '''Type''' – тип цены (1 – групповая, 0 – негрупповая. Для отеля за комнату или за человека.)
 
*** '''CountryId''' – ключ страны услуги
 
*** '''CityFromId''' – ключ города услуги
 
*** '''CityToId''' – ключ города услуги «куда» (для трансферов)
 
*** '''TouroperatorId''' – ключ туроператора
 
*** '''AdHotName''' – название доп. услуги в отеле
 
*** '''LinkType''' – тип доп. услуги в отеле: 1 - Manual (услуга, добавляемая по желанию), 2 – HardLink (обязательная услуга в отеле), 3 - WithCosts (обязательная услуга, добавляемая при наличии цены в период бронирования отеля)
 
*** '''DurationType''' – услуга c продолжительностью или без (1 – цена указана за сутки, 0 - цена указана за весь период проживания)
 
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetExtraServicesWithPrices
+
The invocating of the method GetHotels
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetExtraServiceWithPrices>
+
       <meg:GetHotels>
        <!--Optional:-->
+
         <meg:countryKey>10</meg:countryKey>
         <meg:guid>c80b29df-4110-4769-85a5-99ef5def023c</meg:guid>
+
         <meg:regionKey>10</meg:regionKey>
         <!--Optional:-->
+
        <meg:cityKey>10</meg:cityKey>
        <meg:request>
+
       </meg:GetHotels>
            <meg:HotelKey>2930</meg:HotelKey>
 
            <meg:DateFrom>2022-01-01</meg:DateFrom>
 
            <meg:DateTo>2022-12-31</meg:DateTo>
 
        </meg:request>
 
       </meg:GetExtraServiceWithPrices>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetExtraServicesWithPrices
+
The returning result for the method GetHotels
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetExtraServiceWithPricesResponse xmlns="http://www.megatec.ru/">
+
       <GetHotelsResponse xmlns="http://www.megatec.ru/">
         <GetExtraServiceWithPricesResult Message="Ok" Count="15">
+
         <GetHotelsResult>
             <Data>
+
             <Hotel>
               <CostInfoWithAdHotDescription Id="7795829" SvKey="5" SpoId="2047" Code="471" AgeFrom="0" AgeTo="0" CreateDate="2021-07-26T18:20:02.52"
+
              <Name>Aegean Blue Hotel</Name>
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
+
              <ID>2254</ID>
DateBegin="2002-08-01T00:00:00" DateEnd="2023-08-12T00:00:00" UpdateDate="2021-07-26T18:20:03.313" Price="17.0000" Rate="EU" SubCode1="0" SubCode2="2930"
+
               <Description>3 stars (B)  (\\Nea KallikratiaABBA)</Description>
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="6" CityFromId="80" CityToId="0" TouroperatorId="1035" AdHotName="bonus" LinkType="Manual"
+
              <NameLat/>
DurationType="0"/>
+
              <Code>AGN</Code>
               <CostInfoWithAdHotDescription Id="7807924" SvKey="5" SpoId="2029" Code="694" AgeFrom="0" AgeTo="0" CreateDate="2022-12-09T14:24:52.333"
+
              <CodeLat/>
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
+
              <Unicode/>
DateBegin="2022-02-01T00:00:00" DateEnd="2024-02-01T00:00:00" UpdateDate="2022-12-09T14:24:52.573" Price="3.0000" Rate="EU" SubCode1="0" SubCode2="0"
+
              <City>
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Сейф в номере" LinkType="Manual"
+
                  <Name>Nea KallikratiaABBA</Name>
DurationType="0"/>
+
                  <ID>10</ID>
              <CostInfoWithAdHotDescription Id="7805052" SvKey="5" SpoId="2136" Code="716" AgeFrom="0" AgeTo="0" CreateDate="2022-01-05T17:16:53.75"
+
                  <Description/>
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
+
                  <NameLat/>
DateBegin="2022-01-01T00:00:00" DateEnd="2025-01-01T00:00:00" UpdateDate="2022-01-05T18:16:55.813" Price="17.0000" Rate="EU" SubCode1="0" SubCode2="0"
+
                  <Code>NKL</Code>
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Maska dinners" LinkType="Manual"
+
                  <CodeLat/>
DurationType="0"/>
+
                  <Unicode/>
               <CostInfoWithAdHotDescription Id="7809780" SvKey="5" SpoId="2604" Code="726" AgeFrom="0" AgeTo="0" CreateDate="2023-02-15T12:29:03.747"
+
                  <CountryID>4</CountryID>
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
+
                  <RegionID>6</RegionID>
DateBegin="2023-02-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2023-02-15T12:29:08.183" Price="0" Rate="USD" SubCode1="0" SubCode2="0" SubCode3="0"
+
              </City>
SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Такса (Тунис)" LinkType="Manual" DurationType="1"/>
+
              <RegionID>6</RegionID>
             </Data>
+
              <PriceType>None</PriceType>
        </GetExtraServiceWithPricesResult>
+
              <CountCosts>0</CountCosts>
       </GetExtraServiceWithPricesResponse>
+
              <CityID>10</CityID>
 +
              <HotelCategoryID>6</HotelCategoryID>
 +
            </Hotel>
 +
            <Hotel>
 +
              <Name>Alkyonis Hotel</Name>
 +
              <ID>1015</ID>
 +
              <Description>2+ stars (C Sup)  (\\Nea KallikratiaABBA)</Description>
 +
              <NameLat/>
 +
               <Code>ALK</Code>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
              <City>
 +
                  <Name>Nea KallikratiaABBA</Name>
 +
                  <ID>10</ID>
 +
                  <Description/>
 +
                  <NameLat/>
 +
                  <Code>NKL</Code>
 +
                  <CodeLat/>
 +
                  <Unicode/>
 +
                  <CountryID>4</CountryID>
 +
                  <RegionID>6</RegionID>
 +
              </City>
 +
               <RegionID>6</RegionID>
 +
              <PriceType>None</PriceType>
 +
              <CountCosts>0</CountCosts>
 +
              <CityID>10</CityID>
 +
              <HotelCategoryID>7</HotelCategoryID>
 +
             </Hotel>
 +
          </GetHotelsResult>
 +
       </GetHotelsResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4539: Строка 4125:
 
</div></div><br />
 
</div></div><br />
  
===CalculateSingleCost (Расчет стоимости услуги по ее параметрам стандартным механизмом расчета)===
+
===GetTransfers (Receiving the list of the transfers by parameters)===
Метод рассчитывает стоимость услуги по ее параметрам стандартным механизмом расчета.<br />
+
The method returns a list of transfers by parameters.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''SvKey *''' – ключ типа услуги
+
* '''Request''' – the object with request parameters
* '''СountryKey *''' – ключ страны
+
** '''СountryKey *''' – the country key (-1 for all)
* '''Сode *''' – ключ услуги
+
** '''СityKey *''' – the city key (-1 for all)
* '''Subcode1 *''' – параметр цены в зависимости от типа услуги (для проживания – ключ типа номера, для трансфера – TransferType)
+
** '''RegionKey *''' – the region key (-1 for all)
* '''Subcode2 *''' – параметр цены в зависимости от типа услуги (для проживания – ключ питания, для трансфера – точка начала)
+
** '''TypeKey *''' – the transfer type key (-1 for all)
* '''Subcode3 *''' – параметр цены в зависимости от типа услуги (для проживания – ключ категории номера, для трансфера – точка окончания)
+
The returning result:<br />
* '''Subcode4 *''' – параметр цены в зависимости от типа услуги (для проживания – размещение)
+
* '''GetTransferResult''' – the output results
* '''TourOperatorGroupKey *''' – ключ группы туроператора
+
** '''TransferDirectionInfo''' – an array of the data
* '''TourOperatorKey *''' – ключ туроператора (продавца)
+
*** '''ID''' – the transfer ID
* '''MrKey *''' – ключ рынка
+
*** '''Name''' – the name
* '''FilialKey *''' – ключ филиала
+
*** '''TransferTypeID''' – the transfer type key
* '''TafiffKey *''' – ключ тарифа
+
*** '''TransferTypeName''' – the name of the transfer type
* '''Pax *''' – Pax по услуге
+
*** '''CityFromID''' – ID of the city from where
* '''Ages *''' – список с возрастами детей
+
*** '''CityFromName''' – the name of the city from where
* '''CheckInDate *''' – дата «с»
+
*** '''CityToID''' – ID of the city to
* '''CheckOutDate *''' – дата «по»
+
*** '''CityToName''' – the name of the city where
* '''CityKey *''' – ключ города
+
*** '''PointFromID''' – ID of the point from where
* '''CityKeyTo *''' – ключ города «куда»
+
*** '''PointFromName''' – the name of the point from where
* '''Rate *''' – код валюты
+
*** '''PointToID''' – ID of the point to
* '''PricePerRoom *''' – за комнату или за человека
+
*** '''PointToName''' – the name of the point to
* '''OnlyPublished *''' – учитывать только опубликованные цены
+
 
* '''ServiceProviderKey *''' – ключ поставщика услуги
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
Возвращаемый результат:<br />
 
* '''CalculateSingleCostResult''' – результаты выдачи
 
** '''Brutto''' – рассчитанная брутто цена
 
** '''ProviderKey''' – ключ поставщика услуги
 
** '''IsCalcBrutto'''
 
** '''CancellationPolicies''' – Политика аннуляции
 
** '''PolicyKey''' – ключ политики
 
** '''DateFrom''' – дата "от"
 
** '''DateTo''' – дата "до"
 
** '''PenaltyValue''' – значение штрафа
 
** '''IsPercent''' - процент, указывающий,  что штраф в "%" (''true'') или в "ночах" (''false'')
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CalculateSingleCost
+
The invocation of the method GetTransfers
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:CalculateSingleCost>
+
       <meg:GetTransfers>
 +
        <!--Optional:-->
 +
        <meg:guid>699cbbac-6acc-4339-9d3c-2a231357d0c1</meg:guid>
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:guid>823b2df5-a3fe-4153-b43a-accfba1bf86c</meg:guid>
+
         <meg:request>
        <meg:svKey>1</meg:svKey>
+
            <meg:CountryKey>10</meg:CountryKey>
        <meg:countryKey>1</meg:countryKey>
+
            <meg:CityKey>10</meg:CityKey>
        <meg:code>1</meg:code>
+
            <meg:RegionKey>10</meg:RegionKey>
        <meg:subcode1>1</meg:subcode1>
+
            <meg:TypeKey>1</meg:TypeKey>
        <meg:subcode2>1</meg:subcode2>
+
         </meg:request>
        <meg:subcode3>1</meg:subcode3>
+
       </meg:GetTransfers>
        <meg:subcode4>1</meg:subcode4>
 
        <meg:tourOperatorGroupKey>1</meg:tourOperatorGroupKey>
 
        <meg:tourOperatorKey>1</meg:tourOperatorKey>
 
        <meg:mrKey>1</meg:mrKey>
 
        <meg:filialKey>1</meg:filialKey>
 
        <meg:tafiffKey>1</meg:tafiffKey>
 
         <meg:pax>1</meg:pax>
 
        <!--Optional:-->
 
        <meg:ages>
 
        <!--Zero or more repetitions:-->
 
        <meg:int>1</meg:int>
 
        </meg:ages>
 
        <meg:checkInDate>2021-08-01</meg:checkInDate>
 
        <meg:checkOutDate>2021-08-24</meg:checkOutDate>
 
        <meg:cityKey>1</meg:cityKey>
 
        <meg:cityKeyTo>1</meg:cityKeyTo>
 
        <!--Optional:-->
 
        <meg:rate>1</meg:rate>
 
        <meg:pricePerRoom>1</meg:pricePerRoom>
 
        <meg:onlyPublished>1</meg:onlyPublished>
 
        <meg:serviceProviderKey>1</meg:serviceProviderKey>
 
       </meg:CalculateSingleCost>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CalculateSingleCost
+
The returning result for the method GetTransfers
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <CalculateSingleCostResponse xmlns="http://www.megatec.ru/">
+
       <GetTransfersResponse xmlns="http://www.megatec.ru/">
         <CalculateSingleCostResult>
+
         <GetTransfersResult Message="Ok">
            <Brutto>50.0000</Brutto>
+
             <Data>
             <ProviderKey>2943</ProviderKey>
+
               <TransferDirectionInfo Id="527" Name="Arrival transfer: Moscow - All Cities (Finance)" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="87" CityFromName="Moscow" CityToId="0" CityToName="All" PointFromId="0" PointFromName="All" PointToId="1341" PointToName="Finance"/>
            <IsCalcBrutto>false</IsCalcBrutto>
+
               <TransferDirectionInfo Id="530" Name="Arrival transfer: All Cities - All Cities" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="0" CityFromName="All" CityToId="0" CityToName="All" PointFromId="0" PointFromName="All" PointToId="0" PointToName="All"/>
            <CancellationPolicies>
+
               <TransferDirectionInfo Id="576" Name="Arrival transfer: Moscow (lalala) - All Cities" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="87" CityFromName="Moscow" CityToId="0" CityToName="All" PointFromId="3" PointFromName="lalala" PointToId="0" PointToName="All"/>
               <CancellationPolicyData>
+
            </Data>
                  <PolicyKey>151</PolicyKey>
+
         </GetTransfersResult>
                  <DateFrom>2021-08-25T00:00:00</DateFrom>
+
       </GetTransfersResponse>
                  <DateTo>2021-08-27T00:00:00</DateTo>
+
   </soap:Body>
                  <PenaltyValue>3</PenaltyValue>
+
</soap:Envelope>
                  <IsPercent>false</IsPercent>
 
               </CancellationPolicyData>
 
               <CancellationPolicyData>
 
                  <PolicyKey>149</PolicyKey>
 
                  <DateFrom>2021-08-27T00:00:00</DateFrom>
 
                  <DateTo>2021-08-31T00:00:00</DateTo>
 
                  <PenaltyValue>4</PenaltyValue>
 
                  <IsPercent>false</IsPercent>
 
              </CancellationPolicyData>
 
              </CancellationPolicies>
 
         </CalculateSingleCostResult>
 
       </CalculateSingleCostResponse>
 
   </soap:Body>
 
</soap:Envelope>
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</TD></TR></TABLE>
 
</div></div><br />
 
</div></div><br />
  
==Methods of working with dictionaries==
+
===GetExcursions (Receiving the list of the excursions by parameters)===
 
+
The method returns excursions by parameters.<br />
===GetRegions (Receiving the list of the regions)===
 
The method returns a list of regions.
 
 
Accepted request parameters ( '''*''' – required):
 
Accepted request parameters ( '''*''' – required):
* '''СountryKey *''' – the country ID (-1 for all)
+
* '''СountryKey *''' – the country key (-1 for all)
 +
* '''RegionKey *''' – the region key (-1 for all)
 +
* '''СityKey *''' – the city key (-1 for all)
 
The returning result:<br />
 
The returning result:<br />
* '''GetRegionsResult''' – the search result
+
* '''GetExcursionsResult''' – the output results
** '''Region''' – an array of the data
+
** '''Excursion''' – an array of the data
*** '''Name''' – the name of the region
+
*** '''Name''' – the name of the tour
*** '''ID''' – ID of the region
+
*** '''ID''' – ID of the excursion
*** '''Description''' – the description of the region
+
*** '''Description''' – the description of the tour
*** '''NameLat''' – the name of the region in Latin
+
*** '''NameLat''' – the name of the tour in Latin
*** '''Code''' – the region code
+
*** '''Code''' – the code of the excursion
*** '''CodeLat''' – the region code in Latin
+
*** '''CodeLat''' – the code of the excursion in Latin
*** '''Unicode''' – the ISO code of the region
+
*** '''Unicode''' – ISO code of the excursion
*** '''CountryID''' – the country ID
+
*** '''CityID''' – ID of the city
 +
*** '''RegionID''' – the region ID
  
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
The Invocation of method GetRegions
+
The invocation of the method GetExcursions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRegions>
+
       <meg:GetExcursions>
         <meg:countryKey>10</meg:countryKey>
+
         <meg:countryKey>5</meg:countryKey>
       </meg:GetRegions>
+
        <meg:regionKey>5</meg:regionKey>
 +
        <meg:cityKey>5</meg:cityKey>
 +
       </meg:GetExcursions>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
The returning result of method GetRegions
+
The returning result for the method GetExcursions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetRegionsResponse xmlns="http://www.megatec.ru/">
+
       <GetExcursionsResponse xmlns="http://www.megatec.ru/">
         <GetRegionsResult>
+
         <GetExcursionsResult>
             <Region>
+
             <Excursion>
               <Name>Chisinau</Name>
+
               <Name>Exc21_01_2020</Name>
               <ID>18</ID>
+
               <ID>670</ID>
 
               <Description/>
 
               <Description/>
               <NameLat/>
+
               <NameLat>Exc21_01_2020</NameLat>
               <Code>KIV</Code>
+
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <CountryID>10</CountryID>
+
               <CityID>5</CityID>
            </Region>
+
               <RegionID>16</RegionID>
            <Region>
+
             </Excursion>
              <Name>Tiraspol</Name>
+
         </GetExcursionsResult>
              <ID>109</ID>
+
       </GetExcursionsResponse>
              <Description/>
 
              <NameLat/>
 
              <Code>TRS</Code>
 
              <CodeLat/>
 
              <Unicode/>
 
               <CountryID>10</CountryID>
 
             </Region>
 
         </GetRegionsResult>
 
       </GetRegionsResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 +
</soap:Envelope>
 
</soap:Envelope>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Строка 4717: Строка 4252:
 
</div></div><br />
 
</div></div><br />
  
===GetCities (Receiving the list of the cities)===
+
===GetServiceList (Receiving the list of additional services)===
The method returns a list of cities.
+
The method returns additional services.<br />
Accepted request parameters ( '''*''' – required):
+
The returning result:<br />
* '''СountryKey *''' – country ID (-1 for all)
+
* '''GetServiceListResult''' – the output results
* '''RegionKey *''' – region ID (-1 for all)
+
** '''ServiceList''' – an array of the data
The returning result:
+
*** '''AdditionalParams''' – the additional parameters
* '''GetCitiesResult''' – the search result
+
**** '''Key''' – the key
** '''City''' – an array of the data
+
**** '''Value''' – the value
*** '''Name''' – the name of the city
+
*** '''Name''' – the name of the additional service
*** '''ID''' – ID of the city
+
*** '''ID''' – ID of the additional service
*** '''Description''' – the description of the city
+
*** '''NameLat''' – the name of the additional service in Latin
*** '''NameLat''' – the name of the city in Latin
+
*** '''Code''' – the code of the additional service
*** '''Code''' – the city code
+
*** '''CodeLat''' – the code of the additional service in Latin
*** '''CodeLat''' – the city code in Latin
+
*** '''Unicode''' – the ISO code of the additional service
*** '''Unicode''' – the ISO code of the city
+
*** '''ServiceClaseID''' – ID of the additional service class
*** '''CountryID''' – ID of the city
+
*** '''CountryID''' – ID of the country of the additional service
*** '''RegionID''' – the region ID
+
 
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
+
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
+
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
The invocation of the method GetServiceList
The invocation of the method GetCities
+
<syntaxhighlight lang="java" enclose="div">
<syntaxhighlight lang="java" enclose="div">
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
   <soapenv:Header/>
   <soapenv:Header/>
+
   <soapenv:Body>
   <soapenv:Body>
+
       <meg:GetServiceList/>
       <meg:GetCities>
 
        <meg:countryKey>10</meg:countryKey>
 
        <meg:regionKey>10</meg:regionKey>
 
      </meg:GetCities>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
The returning result for the method GetCities
+
The returning result for the method GetServiceList
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetCitiesResponse xmlns="http://www.megatec.ru/">
+
       <GetServiceListResponse xmlns="http://www.megatec.ru/">
         <GetCitiesResult>
+
         <GetServiceListResult>
             <City>
+
             <ServiceList>
               <Name>Katerini</Name>
+
               <AdditionalParams>
               <ID>153</ID>
+
                  <ParameterPair Key="CountryKey">
               <Description/>
+
                    <Value xsi:type="xsd:int">0</Value>
 +
                  </ParameterPair>
 +
                  <ParameterPair Key="CityKey">
 +
                    <Value xsi:type="xsd:int">0</Value>
 +
                  </ParameterPair>
 +
              </AdditionalParams>
 +
               <Name>Extra service class\Cancellation penalty</Name>
 +
               <ID>10</ID>
 
               <NameLat/>
 
               <NameLat/>
               <Code>KTR</Code>
+
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <CountryID>4</CountryID>
+
              <ServiceClaseID>1</ServiceClaseID>
               <RegionID>10</RegionID>
+
               <CountryID>0</CountryID>
            </City>
+
            </ServiceList>
            <City>
+
            <ServiceList>
               <Name>Leptokaria</Name>
+
               <AdditionalParams>
               <ID>24</ID>
+
                  <ParameterPair Key="CountryKey">
 +
                    <Value xsi:type="xsd:int">0</Value>
 +
                  </ParameterPair>
 +
                  <ParameterPair Key="CityKey">
 +
                    <Value xsi:type="xsd:int">0</Value>
 +
                  </ParameterPair>
 +
              </AdditionalParams>
 +
               <Name>Shop Tour\Shop Tour With Terms</Name>
 +
               <ID>15</ID>
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code>LPK</Code>
+
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <CountryID>4</CountryID>
+
               <ServiceClaseID>4</ServiceClaseID>
               <RegionID>10</RegionID>
+
               <CountryID>0</CountryID>
             </City>
+
             </ServiceList>
        </GetCitiesResult>
+
          </GetServiceListResult>
       </GetCitiesResponse>
+
       </GetServiceListResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4786: Строка 4332:
 
</div></div><br />
 
</div></div><br />
  
===GetCountries (Receiving the list of the countries)===
+
===GetExtraServices (Receiving the list of additional services including services of AdHot type)===
The method returns a list of countries.<br />
+
The method returns a list of additional services, including services of the AdHot type.<br />
 +
Accepted request parameters ( '''*''' – required):<br />
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''Request''' – the object with request parameters
 +
** '''ServiceClassKey *''' – the additional service class key (-1 for all)
 +
** '''СountryKey *''' – the country key of the additional service (-1 for all)
 +
** '''СityKey *''' – the city key for AdHot (-1 for all)
 +
** '''HotelKey *''' – the hotel key for AdHot (-1 for all)
 +
** '''RegionKey *''' – the region key (-1 for all)
 +
** '''TypeKey *''' – the type of AdHot (-1 – for everyone, 1 – Manual, 2 – HardLink, 3 – WithCosts)
 
The returning result:<br />
 
The returning result:<br />
* '''GetCountriesResult''' – the search result
+
* '''GetExtraServicesResult''' – the output results
** '''Country''' – the an array of the data
+
** '''ExtraServiceInfo''' – an array of the data
*** '''Name''' – the name of the country
+
*** '''Id''' – ID of the additional service
*** '''ID''' – the country ID
+
*** '''Name''' – the name of the additional service
*** '''Description''' – the description of the country
+
*** '''Description''' – the description of the additional service
*** '''NameLat''' – the name of the country in Latin
+
*** '''ServiceClassId''' – ID of the class of the additional service
*** '''Code''' – the country code
+
*** '''IsWeb''' – the availability of an additional service online
*** '''CodeLat''' – the country code in Latin
+
*** '''DurationType''' – with or without duration (1 – with duration)
*** '''Unicode''' – the ISO code of the country
+
*** '''UpdateDate''' – the date of the last update of the additional service
*** '''IsIncoming''' – the parameter for internal use
+
*** '''IsPartnerLikeHotel''' – is partner of AdHot is the same as that of accommodation
 +
*** '''LinkType''' – the AdHot type (1 – Manual, 2 – HardLink, 3 – WithCosts)
 +
*** '''IsAddHot''' – whether the service is AdHot (true – is, false – is not)
 +
*** '''CountryList''' – the list of country keys for AdHot (if the collection is empty, it means – for all)
 +
*** '''CityList''' – the list of city keys for AdHot (if the collection is empty, it means – for all)
 +
*** '''HotelList''' – the list of hotel keys for AdHot (if the collection is empty, it means – for all)
 +
*** '''RoomTypeList''' – the list of room type keys for AdHot (if the collection is empty, it means – for all)
 +
*** '''RoomCategoryList''' – the list of room category keys for AdHot (if the collection is empty, it means – for all)
 +
*** '''AccommodationList''' – the list of accommodation keys for AdHot (if the collection is empty, it means – for all)
 +
*** '''HotelLinkTypeList''' – the list of redefinitions of the AdHot type for hotels
 +
**** '''HotelLinkTypeEx''' – the redefining the AdHot type for a hotel
 +
***** '''HotelId''' – the hotel key
 +
***** '''ExtraServiceLinkType''' – the redefined AdHot type (1 – Manual, 2 – HardLink, 3 – WithCosts)
  
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
The invocation of the method GetCountries
+
The invocation of the method GetExtraServices
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetCountries/>
+
       <meg:GetExtraServices>
   </soapenv:Body>
+
        <!--Optional:-->
</soapenv:Envelope>
+
        <meg:guid>e7f7b188-611b-4a01-bcff-b7117c222e1f</meg:guid>
 +
        <!--Optional:-->
 +
        <meg:request>
 +
            <meg:ServiceClassKey>-1</meg:ServiceClassKey>
 +
            <meg:CountryKey>10</meg:CountryKey>
 +
            <meg:CityKey>10</meg:CityKey>
 +
            <meg:HotelKey>10</meg:HotelKey>
 +
            <meg:TypeKey>-1</meg:TypeKey>
 +
        </meg:request>
 +
      </meg:GetExtraServices>
 +
   </soapenv:Body>
 +
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
The returning result for the method GetCountries
+
The returning result for the method GetExtraServices
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetCountriesResponse xmlns="http://www.megatec.ru/">
+
       <GetExtraServicesResponse xmlns="http://www.megatec.ru/">
         <GetCountriesResult>
+
         <GetExtraServicesResult Message="Ok">
             <Country>
+
             <Data>
               <Name>Azerbaijan</Name>
+
               <ExtraServiceInfo Id="293" Name="Air tickets test transmission Greece" Description="" ServiceClassId="15" IsWeb="true" DurationType="1" UpdateDate="2018-04-26T17:55:50.04" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
              <ID>19</ID>
+
                  <CountryList/>
              <Description/>
+
                  <CityList/>
              <NameLat/>
+
                  <HotelList/>
              <Code/>
+
                  <RoomTypeList/>
              <CodeLat/>
+
                  <RoomCategoryList/>
               <Unicode/>
+
                  <AccommodationList/>
               <IsIncoming>false</IsIncoming>
+
                  <HotelLinkTypeList>
            </Country>
+
                    <HotelLinkTypeEx HotelId="2830" ExtraServiceLinkType="1"/>
            <Country>
+
                  </HotelLinkTypeList>
              <Name>Belarus</Name>
+
               </ExtraServiceInfo>
              <ID>7</ID>
+
               <ExtraServiceInfo Id="433" Name="111111111111111" ServiceClassId="36" IsWeb="true" DurationType="0" UpdateDate="2018-09-19T10:52:06.937" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
               <Description/>
+
                  <CountryList/>
              <NameLat/>
+
                  <CityList/>
              <Code/>
+
                  <HotelList/>
              <CodeLat/>
+
                  <RoomTypeList/>
              <Unicode/>
+
                  <RoomCategoryList/>
              <IsIncoming>false</IsIncoming>
+
                  <AccommodationList/>
            </Country>
+
                  <HotelLinkTypeList/>
            </Country>
+
               </ExtraServiceInfo>
         </GetCountriesResult>
+
              <ExtraServiceInfo Id="439" Name="3221" Description="" ServiceClassId="36" IsWeb="true" DurationType="0" UpdateDate="2018-09-19T10:52:06.967" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
       </GetCountriesResponse>
+
                  <CountryList/>
 +
                  <CityList/>
 +
                  <HotelList/>
 +
                  <RoomTypeList/>
 +
                  <RoomCategoryList/>
 +
                  <AccommodationList/>
 +
                  <HotelLinkTypeList>
 +
                    <HotelLinkTypeEx HotelId="2821" ExtraServiceLinkType="1"/>
 +
                  </HotelLinkTypeList>
 +
              </ExtraServiceInfo>
 +
            </Data>
 +
         </GetExtraServicesResult>
 +
       </GetExtraServicesResponse>
 
   </soap:Body>
 
   </soap:Body>
 +
</soap:Envelope>
 
</soap:Envelope>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Строка 4847: Строка 4438:
 
</div></div><br />
 
</div></div><br />
  
===GetRoomType (Receiving the list of the room types)===
+
===GetExtraServiceWithPrices (Receiving the list of additional services including services of AdHot type with prices)===
The method returns a list of room types.<br />
+
The method returns a list of additional services, including services of the AdHot type with prices.<br />
 +
Accepted request parameters ( '''*''' – required):<br />
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''Request''' – the object with request parameters
 +
** '''HotelKey *''' – the hotel key for AdHot (-1 for all)
 +
** '''DateFrom''' – the date of validity from
 +
** '''DateTo''' – the date validity before
 
The returning result:<br />
 
The returning result:<br />
* '''GetRoomTypeResult''' – the search result
+
* '''GetExtraServiceWithPricesResult Message="Ok">
** '''RoomType''' – an array of the data
+
** '''CostInfo''' – an array of the data
*** '''Name''' – the name of the room type
+
*** '''Id''' – the price key
*** '''ID''' – ID of the room type
+
*** '''SvKey''' – the service type key
*** '''Description''' – the description of the room type
+
*** '''SpoId''' – ID of the SPO
*** '''NameLat''' – the name of the room type
+
*** '''Code''' – the key of the service
*** '''Code''' – the room type code
+
*** '''AgeFrom''' – age «from»
*** '''CodeLat''' – the room type code in Latin
+
*** '''AgeTo''' – age «to»
*** '''Unicode''' – the ISO code of the room type
+
*** '''CreateDate''' – the date the price was created
*** '''Places''' – the number of main places
+
*** '''CheckInDateBegin''' – the check-in date «from»
*** '''ExPlaces''' – the number of additional seats
+
*** '''CheckInDateEnd''' – the check-in date «till»
*** '''PrintOrder''' – the number of additional seats
+
*** '''CheckOutDateBegin''' – the departure date «from»
 +
*** '''CheckOutDateEnd''' – the departure date «till»
 +
*** '''DateBegin''' – the price validity date «from»
 +
*** '''DateEnd''' – the price validity date «till»
 +
*** '''UpdateDate''' – the last date of the price update
 +
*** '''Price''' – the value of the price
 +
*** '''Rate''' – the currency
 +
*** '''SubCode1''' – the price parameter depending on the type of service (for accommodation – the room type key, for transfer – TransferType, for Adhot – the room type key)
 +
*** '''SubCode2''' – the price parameter depending on the type of service (for accommodation – the pansion key, for transfer – the start point, for Adhot – the hotel key)
 +
*** '''SubCode3''' – the price parameter depending on the type of service (for accommodation – the room category key, for transfer – the end point, for Adhot – the room category key)
 +
*** '''SubCode4''' – the price parameter depending on the type of service (for the accommodation – accommodation, for Adhot – the accommodation)
 +
*** '''TariffId''' – the tariff key
 +
*** '''Type''' – the price type (1 – group, 0 – non-group. For a hotel per room or per person)
 +
*** '''CountryId''' – the key of the country of the service
 +
*** '''CityFromId''' – the key of the service city
 +
*** '''CityToId''' – the key of the city of the "where" service (for transfers)
 +
*** '''TouroperatorId''' – the tour operator's key
 +
*** '''AdHotName''' – the name of AdHot
 +
*** '''LinkType''' – the AdHot type (1 – Manual, 2 – HardLink, 3 – WithCosts)
 +
*** '''DurationType''' – with or without duration (1 – with duration)
  
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
The invocation of the method GetRoomType
+
The invocation of the method GetExtraServicesWithPrices
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRoomType/>
+
       <meg:GetExtraServiceWithPrices>
 +
        <!--Optional:-->
 +
        <meg:guid>c80b29df-4110-4769-85a5-99ef5def023c</meg:guid>
 +
        <!--Optional:-->
 +
        <meg:request>
 +
            <meg:HotelKey>2930</meg:HotelKey>
 +
            <meg:DateFrom>2022-01-01</meg:DateFrom>
 +
            <meg:DateTo>2022-12-31</meg:DateTo>
 +
        </meg:request>
 +
      </meg:GetExtraServiceWithPrices>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
The returning result for the method GetRoomType
+
The invocation of the method GetExtraServicesWithPrices
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
 
   <soap:Body>
 
   <soap:Body>
       <GetRoomTypeResponse xmlns="http://www.megatec.ru/">
+
       <GetExtraServiceWithPricesResponse xmlns="http://www.megatec.ru/">
         <GetRoomTypeResult>
+
         <GetExtraServiceWithPricesResult Message="Ok" Count="15">
             <RoomType>
+
             <Data>
               <Name>NOVALUE</Name>
+
               <CostInfoWithAdHotDescription Id="7795829" SvKey="5" SpoId="2047" Code="471" AgeFrom="0" AgeTo="0" CreateDate="2021-07-26T18:20:02.52"
              <ID>0</ID>
+
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
              <Description/>
+
DateBegin="2002-08-01T00:00:00" DateEnd="2023-08-12T00:00:00" UpdateDate="2021-07-26T18:20:03.313" Price="17.0000" Rate="EU" SubCode1="0" SubCode2="2930"
              <NameLat/>
+
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="6" CityFromId="80" CityToId="0" TouroperatorId="1035" AdHotName="bonus" LinkType="Manual"
               <Code>-</Code>
+
DurationType="0"/>
              <CodeLat/>
+
               <CostInfoWithAdHotDescription Id="7807924" SvKey="5" SpoId="2029" Code="694" AgeFrom="0" AgeTo="0" CreateDate="2022-12-09T14:24:52.333"
              <Unicode/>
+
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
              <Places>0</Places>
+
DateBegin="2022-02-01T00:00:00" DateEnd="2024-02-01T00:00:00" UpdateDate="2022-12-09T14:24:52.573" Price="3.0000" Rate="EU" SubCode1="0" SubCode2="0"
              <ExPlaces>0</ExPlaces>
+
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Сейф в номере" LinkType="Manual"
               <PrintOrder>0</PrintOrder>
+
DurationType="0"/>
            </RoomType>
+
               <CostInfoWithAdHotDescription Id="7805052" SvKey="5" SpoId="2136" Code="716" AgeFrom="0" AgeTo="0" CreateDate="2022-01-05T17:16:53.75"
            <RoomType>
+
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
              <Name>10</Name>
+
DateBegin="2022-01-01T00:00:00" DateEnd="2025-01-01T00:00:00" UpdateDate="2022-01-05T18:16:55.813" Price="17.0000" Rate="EU" SubCode1="0" SubCode2="0"
              <ID>876</ID>
+
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Maska dinners" LinkType="Manual"
              <Description>111</Description>
+
DurationType="0"/>
              <NameLat/>
+
               <CostInfoWithAdHotDescription Id="7809780" SvKey="5" SpoId="2604" Code="726" AgeFrom="0" AgeTo="0" CreateDate="2023-02-15T12:29:03.747"
               <Code>111</Code>
+
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
              <CodeLat/>
+
DateBegin="2023-02-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2023-02-15T12:29:08.183" Price="0" Rate="USD" SubCode1="0" SubCode2="0" SubCode3="0"
              <Unicode/>
+
SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Такса (Тунис)" LinkType="Manual" DurationType="1"/>
              <Places>111</Places>
+
             </Data>
              <ExPlaces>0</ExPlaces>
+
        </GetExtraServiceWithPricesResult>
              <PrintOrder>0</PrintOrder>
+
       </GetExtraServiceWithPricesResponse>
            </RoomType>
 
            <RoomType>
 
              <Name>33444</Name>
 
              <ID>915</ID>
 
              <Description>12</Description>
 
              <NameLat/>
 
              <Code>1123</Code>
 
              <CodeLat/>
 
              <Unicode/>
 
              <Places>1</Places>
 
              <ExPlaces>0</ExPlaces>
 
              <PrintOrder>0</PrintOrder>
 
             </RoomType>
 
          </GetRoomTypeResult>
 
       </GetRoomTypeResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4926: Строка 4535:
 
</div></div><br />
 
</div></div><br />
  
===GetRoomCategories (Receiving the list of the room categories)===
+
===CalculateSingleCost (Calculating the cost of the service according to its parameters by a standart calculation mechanism)===
The method returns a list of room categories.<br />
+
CalculateSingleCost (Calculating the cost of the service according to its parameters by a standart calculation mechanism) .<br />
 +
Accepted request parameters ( '''*''' – required):
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''SvKey *''' – the service type key
 +
* '''СountryKey *''' – the country key
 +
* '''Сode *''' – the service key
 +
* '''Subcode1 *''' – the price parameter depending on the type of service (for accommodation – the room type key, for transfer – TransferType)
 +
* '''Subcode2 *''' – price parameter depending on the type of service (for accommodation – the pansion key, for transfer – the starting point)
 +
* '''Subcode3 *''' – the price parameter depending on the type of service (for accommodation – the room category key, for transfer – the end point)
 +
* '''Subcode4 *''' – the price parameter depending on the type of service (for accommodation – the accommodation)
 +
* '''TourOperatorGroupKey *''' – the key of the tour operator's grou
 +
* '''TourOperatorKey *''' – the key of the tour operator (seller)
 +
* '''MrKey *''' – the market key
 +
* '''FilialKey *''' – the branch key
 +
* '''TafiffKey *''' – the tariff key
 +
* '''Pax *''' – Pax by service
 +
* '''Ages *''' – the list with the ages of children
 +
* '''CheckInDate *''' – date «from»
 +
* '''CheckOutDate *''' – date «till»
 +
* '''CityKey *''' – the city key
 +
* '''CityKeyTo *''' – the key of the city «where»
 +
* '''Rate *''' – the currency code
 +
* '''PricePerRoom *''' – per room or per person
 +
* '''OnlyPublished *''' – consider only published prices
 +
* '''ServiceProviderKey *''' –  the key of the service provider
 
The returning result:<br />
 
The returning result:<br />
* '''GetRoomCategoriesResult''' – the search result
+
* '''CalculateSingleCostResult''' – the output results
** '''RoomCategory''' – an array of the data
+
** '''Brutto''' – the calculated gross price
*** '''Name''' – the name of the room category
+
** '''ProviderKey''' – the key of the service provider
*** '''ID''' – ID of the room category
+
** '''IsCalcBrutto'''
*** '''Description''' – the description of the room category
+
** '''CancellationPolicies''' – the cancellation Policy
*** '''NameLat''' – the name of the room category
+
** '''PolicyKey''' – the policy key
*** '''Code''' – the room category code
+
** '''DateFrom''' – date "from"
*** '''CodeLat''' – the room category code in Latin
+
** '''DateTo''' – date "till"
*** '''Unicode''' – the ISO code of the room category
+
** '''PenaltyValue''' – the penalty value
*** '''MainPlaces''' the number of main places
+
** '''IsPercent''' - the percentage indicating that the penalty is in "%" (true) or in "nights" (false)
*** '''ExtraPlaces''' – the number of additional places
 
*** '''IsMain''' – the parameter for internal use
 
  
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
The invocation of the method GetRoomCategories
+
The invocation of the method CalculateSingleCost
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRoomCategories/>
+
       <meg:CalculateSingleCost>
 +
        <!--Optional:-->
 +
        <meg:guid>823b2df5-a3fe-4153-b43a-accfba1bf86c</meg:guid>
 +
        <meg:svKey>1</meg:svKey>
 +
        <meg:countryKey>1</meg:countryKey>
 +
        <meg:code>1</meg:code>
 +
        <meg:subcode1>1</meg:subcode1>
 +
        <meg:subcode2>1</meg:subcode2>
 +
        <meg:subcode3>1</meg:subcode3>
 +
        <meg:subcode4>1</meg:subcode4>
 +
        <meg:tourOperatorGroupKey>1</meg:tourOperatorGroupKey>
 +
        <meg:tourOperatorKey>1</meg:tourOperatorKey>
 +
        <meg:mrKey>1</meg:mrKey>
 +
        <meg:filialKey>1</meg:filialKey>
 +
        <meg:tafiffKey>1</meg:tafiffKey>
 +
        <meg:pax>1</meg:pax>
 +
        <!--Optional:-->
 +
        <meg:ages>
 +
        <!--Zero or more repetitions:-->
 +
        <meg:int>1</meg:int>
 +
        </meg:ages>
 +
        <meg:checkInDate>2021-08-01</meg:checkInDate>
 +
        <meg:checkOutDate>2021-08-24</meg:checkOutDate>
 +
        <meg:cityKey>1</meg:cityKey>
 +
        <meg:cityKeyTo>1</meg:cityKeyTo>
 +
        <!--Optional:-->
 +
        <meg:rate>1</meg:rate>
 +
        <meg:pricePerRoom>1</meg:pricePerRoom>
 +
        <meg:onlyPublished>1</meg:onlyPublished>
 +
        <meg:serviceProviderKey>1</meg:serviceProviderKey>
 +
      </meg:CalculateSingleCost>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
The returning result for the method GetRoomCategories
+
The returning result for the method CalculateSingleCost
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetRoomCategoriesResponse xmlns="http://www.megatec.ru/">
+
       <CalculateSingleCostResponse xmlns="http://www.megatec.ru/">
         <GetRoomCategoriesResult>
+
         <CalculateSingleCostResult>
             <RoomCategory>
+
             <Brutto>50.0000</Brutto>
              <Name>-</Name>
+
            <ProviderKey>2943</ProviderKey>
              <ID>0</ID>
+
            <IsCalcBrutto>false</IsCalcBrutto>
              <Description/>
+
            <CancellationPolicies>
              <NameLat/>
+
               <CancellationPolicyData>
              <CodeLat/>
+
                  <PolicyKey>151</PolicyKey>
               <Unicode/>
+
                  <DateFrom>2021-08-25T00:00:00</DateFrom>
              <MainPlaces>0</MainPlaces>
+
                  <DateTo>2021-08-27T00:00:00</DateTo>
              <ExtraPlaces>0</ExtraPlaces>
+
                  <PenaltyValue>3</PenaltyValue>
              <IsMain>false</IsMain>
+
                  <IsPercent>false</IsPercent>
            </RoomCategory>
+
               </CancellationPolicyData>
            <RoomCategory>
+
               <CancellationPolicyData>
              <Name>!!!</Name>
+
                  <PolicyKey>149</PolicyKey>
               <ID>304</ID>
+
                  <DateFrom>2021-08-27T00:00:00</DateFrom>
               <Description/>
+
                  <DateTo>2021-08-31T00:00:00</DateTo>
              <NameLat/>
+
                  <PenaltyValue>4</PenaltyValue>
              <Code>1</Code>
+
                  <IsPercent>false</IsPercent>
              <CodeLat/>
+
               </CancellationPolicyData>
              <Unicode/>
+
              </CancellationPolicies>
              <MainPlaces>0</MainPlaces>
+
         </CalculateSingleCostResult>
              <ExtraPlaces>0</ExtraPlaces>
+
       </CalculateSingleCostResponse>
               <IsMain>false</IsMain>
 
            </RoomCategory>
 
         </GetRoomCategoriesResult>
 
       </GetRoomCategoriesResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4991: Строка 4648:
 
</div></div><br />
 
</div></div><br />
  
=== GetPansions (Получение списка типов питаний)===
+
==Methods of working with dictionaries==
Метод возвращает список типов питаний.<br />
 
Возвращаемый результат:<br />
 
* '''GetPansionsResult''' – результат поиска
 
** '''Pansion''' – массив данных
 
*** '''Name''' – название типа питания
 
*** '''ID''' – идентификатор типа питания
 
*** '''Description''' – описание типа питания
 
*** '''NameLat''' – наименование типа питания латиницей
 
*** '''Code''' – код типа питания
 
*** '''CodeLat''' –  код типа питания латиницей
 
*** '''Unicode''' –  код ISO типа питания
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
===GetRegions (Receiving the list of the regions)===
<div class="mw-collapsible-content">
+
The method returns a list of regions.
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
Accepted request parameters ( '''*''' – required):
Вызов метода GetPansions
+
* '''СountryKey *''' – the country ID (-1 for all)
<syntaxhighlight lang="java" enclose="div">
+
The returning result:<br />
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
* '''GetRegionsResult''' – the search result
   <soapenv:Header/>
+
** '''Region''' – an array of the data
   <soapenv:Body>
+
*** '''Name''' – the name of the region
       <meg:GetPansions/>
+
*** '''ID''' – ID of the region
 +
*** '''Description''' – the description of the region
 +
*** '''NameLat''' – the name of the region in Latin
 +
*** '''Code''' – the region code
 +
*** '''CodeLat''' – the region code in Latin
 +
*** '''Unicode''' – the ISO code of the region
 +
*** '''CountryID''' – the country ID
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The Invocation of method GetRegions
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 +
   <soapenv:Header/>
 +
   <soapenv:Body>
 +
       <meg:GetRegions>
 +
        <meg:countryKey>10</meg:countryKey>
 +
      </meg:GetRegions>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetPansions
+
The returning result of method GetRegions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetPansionsResponse xmlns="http://www.megatec.ru/">
+
       <GetRegionsResponse xmlns="http://www.megatec.ru/">
         <GetPansionsResult>
+
         <GetRegionsResult>
             <Pansion>
+
             <Region>
               <Name>&lt;Not defined></Name>
+
               <Name>Chisinau</Name>
               <ID>0</ID>
+
               <ID>18</ID>
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code>ND</Code>
+
               <Code>KIV</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </Pansion>
+
              <CountryID>10</CountryID>
             <Pansion>
+
             </Region>
               <Name>Full Board</Name>
+
             <Region>
               <ID>1</ID>
+
               <Name>Tiraspol</Name>
 +
               <ID>109</ID>
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code>FB</Code>
+
               <Code>TRS</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
            </Pansion>
+
               <CountryID>10</CountryID>
            <Pansion>
+
             </Region>
              <Name>All Inclusive</Name>
+
        </GetRegionsResult>
               <ID>2</ID>
+
       </GetRegionsResponse>
              <Description/>
 
              <NameLat/>
 
              <Code>AL</Code>
 
              <CodeLat/>
 
              <Unicode/>
 
             </Pansion>
 
        </GetPansionsResult>
 
       </GetPansionsResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5057: Строка 4714:
 
</div></div><br />
 
</div></div><br />
  
=== GetRatings (Получение массива категорий (звездностей) отелей)===
+
===GetCities (Receiving the list of the cities)===
Метод возвращает массив категорий отелей.<br />
+
The method returns a list of cities.
Возвращаемый результат:<br />
+
Accepted request parameters ( '''*''' – required):
* '''GetRatingsResult''' – результат поиска
+
* '''СountryKey *''' – country ID (-1 for all)
** '''HotelCategory''' – массив данных
+
* '''RegionKey *''' – region ID (-1 for all)
*** '''Name''' – название категории отеля
+
The returning result:
*** '''ID''' – идентификатор категории отеля
+
* '''GetCitiesResult''' – the search result
*** '''Description''' – описание категории отеля
+
** '''City''' – an array of the data
*** '''NameLat''' – наименование категории отеля латиницей
+
*** '''Name''' – the name of the city
*** '''Code''' – код категории отеля
+
*** '''ID''' – ID of the city
*** '''CodeLat''' – код категории отеля латиницей
+
*** '''Description''' – the description of the city
*** '''Unicode''' – код ISO категории отеля
+
*** '''NameLat''' – the name of the city in Latin
 +
*** '''Code''' – the city code
 +
*** '''CodeLat''' – the city code in Latin
 +
*** '''Unicode''' – the ISO code of the city
 +
*** '''CountryID''' – ID of the city
 +
*** '''RegionID''' – the region ID
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetRatings
+
The invocation of the method GetCities
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRatings/>
+
       <meg:GetCities>
 +
        <meg:countryKey>10</meg:countryKey>
 +
        <meg:regionKey>10</meg:regionKey>
 +
      </meg:GetCities>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRatings
+
The returning result for the method GetCities
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetRatingsResponse xmlns="http://www.megatec.ru/">
+
       <GetCitiesResponse xmlns="http://www.megatec.ru/">
         <GetRatingsResult>
+
         <GetCitiesResult>
             <HotelCategory>
+
             <City>
               <Name>Not defined</Name>
+
               <Name>Katerini</Name>
               <ID>0</ID>
+
               <ID>153</ID>
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code/>
+
               <Code>KTR</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </HotelCategory>
+
              <CountryID>4</CountryID>
             <HotelCategory>
+
              <RegionID>10</RegionID>
               <Name>5 stars (Deluxe)</Name>
+
             </City>
               <ID>2</ID>
+
             <City>
 +
               <Name>Leptokaria</Name>
 +
               <ID>24</ID>
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code/>
+
               <Code>LPK</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </HotelCategory>
+
              <CountryID>4</CountryID>
         </GetRatingsResult>
+
              <RegionID>10</RegionID>
       </GetRatingsResponse>
+
             </City>
 +
         </GetCitiesResult>
 +
       </GetCitiesResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5114: Строка 4783:
 
</div></div><br />
 
</div></div><br />
  
=== GetFlights (Получение списка авиарейсов)===
+
===GetCountries (Receiving the list of the countries)===
Метод возвращает список авиарейсов.<br />
+
The method returns a list of countries.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetFlightsResult''' – результат поиска
+
* '''GetCountriesResult''' – the search result
** '''Flight''' – массив данных
+
** '''Country''' – the an array of the data
*** '''AirportFrom''' – трансферный узел в пункте отбытия
+
*** '''Name''' – the name of the country
**** '''Name''' – название трансферного узла из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
+
*** '''ID''' – the country ID
**** '''ID''' – идентификатор города трансферного узла
+
*** '''Description''' – the description of the country
**** '''Description''' – название города трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
+
*** '''NameLat''' – the name of the country in Latin
**** '''NameLat''' – наименование трансферного узла
+
*** '''Code''' – the country code
**** '''Code''' – код трансферного узла
+
*** '''CodeLat''' – the country code in Latin
**** '''CodeLat''' – код трансферного узла латиницей
+
*** '''Unicode''' – the ISO code of the country
**** '''Unicode''' – код ISO трансферного узла
+
*** '''IsIncoming''' – the parameter for internal use
**** '''RegionID''' – идентификатор региона расположения трансферного узла
 
**** '''CityID''' – идентификатор города расположения трансферного узла
 
*** '''AirportTo''' – трансферный узел в пункте прибытия
 
**** '''Name''' – название трансферного узла из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
 
**** '''ID''' – идентификатор города трансферного узла
 
**** '''Description''' – название города трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
 
**** '''NameLat''' – наименование трансферного узла
 
**** '''Code''' – код трансферного узла
 
**** '''CodeLat''' – код трансферного узла латиницей
 
**** '''Unicode''' – код ISO трансферного узла
 
**** '''RegionID''' – идентификатор региона расположения трансферного узла
 
**** '''CityID''' – идентификатор города расположения трансферного узла
 
*** '''TimeFrom''' – время от
 
*** '''TimeTo''' – время до
 
*** '''DateFrom''' – дата от
 
*** '''DateTo''' – дата до
 
*** '''IsArrival''' –
 
*** '''Available''' –
 
*** '''ID''' – идентификатор строки из таблицы '''Charter''' из БД
 
*** '''Name''' – наименование из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
 
*** '''Number''' – номер перелета из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
 
*** '''ArrivalFlightNumber''' – номер рейса прибытия из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
 
*** '''DepartureFlightNumber''' – номер рейса вылета из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
 
  
 
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetFlights
+
The invocation of the method GetCountries
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetFlights/>
+
       <meg:GetCountries/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetFlights
+
The returning result for the method GetCountries
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetFlightsResponse xmlns="http://www.megatec.ru/">
+
       <GetCountriesResponse xmlns="http://www.megatec.ru/">
         <GetFlightsResult>
+
         <GetCountriesResult>
             <Flight>
+
             <Country>
               <AirportFrom>
+
               <Name>Azerbaijan</Name>
                  <Name>Makedonia</Name>
+
              <ID>19</ID>
                  <ID>1000001</ID>
+
              <Description/>
                  <Description>Thessaloniki</Description>
+
              <NameLat/>
                  <NameLat/>
+
              <Code/>
                  <Code/>
+
              <CodeLat/>
                  <CodeLat/>
+
              <Unicode/>
                  <Unicode/>
+
              <IsIncoming>false</IsIncoming>
                  <RegionID>7</RegionID>
+
            </Country>
                  <CityID>12</CityID>
+
            <Country>
              </AirportFrom>
+
               <Name>Belarus</Name>
               <AirportTo>
+
              <ID>7</ID>
                  <Name>Makedonia</Name>
+
              <Description/>
                  <ID>1000001</ID>
+
              <NameLat/>
                  <Description>Thessaloniki</Description>
+
              <Code/>
                  <NameLat/>
+
              <CodeLat/>
                  <Code/>
+
              <Unicode/>
                  <CodeLat/>
+
               <IsIncoming>false</IsIncoming>
                  <Unicode/>
+
            </Country>
                  <RegionID>7</RegionID>
+
             </Country>
                  <CityID>12</CityID>
+
         </GetCountriesResult>
              </AirportTo>
+
       </GetCountriesResponse>
              <TimeFrom>2021-08-31T00:00:00+04:00</TimeFrom>
 
              <TimeTo>2021-08-31T00:00:00+04:00</TimeTo>
 
              <DateFrom>2021-08-31T00:00:00+04:00</DateFrom>
 
              <DateTo>2021-08-31T00:00:00+04:00</DateTo>
 
               <IsArrival>false</IsArrival>
 
              <Available>No</Available>
 
              <ID>4</ID>
 
              <Name/>
 
              <Number>NN 283/284 00:01</Number>
 
             </Flight>
 
         </GetFlightsResult>
 
       </GetFlightsResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5211: Строка 4844:
 
</div></div><br />
 
</div></div><br />
  
=== GetAirport (Получение списка трансферных узлов)===
+
===GetRoomType (Receiving the list of the room types)===
Метод возвращает список трансферных узлов.<br />
+
The method returns a list of room types.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetFlightsResult''' – результат поиска
+
* '''GetRoomTypeResult''' – the search result
** '''Airport''' – массив данных
+
** '''RoomType''' – an array of the data
*** '''Name''' – название трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
+
*** '''Name''' – the name of the room type
*** '''ID''' – идентификатор трансферного узла
+
*** '''ID''' – ID of the room type
*** '''Description''' – название города трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
+
*** '''Description''' – the description of the room type
*** '''NameLat''' – название города трансферного узла латиницей
+
*** '''NameLat''' – the name of the room type
*** '''Code''' – код города трансферного узла латиницей
+
*** '''Code''' – the room type code
*** '''CodeLat''' – код города трансферного узла латиницей
+
*** '''CodeLat''' – the room type code in Latin
*** '''Unicode''' – код ISO города трансферного узла латиницей
+
*** '''Unicode''' – the ISO code of the room type
*** '''RegionID''' – идентификатор региона расположения трансферного узла
+
*** '''Places''' – the number of main places
*** '''CityID''' – идентификатор города расположения трансферного узла
+
*** '''ExPlaces''' – the number of additional seats
 +
*** '''PrintOrder''' – the number of additional seats
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetAirport
+
The invocation of the method GetRoomType
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetAirport/>
+
       <meg:GetRoomType/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetAirport
+
The returning result for the method GetRoomType
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 +
  <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetAirportResponse xmlns="http://www.megatec.ru/">
+
       <GetRoomTypeResponse xmlns="http://www.megatec.ru/">
         <GetAirportResult>
+
         <GetRoomTypeResult>
             <Airport>
+
             <RoomType>
               <Name>lalala</Name>
+
               <Name>NOVALUE</Name>
               <ID>3</ID>
+
               <ID>0</ID>
               <Description>Moscow</Description>
+
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code/>
+
               <Code>-</Code>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
              <Places>0</Places>
 +
              <ExPlaces>0</ExPlaces>
 +
              <PrintOrder>0</PrintOrder>
 +
            </RoomType>
 +
            <RoomType>
 +
              <Name>10</Name>
 +
              <ID>876</ID>
 +
              <Description>111</Description>
 +
              <NameLat/>
 +
              <Code>111</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <RegionID>19</RegionID>
+
               <Places>111</Places>
               <CityID>87</CityID>
+
               <ExPlaces>0</ExPlaces>
             </Airport>
+
              <PrintOrder>0</PrintOrder>
             <Airport>
+
             </RoomType>
               <Name>El.Venizelos</Name>
+
             <RoomType>
               <ID>1004</ID>
+
               <Name>33444</Name>
               <Description>Athens</Description>
+
               <ID>915</ID>
 +
               <Description>12</Description>
 
               <NameLat/>
 
               <NameLat/>
               <Code/>
+
               <Code>1123</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <RegionID>38</RegionID>
+
               <Places>1</Places>
               <CityID>55</CityID>
+
               <ExPlaces>0</ExPlaces>
             </Airport>
+
              <PrintOrder>0</PrintOrder>
        </GetAirportResult>
+
             </RoomType>
       </GetAirportResponse>
+
          </GetRoomTypeResult>
 +
       </GetRoomTypeResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5274: Строка 4923:
 
</div></div><br />
 
</div></div><br />
  
=== GetProviders (Получение списка партнеров, которые являются поставщиками услуг)===
+
===GetRoomCategories (Receiving the list of the room categories)===
Метод возвращает список партнеров системы, которые являются поставщиками услуг. <br />
+
The method returns a list of room categories.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetProvidersResult''' – результат поиска
+
* '''GetRoomCategoriesResult''' – the search result
** '''Partner''' – массив данных
+
** '''RoomCategory''' – an array of the data
*** '''Name''' – название партнера
+
*** '''Name''' – the name of the room category
*** '''ID''' – идентификатор партера
+
*** '''ID''' – ID of the room category
*** '''Description''' – описание партнера
+
*** '''Description''' – the description of the room category
*** '''NameLat''' – название партнера латиницей
+
*** '''NameLat''' – the name of the room category
*** '''Code''' – код партнера
+
*** '''Code''' – the room category code
*** '''CodeLat''' – код партнера латиницей
+
*** '''CodeLat''' – the room category code in Latin
*** '''Unicode''' – код ISO партнера
+
*** '''Unicode''' – the ISO code of the room category
*** '''PartnersGroupID''' – идентификатор группы партнера
+
*** '''MainPlaces''' – the number of main places
*** '''FullName''' – полное название партнера
+
*** '''ExtraPlaces''' – the number of additional places
*** '''Fax''' – факс партнера
+
*** '''IsMain''' – the parameter for internal use
*** '''Address''' – адрес партнера
+
 
*** '''Zip''' – почтовый код партнера
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
*** '''Email''' – e-mail партнера
+
<div class="mw-collapsible-content">
*** '''Phones''' – телефоны партнера
 
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetProviders
+
The invocation of the method GetRoomCategories
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetProviders/>
+
       <meg:GetRoomCategories/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetProviders
+
The returning result for the method GetRoomCategories
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetProvidersResponse xmlns="http://www.megatec.ru/">
+
       <GetRoomCategoriesResponse xmlns="http://www.megatec.ru/">
         <GetProvidersResult>
+
         <GetRoomCategoriesResult>
             <Partner>
+
             <RoomCategory>
               <Name>&lt;All></Name>
+
               <Name>-</Name>
 
               <ID>0</ID>
 
               <ID>0</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>&lt;All></NameLat>
+
               <NameLat/>
              <Code>&lt;AL</Code>
 
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <PartnersGroupID>0</PartnersGroupID>
+
               <MainPlaces>0</MainPlaces>
               <FullName>&lt;All></FullName>
+
               <ExtraPlaces>0</ExtraPlaces>
               <Fax/>
+
               <IsMain>false</IsMain>
              <Address/>
+
             </RoomCategory>
              <Zip/>
+
             <RoomCategory>
              <Email/>
+
               <Name>!!!</Name>
              <Phones/>
+
               <ID>304</ID>
             </Partner>
+
               <Description/>
             <Partner>
+
               <NameLat/>
               <Name>HOTEL CHANGE</Name>
+
               <Code>1</Code>
               <ID>1</ID>
 
               <Description/>
 
               <NameLat>HOTEL CHANGE</NameLat>
 
               <Code>HOT</Code>
 
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <PartnersGroupID>0</PartnersGroupID>
+
               <MainPlaces>0</MainPlaces>
               <FullName>HOTEL CHANGE</FullName>
+
               <ExtraPlaces>0</ExtraPlaces>
              <Fax/>
+
               <IsMain>false</IsMain>
               <Address/>
+
            </RoomCategory>
              <Zip/>
+
         </GetRoomCategoriesResult>
              <Email/>
+
       </GetRoomCategoriesResponse>
              <Phones/>
 
            </Partner>
 
         </GetProvidersResult>
 
       </GetProvidersResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5352: Строка 4988:
 
</div></div><br />
 
</div></div><br />
  
=== GetTransports (Получение списка транспортных средств)===
+
===GetPansions (Receiving the list of the pansion types)===
Метод возвращает список транспортных средств. <br />
+
The method returns a list of types of meals.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetTransportsResult''' – результат поиска
+
* '''GetPansionsResult''' – the search result
** '''Transport''' – массив данных
+
** '''Pansion''' – the search result
*** '''Name''' – название транспортного средства
+
*** '''Name''' – the name of the pansion type
*** '''ID''' – идентификатор транспортного средства
+
*** '''ID''' – ID of the type of pansion
*** '''Description''' – описание транспортного средства
+
*** '''Description''' – the description of the type of pansion
*** '''NameLat''' – название транспортного средства латиницей
+
*** '''NameLat''' – the name of the type of pansion in Latin
*** '''Code''' – код транспортного средства
+
*** '''Code''' – the code of the type of pansion
*** '''CodeLat''' – код транспортного средства латиницей
+
*** '''CodeLat''' – the type of pansion code in Latin
*** '''Unicode''' – код ISO транспортного средства
+
*** '''Unicode''' – the ISO code of the pansion type
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetTransports
+
The invocation of the method GetPansions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetTransports/>
+
       <meg:GetPansions/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTransports
+
The returning result for the method GetPansions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetTransportsResponse xmlns="http://www.megatec.ru/">
+
       <GetPansionsResponse xmlns="http://www.megatec.ru/">
         <GetTransportsResult>
+
         <GetPansionsResult>
             <Transport>
+
             <Pansion>
               <Name>Not defined</Name>
+
               <Name>&lt;Not defined></Name>
 
               <ID>0</ID>
 
               <ID>0</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>Not defined</NameLat>
+
               <NameLat/>
               <Code/>
+
               <Code>ND</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </Transport>
+
             </Pansion>
             <Transport>
+
             <Pansion>
               <Name>Bus</Name>
+
               <Name>Full Board</Name>
               <ID>3</ID>
+
               <ID>1</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>Bus</NameLat>
+
               <NameLat/>
               <Code/>
+
               <Code>FB</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </Transport>
+
             </Pansion>
             <Transport>
+
             <Pansion>
               <Name>Minibus</Name>
+
               <Name>All Inclusive</Name>
               <ID>4</ID>
+
               <ID>2</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>Minibus</NameLat>
+
               <NameLat/>
               <Code/>
+
               <Code>AL</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </Transport>
+
             </Pansion>
        </GetTransportsResult>
+
        </GetPansionsResult>
       </GetTransportsResponse>
+
       </GetPansionsResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5418: Строка 5054:
 
</div></div><br />
 
</div></div><br />
  
=== GetTransferTypes (Получение списка типов трансферов)===
+
===GetRatings (Receiving an array of hotel categories (hotel stars))===
Метод возвращает список типов трансферов. <br />
+
The method returns an array of hotel categories.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetTransferTypesResult''' – результат поиска
+
* '''GetRatingsResult''' – the search result
** '''Transport''' – массив данных
+
** '''HotelCategory''' – an array of the data
*** '''Name''' – название трансфера
+
*** '''Name''' – the name of the hotel category
*** '''ID''' – идентификатор трансфера
+
*** '''ID''' – ID of the hotel category
*** '''Description''' – описание трансфера
+
*** '''Description''' – the description of the hotel category
*** '''NameLat''' – наименование трансфера латиницей
+
*** '''NameLat''' – the name of the hotel category in Latin
*** '''Code''' – код трансфера
+
*** '''Code''' – the code of the hotel category
*** '''CodeLat''' – код трансфера латиницей
+
*** '''CodeLat''' – the code of the hotel category
*** '''Unicode''' – код ISO трансфера
+
*** '''Unicode''' – the ISO code of the hotel categoryя
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetTransferTypes
+
The invocation of the method GetRatings
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetTransferTypes/>
+
       <meg:GetRatings/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTransferTypes
+
The returning result for the method GetRatings
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetTransferTypesResponse xmlns="http://www.megatec.ru/">
+
       <GetRatingsResponse xmlns="http://www.megatec.ru/">
         <GetTransferTypesResult>
+
         <GetRatingsResult>
             <Transport>
+
             <HotelCategory>
               <Name>Group</Name>
+
               <Name>Not defined</Name>
 +
              <ID>0</ID>
 +
              <Description/>
 +
              <NameLat/>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
            </HotelCategory>
 +
            <HotelCategory>
 +
              <Name>5 stars (Deluxe)</Name>
 
               <ID>2</ID>
 
               <ID>2</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>Group</NameLat>
+
               <NameLat/>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </Transport>
+
             </HotelCategory>
            <Transport>
+
         </GetRatingsResult>
              <Name>Ind Car</Name>
+
       </GetRatingsResponse>
              <ID>3</ID>
 
              <Description/>
 
              <NameLat>Ind Car</NameLat>
 
              <Code/>
 
              <CodeLat/>
 
              <Unicode/>
 
            </Transport>
 
         </GetTransferTypesResult>
 
       </GetTransferTypesResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5475: Строка 5111:
 
</div></div><br />
 
</div></div><br />
  
=== GetRates (Получение списка валют)===
+
===GetFlights (Receiving the list of the regions)===
Метод возвращает список валют. <br />
+
The method returns a list of flights.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetRatesResult''' – результат поиска
+
* '''GetFlightsResult''' – the search result
** '''Rate''' – массив данных
+
** '''Flight''' – an array of the data
*** '''Name''' – название валюты
+
*** '''AirportFrom''' – the transfer hub at the departure point
*** '''ID''' – идентификатор валюты
+
**** '''Name''' – the name of the transfer node from the [[Master-Interlook:Справочники. Flight numbers|Flight numbers]] dictionary
*** '''Description''' – описание валюты
+
**** '''ID''' – ID of the city of the transfer node
*** '''NameLat''' – описание валюты латиницей
+
**** '''Description''' – the name of the city of the transfer node from the [[Master-Interlook:Справочники. Pickup point list|Pickup point list]] dictionary
*** '''Code''' – код валюты
+
**** '''NameLat''' – the name of the transfer node
*** '''CodeLat''' – код валюты латиницей
+
**** '''Code''' – the code of the transfer node
*** '''Unicode''' – код ISO валюты
+
**** '''CodeLat''' – the code of the transfer node in Latin
*** '''IsMain''' – признак валюты "главная"
+
**** '''Unicode''' – the ISO code of the transfer node
*** '''IsNational''' – признак валюты «национальная»
+
**** '''RegionID''' – ID of the region of the transfer node location
 +
**** '''CityID''' – ID of the city where the transfer node is located
 +
*** '''AirportTo''' – the transfer hub at the point of arrival
 +
**** '''Name''' – the name of the transfer node from the [[Master-Interlook:Справочники. Flight numbers|Flight numbers]] dictionary
 +
**** '''ID''' – ID of the city of the transfer node
 +
**** '''Description''' – the name of the city of the transfer node from the [[Master-Interlook:Справочники. Pickup point list|Pickup point list]] dictionary
 +
**** '''NameLat''' – the name of the transfer node
 +
**** '''Code''' – the code of the transfer node
 +
**** '''CodeLat''' – the code of the transfer node in Latin
 +
**** '''Unicode''' – the ISO code of the transfer node
 +
**** '''RegionID''' – ID of the region of the transfer node location
 +
**** '''CityID''' – ID of the region of the transfer node location
 +
*** '''TimeFrom''' – time from
 +
*** '''TimeTo''' – time to
 +
*** '''DateFrom''' – date from
 +
*** '''DateTo''' – date to
 +
*** '''IsArrival''' –
 +
*** '''Available''' –
 +
*** '''ID''' – ID of the row from the Charter table from the database
 +
*** '''Name''' – ID of the row from the Charter table from the database
 +
*** '''Number''' – the flight number from the Flight numbers dictionary
 +
*** '''ArrivalFlightNumber''' – the arrival flight number from the Flight numbers dictionary
 +
*** '''DepartureFlightNumber''' – the departure flight number from the Flight numbers dictionary
 +
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetRates
+
The invocation of the method GetFlights
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRates/>
+
       <meg:GetFlights/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRates
+
The returning result for the method GetFlights
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetRatesResponse xmlns="http://www.megatec.ru/">
+
       <GetFlightsResponse xmlns="http://www.megatec.ru/">
         <GetRatesResult>
+
         <GetFlightsResult>
             <Rate>
+
             <Flight>
               <Name>Euro</Name>
+
               <AirportFrom>
              <ID>1</ID>
+
                  <Name>Makedonia</Name>
              <Description/>
+
                  <ID>1000001</ID>
              <NameLat/>
+
                  <Description>Thessaloniki</Description>
              <Code>EU</Code>
+
                  <NameLat/>
               <CodeLat/>
+
                  <Code/>
               <Unicode>EUR</Unicode>
+
                  <CodeLat/>
              <IsMain>false</IsMain>
+
                  <Unicode/>
              <IsNational>false</IsNational>
+
                  <RegionID>7</RegionID>
            </Rate>
+
                  <CityID>12</CityID>
            <Rate>
+
               </AirportFrom>
              <Name>US dollar</Name>
+
               <AirportTo>
               <ID>2</ID>
+
                  <Name>Makedonia</Name>
               <Description/>
+
                  <ID>1000001</ID>
               <NameLat/>
+
                  <Description>Thessaloniki</Description>
               <Code>USD</Code>
+
                  <NameLat/>
               <CodeLat/>
+
                  <Code/>
               <Unicode>USD</Unicode>
+
                  <CodeLat/>
               <IsMain>false</IsMain>
+
                  <Unicode/>
               <IsNational>false</IsNational>
+
                  <RegionID>7</RegionID>
             </Rate>
+
                  <CityID>12</CityID>
         </GetRatesResult>
+
              </AirportTo>
       </GetRatesResponse>
+
               <TimeFrom>2021-08-31T00:00:00+04:00</TimeFrom>
 +
               <TimeTo>2021-08-31T00:00:00+04:00</TimeTo>
 +
               <DateFrom>2021-08-31T00:00:00+04:00</DateFrom>
 +
               <DateTo>2021-08-31T00:00:00+04:00</DateTo>
 +
               <IsArrival>false</IsArrival>
 +
               <Available>No</Available>
 +
               <ID>4</ID>
 +
              <Name/>
 +
               <Number>NN 283/284 00:01</Number>
 +
             </Flight>
 +
         </GetFlightsResult>
 +
       </GetFlightsResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5538: Строка 5208:
 
</div></div><br />
 
</div></div><br />
  
=== GetServicePackage (Получение списка вариантов пакетных услуг)===
+
===GetAirport (Receiving the list of the transfer nodes)===
Метод возвращает список вариантов пакетных услуг. <br />
+
The method returns a list of transfer nodes.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetServicePackageResult''' – результат поиска
+
* '''GetFlightsResult''' – the search result
** '''ServiceList''' – массив данных
+
** '''Airport''' – an array of the data
*** '''Name''' – название варианта
+
*** '''Name''' – the name of the transfer node from the Pickup [[Master-Interlook:Справочники. Pickup point list|Pickup point list]] dictionary
*** '''ID''' – идентификатор варианта
+
*** '''ID''' – ID of the transfer node
*** '''Description''' – описание варианта
+
*** '''Description''' – the name of the city of the transfer node from the [[Master-Interlook:Справочники. Pickup point list|Pickup point list]] dictionary
*** '''NameLat''' – описание варианта латиницей
+
*** '''NameLat''' – the name of the city of the transfer node in Latin
*** '''Code''' – код варианта
+
*** '''Code''' – the city code of the transfer node in Latin
*** '''CodeLat''' – код варианта латиницей
+
*** '''CodeLat''' – the city code of the transfer node in Latin
*** '''Unicode''' – код ISO варианта
+
*** '''Unicode''' – the ISO code of the city of the transfer node in Latin
*** '''ServiceClaseID''' – идентификатор класса дополнительной услуги
+
*** '''RegionID''' – ID of the region of the transfer node location
*** '''CountryID''' – ключ страны варианта
+
*** '''CityID''' – ID of the city where the transfer node is located
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetServicePackage
+
The invocation of the method GetAirport
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetServicePackage/>
+
       <meg:GetAirport/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetServicePackage
+
The returning result for the method GetAirport
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetServicePackageResponse xmlns="http://www.megatec.ru/">
+
       <GetAirportResponse xmlns="http://www.megatec.ru/">
         <GetServicePackageResult>
+
         <GetAirportResult>
             <ServiceList>
+
             <Airport>
               <Name>5 days in Antique Greece (4 nights)/DBL BB</Name>
+
               <Name>lalala</Name>
               <ID>21</ID>
+
               <ID>3</ID>
               <Description/>
+
               <Description>Moscow</Description>
 
               <NameLat/>
 
               <NameLat/>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <ServiceClaseID>0</ServiceClaseID>
+
               <RegionID>19</RegionID>
               <CountryID>4</CountryID>
+
               <CityID>87</CityID>
             </ServiceList>
+
             </Airport>
             <ServiceList>
+
             <Airport>
               <Name>5 days in Antique Greece (4 nights)/DBL HB</Name>
+
               <Name>El.Venizelos</Name>
               <ID>148</ID>
+
               <ID>1004</ID>
               <Description/>
+
               <Description>Athens</Description>
 
               <NameLat/>
 
               <NameLat/>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <ServiceClaseID>0</ServiceClaseID>
+
               <RegionID>38</RegionID>
               <CountryID>4</CountryID>
+
               <CityID>55</CityID>
             </ServiceList>
+
             </Airport>
         </GetServicePackageResult>
+
         </GetAirportResult>
       </GetServicePackageResponse>
+
       </GetAirportResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5601: Строка 5271:
 
</div></div><br />
 
</div></div><br />
  
=== GetDLStatuses (Получение списка статусов услуг)===
+
===GetProviders (Receiving the list of the partners which are providers of services)===
Метод возвращает список статусов услуг. <br />
+
The method returns a list of partners of the system who are used to be service providers.<br />
Возвращаемый результат:<br />
+
Returning result:<br />
* '''GetDLStatusesResult''' – результат поиска
+
* '''GetProvidersResult''' – the search result
** '''StatusService''' – массив данных
+
** '''Partner''' – an array of the data
*** '''Name''' – название статуса услуги
+
*** '''Name''' – the name of the partner
*** '''ID''' – идентификатор статуса услуги
+
*** '''ID''' – the ID of the stalls
*** '''Description''' – описание статуса услуги
+
*** '''Description''' – the description of the partner
*** '''NameLat''' – описание статуса услуги латиницей
+
*** '''NameLat''' – the name of the partner in Latin
*** '''Code''' – код статуса услуги
+
*** '''Code''' – the partner's code
*** '''CodeLat''' – код статуса услуги латиницей
+
*** '''CodeLat''' – the partner code in Latin
*** '''Unicode''' – код ISO статуса услуги
+
*** '''Unicode''' – the partner's ISO code
 +
*** '''PartnersGroupID''' – ID of the partner's group
 +
*** '''FullName''' – the full name of the partner
 +
*** '''Fax''' – the partner's fax
 +
*** '''Address''' – the partner's address
 +
*** '''Zip''' – the partner's zip code
 +
*** '''Email''' – the partner's e-mail
 +
*** '''Phones''' – the partner's phones
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetDLStatuses
+
The invocation of the method GetProviders
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetDLStatuses/>
+
       <meg:GetProviders/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetDLStatuses
+
The returning result for the method GetProviders
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetDLStatusesResponse xmlns="http://www.megatec.ru/">
+
       <GetProvidersResponse xmlns="http://www.megatec.ru/">
         <GetDLStatusesResult>
+
         <GetProvidersResult>
             <StatusService>
+
             <Partner>
               <Name>Wait</Name>
+
               <Name>&lt;All></Name>
               <ID>1</ID>
+
               <ID>0</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>Wait</NameLat>
+
               <NameLat>&lt;All></NameLat>
               <Code/>
+
               <Code>&lt;AL</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </StatusService>
+
              <PartnersGroupID>0</PartnersGroupID>
             <StatusService>
+
              <FullName>&lt;All></FullName>
               <Name>Confirmed</Name>
+
              <Fax/>
               <ID>2</ID>
+
              <Address/>
 +
              <Zip/>
 +
              <Email/>
 +
              <Phones/>
 +
             </Partner>
 +
             <Partner>
 +
               <Name>HOTEL CHANGE</Name>
 +
               <ID>1</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>Confirmed</NameLat>
+
               <NameLat>HOTEL CHANGE</NameLat>
               <Code/>
+
               <Code>HOT</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
            </StatusService>
+
               <PartnersGroupID>0</PartnersGroupID>
            <StatusService>
+
               <FullName>HOTEL CHANGE</FullName>
               <Name>Not confirmed</Name>
+
               <Fax/>
               <ID>4</ID>
+
               <Address/>
               <Description/>
+
               <Zip/>
               <NameLat>Not confirmed</NameLat>
+
               <Email/>
               <Code/>
+
               <Phones/>
               <CodeLat/>
+
             </Partner>
               <Unicode/>
+
         </GetProvidersResult>
             </StatusService>
+
       </GetProvidersResponse>
         </GetDLStatusesResult>
 
       </GetDLStatusesResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5667: Строка 5349:
 
</div></div><br />
 
</div></div><br />
  
=== GetTariffs (Получение списка тарифов для определенного типа услуг)===
+
===GetTransports (Receiving the list of the vehicles)===
Метод возвращает тарифы для определенного типа услуг. <br />
+
The method returns a list of vehicles. <br />
Принимаемые параметры запроса ( * – обязательный):
+
The returning result:<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''GetTransportsResult''' – the search result
* '''SvKey *''' – ключ типа услуги
+
** '''Transport''' – an array of the data
Возвращаемый результат:<br />
+
*** '''Name''' – the name of the vehicle
* '''GetTariffsResult''' – результат поиска
+
*** '''ID''' – the vehicle ID
** '''Tariff''' – массив данных
+
*** '''Description''' – the description of the vehicle
*** '''ID''' – идентификатор тарифа
+
*** '''NameLat''' – the name of the vehicle in Latin
*** '''Name''' – наименование тарифа
+
*** '''Code''' – the vehicle code
*** '''Description''' – описание тарифа
+
*** '''CodeLat''' – the vehicle code in Latin
*** '''NameLat''' – наименование тарифа латиницей
+
*** '''Unicode''' – the ISO code of the vehicle
*** '''Code''' – код тарифа
 
*** '''CodeLat''' – код тарифа латиницей
 
*** '''Unicode''' – код ISO тарифа
 
*** '''SvKey''' – ключ типа услуги
 
*** '''Comment''' – описание
 
*** '''CreateDate''' – дата создания
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetTariffs
+
The invocation of the method GetTransports
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetTariffs>
+
       <meg:GetTransports/>
        <!--Optional:-->
+
   </soapenv:Body>
        <meg:guid>6ef6eeb2-a766-4a30-92c0-348d5c2afb94</meg:guid>
 
        <meg:svKey>1</meg:svKey>
 
      </meg:GetTariffs>
 
   </soapenv:Body>
 
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTariffs
+
The returning result for the method GetTransports
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetTariffsResponse xmlns="http://www.megatec.ru/">
+
       <GetTransportsResponse xmlns="http://www.megatec.ru/">
         <GetTariffsResult>
+
         <GetTransportsResult>
             <Tariff>
+
             <Transport>
               <Name>!A4</Name>
+
               <Name>Not defined</Name>
               <ID>785</ID>
+
               <ID>0</ID>
 +
              <Description/>
 +
              <NameLat>Not defined</NameLat>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
            </Transport>
 +
            <Transport>
 +
              <Name>Bus</Name>
 +
              <ID>3</ID>
 
               <Description/>
 
               <Description/>
               <NameLat/>
+
               <NameLat>Bus</NameLat>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
              <SVKey>1</SVKey>
+
             </Transport>
              <Comment>A</Comment>
+
             <Transport>
              <CreateDate>2018-11-14T00:00:00</CreateDate>
+
               <Name>Minibus</Name>
             </Tariff>
+
               <ID>4</ID>
             <Tariff>
 
               <Name>Info Tour</Name>
 
               <ID>623</ID>
 
 
               <Description/>
 
               <Description/>
               <NameLat/>
+
               <NameLat>Minibus</NameLat>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
              <SVKey>1</SVKey>
+
             </Transport>
              <Comment/>
+
         </GetTransportsResult>
              <CreateDate>2009-10-01T00:00:00</CreateDate>
+
       </GetTransportsResponse>
             </Tariff>
 
         </GetTariffsResult>
 
       </GetTariffsResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5740: Строка 5415:
 
</div></div><br />
 
</div></div><br />
  
=== GetRoomDescriptions (Получение массива описаний комнат)===
+
===GetTransferTypes (Receiving the list of the transfer types)===
Метод возвращает массив описаний комнат.<br />
+
The method returns a list of transfer types. <br />
Принимаемые параметры запроса ( * – обязательный):
+
The returning result:<br />
* '''RoomTypeId *''' – ключ типа комнаты (0 – для всех)<br />
+
* '''GetTransferTypesResult''' – the search result
* '''RoomCategoryId *''' – ключ категории комнаты (0 – для всех)
+
** '''Transport''' – an array of the data
Возвращаемый результат:<br />
+
*** '''Name''' – the name of the transfer
* '''GetRoomDescriptionsResult''' – результат поиска
+
*** '''ID''' – the transfer ID
** '''AdditionalDescription''' – массив данных
+
*** '''Description''' – the description of the transfer
*** '''Name''' – наименование описания комнаты
+
*** '''NameLat''' – the name of the transfer in Latin
*** '''ID''' – идентификатор описания комнаты
+
*** '''Code''' – the transfer code
*** '''Description''' – описание
+
*** '''CodeLat''' – transfer code in Latin
*** '''NameLat''' – наименование описания комнаты латиницей
+
*** '''Unicode''' – the ISO code of the transfer
*** '''Code''' – код описания комнаты
 
*** '''CodeLat''' – код описания комнаты латиницей
 
*** '''Unicode''' – код ISO описания комнаты
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetRoomDescriptions
+
The invocation of the method GetTransferTypes
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRoomDescriptions>
+
       <meg:GetTransferTypes/>
        <meg:roomTypeId>7</meg:roomTypeId>
 
        <meg:roomCategoryId>7</meg:roomCategoryId>
 
      </meg:GetRoomDescriptions>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRoomDescriptions
+
The returning result for the method GetTransferTypes
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetRoomDescriptionsResponse xmlns="http://www.megatec.ru/">
+
       <GetTransferTypesResponse xmlns="http://www.megatec.ru/">
         <GetRoomDescriptionsResult>
+
         <GetTransferTypesResult>
             <AdditionalDescription>
+
             <Transport>
               <Name>Family Room Golf View</Name>
+
               <Name>Group</Name>
               <ID>1368</ID>
+
               <ID>2</ID>
 +
              <Description/>
 +
              <NameLat>Group</NameLat>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
            </Transport>
 +
            <Transport>
 +
              <Name>Ind Car</Name>
 +
              <ID>3</ID>
 
               <Description/>
 
               <Description/>
               <NameLat/>
+
               <NameLat>Ind Car</NameLat>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </AdditionalDescription>
+
             </Transport>
         </GetRoomDescriptionsResult>
+
         </GetTransferTypesResult>
       </GetRoomDescriptionsResponse>
+
       </GetTransferTypesResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5794: Строка 5472:
 
</div></div><br />
 
</div></div><br />
  
=== GetAccommodations (Получение размещения отелей)===
+
===GetRates (Receiving the list of the currencies)===
Метод возвращает размещения отелей.<br />
+
The method returns a list of currencies. <br />
Принимаемые параметры запроса ( * – обязательный):
+
The returning result:<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''GetRatesResult''' – the search result
Возвращаемый результат:<br />
+
** '''Rate''' – an array of the data
* '''GetAccommodationsResult''' – результат поиска
+
*** '''Name''' – the name of the currency
** '''Message''' – идентификатор размещения
+
*** '''ID''' – the currency ID
** '''Data''' – массив объектов с данными
+
*** '''Description''' – the currency description
*** '''AccomodationInfo''' – массив данных с размещением
+
*** '''NameLat''' – the description of the currency in Latin
**** '''Id''' – идентификатор размещения
+
*** '''Code''' – the currency code
**** '''Code''' – код размещения
+
*** '''CodeLat''' – the currency code in Latin
**** '''Name''' – название размещения
+
*** '''Unicode''' – the ISO code of the currency
**** '''IsPerRoom''' – за комнату или за человека
+
*** '''IsMain''' – the currency attribute "main"
**** '''NameUnicode''' – название размещения в Unicode
+
*** '''IsNational''' – the currency attribute "national"
**** '''CountAdultMain''' – количество взрослых на главном месте
 
**** '''CountChildMain''' – количество детей на главном месте
 
**** '''CountAdultExtra''' – количество взрослых на доп. месте
 
**** '''CountChildExtra''' – количество детей на доп. месте
 
**** '''ChildrenAges''' – строка с описание возрастов детей
 
**** '''IsWeb''' – доступность для Interlook-Web
 
**** '''IsPackage''' – можно ли добавлять в пакет
 
**** '''UpdateDate''' – дата последнего обновления размещения
 
**** '''ClildrenAgesList''' – список с возрастами детей
 
***** '''AccomadationAge''' – массив данных с возрастом
 
****** '''Id''' – идентификатор записи
 
****** '''AgeFrom''' – возраст «с»
 
****** '''AgeTo''' – возраст «по»
 
****** '''CountMen''' – количество взрослых в размещении
 
****** '''IsMain''' – на главном ли месте ребенок этого возраста
 
****** '''UpdateDate''' – дата последнего обновления записи
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetAccommodations
+
The invocation of the method GetRates
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetAccommodations>
+
       <meg:GetRates/>
        <!--Optional:-->
 
        <meg:guid>1b972765-0318-4ca3-9437-cefa99a3959d</meg:guid>
 
      </meg:GetAccommodations>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetAccommodations
+
The returning result for the method GetRates
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetAccommodationsResponse xmlns="http://www.megatec.ru/">
+
      <GetRatesResponse xmlns="http://www.megatec.ru/">
         <GetAccommodationsResult Message="Ok">
+
        <GetRatesResult>
             <Data>
+
            <Rate>
             <AccomodationInfo Id="7939" Code="1Ad+2Ch(3-12)" Name="1Ad+2Ch(3-12)" IsPerRoom="true" NameUnicode="1Ad+2Ch(3-12)" CountAdultMain="1" CountChildMain="2" CountAdultExtra="0" CountChildExtra="0" ChildrenAges="2Ch(3-12)" IsWeb="true" IsPackage="false" UpdateDate="2020-04-10T18:25:09.3">
+
              <Name>Euro</Name>
                   <ChildrenAgesList>
+
              <ID>1</ID>
                     <AccomadationAge Id="6664" AgeFrom="3" AgeTo="12" CountMen="2" IsMain="true" UpdateDate="2020-04-10T18:25:09.293"/>
+
              <Description/>
                   </ChildrenAgesList>
+
              <NameLat/>
               </AccomodationInfo>
+
              <Code>EU</Code>
 +
              <CodeLat/>
 +
              <Unicode>EUR</Unicode>
 +
              <IsMain>false</IsMain>
 +
              <IsNational>false</IsNational>
 +
            </Rate>
 +
            <Rate>
 +
              <Name>US dollar</Name>
 +
              <ID>2</ID>
 +
              <Description/>
 +
              <NameLat/>
 +
              <Code>USD</Code>
 +
              <CodeLat/>
 +
              <Unicode>USD</Unicode>
 +
              <IsMain>false</IsMain>
 +
              <IsNational>false</IsNational>
 +
            </Rate>
 +
        </GetRatesResult>
 +
      </GetRatesResponse>
 +
  </soap:Body>
 +
</soap:Envelope>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetServicePackage (Receiving the list of the options for package services)===
 +
The method returns a list of options for package services. <br />
 +
The returning result:<br />
 +
* '''GetServicePackageResult''' – the search result
 +
** '''ServiceList''' – an array of the data
 +
*** '''Name''' – the name of the option
 +
*** '''ID''' – ID of the option
 +
*** '''Description''' – the description of the option
 +
*** '''NameLat''' – the description of the option in Latin
 +
*** '''Code''' – the code of the option
 +
*** '''CodeLat''' – the code of the option in Latin
 +
*** '''Unicode''' – the ISO code of the option
 +
*** '''ServiceClaseID''' – ID of the additional service class
 +
*** '''CountryID''' – the key of the country of the option
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetServicePackage
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 +
  <soapenv:Header/>
 +
  <soapenv:Body>
 +
      <meg:GetServicePackage/>
 +
  </soapenv:Body>
 +
</soapenv:Envelope>
 +
</syntaxhighlight>
 +
The returning result for the method GetServicePackage
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 +
  <soap:Body>
 +
      <GetServicePackageResponse xmlns="http://www.megatec.ru/">
 +
        <GetServicePackageResult>
 +
            <ServiceList>
 +
              <Name>5 days in Antique Greece (4 nights)/DBL BB</Name>
 +
              <ID>21</ID>
 +
              <Description/>
 +
              <NameLat/>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
              <ServiceClaseID>0</ServiceClaseID>
 +
              <CountryID>4</CountryID>
 +
            </ServiceList>
 +
            <ServiceList>
 +
              <Name>5 days in Antique Greece (4 nights)/DBL HB</Name>
 +
              <ID>148</ID>
 +
              <Description/>
 +
              <NameLat/>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
              <ServiceClaseID>0</ServiceClaseID>
 +
              <CountryID>4</CountryID>
 +
            </ServiceList>
 +
        </GetServicePackageResult>
 +
      </GetServicePackageResponse>
 +
  </soap:Body>
 +
</soap:Envelope>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetDLStatuses (Receiving the list of the service statuses)===
 +
The method returns the file status of the service. <br />
 +
The returning result:<br />
 +
* '''GetDLStatusesResult''' – the search result
 +
** '''StatusService''' – an array of the data
 +
*** '''Name''' – the name of the
 +
*** '''ID''' – the service status ID
 +
*** '''Description''' – the description status services
 +
*** '''NameLat''' – the description of services in Latin
 +
*** '''Code''' – the code of service status
 +
*** '''CodeLat''' – the code of service status in Latin
 +
*** '''Unicode''' – the ISO code of service status
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetDLStatuses
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 +
  <soapenv:Header/>
 +
  <soapenv:Body>
 +
      <meg:GetDLStatuses/>
 +
  </soapenv:Body>
 +
</soapenv:Envelope>
 +
</syntaxhighlight>
 +
The returning result for the method GetDLStatuses
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 +
  <soap:Body>
 +
      <GetDLStatusesResponse xmlns="http://www.megatec.ru/">
 +
        <GetDLStatusesResult>
 +
            <StatusService>
 +
              <Name>Wait</Name>
 +
              <ID>1</ID>
 +
              <Description/>
 +
              <NameLat>Wait</NameLat>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
            </StatusService>
 +
            <StatusService>
 +
              <Name>Confirmed</Name>
 +
              <ID>2</ID>
 +
              <Description/>
 +
              <NameLat>Confirmed</NameLat>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
            </StatusService>
 +
            <StatusService>
 +
              <Name>Not confirmed</Name>
 +
              <ID>4</ID>
 +
              <Description/>
 +
              <NameLat>Not confirmed</NameLat>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
            </StatusService>
 +
        </GetDLStatusesResult>
 +
      </GetDLStatusesResponse>
 +
  </soap:Body>
 +
</soap:Envelope>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetTariffs (Receiving the list of the tariffs for the certain type of services)===
 +
The method returns tariffs for the certain type of service. <br />
 +
Accepted request parameters ( '''*''' – required):
 +
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''SvKey *''' – the service type key
 +
The returning result:<br />
 +
* '''GetTariffsResult''' – the search result
 +
** '''Tariff''' – an array of the data
 +
*** '''ID''' – the tariff ID
 +
*** '''Name''' – the name of the tariff
 +
*** '''Description''' – the description of the tariff
 +
*** '''NameLat''' – the name of the tariff in Latin
 +
*** '''Code''' – the code of the tariff
 +
*** '''CodeLat''' – the tariff code in Latin
 +
*** '''Unicode''' – the ISO code of the tariff
 +
*** '''SvKey''' – the service type key
 +
*** '''Comment''' – the description
 +
*** '''CreateDate''' – the creation date
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetTariffs
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 +
  <soapenv:Header/>
 +
  <soapenv:Body>
 +
      <meg:GetTariffs>
 +
        <!--Optional:-->
 +
        <meg:guid>6ef6eeb2-a766-4a30-92c0-348d5c2afb94</meg:guid>
 +
        <meg:svKey>1</meg:svKey>
 +
      </meg:GetTariffs>
 +
  </soapenv:Body>
 +
</soapenv:Envelope>
 +
</syntaxhighlight>
 +
The returning result for the method GetTariffs
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 +
  <soap:Body>
 +
      <GetTariffsResponse xmlns="http://www.megatec.ru/">
 +
        <GetTariffsResult>
 +
            <Tariff>
 +
              <Name>!A4</Name>
 +
              <ID>785</ID>
 +
              <Description/>
 +
              <NameLat/>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
              <SVKey>1</SVKey>
 +
              <Comment>A</Comment>
 +
              <CreateDate>2018-11-14T00:00:00</CreateDate>
 +
            </Tariff>
 +
            <Tariff>
 +
              <Name>Info Tour</Name>
 +
              <ID>623</ID>
 +
              <Description/>
 +
              <NameLat/>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
              <SVKey>1</SVKey>
 +
              <Comment/>
 +
              <CreateDate>2009-10-01T00:00:00</CreateDate>
 +
            </Tariff>
 +
        </GetTariffsResult>
 +
      </GetTariffsResponse>
 +
  </soap:Body>
 +
</soap:Envelope>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetRoomDescriptions (Receiving an array of the descriptions of the rooms)===
 +
The method returns an array of room descriptions.<br />
 +
Accepted request parameters ( '''*''' – required):
 +
* '''RoomTypeId *''' – the room type key (0 – for all)
 +
* '''RoomCategoryId *''' – the room category key (0 – for all)
 +
The returning result:<br />
 +
* '''GetRoomDescriptionsResult''' – the search result
 +
** '''AdditionalDescription''' – an array of the data
 +
*** '''Name''' – the name of the description of the room
 +
*** '''ID''' – the name of the description of the room
 +
*** '''Description''' – the description
 +
*** '''NameLat''' – the name of the description of the room in Latin
 +
*** '''Code''' – the room description code
 +
*** '''CodeLat''' – the code of the description of the room in Latin
 +
*** '''Unicode''' – the ISO code of the room description
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetRoomDescriptions
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 +
  <soapenv:Header/>
 +
  <soapenv:Body>
 +
      <meg:GetRoomDescriptions>
 +
        <meg:roomTypeId>7</meg:roomTypeId>
 +
        <meg:roomCategoryId>7</meg:roomCategoryId>
 +
      </meg:GetRoomDescriptions>
 +
  </soapenv:Body>
 +
</soapenv:Envelope>
 +
</syntaxhighlight>
 +
The returning result for the method GetRoomDescriptions
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 +
  <soap:Body>
 +
      <GetRoomDescriptionsResponse xmlns="http://www.megatec.ru/">
 +
        <GetRoomDescriptionsResult>
 +
            <AdditionalDescription>
 +
              <Name>Family Room Golf View</Name>
 +
              <ID>1368</ID>
 +
              <Description/>
 +
              <NameLat/>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
            </AdditionalDescription>
 +
        </GetRoomDescriptionsResult>
 +
      </GetRoomDescriptionsResponse>
 +
  </soap:Body>
 +
</soap:Envelope>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetAccommodations (Receiving the accommodations for the hotel)===
 +
The method returns hotel accommodations.<br />
 +
Accepted request parameters ( '''*''' – required):
 +
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
The returning result:<br />
 +
* '''GetAccommodationsResult''' – the search result
 +
** '''Message''' – the accommodation ID
 +
** '''Data''' – an array of objects with data
 +
*** '''AccomodationInfo''' – an array of the data with accommodation
 +
**** '''Id''' – the accommodation ID
 +
**** '''Code''' – the accommodation code
 +
**** '''Name''' – the name of the accommodation
 +
**** '''IsPerRoom''' – per room or per person
 +
**** '''NameUnicode''' – the name of the accommodation in Unicode
 +
**** '''CountAdultMain''' – the number of adults in the main places
 +
**** '''CountChildMain''' – the number of children in the main places
 +
**** '''CountAdultExtra''' – the number of adults per additional place
 +
**** '''CountChildExtra''' – the number of children per additional place
 +
**** '''ChildrenAges''' – the string with a description of the ages of children
 +
**** '''IsWeb''' – the accessibility for Interlook-Web
 +
**** '''IsPackage''' – is it possible to add to the package
 +
**** '''UpdateDate''' – the date of the last update of the accommodation
 +
**** '''ClildrenAgesList''' – the list with the ages of children
 +
***** '''AccomadationAge''' – an array of the data with age
 +
****** '''Id''' – ID of the record
 +
****** '''AgeFrom''' – age «from»
 +
****** '''AgeTo''' – age «to»
 +
****** '''CountMen''' – the number of adults in the accommodation
 +
****** '''IsMain''' – is a child of this age in the main place
 +
****** '''UpdateDate''' – the date of the last update of the record
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetAccommodations
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 +
  <soapenv:Header/>
 +
  <soapenv:Body>
 +
      <meg:GetAccommodations>
 +
        <!--Optional:-->
 +
        <meg:guid>1b972765-0318-4ca3-9437-cefa99a3959d</meg:guid>
 +
      </meg:GetAccommodations>
 +
  </soapenv:Body>
 +
</soapenv:Envelope>
 +
</syntaxhighlight>
 +
The returning result for the method GetAccommodations
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 +
  <soap:Body>
 +
       <GetAccommodationsResponse xmlns="http://www.megatec.ru/">
 +
         <GetAccommodationsResult Message="Ok">
 +
             <Data>
 +
             <AccomodationInfo Id="7939" Code="1Ad+2Ch(3-12)" Name="1Ad+2Ch(3-12)" IsPerRoom="true" NameUnicode="1Ad+2Ch(3-12)" CountAdultMain="1" CountChildMain="2" CountAdultExtra="0" CountChildExtra="0" ChildrenAges="2Ch(3-12)" IsWeb="true" IsPackage="false" UpdateDate="2020-04-10T18:25:09.3">
 +
                   <ChildrenAgesList>
 +
                     <AccomadationAge Id="6664" AgeFrom="3" AgeTo="12" CountMen="2" IsMain="true" UpdateDate="2020-04-10T18:25:09.293"/>
 +
                   </ChildrenAgesList>
 +
               </AccomodationInfo>
 +
            </Data>
 +
        </GetAccommodationsResult>
 +
      </GetAccommodationsResponse>
 +
  </soap:Body>
 +
</soap:Envelope>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetRoomAccommodations (Receiving the accommodations for the hotel an 2 first values of ages from the list of childrenages)===
 +
The method returns the hotel accommodation and the first 2 values of ages from the list of ages of children.<br />
 +
The returning result:<br />
 +
* '''GetRoomAccommodationsResult''' – The returning result
 +
** '''RoomAccomodation''' – an array of the data
 +
*** '''Name''' – the name of the accommodation
 +
*** '''ID''' – the accommodation ID
 +
*** '''Description''' – the description of the accommodation
 +
*** '''NameLat''' – the name of the accommodation in Latin
 +
*** '''Code''' – the accommodation code
 +
*** '''CodeLat''' – the accommodation code in Latin
 +
*** '''Unicode''' – the ISO code of the accommodation
 +
*** '''PerRoom''' – per room
 +
*** '''AdultMainPalces''' – the number of adult main places
 +
*** '''ChildMainPalces''' – the number of primary places for children
 +
*** '''AdultExtraPalces''' – the number of adult additional places
 +
*** '''ChildExtraPalces''' – the number of additional places for children
 +
*** '''MainPlaces''' – the number of main places
 +
*** '''ExtraPlaces''' – the number of additional seats
 +
*** '''IsMain''' – the are there any main places
 +
*** '''AgeFrom''' – the age of children «from»
 +
*** '''AgeTo''' – the age of children «to»
 +
*** '''Age2From''' – the age of children «from»
 +
*** '''Age2To''' – the age of children «to»
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetRoomAccommodations
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 +
  <soapenv:Header/>
 +
  <soapenv:Body>
 +
      <meg:GetRoomAccommodations/>
 +
  </soapenv:Body>
 +
</soapenv:Envelope>
 +
</syntaxhighlight>
 +
The returning result for the method GetRoomAccommodations
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 +
  <soap:Body>
 +
      <GetRoomAccommodationsResponse xmlns="http://www.megatec.ru/">
 +
        <GetRoomAccommodationsResult>
 +
            <RoomAccomodation>
 +
              <Name>2Add</Name>
 +
              <ID>15</ID>
 +
              <Description/>
 +
              <NameLat/>
 +
              <Code>2+</Code>
 +
              <CodeLat/>
 +
              <Unicode>2Ad+1Ch(3-5)</Unicode>
 +
              <PerRoom>true</PerRoom>
 +
              <AdultMainPalces>2</AdultMainPalces>
 +
              <ChildMainPalces>4</ChildMainPalces>
 +
              <AdultExtraPalces>0</AdultExtraPalces>
 +
              <ChildExtraPalces>0</ChildExtraPalces>
 +
              <MainPlaces>6</MainPlaces>
 +
              <ExtraPlaces>0</ExtraPlaces>
 +
              <IsMain>true</IsMain>
 +
              <AgeFrom>3</AgeFrom>
 +
              <AgeTo>5</AgeTo>
 +
              <Age2From>0</Age2From>
 +
              <Age2To>0</Age2To>
 +
            </RoomAccomodation>
 +
            <RoomAccomodation>
 +
              <Name>1Ad+1inf</Name>
 +
              <ID>16</ID>
 +
              <Description/>
 +
              <NameLat/>
 +
              <Code>1Ad+1inf</Code>
 +
              <CodeLat/>
 +
              <Unicode>1Ad</Unicode>
 +
              <PerRoom>true</PerRoom>
 +
              <AdultMainPalces>1</AdultMainPalces>
 +
              <ChildMainPalces>0</ChildMainPalces>
 +
              <AdultExtraPalces>0</AdultExtraPalces>
 +
              <ChildExtraPalces>0</ChildExtraPalces>
 +
              <MainPlaces>1</MainPlaces>
 +
              <ExtraPlaces>0</ExtraPlaces>
 +
              <IsMain>true</IsMain>
 +
              <AgeFrom>0</AgeFrom>
 +
              <AgeTo>0</AgeTo>
 +
              <Age2From>0</Age2From>
 +
              <Age2To>0</Age2To>
 +
            </RoomAccomodation>
 +
        </GetRoomAccommodationsResult>
 +
      </GetRoomAccommodationsResponse>
 +
  </soap:Body>
 +
</soap:Envelope>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetClientInfo (Issuing information about the partner to which relates the on-line user)===
 +
The method provides information about the partner to which the on-line user belongs, under which the request was made in the [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]] method .<br />
 +
Accepted request parameters ( '''*''' – required):
 +
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
The returning result:
 +
* '''Name''' – the name of the partner
 +
* '''MarketName''' – the list of markets from the partner card
 +
* '''Address''' – the address from the partner's card
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetClientInfo
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 +
  <soapenv:Header/>
 +
  <soapenv:Body>
 +
      <meg:GetClientInfo>
 +
        <!--Optional:-->
 +
        <meg:guid>6851ab74-f299-4668-ade8-b8e125b7ad61</meg:guid>
 +
      </meg:GetClientInfo>
 +
  </soapenv:Body>
 +
</soapenv:Envelope>
 +
</syntaxhighlight>
 +
 
 +
The returning result for the method GetClientInfo
 +
<syntaxhighlight lang="java" enclose="div">
 +
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 +
  <soap:Body>
 +
      <GetClientInfoResponse xmlns="http://www.megatec.ru/">
 +
        <GetClientInfoResult Message="Ok">
 +
            <Data>
 +
              <ClientInfo>
 +
                  <Name>Alpha Tour</Name>
 +
                  <MarketName>Russian Market</MarketName>
 +
                  <Address>Belarus,Minsk,Pobediteley street 23/1-115a A</Address>
 +
              </ClientInfo>
 
             </Data>
 
             </Data>
         </GetAccommodationsResult>
+
         </GetClientInfoResult>
       </GetAccommodationsResponse>
+
       </GetClientInfoResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5861: Строка 5997:
 
</div></div><br />
 
</div></div><br />
  
=== GetRoomAccommodations (Получение размещения отелей и первых 2 значений возрастов из списка возрастов детей)===
+
==Methods of integration with payment systems==
Метод возвращает размещения отелей и первые 2 значения возрастов из списка возрастов детей.<br />
+
===GetReservationPenalties (Receiving the penalties for the reservation before canceling it)===
Возвращаемый результат:<br />
+
The method returns the amount of penalties for the reservation before it is canceled.<br />
* '''GetRoomAccommodationsResult''' – результат поиска
+
The operation of the method is regulated by a license.<br />  
** '''RoomAccomodation''' – массив данных
+
Accepted request parameters ( '''*''' – required):
*** '''Name''' – название размещения
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
*** '''ID''' – идентификатор размещения
+
* '''ReservationKey *''' – the reservation key
*** '''Description''' – описание размещения
+
* '''CancellationDate''' – the cancellation date on which the condition and the amount of the fine are issued. If not specified, then we get all possible cancellation rules up to arrival.
*** '''NameLat''' – наименование размещения латиницей
+
The returning result:<br />
*** '''Code''' – код размещения
+
* '''GetReservationPenaltiesResult''' – the search result
*** '''CodeLat''' – код размещения латиницей
+
** '''Penalty''' – fine
*** '''Unicode''' – код ISO размещения
+
*** '''ServicePenalty''' – the penalty service
*** '''PerRoom''' – за комнату
+
**** '''ServiceClassID''' – id of the service class
*** '''AdultMainPalces''' – количество взрослых основных мест
+
**** '''ID''' – ID of the fine
*** '''ChildMainPalces''' – количество детских основных мест
+
**** '''Name''' – the name of the fine
*** '''AdultExtraPalces''' – количество взрослых дополнительных мест
+
**** '''PenaltyData''' – an array of penalty data
*** '''ChildExtraPalces''' – количество детских дополнительных мест
+
***** '''PenaltyDataInfo''' – an array of data
*** '''MainPlaces''' – количество основных мест
+
****** '''TotalPenalty''' – the full amount of the penalty
*** '''ExtraPlaces''' – количество дополнительных мест
+
****** '''RateCode''' – the currency code
*** '''IsMain''' – есть ли основные места
+
****** '''PolicyDescription''' – the penalty conditions
*** '''AgeFrom''' – возраст детей «с»
+
****** '''CancellationPolicyData''' – an array of cancellation data
*** '''AgeTo''' – возраст детей «по»
+
******* '''PolicyKey''' – the cancellation key
*** '''Age2From''' – возраст детей «с»
+
******* '''DateFrom''' – date from
*** '''Age2To''' – возраст детей «по»
+
******* '''DateTo''' – date to
 +
******* '''PenaltyValue''' – the penalty value
 +
******* '''IsPercent''' - the percentage indicating that the penalty is in "%" (''true'') or in "nights" (''false'')
 +
**** '''Hotel''' – the Hotel
 +
***** '''ID''' – the hotel ID
 +
***** '''Name''' – the name of the hotel
 +
**** '''RoomType''' – the room type
 +
***** '''ID''' – the Room ID
 +
***** '''Name''' – the name of the room
 +
**** '''RoomCategory''' – the room category
 +
***** '''ID''' – ID of the room category
 +
***** '''Name''' – the name of the room category
 +
**** '''Accommodation''' – the accommodation
 +
***** '''ID''' – the accommodation ID
 +
***** '''Name''' – the name of the placement
 +
**** '''Pansion''' – the type of pansion supply
 +
***** '''ID''' – ID of the type of pansion supply
 +
***** '''Name''' – the name of the type of the pansion<br />
 +
In case of errors, we will receive a message with a decryption.<br />
 +
In case of an incorrect Guid, we will receive the message: "Invalid user or password (Invalid GUID)".<br />
 +
If there is no contract with the specified key for the current partner, we will receive the message:"Check the parameter 'reservationKey' = <value in request>. There is no booking in the database for you.".br />
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetRoomAccommodations
+
The invocation of the method GetReservationPenalties
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRoomAccommodations/>
+
       <meg:GetReservationPenalties>
 +
        <!--Optional:-->
 +
        <meg:guid>9d041308-0e4c-4d07-8486-9e2293f1de75</meg:guid>
 +
        <meg:reservationKey>36080</meg:reservationKey>
 +
        </meg:GetReservationPenalties>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRoomAccommodations
+
The returning result for the method GetReservationPenalties
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <soap:Body>
 
   <soap:Body>
       <GetRoomAccommodationsResponse xmlns="http://www.megatec.ru/">
+
       <GetReservationPenaltiesResponse xmlns="http://www.megatec.ru/">
         <GetRoomAccommodationsResult>
+
         <GetReservationPenaltiesResult>
             <RoomAccomodation>
+
             <Penalty>
               <Name>2Add</Name>
+
               <ServicePenalty xsi:type="HotelPenalty">
              <ID>15</ID>
+
                  <ServiceClassID>0</ServiceClassID>
              <Description/>
+
                  <ID>164217</ID>
              <NameLat/>
+
                  <Name>HTL::Delphi/Fedriades Hotel /Double Room/2AD/100 m2/BB</Name>
              <Code>2+</Code>
+
                  <PenaltyData>
              <CodeLat/>
+
                    <PenaltyDataInfo>
              <Unicode>2Ad+1Ch(3-5)</Unicode>
+
                        <TotalPenalty>0</TotalPenalty>
              <PerRoom>true</PerRoom>
+
                        <RateCode>EU</RateCode>
              <AdultMainPalces>2</AdultMainPalces>
+
                        <PolicyDescription>If canceled before 01.09.2021, no penalty Penalty value is 0.00 EU</PolicyDescription>
              <ChildMainPalces>4</ChildMainPalces>
+
                        <CancellationPolicyData>
              <AdultExtraPalces>0</AdultExtraPalces>
+
                          <PolicyKey>-1</PolicyKey>
              <ChildExtraPalces>0</ChildExtraPalces>
+
                          <DateFrom xsi:nil="true"/>
              <MainPlaces>6</MainPlaces>
+
                          <DateTo>2021-09-01T00:00:00</DateTo>
              <ExtraPlaces>0</ExtraPlaces>
+
                          <PenaltyValue>0</PenaltyValue>
              <IsMain>true</IsMain>
+
                          <IsPercent>false</IsPercent>
              <AgeFrom>3</AgeFrom>
+
                        </CancellationPolicyData>
              <AgeTo>5</AgeTo>
+
                    </PenaltyDataInfo>
              <Age2From>0</Age2From>
+
                    <PenaltyDataInfo>
              <Age2To>0</Age2To>
+
                        <TotalPenalty>17.76</TotalPenalty>
            </RoomAccomodation>
+
                        <RateCode>EU</RateCode>
            <RoomAccomodation>
+
                        <PolicyDescription>If canceled from 01.09.2021, the penalty will be 2.00 % of the cost of accommodation Penalty value is 17.76 EU</PolicyDescription>
              <Name>1Ad+1inf</Name>
+
                        <CancellationPolicyData>
              <ID>16</ID>
+
                          <PolicyKey>73</PolicyKey>
              <Description/>
+
                          <DateFrom>2021-09-01T00:00:00</DateFrom>
              <NameLat/>
+
                          <DateTo xsi:nil="true"/>
              <Code>1Ad+1inf</Code>
+
                          <PenaltyValue>2</PenaltyValue>
              <CodeLat/>
+
                          <IsPercent>true</IsPercent>
              <Unicode>1Ad</Unicode>
+
                        </CancellationPolicyData>
              <PerRoom>true</PerRoom>
+
                    </PenaltyDataInfo>
              <AdultMainPalces>1</AdultMainPalces>
+
                  </PenaltyData>
              <ChildMainPalces>0</ChildMainPalces>
+
                  <Hotel>
              <AdultExtraPalces>0</AdultExtraPalces>
+
                    <ID>2426</ID>
              <ChildExtraPalces>0</ChildExtraPalces>
+
                    <Name>Fedriades Hotel</Name>
              <MainPlaces>1</MainPlaces>
+
                  </Hotel>
              <ExtraPlaces>0</ExtraPlaces>
+
                  <RoomType>
              <IsMain>true</IsMain>
+
                    <ID>3</ID>
              <AgeFrom>0</AgeFrom>
+
                    <Name>Double Room</Name>
              <AgeTo>0</AgeTo>
+
                  </RoomType>
              <Age2From>0</Age2From>
+
                  <RoomCategory>
              <Age2To>0</Age2To>
+
                    <ID>47</ID>
            </RoomAccomodation>
+
                    <Name>100 m2</Name>
        </GetRoomAccommodationsResult>
+
                  </RoomCategory>
      </GetRoomAccommodationsResponse>
+
                  <Accommodation>
  </soap:Body>
+
                    <ID>5558</ID>
</soap:Envelope>
+
                    <Name>2Ad</Name>
</syntaxhighlight>
+
                   </Accommodation>
</TD></TR></TABLE>
+
                   <Pansion>
</div></div><br />
+
                    <ID>3</ID>
 
+
                    <Name>Bed and Breakfast</Name>
===GetClientInfo (Выдача информации по партнёру, к которому относится on-line user)===
+
                  </Pansion>
Метод выдает информацию по партнёру, к которому относится on-line user, под которым осуществлен запрос в методе [[#Connect (Получение аутентификационного токена)|Connect]].<br />
+
              </ServicePenalty>
Принимаемые параметры запроса ( * – обязательный):
+
              <ServicePenalty>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[#Connect (Получение аутентификационного токена)|Connect]])<br />
+
                  <ServiceClassID>2</ServiceClassID>
Возвращаемый результат:
+
                  <ID>164218</ID>
* '''Name''' – наименование партнера
+
                  <Name>TRF::Arrival transfer/Mini Bus/El.Venizelos-Fedriades Hotel /Delphi/!AA 910</Name>
* '''MarketName''' – перечень рынков из карточки партнера
+
                  <PenaltyData>
* '''Address''' – адрес из карточки партнера
+
                    <PenaltyDataInfo>
 
+
                        <TotalPenalty>0</TotalPenalty>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                        <RateCode/>
<div class="mw-collapsible-content">
+
                        <PolicyDescription/>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                    </PenaltyDataInfo>
Вызов метода GetClientInfo
+
                  </PenaltyData>
<syntaxhighlight lang="java" enclose="div">
+
              </ServicePenalty>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
               <ServicePenalty>
  <soapenv:Header/>
+
                   <ServiceClassID>5</ServiceClassID>
  <soapenv:Body>
+
                   <ID>164219</ID>
      <meg:GetClientInfo>
+
                   <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
        <!--Optional:-->
+
                   <PenaltyData>
        <meg:guid>6851ab74-f299-4668-ade8-b8e125b7ad61</meg:guid>
+
                     <PenaltyDataInfo>
      </meg:GetClientInfo>
+
                         <TotalPenalty>270</TotalPenalty>
  </soapenv:Body>
+
                         <RateCode>EU</RateCode>
</soapenv:Envelope>
+
                         <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
</syntaxhighlight>
+
                         <CancellationPolicyData>
 
+
                           <PolicyKey>0</PolicyKey>
Возвращаемый результат метода GetClientInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
  <soap:Body>
 
      <GetClientInfoResponse xmlns="http://www.megatec.ru/">
 
        <GetClientInfoResult Message="Ok">
 
            <Data>
 
              <ClientInfo>
 
                  <Name>Alpha Tour</Name>
 
                   <MarketName>Russian Market</MarketName>
 
                   <Address>Belarus,Minsk,Pobediteley street 23/1-115a A</Address>
 
              </ClientInfo>
 
            </Data>
 
        </GetClientInfoResult>
 
      </GetClientInfoResponse>
 
  </soap:Body>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
 
==Методы интеграции с системами оплаты==
 
=== GetReservationPenalties (Получение штрафов по путевке до того, как ее аннулировать)===
 
Метод возвращает размеры штрафов по путевке до того, как ее аннулировать.<br />  
 
Работа метода регулируется лицензией.<br />
 
Принимаемые параметры запроса (* – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''ReservationKey *''' – ключ путевки
 
* '''CancellationDate''' – дата аннуляции, на которую выдается условие и сумма штрафа. Если не указана, то получаем все возможные правила аннуляции вплоть до заезда.
 
Возвращаемый результат:<br />
 
* '''GetReservationPenaltiesResult''' – результат поиска
 
** '''Penalty''' – штраф
 
*** '''ServicePenalty''' – сервис штрафов
 
**** '''ServiceClassID'''
 
**** '''ID''' – идентификатор штрафа
 
**** '''Name''' – наименование штрафа
 
**** '''PenaltyData''' – массив данных штрафа
 
***** '''PenaltyDataInfo''' – массив данных
 
****** '''TotalPenalty''' – полная сумма штрафа
 
****** '''RateCode''' – код валюты
 
****** '''PolicyDescription''' – условия штрафа
 
****** '''CancellationPolicyData''' – массив данных аннуляции
 
******* '''PolicyKey''' – ключ аннуляции
 
******* '''DateFrom''' – дата с
 
******* '''DateTo''' – дата по
 
******* '''PenaltyValue''' – значение штрафа
 
******* '''IsPercent''' - процент, указывающий,  что штраф в "%" (''true'') или в "ночах" (''false'')
 
**** '''Hotel''' – отель
 
***** '''ID''' – идентификатор отеля
 
***** '''Name''' – наименование отеля
 
**** '''RoomType''' – тип комнаты
 
***** '''ID''' – идентификатор комнаты
 
***** '''Name''' – название комнаты
 
**** '''RoomCategory''' – категория номера
 
***** '''ID''' – идентификатор категории номера
 
***** '''Name''' – наименование категории номера
 
**** '''Accommodation''' – размещение
 
***** '''ID''' – идентификатор размещения
 
***** '''Name''' – наименование размещения
 
**** '''Pansion''' – тип питания
 
***** '''ID''' – идентификатор типа питания
 
***** '''Name''' – наименование типа питания<br />
 
В случае ошибок получим сообщение с расшифровкой.<br />
 
В случае некорректного Guid получим сообщение:"Invalid user or password (Invalid GUID)".<br />  
 
В случае отсутствия договора с указанным ключом для текущего партнера получим сообщение:"Check the parameter 'reservationKey' = <значение в запросе>. There is no any reservation for you in the database.".<br />  
 
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода GetReservationPenalties
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
  <soapenv:Header/>
 
  <soapenv:Body>
 
      <meg:GetReservationPenalties>
 
        <!--Optional:-->
 
        <meg:guid>9d041308-0e4c-4d07-8486-9e2293f1de75</meg:guid>
 
        <meg:reservationKey>36080</meg:reservationKey>
 
        </meg:GetReservationPenalties>
 
  </soapenv:Body>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
Возвращаемый результат метода GetReservationPenalties
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
  <soap:Body>
 
      <GetReservationPenaltiesResponse xmlns="http://www.megatec.ru/">
 
        <GetReservationPenaltiesResult>
 
            <Penalty>
 
               <ServicePenalty xsi:type="HotelPenalty">
 
                   <ServiceClassID>0</ServiceClassID>
 
                   <ID>164217</ID>
 
                   <Name>HTL::Delphi/Fedriades Hotel /Double Room/2AD/100 m2/BB</Name>
 
                   <PenaltyData>
 
                     <PenaltyDataInfo>
 
                         <TotalPenalty>0</TotalPenalty>
 
                         <RateCode>EU</RateCode>
 
                         <PolicyDescription>If canceled before 01.09.2021, no penalty Penalty value is 0.00 EU</PolicyDescription>
 
                         <CancellationPolicyData>
 
                           <PolicyKey>-1</PolicyKey>
 
 
                           <DateFrom xsi:nil="true"/>
 
                           <DateFrom xsi:nil="true"/>
                           <DateTo>2021-09-01T00:00:00</DateTo>
+
                           <DateTo xsi:nil="true"/>
 
                           <PenaltyValue>0</PenaltyValue>
 
                           <PenaltyValue>0</PenaltyValue>
 
                           <IsPercent>false</IsPercent>
 
                           <IsPercent>false</IsPercent>
 
                         </CancellationPolicyData>
 
                         </CancellationPolicyData>
 
                     </PenaltyDataInfo>
 
                     </PenaltyDataInfo>
 +
                  </PenaltyData>
 +
              </ServicePenalty>
 +
              <ServicePenalty>
 +
                  <ServiceClassID>5</ServiceClassID>
 +
                  <ID>164220</ID>
 +
                  <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
 +
                  <PenaltyData>
 
                     <PenaltyDataInfo>
 
                     <PenaltyDataInfo>
                         <TotalPenalty>17.76</TotalPenalty>
+
                         <TotalPenalty>270</TotalPenalty>
 
                         <RateCode>EU</RateCode>
 
                         <RateCode>EU</RateCode>
                         <PolicyDescription>If canceled from 01.09.2021, the penalty will be 2.00 % of the cost of accommodation Penalty value is 17.76 EU</PolicyDescription>
+
                         <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
 
                         <CancellationPolicyData>
 
                         <CancellationPolicyData>
                           <PolicyKey>73</PolicyKey>
+
                           <PolicyKey>0</PolicyKey>
                           <DateFrom>2021-09-01T00:00:00</DateFrom>
+
                           <DateFrom xsi:nil="true"/>
 
                           <DateTo xsi:nil="true"/>
 
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>2</PenaltyValue>
+
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>true</IsPercent>
+
                           <IsPercent>false</IsPercent>
 
                         </CancellationPolicyData>
 
                         </CancellationPolicyData>
 
                     </PenaltyDataInfo>
 
                     </PenaltyDataInfo>
 
                   </PenaltyData>
 
                   </PenaltyData>
                  <Hotel>
 
                    <ID>2426</ID>
 
                    <Name>Fedriades Hotel</Name>
 
                  </Hotel>
 
                  <RoomType>
 
                    <ID>3</ID>
 
                    <Name>Double Room</Name>
 
                  </RoomType>
 
                  <RoomCategory>
 
                    <ID>47</ID>
 
                    <Name>100 m2</Name>
 
                  </RoomCategory>
 
                  <Accommodation>
 
                    <ID>5558</ID>
 
                    <Name>2Ad</Name>
 
                  </Accommodation>
 
                  <Pansion>
 
                    <ID>3</ID>
 
                    <Name>Bed and Breakfast</Name>
 
                  </Pansion>
 
 
               </ServicePenalty>
 
               </ServicePenalty>
 
               <ServicePenalty>
 
               <ServicePenalty>
                  <ServiceClassID>2</ServiceClassID>
+
                   <ServiceClassID>5</ServiceClassID>
                  <ID>164218</ID>
+
                   <ID>164222</ID>
                  <Name>TRF::Arrival transfer/Mini Bus/El.Venizelos-Fedriades Hotel /Delphi/!AA 910</Name>
+
                   <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
                  <PenaltyData>
 
                    <PenaltyDataInfo>
 
                        <TotalPenalty>0</TotalPenalty>
 
                        <RateCode/>
 
                        <PolicyDescription/>
 
                    </PenaltyDataInfo>
 
                  </PenaltyData>
 
              </ServicePenalty>
 
              <ServicePenalty>
 
                  <ServiceClassID>5</ServiceClassID>
 
                  <ID>164219</ID>
 
                  <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
 
                  <PenaltyData>
 
                    <PenaltyDataInfo>
 
                        <TotalPenalty>270</TotalPenalty>
 
                        <RateCode>EU</RateCode>
 
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
 
                        <CancellationPolicyData>
 
                          <PolicyKey>0</PolicyKey>
 
                          <DateFrom xsi:nil="true"/>
 
                          <DateTo xsi:nil="true"/>
 
                          <PenaltyValue>0</PenaltyValue>
 
                          <IsPercent>false</IsPercent>
 
                        </CancellationPolicyData>
 
                    </PenaltyDataInfo>
 
                  </PenaltyData>
 
              </ServicePenalty>
 
              <ServicePenalty>
 
                  <ServiceClassID>5</ServiceClassID>
 
                  <ID>164220</ID>
 
                  <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
 
                  <PenaltyData>
 
                    <PenaltyDataInfo>
 
                        <TotalPenalty>270</TotalPenalty>
 
                        <RateCode>EU</RateCode>
 
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
 
                        <CancellationPolicyData>
 
                          <PolicyKey>0</PolicyKey>
 
                          <DateFrom xsi:nil="true"/>
 
                          <DateTo xsi:nil="true"/>
 
                          <PenaltyValue>0</PenaltyValue>
 
                          <IsPercent>false</IsPercent>
 
                        </CancellationPolicyData>
 
                    </PenaltyDataInfo>
 
                  </PenaltyData>
 
              </ServicePenalty>
 
              <ServicePenalty>
 
                   <ServiceClassID>5</ServiceClassID>
 
                   <ID>164222</ID>
 
                   <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
 
 
                   <PenaltyData>
 
                   <PenaltyData>
 
                     <PenaltyDataInfo>
 
                     <PenaltyDataInfo>
Строка 6235: Строка 6232:
 
</div></div><br />
 
</div></div><br />
  
===CreatePayment (Создание платежа по путевке)===
+
===CreatePayment (Creating the payments for the reservation)===
Метод создает платеж по путевке.<br />
+
The method creates the payment for the reservation.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''UserToken *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''UserToken *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Date *''' – дата создания платежа
+
* '''Date *''' – the date of payment creation
* '''Sum *''' – сумма платежа
+
* '''Sum *''' – the payment amount
* '''CurrencyIsoCode *''' – ISO код валюты платежа
+
* '''CurrencyIsoCode *''' – the ISO code of the payment currency
* '''ReservationCode *''' – код путевки
+
* '''ReservationCode *''' – the reservation code
* '''PaymentId *''' – идентификатор платежа (задается вручную для последующего идентифицирования платежа). Уникальный код, указывается пользователем один раз, не должен повторяться при следующей оплате по данной заявке.
+
* '''PaymentId *''' – the payment ID (set manually for subsequent identification of the payment). The unique code specified by the user once should not be repeated in the next payment for this reservation.
Возвращаемый результат:<br />
+
The returning result:<br />
* '''CreatePaymentResult''' – результат выдачи
+
* '''CreatePaymentResult''' – the output result
** '''0''' – NoError – ошибок нет
+
** '''0''' – NoError – no errors
** '''1''' – DogovorNotFound – путевка с таким кодом не найдена
+
** '''1''' – DogovorNotFound – the reservation with this code was not found
** '''2''' – InternalError – внутренняя ошибка
+
** '''2''' – InternalError – an internal error
** '''3''' – DogovorAnnulate – путевка аннулирована
+
** '''3''' – DogovorAnnulate – the reservation is canceled
** '''4''' – DogovorPayed – путевка оплачена
+
** '''4''' – DogovorPayed – the reservation is paid
** '''7''' – ExistingPaymentID – платеж с таким внешним идентификатором уже существует
+
** '''7''' – ExistingPaymentID – the payment with such an external ID already exists
** '''8''' – IncorrectPaymentType – по путевке есть платежи запрещенных типов
+
** '''8''' – IncorrectPaymentType – there are payments of prohibited types for the reservation
** '''9''' – NotAllowedPartnerKey – партнер по путевке не разрешен
+
** '''9''' – NotAllowedPartnerKey – the partner on the reservation is not allowed
** '''10''' – FailureSignature – ошибка подписи
+
** '''10''' – FailureSignature – the signature error
** '''11''' – NoInvoices – нет инвойсов (счетов) по путевке
+
** '''11''' – NoInvoices – there are no invoices for the reservation
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CreatePayment
+
The invocation of the method CreatePayment
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6280: Строка 6277:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CreatePayment
+
The invocation of the method CreatePayment
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Строка 6293: Строка 6290:
 
</div></div><br />
 
</div></div><br />
  
===GetPaymentInformation (Поиск информации о платеже с заданным идентификатором платежа из внешней системы)===
+
===GetPaymentInformation (Searching for the payment information with a specified payment ID from an external system)===
Метод возвращает информацию о платеже с заданным идентификатором платежа из внешней системы.<br />
+
The method returns information about the payment with the specified payment ID from the external system.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''UserToken *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''UserToken *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''ReservationCode *''' – код путевки
+
* '''ReservationCode *''' – the reservation code
* '''ExternalPaymentId *''' – идентификатор платежа (Параметр PaymentId в запросе метода [[Master-Interlook:IntegrationService#CreatePayment|CreatePayment]])
+
* '''ExternalPaymentId *''' – the payment ID (the PaymentID parameter in the [[Master-Interlook:IntegrationService (en)#CreatePayment (Creating the payments for the reservation)|CreatePayment]] method request)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetPaymentInformationResult''' – результат выдачи
+
* '''GetPaymentInformationResult''' – the output result
** '''IsPaymentExists''' – показывает, есть ли запрошенный платеж
+
** '''IsPaymentExists''' – shows if there is a requested payment
*** '''true''' – платеж с указанным идентификатором по указанной путевке существует
+
*** '''true''' – the payment with the specified ID for the specified reservation exists
*** '''false''' – запрошенного платежа нет
+
*** '''false''' – there is no requested payment
** '''PaymentInformationResult''' – массив данных платежа
+
** '''PaymentInformationResult''' – an array for payment data
*** '''InternalPaymentId''' – идентификатор платежа в системе Interlook,
+
*** '''InternalPaymentId''' – the payment ID in the Interlook system
*** '''DogovorCode''' – код путевки,
+
*** '''DogovorCode''' – the reservation code
*** '''PaymentSum''' – сумма платежа,
+
*** '''PaymentSum''' – the payment amount
*** '''PaymentNationalSum''' – сумма платежа в национальной валюте,
+
*** '''PaymentNationalSum''' – the amount of the payment in the national currency
*** '''PaymentRateISOCode''' – ISO код валюты платежа
+
*** '''PaymentRateISOCode''' – the ISO code of the payment currency
*** '''CreateDate''' – дата проведения платежа
+
*** '''CreateDate''' – the date of payment
** '''ErrorCode''' – код ошибки
+
** '''ErrorCode''' – the error code
*** '''0''' – NoError – ошибок нет
+
*** '''0''' – NoError – no errors
*** '''1''' – DogovorNotFound – путевка с таким кодом не найдена
+
*** '''1''' – DogovorNotFound – the reservation with this code was not found
*** '''2''' – InternalError – внутренняя ошибка
+
*** '''2''' – InternalError – an internal error
*** '''3''' – DogovorAnnulate – путевка аннулирована
+
*** '''3''' – DogovorAnnulate – the reservation is canceled
*** '''4''' – DogovorPayed – путевка оплачена
+
*** '''4''' – DogovorPayed – the reservation is paid
*** '''7''' – ExistingPaymentID – платеж с таким внешним идентификатором уже существует
+
*** '''7''' – ExistingPaymentID – the payment with such an external ID already exists
*** '''8''' – IncorrectPaymentType – по путевке есть платежи запрещенных типов
+
*** '''8''' – IncorrectPaymentType – there are payments of prohibited types for the reservation
*** '''9''' – NotAllowedPartnerKey – партнер по путевке не разрешен
+
*** '''9''' – NotAllowedPartnerKey – the partner on the reservation is not allowed
*** '''10''' – FailureSignature – ошибка подписи
+
*** '''10''' – FailureSignature – the signature error
*** '''11''' – NoInvoices – нет инвойсов (счетов) по путевке
+
*** '''11''' – NoInvoices – there are no invoices for the reservation
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetPaymentInformation
+
The invocation of the method GetPaymentInformation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6342: Строка 6339:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetPaymentInformation
+
The returning result for the method GetPaymentInformation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Строка 6366: Строка 6363:
 
</div></div><br />
 
</div></div><br />
  
===GetCancellationPolicyInfoWithPenalty (Получение информации по расчету штрафов по отелю ) ===
+
===GetCancellationPolicyInfoWithPenalty (Receiving the information on the calculation of penalties for the hotel)===
 
<table style="background-color:#ffffcc;color:black" border="1" cellpadding="10" cellspacing="0"><tr><td>
 
<table style="background-color:#ffffcc;color:black" border="1" cellpadding="10" cellspacing="0"><tr><td>
Данный функционал доступен начиная с релиза 11.20<br>
+
This functionality is available starting from release 11.20<br>
 
</td></tr></table><br>
 
</td></tr></table><br>
Метод возвращает информацию по расчету штрафов по отелю.<br />
+
The method returns information about the calculation of penalties for the hotel.<br />
Выдача результатов метода регулируется лицензией.<br />
+
The output of the method results is regulated by the license.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DateFrom *''' – дата начала проживания
+
* '''DateFrom *''' – the start date of the stay
* '''DateTo *''' – дата окончания проживания
+
* '''DateTo *''' – the start date of the stay
* '''HotelKey *''' – идентификатор отеля
+
* '''HotelKey *''' – the hotel ID
* '''PansionKey''' – идентификатор питания
+
* '''PansionKey''' – the pansion ID
* '''AccommodationKey ''' – идентификатор размещения, необязательный если передаем Pax.
+
* '''AccommodationKey ''' – the accommodation ID, optional if we transmit Pax  
* '''RoomTypeKey''' – идентификатор типа комнаты
+
* '''RoomTypeKey''' – the room type ID
* '''RoomCategoryKey''' – идентификатор категории номера
+
* '''RoomCategoryKey''' – ID of the room category
* '''Pax *''' – Pax по услуге
+
* '''Pax *''' – Pax by service
* '''Ages*''' – список с возрастами детей. Если  ищем размещение без детей передаем пустой параметр (<meg:Ages></meg:Ages>)
+
* '''Ages*''' – the list with the ages of children. If we are looking for accommodation without children, we transmit an empty parameter (<meg:Ages></meg:Ages>)
* '''CancellationDate''' – дата аннуляции (если не указана – берется текущая)
+
* '''CancellationDate''' – the cancellation date (if not specified, the current one is taken)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetCancellationPolicyInfoWithPenaltyResult''' – результат выдачи
+
* '''GetCancellationPolicyInfoWithPenaltyResult''' – the output result
** '''CancellationPolicyInfoWithPenalty''' – массив данных
+
** '''CancellationPolicyInfoWithPenalty''' – an array of data
*** '''HotelKey''' – идентификатор отеля
+
*** '''HotelKey''' – the hotel ID
*** '''HotelName''' – наименование отеля
+
*** '''HotelName''' – the name of the hotel
*** '''AccomodatioKey''' – идентификатор размещения
+
*** '''AccomodatioKey''' – the accommodation ID
*** '''AccomodatioName''' – наименование размещения
+
*** '''AccomodatioName''' – the name of the accommodation
*** '''RoomTypeKey''' – идентификатор типа комнаты
+
*** '''RoomTypeKey''' – the room type ID
*** '''RoomTypeName''' – наименование типа комнаты
+
*** '''RoomTypeName''' – the name of the room type
*** '''RoomCategoryKey''' – идентификатор категории номера
+
*** '''RoomCategoryKey''' – ID of the room category
*** '''RoomCategoryName''' – наименование категории номера
+
*** '''RoomCategoryName''' – the name of the room category
*** '''PansionKey''' – идентификатор питания
+
*** '''PansionKey''' – the pansion ID
*** '''PansionName''' – наименование питания
+
*** '''PansionName''' – the name of the food
*** '''PolicyDescripion''' – описание политики аннуляции и полной суммы штрафа
+
*** '''PolicyDescripion''' – the description of the cancellation policy and the full amount of the penalty
*** '''CancellationDate''' – дата аннуляции
+
*** '''CancellationDate''' – the cancellation date
*** '''PolicyData''' – массив данных
+
*** '''PolicyData''' – the cancellation date
**** '''CancellationPolicyWithPenaltyValue''' – массив данных по расчету штрафа
+
**** '''CancellationPolicyWithPenaltyValue''' – an array of data for calculating the penalty
***** '''PolicyKey''' – ключ политики
+
***** '''PolicyKey''' – the policy key
***** '''DateFrom''' – дата "от"
+
***** '''DateFrom''' – the date "from"
***** '''DateTo''' – не задана
+
***** '''DateTo''' – not set
***** '''PenaltyValue''' – значение штрафа
+
***** '''PenaltyValue''' – the penalty value
***** '''IsPercent''' – параметр, указывающий, что штраф в "%" (true) или в "ночах" (false)
+
***** '''IsPercent''' – the parameter indicating that the penalty is in "%" (true) or in "nights" (false)
***** '''PenaltyTotal''' – общая сумма штрафа
+
***** '''PenaltyTotal''' – the total amount of the penalty
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetCancellationPolicyInfoWithPenalty
+
The invocation of the method GetCancellationPolicyInfoWithPenalty
 
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
Строка 6436: Строка 6433:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetCancellationPolicyInfoWithPenalty
+
The returning result for the method GetCancellationPolicyInfoWithPenalty
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Строка 6489: Строка 6486:
 
</div></div><br />
 
</div></div><br />
  
===CheckReservation (Получение информации о платеже, необходимом для путевки, в выбранной валюте)===
+
===CheckReservation (Receiving the information about the payment required for the reservation in the selected currency)===
Метод возвращает информацию о платеже, необходимом для путевки, в выбранной валюте.<br />
+
The method returns information about the payment required for the reservation in the selected currency.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''UserToken *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''UserToken *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DgCode *''' – код путевки
+
* '''DgCode *''' – the voucher code
* '''CurrencyIsoCode *''' – ISO код валюты платежа
+
* '''CurrencyIsoCode *''' – the ISO code of the payment currency
Возвращаемый результат:<br />
+
The returning result:<br />
* '''CheckReservationResult''' – результат выдачи
+
* '''CheckReservationResult''' – the output result
** '''Amount''' – сумма платежа
+
** '''Amount''' – the payment amount
** '''RateCode''' – ISO код валюты платежа
+
** '''RateCode''' – the ISO code of the payment currency
** '''NationalCurrencyPrice''' – сумма платежа в национальной валюте
+
** '''NationalCurrencyPrice''' – the payment amount in national currency
** '''NationalRateCode''' – ISO код национальной валюты
+
** '''NationalRateCode''' – the ISO code of the national currency
** '''CustomCurrencyPrice''' – сумма платежа в произвольной валюте
+
** '''CustomCurrencyPrice''' – the payment amount in any currency
** '''CustomRateCode''' – ISO код произвольной валюты платежа
+
** '''CustomRateCode''' – the ISO code of any payment currency
** '''ErrorCode''' – код результата
+
** '''ErrorCode''' – the result code
*** '''0''' – NoError – ошибок нет
+
*** '''0''' – NoError – no errors
*** '''1''' – DogovorNotFound – путевка с таким кодом не найдена
+
*** '''1''' – DogovorNotFound – the reservation with this code was not found
*** '''2''' – InternalError – внутренняя ошибка
+
*** '''2''' – InternalError – an internal error
*** '''3''' – DogovorAnnulate – путевка аннулирована
+
*** '''3''' – DogovorAnnulate – the reservation is canceled
*** '''4''' – DogovorPayed – путевка оплачена
+
*** '''4''' – DogovorPayed – the reservation is paid
*** '''7''' – ExistingPaymentID – платеж с таким внешним идентификатором уже существует
+
*** '''7''' – ExistingPaymentID – the payment with such an external ID already exists
*** '''8''' – IncorrectPaymentType – по путевке есть платежи запрещенных типов
+
*** '''8''' – IncorrectPaymentType – there are payments of prohibited types for the reservation
*** '''9''' – NotAllowedPartnerKey – партнер по путевке не разрешен
+
*** '''9''' – NotAllowedPartnerKey – the partner on the reservation is not allowed
*** '''10''' – FailureSignature – ошибка подписи
+
*** '''10''' – FailureSignature – the signature error
*** '''11''' – NoInvoices – нет инвойсов (счетов) по путевке
+
*** '''11''' – NoInvoices – there are no invoices for the reservation
** '''FilialKey''' – идентификатор филиала партнера
+
** '''FilialKey''' – the ID of the partner's branch
** '''BeginTourDate''' – дата начала тура по путевке
+
** '''BeginTourDate''' – the start date of the tour in the reservation
** '''EndTourDate''' – дата окончания тура путевки
+
** '''EndTourDate''' – the end date of the tour package
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CheckReservation
+
The invocation of the method CheckReservation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6537: Строка 6534:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CheckReservation
+
The returning result for the method CheckReservation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Строка 6561: Строка 6558:
 
</div></div><br />
 
</div></div><br />
  
===CreatePaymentForDogovor (Создание платежа по путевке по выставленному инвойсу)===
+
===CreatePaymentForDogovor (Creating the reservation payment based on issued invoice)===
Метод создает платеж по путевке, у которой выставлен инвойс.<br />
+
The method creates the payment for the reservation that has an invoice.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DgKey *''' – ключ путевки
+
* '''DgKey *''' – the reservation key
* '''Payment *''' – размер платежа
+
* '''Payment *''' – the payment amount
Возвращаемый результат:<br />
+
The returning result:<br />
* '''CreatePaymentForDogovorResult''' – результат выдачи
+
* '''CreatePaymentForDogovorResult''' – the output result
** '''OrderId''' – идентификатор платежа
+
** '''OrderId''' – the payment ID
В случае отсутствия созданного инвойса по путевке получим сообщение: "There is no invoice".
+
If there is no created invoice for the reservation, we will receive the message: "There is no invoice".
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CreatePaymentForDogovor
+
The invocation of the method CreatePaymentForDogovor
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6588: Строка 6586:
 
</soapenv:Envelope>  
 
</soapenv:Envelope>  
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CreatePaymentForDogovor
+
The returning result for the method CreatePaymentForDogovor
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Строка 6602: Строка 6600:
 
</div></div><br />
 
</div></div><br />
  
==Метод работы с квотами==
+
==Methods for working with quotas==
=== CheckQuota (Проверка доступности номера отеля на период)===
+
===CheckQuota (Checking the availability of a hotel room for a period) ===
Метод возвращает информацию о доступности номера отеля на период. <br />
+
The method returns information about the availability of the hotel room for the period. <br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DateFrom''' – дата с
+
* '''DateFrom''' – date from
* '''DateTo''' – дата по
+
* '''DateTo''' – date to
* '''HotelId *''' – ключ отеля
+
* '''HotelId *''' – the hotel key
* '''RoomTypeId *''' – ключ типа комнаты (-1 для всех)
+
* '''RoomTypeId *''' – the room type key (-1 for all)
* '''RoomCategoryId *''' – ключ категории комнаты (-1 для всех)
+
* '''RoomCategoryId *''' – the room category key (-1 for all)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''ServiceResult''' – результат поиска
+
* '''ServiceResult''' – the search result
* '''QuotaSimpleInfo''' – массив данных
+
* '''QuotaSimpleInfo''' – an array of data
** '''RoomTypeId''' – ключ типа комнаты
+
** '''RoomTypeId''' – the room type key
** '''RoomCategoryId''' – ключ категории комнаты
+
** '''RoomCategoryId''' – the room category key
** '''Quota''' – информация о квоте (0 – на запрос, 1 – есть квота, 2 – стоп)
+
** '''Quota''' – the information about the quota (0 – on request, 1 – there is a quota, 2 – stop)
** '''RoomVariantName''' – наименование варианта комнаты (комбинации из таблицы RoomVariant)
+
** '''RoomVariantName''' – the name of the room option (combinations from the RoomVariant table)
** '''Date''' – не заполняется
+
** '''Date''' – not filled in
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CheckQuota
+
The invocation of the method CheckQuota
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6641: Строка 6639:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CheckQuota
+
The returning result for the method CheckQuota
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Строка 6658: Строка 6656:
 
</TD></TR></TABLE>
 
</TD></TR></TABLE>
 
</div></div><br />
 
</div></div><br />
=== GetQuotaInfo (Проверка доступности номера отеля на период с детализацией по дням)===
 
Метод возвращает информацию о доступности номера отеля на период с детализацией по дням. <br />
 
Принимаемые параметры запроса (* – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''DateFrom *''' – дата с
 
* '''DateTo *''' – дата по
 
* '''HotelId *''' – ключ отеля
 
* '''RoomTypeId *''' – ключ типа комнаты (-1 для всех)
 
* '''RoomCategoryId *''' – ключ категории комнаты (-1 для всех)
 
Возвращаемый результат:<br />
 
* '''GetQuotaInfoResult''' – результат поиска
 
* '''QuotaSimpleInfo''' – массив данных
 
** '''RoomTypeId''' – ключ типа комнаты
 
** '''RoomCategoryId''' – ключ категории комнаты
 
** '''Quota''' – информация о квоте (0 – на запрос, 1 – есть квота, 2 – стоп)
 
** '''RoomVariantName''' – наименование варианта комнаты (комбинации из таблицы RoomVariant)
 
** '''Date''' – день
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
===GetQuotaInfo (Checking the availability of a hotel room for a period with details by day)===
 +
МеThe method returns information about the availability of the hotel room for the period with details by day.<br />
 +
Accepted request parameters ( '''*''' – required):
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''DateFrom *''' – date from
 +
* '''DateTo *''' – date to
 +
* '''HotelId *''' – the hotel key
 +
* '''RoomTypeId *''' – the room type key (-1 for all)
 +
* '''RoomCategoryId *''' – the room category key (-1 for all)
 +
The returning result:<br />
 +
* '''GetQuotaInfoResult''' – the search result
 +
* '''QuotaSimpleInfo''' – an array of data
 +
** '''RoomTypeId''' – the room type key
 +
** '''RoomCategoryId''' – the room category key
 +
** '''Quota''' – the information about the quota (0 – on request, 1 – there is a quota, 2 – stop)
 +
** '''RoomVariantName''' – the name of the room options (combinations from the RoomVariant table)
 +
** '''Date''' – the day
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetQuotaInfo
+
The invocation of the method GetQuotaInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6696: Строка 6695:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetQuotaInfo
+
The invocation of the method GetQuotaInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Строка 6714: Строка 6713:
 
</TD></TR></TABLE>
 
</TD></TR></TABLE>
 
</div></div><br />
 
</div></div><br />
=== GetChangeQuotaAndStop (Получение информации по квотам и стопам в отеле)===
+
 
Метод передает информацию по квотам и стопам в отеле.
+
===GetChangeQuotaAndStop (Receiving the information on quotas and stops at the hotel)===
Принимаемые параметры запроса (* – обязательный):
+
The method transmits information about quotas and stops at the hotel.<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
Accepted request parameters ( '''*''' required):
* '''HotelKey *''' – ключ отеля
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Date''' – дата, с которой получаем изменения (если не отправляем, то берется текущая)
+
* '''HotelKey *''' – the hotel key
* '''UseRoomDescription *''' – как сопоставляем категорию и тип комнаты (через общее описание комнаты или по-отдельности)
+
* '''Date''' – the date from which we receive the changes (if we do not send them, then the current one is taken)
* '''LoadQuaota *''' – загружать или нет изменения по квотам
+
* '''UseRoomDescription *''' – how to compare the category and type of room (through a general description of the room or separately)
* '''LoadStop *''' – загружать или нет изменения по стопам
+
* '''LoadQuaota *''' – whether or not to upload changes for stops
Возвращаемый результат:<br />
+
* '''LoadStop *''' – whether or not to upload changes for stops
* '''GetChangeQuotaAndStopResult''' – результат поиска
+
The returning result:<br />
** '''QuotaStopInfo''' – массив данных
+
* '''GetChangeQuotaAndStopResult''' – the search result
*** '''ID''' – не используется
+
** '''QuotaStopInfo''' – an array of data
*** '''SvKey''' – ключ сервис класса (для отеля  = 1)
+
*** '''ID''' – not used
*** '''Code''' – ключ отеля
+
*** '''SvKey''' – the service class key (for hotel = 1)
*** '''SubCode1Name''' – название типа комнаты
+
*** '''Code''' – the hotel key
*** '''SubCode1''' – ключ типа комнаты
+
*** '''SubCode1Name''' – the name of the room type
*** '''SubCode2''' – не используется
+
*** '''SubCode1''' – the room type key
*** '''SubCode3Name''' – название категории комнаты
+
*** '''SubCode2''' – not used
*** '''SubCode3''' – ключ категории комнаты
+
*** '''SubCode3Name''' – the name of the room category
*** '''RoomDescriptionID''' – ключ описания комнаты
+
*** '''SubCode3''' – the room category key
*** '''RoomDescriptionName''' – название описания комнаты
+
*** '''RoomDescriptionID''' – the room description key
*** '''Place''' – количество мест (2 и больше, 1 – мест мало или одно, 0 – нет мест в квоте, -1 – стоп отменен (если IsStop=true) или квота удалена(если IsStop=false)), -2 – стоп отменен и квот при этом нет)
+
*** '''RoomDescriptionName''' – the name of the description of the room
*** '''IsStop''' – стоит ли стоп на текущую дату
+
*** '''Place''' – the number of places (2 and more, 1 – there are few or one seats, 0 – there are no seats in the quota, -1 – the stop is canceled (if IsStop=true) or the quota is removed (if IsStop=false)), -2 – the stop is canceled and there are no quotas)
*** '''Date''' – дата текущей квоты (стопа)
+
*** '''IsStop''' – is there a stop on the current date
*** '''UpdateDate''' – дата обновления
+
*** '''Date''' – the date of the current quota (stop)
*** '''Release''' – релиз-период
+
*** '''UpdateDate''' – the update date
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
*** '''Release''' – release period
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetChangeQuotaAndStop
+
The invocation of the method GetChangeQuotaAndStop
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6761: Строка 6762:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetChangeQuotaAndStop
+
The returning result for the method GetChangeQuotaAndStop
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Строка 6776: Строка 6777:
 
</div></div><br />
 
</div></div><br />
  
=== GetHotelQuotaStopInfo (Получение информации по отелям, у которых были изменения в квотах или стопах с определенной даты)===
+
===GetHotelQuotaStopInfo (Receiving the information on hotels that have had changes in quotas or stops since a certain date)===
Метод  возвращает отели, у которых были изменения в квотах или стопах с определенной даты.<br />
+
The method returns hotels that have had changes in quotas or stops since a certain date.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Date *''' – дата, с которой будем искать отели с измененными квотами или стопами
+
* '''Date *''' – the date from which we will search for hotels with changed quotas or stops
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetHotelQuotaStopResult''' – результат поиска
+
* '''GetHotelQuotaStopResult''' – the search result
** '''HotelQuotaStopInfo''' – массив данных
+
** '''HotelQuotaStopInfo''' – an array of data
*** '''HotelKey''' – ключ отеля
+
*** '''HotelKey''' – the hotel key
*** '''UpdateDateQuota''' – дата последнего изменения в квотах по отелю
+
*** '''UpdateDateQuota''' – the date of the last change in hotel quotas
*** '''UpdateDateStop''' – дата последнего изменения в стопах по отелю
+
*** '''UpdateDateStop''' – the date of the last change in hotel stops
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetHotelQuotaStopInfo
+
The invocation of the method GetHotelQuotaStopInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6804: Строка 6805:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetHotelQuotaStopInfo
+
The returning result for the method GetHotelQuotaStopInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Строка 6819: Строка 6820:
 
</TD></TR></TABLE>
 
</TD></TR></TABLE>
 
</div></div><br />
 
</div></div><br />
=== GetQuotaStop (Получение информации по установленным стопам на номера в отеле)===
 
Метод  возвращает информацию по установленным стопам на номера в отеле.<br />
 
Принимаемые параметры запроса (* – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''Date *''' – дата, с которой будем искать отели с измененными квотами или стопами
 
* '''HotelKey *''' – ключ отеля
 
Возвращаемый результат:<br />
 
* '''GetQuotaStopResult''' – результат поиска
 
** '''QuoteHotel''' – массив данных
 
*** '''Code''' – ключ отеля
 
*** '''StartDate''' – дата начала
 
*** '''EndDate''' – дата окончания
 
*** '''Date''' – дата
 
*** '''CreateDate''' – дата создания
 
*** '''ID''' – не используется
 
*** '''IsRemove''' – удалена или нет
 
*** '''Total''' – количество мест
 
*** '''Sold''' – продано
 
*** '''Free''' – свободно
 
*** '''HotelKey''' – ключ отеля
 
*** '''RoomTypeKey''' – ключ типа комнаты
 
*** '''RoomCategoryKey''' – ключ категории комнаты
 
*** '''QuoteType''' – тип квоты
 
*** '''IsStopSale''' – установлен ли стоп на продажу
 
** '''RoomTypeId''' – ключ типа комнаты
 
** '''RoomCategoryId''' – ключ категории комнаты
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
===GetQuotaStop (Receiving the information on the established stops for hotel rooms)===
 +
GetQuotaStop (Receiving the information on the established stops for hotel rooms) .<br />
 +
Accepted request parameters ( '''*''' – required):
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''Date *''' – the date from which we will search for hotels with changed quotas or stops
 +
* '''HotelKey *''' – the hotel key
 +
The returning result:<br />
 +
* '''GetQuotaStopResult''' – the search result
 +
** '''QuoteHotel''' – an array of data
 +
*** '''Code''' – the hotel key
 +
*** '''StartDate''' – the start date
 +
*** '''EndDate''' – the end date
 +
*** '''Date''' – the date
 +
*** '''CreateDate''' – the creation date
 +
*** '''ID''' – not used
 +
*** '''IsRemove''' – deleted or notет
 +
*** '''Total''' – the number of places
 +
*** '''Sold''' – sold
 +
*** '''Free''' – free
 +
*** '''HotelKey''' – the hotel key
 +
*** '''RoomTypeKey''' – the hotel key
 +
*** '''RoomCategoryKey''' – the room category key
 +
*** '''QuoteType''' – the quota type
 +
*** '''IsStopSale''' – is the stop set for sale
 +
** '''RoomTypeId''' – the room type key
 +
** '''RoomCategoryId''' – the room category key
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetQuotaStop
+
The invocation of the method GetQuotaStop
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6863: Строка 6865:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetQuotaStop
+
The returning result for the method GetQuotaStop
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

Текущая версия на 11:11, 21 ноября 2024

Содержание

Introduction

The InterlookIntegrationService API uses the SOAP protocol. SoapUI also can be used to invoke API methods.

Decryption of server errors

If data sent in a request to the service is sent in an incorrect format, in the response of any method the server will return an error indicating in which line in the XML the error is.
"There is an error in the XML document (12, 49)." – in this case, the error is in line 12, in total 49 characters in the line have the error.
In the SoapUI interface, when the cursor is placed anywhere in the request, the line number and the character number in the line are displayed in the right corner of the window.


SOAP UI

  • Date error. Format: DateTime

Request: <meg:DateFrom>2021-10-010</meg:DateFrom>
Response: The server could not read the request. ---> System.InvalidOperationException: There is an error in the XML document (11, 47). ---> System.FormatException: String "2021-10-010" is not a valid AllXsd value

  • Error in the data. Format: Integer

Request: <meg:PageSize>100000f</meg:PageSize>
Response: The server could not read the request. ---> System.InvalidOperationException: There is an error in the XML document (9, 37). ---> System.FormatException: The input string had an incorrect format

The Methods of IntegrationService

The Methods of IntegrationService

Connect (Obtaining an authentication token)

Method obtains the authentication token required to execute the CreateReservation method.
Accepted request parameters ( * – required):

  • Login * – login of the online user
  • Password * – online user's password

The Returning result:

  • ConnectResult – authentication ID (if authentication was successful, we receive the ID, otherwise we receive the error "Connection result code: -1. Invalid login or password")
Example

The Invocation of method Connect

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:Connect>
         <!--Optional:-->
         <meg:login>mk1</meg:login>
         <!--Optional:-->
         <meg:password>123</meg:password>
      </meg:Connect>
   </soapenv:Body>
</soapenv:Envelope>

The Returning result of method Connect

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <ConnectResponse xmlns="http://www.megatec.ru/">
         <ConnectResult>9a1e4f2f-a4b0-4d60-8f17-e320031f44de</ConnectResult>
      </ConnectResponse>
   </soap:Body>
</soap:Envelope>


СheckConnect (Checking the connection activity under a specific identifier)

The method checks whether there is an active connection under a specific authentication identifier.
Accepted request parameters ( * – required):

  • Guid * – authentication ID (returns when requesting the Connect method)

The Returning result:

  • CheckConnectResult – authentication ID (true – if the connection is active, false – if there is no connection)
Example

The Invocation of method CheckConnect

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CheckConnect>
         <!--Optional:-->
         <meg:guid>e5910963-6f5a-4c18-8799-34417675bfe9</meg:guid>
      </meg:CheckConnect>
   </soapenv:Body>
</soapenv:Envelope>

The Returning result of method CheckConnect

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CheckConnectResponse xmlns="http://www.megatec.ru/">
         <CheckConnectResult>true</CheckConnectResult>
      </CheckConnectResponse>
   </soap:Body>
</soap:Envelope>


Methods for working with tours

CreateReservation (The booking of the tour)

The method makes a booking of the tour.

After receiving the authentication ID when requesting the Connect method, it should take some time for the cache to load. If a booking request is generated, when the cache is not loaded yet, the user receives the message "System.Exception: The Cache is loading. Try again after some time". In this case, you need to wait a few seconds and repeat the request.
Attention! Booking of mandatory Extra Services like WithCost, Hardlink occurs automatically. Regardless of whether they are transmitted in the request or not.
Rebooking of a tour occurs if the request contains the parameters ExternalId, ID is already available in the Interlook database.

Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Reserv * – class – object of the tour
    • HasInvoices * – is the tour invoice issued
      • true – the invoce has been issued
      • false – the invoce has not been issued
    • Rate * – the currency of the tour
      • ID – the currency ID (if we do not send or send 0 or send value, that is absent in the database, then the currency, that has ID=1 from table Rates of the Database, will be substituted)
    • TouristServices * – an array of services, used by tourists
      • TouristService * – a separate service, used by tourists
        • TouristRoomNumber – the number of the room. If the accommodation is, for example, Double, then we specify the same room number for each tourist. For other services we leave the field empty.
        • TouristID * – the ID of the tourist
        • ServiceID * – the ID of the service
      • Services – an array of services for a tour (of a certain type, depanding on the type of service, for example: ExcursionService, ExtraService, HotelService, TransferService)
        • HotelService * – the parameters for a HotelService type of the service
          • ExternalID – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter.
          • NMen – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
          • AdditionalParams –additional parameters (represents as a pair key – value)
            • ParameterPair Key – key
              • Value – value
          • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00). If it is not sent, it is considered current
          • Duration * – duration of service
          • ID * – id of service using for binding the service to the tourists
          • Hotel * – array of data hotel
            • AdditionalParams – additional parameters (providing as pair key – value)
              • ParameterPair Key – key
                • Value – value
            • ID * – id of hotel
          • Room * – array of data room
            • RoomTypeID * – id of type of the room
            • RoomCategoryID * – id of type of categories
            • RoomAccomodationID * – id of the accommodation types
          • PansionID * – id of the pansion types
        • TransferService – parameters for type of service TransferService
          • ExternalID – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter
          • NMen – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
          • AdditionalParams – additional parameters (represents as a pair key – value)
            • ParameterPair Key – key
              • Value – value
          • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00). If it is not sent, it is considered current
          • Duration – duration of service. If the parameter is not sent, it is considered Duration=1
          • ID * – id of service using for binding the service to the tourists
          • Transfer * – array of data Transfer
            • ID * – key of transfer from table TransferDirecions (returns in the request for the method GetTransfers)
          • Transport * – array of data Transport
            • ID * – key of transport from table Transport
        • ExtraService – parameters for the service type ExtraService. If there is additional service AddHots WithCosts for the dates of stay, then it is automatically added in the response, there is no need to transmit it.
          • ExternalID – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter.
          • NMen – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
          • AdditionalParams – additional parameters (represents as a pair key – value)
            • ParameterPair Key – key
              • Value – value
          • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00). If it is not sent, it is considered current
          • Duration – duration of service. If the parameter is not sent, it is considered Duration=1
          • ID * – id of service using for binding the service to the tourists
          • Code * – code of the service (return in the request for method GetExtraService)
        • ExcursionService - parameters for the service type Excursion
          • ExternalID – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter.
          • NMen – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
          • AdditionalParams – additional parameters (represents as a pair key – value)
            • ParameterPair Key – key
              • Value – value
          • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00). If it is not sent, it is considered current
          • Duration – duration of service. If the parameter is not sent, it is considered Duration=1
          • ID * – id of service using for binding the service to the tourists
          • ExcursionID * – id of excursion (returns in the request for method GetExcursions)
          • CountryID – – id of country, if it is not transmitted, then receive -1 in response
          • CityID – id of city
    • Tourists * – array of tourists by service
      • Tourist * – tourist
        • Sex – genger (key = values: Male = 0, Female = 1, Child = 2, Infant = 3)
        • BirthDate * – date of birth of the tourist (in format YYYY-MM-DDT00:00:00)
        • FirstNameLat * – name of the tourist in Latin
        • SurNameLat * – surname of the tourist in Latin
        • AgeType – type of age (Adult = 0, Child = 1, Infant = 2)
        • IsMain – sets the attribute of the main tourist in the tour (Null, 0 – no, 1 – main tourist)
        • ID * – id of tourist using for binding the tourist to the service
        • Phone – phone number of tourist (in international format, for example +70000000000, 70000000000)
        • Email – e-mail address of the tourist
        • ForeignPassport – foreign passport
        • Serie – series
        • Number – number
        • EndDate – date of expire
    • ExternalID – key of the tour from the database Interlook (When creating a new tour, the parameter can be sent as 0 or not sent)
    • • TourOperatorID – key of the tour in the external system (key of touroperator)
    • TourOperatorCode – number from "customer reservation number"
    • ID – key of the tour

Returning result:

  • HasInvoices – is the tour invoice issued
    • true – is issued
    • false – is not issued
  • AgentDiscount – agent discount
  • Rate – currency of the tour
    • Name – name of the currency
    • ID – id of the currency
    • Description – description of the currency
    • NameLat – name of the currency in Latin
    • Code – code of the currency
    • CodeLat – code of the currency in Latin
    • Unicode – ISO-code for the currency
    • IsMain – is the currency main (true – is, false – is not)
    • IsNational – is the currency national (true – is, false – is not)
  • TouristServices – array of services, using by tourists
    • TouristService – parate service, using by tourist
      • ID – id of service, using by tourist
      • TouristRoomNumber – number of room
      • TouristID – id of the tourist (-1 for the new tour)
      • ServiceID – id of the service (-1 for the new tour)
  • Services – an array of services for a tour (of a certain type, depanding on the type of service, for example: ExcursionService, ExtraService, HotelService, TransferService)
    • HotelService – parameters for the service type HotelService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – опиdescription of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
          • Value – value
            • PenaltyCost - an object with the value of the penalty and the conditions under which the penalty was calculated. The display of the parameters is regulated by the license
              • PolicyKey - the key of the penalty condition in the database (-1 – "fake condition", before the beginning of all conditions, or after the end of all, or there are no conditions at all)
              • DateFrom - start date of the condition in format YYYY-MM-DDT00:00:00 (can be null, usually for "fake condition": "without penalty till...")
              • DateTo - ate of end (can be null, for "fake condition": "100% after ...")
              • PenaltyValue - the amount of the penalty
              • IsPercent - percent, pointing, that the penalty is in "%" (true) or in "nights" (false)
              • TotalPenalty - total amount of the penalty
              • Description - description
      • DetailBrutto – gross details
      • Notes – notes for the service
      • Name – name of the service (example for the hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB))
      • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00)
      • StartDay – not using
      • Duration – duration of the service
      • RateBrutto – currency of the gross
      • Brutto – price of the gross
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • Hotel – array of the data Hotel
        • Name – name of the hotel
        • ID – id of the hotel
        • Description – description of the hotel
        • NameLat – name of the hotel in Latin
        • Code – code of the hotel
        • CodeLat – code of the hotel in Latin
        • Unicode – ISO-code of the hotel
        • City – array of data City
          • Name – name of the city
          • ID – id of the city
          • Description – description of the city
          • NameLat – name of the city in Latin
          • Code – code of the city
          • CodeLat – code of the city in Latin
          • Unicode – ISO-code of the city
          • Country – array of data Country
            • Name – name of the country
            • ID – id of the country
            • Description – description of the country
            • NameLat – name of the country in Latin
            • Code – code of the country
            • CodeLat – code of the country in Latin
            • Unicode – ISO-code of the country
            • IsIncoming – parameter for inner use
          • CountryID – id of the country in array data City
          • RegionID – id of the region in array data City
        • RegionID – id of the region
        • PriceType – availability of price (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
        • CountCosts – number of prices
        • CityID – id of the city
        • HotelCategoryID – id of the hotel category
      • Room – array of data Room
        • RoomType – array of data Type of the room
          • Name – name of the room type
          • ID – id of the room type
          • Description – description of the room type
          • NameLat – name of the room type in Latin
          • Code – code of the room type
          • CodeLat – code of the room type in Latin
          • Unicode – ISO-code of the room type
          • Places – number of places in room
          • ExPlaces – additional places in room
          • PrintOrder – additional places in room
        • RoomTypeID – id of room type
        • RoomCategory – array of data Room category
          • Name – name of the room category
          • ID – id of the room category
          • Description – description of the room category
          • NameLat – name of the room category in Latin
          • Code – code of the room category
          • CodeLat – code of the room category in Latin
          • Unicode – ISO-code of the room category
          • MainPlaces – number of main places
          • ExtraPlaces – number of additional places
          • IsMain – arameter of inner use
        • RoomCategoryID – id of the room category
        • RoomAccomodation – array of data Accommodation
          • Name – name of the accommodation
          • ID – id of the accommodation
          • Description – description of the accommodation
          • NameLat – name of the accommodation in Latin
          • Code – code of the accommodation
          • CodeLat – code of the accommodation in Latin
          • Unicode – ISO-code of the accommodation
          • PerRoom – per room/per person
          • AdultMainPlaces – number of main places for adults
          • ChildMainPlaces – number of main places for children
          • AdultExtraPlaces – number of additional places for adults
          • ChildExtraPlaces – number of additional places for children
          • MainPlaces – total number of main places
          • ExtraPlaces – total number of additional places
          • IsMain – parameter of inner use
          • AgeFrom – age of first child from
          • AgeTo – age of first child to
          • Age2From – age of second child from
          • Age2To – age of second child to
        • RoomAccomodationID – id of the accommodation
        • ID – id of the room
        • Name – name of the accommodation type
      • RoomID – id of the room
      • PansionID – id of the pansion
    • TransferService – parameters for service type TransferService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key - value)
        • ParameterPair Key – key
          • Value – value
              • Description - description
      • DetailBrutto – gross details
      • Notes – notes for the service
      • Name – name of the service (example for the hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00)
      • StartDay – not using
      • Duration – duration of the service
      • RateBrutto – currency of the gross
      • Brutto – price of the gross
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • Transfer – array of data Transfer
        • AdditionalParams – additional parameters (represents as a pair key – value)
          • ParameterPair Key – key
            • Value – value
        • Name – name of the transfer
        • ID – key of the transfer from table TransferDirecion
        • Description – description of the transfer
        • NameLat – name of the transfer in Latin
        • Code – code of the transfer
        • CodeLat – code of the transfer in Latin
        • Unicode – ISO-code of the transfer
        • PlaceFrom – name of the point from
        • PlaceTo – name of the point to
        • CityID – id of the city
        • RegionID – id of the region
      • Transport – array of data Transport
        • Name – name of the transport
        • ID – id of the transport
        • Description – description of the transport
        • NameLat – name of the transport in Latin
        • Code – code of the transport
        • CodeLat – code of the transport in Latin
        • Unicode – ISO-code of the transport
      • PointToID – id of the point to
      • CityKey – key of the city
      • PointToName – name of the point to
      • PointFromID – name of the point to
      • PointFromName – name of the point from
    • ExcursionService – parameters for the service type ExcursionService
      • ExternalID – неnot using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
        • Value – value
      • DetailBrutto – gross details
      • Notes – notes to the service
      • Name – name of the service (example for hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (In format YYYY-MM-DDT:00:00)
      • StartDay – not using
      • Duration – duration of service
      • RateBrutto – the currency of the gross
      • Brutto – gross price
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • CityKey – city key
      • ExcursionID – id of excursion
    • ExtraService – parameters for the service type ExtraService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – fax of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
        • Value – value
      • DetailBrutto – gross details
      • Notes – notes to the service
      • Name – name of the service (example for hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (In format YYYY-MM-DDT:00:00)
      • StartDay – not using
      • Duration – duration of service
      • RateBrutto – the currency of the gross
      • Brutto – gross price
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • CityKey – key of the city providing the service
      • IsPackage – attribute if the service is in package
      • Code – id of the service
      • HasDuration – has service duration or not
  • ID – key of the tour in external system (key of tour operator)
  • Name – name of the tour
  • Brutto – gross price of the tour
  • CountryID – id of the country of the tour
  • CityID – id of the city of the tour
  • PartnerID – id of buyer of the tour
  • AgentDiscount – agent discount
  • Status – status of the tour (Confirmed = 0, NotConfirmed = 1, WaitingConfirmation = 2, Canceled = 3, WaitingCancelation = 4)
  • StartDate – date of the beginning of the tour (in format YYYY-MM-DDT00:00:00)
  • EndDate – date of the end of the tour (in format YYYY-MM-DDT00:00:00)
  • Duration – duration
  • CreationDate – date of the creation of the tour (in format YYYY-MM-DDT00:00:00)
  • CreatorID – id of creator of the tour
  • Tourists – array of the tourists on the tour
    • Tourist – tourist
      • Sex – gender (key = value: Male = 0, Female = 1, Child = 2, Infant = 3)
      • BirthDate – date of birth of the touris (in format YYYY-MM-DDT00:00:00)*** FirstNameLat – name of the tourist in Latin
      • LastNameLat – surname of the tourist in Latin
      • AgeType – type of the age (Adult = 0, Child = 1, Infant = 2)
      • IsMain – sets attribute main tourist on the tour (Null, 0 – no, 1 – tourist is main)
      • ExternalID – parameter for the internal use
      • ID – id of the tourist (-1 for the new tour)
      • Phone – phone number of the tourist (sets according to the template)
      • Email – e-mail address of the tourist
      • ForeignPassport – foreign passport
        • Serie – series
        • Number – number
        • EndDate – date of expire
      • ExternalID – not using
  • OwnerID – id of the creator of the tour
  • ExternalID – key of the tour in the database Interlook
  • TourOperatorID – key of the tour in external system (key of the tour operator)
  • TourOperatorCode – number from "customer reservation number"
  • AdditionalParams – additional parameters (providing as the pair key – value)
    • ParameterPair Key – key
    • Value – value

In case of errors in the request, we receive a message in the response with a transcript of the errors.
In case of an error in the GUID we will receive the message "Invalid user or password (Invalid GUID)."
If the service signature does not match the type declared in the request, we will receive the message "Service labeled as '<Type of service in the request>' is not a <Service type name>".
If there are no tourists in the request, we will receive the message "There is no any tourist. At least one 'Tourist' must be specified."
If the required field is not specified, we will receive the message "Parameter '<Parameter name>' is required."
If there is no record with the specified ID in the database, we will receive the message "There is no <Entity name> with '<Identifier parameter name>' = <Parameter value in the request> in the database."

Example

Ivocating the method CreateReservation:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header/>
   <soap:Body>
      <CreateReservation xmlns="http://www.megatec.ru/">
         <guid>6b311a75-ffa7-428b-8abe-420e9780ed4d</guid>
         <reserv HasInvoices="false">
            <Rate>
               <ID>1</ID>
            </Rate>
            <TouristServices>
               <TouristService>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <TouristID>-1</TouristID>
                  <ServiceID>-1</ServiceID>
               </TouristService>
               <TouristService>
                 <TouristRoomNumber>1</TouristRoomNumber>
                  <TouristID>-2</TouristID>
                  <ServiceID>-1</ServiceID>
               </TouristService>
                 <TouristService>
                <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-1</TouristID>
                  <ServiceID>-2</ServiceID>
               </TouristService>
               <TouristService>
               <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-2</TouristID>
                  <ServiceID>-2</ServiceID>
               </TouristService>
   <TouristService>
                 <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-1</TouristID>
                  <ServiceID>-3</ServiceID>
               </TouristService>
               <TouristService>
                  <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-2</TouristID>
                  <ServiceID>-3</ServiceID>
               </TouristService>
  <TouristService>
                 <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-1</TouristID>
                  <ServiceID>-4</ServiceID>
               </TouristService>
               <TouristService>
                  <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-2</TouristID>
                  <ServiceID>-4</ServiceID>
               </TouristService>
     <TouristService>
                 <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-1</TouristID>
                  <ServiceID>-5</ServiceID>
               </TouristService>
               <TouristService>
                  <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-2</TouristID>
                  <ServiceID>-5</ServiceID>
               </TouristService>           
            </TouristServices>
            <Services>
               <Service xsi:type="HotelService">
                  <ExternalID>0</ExternalID>
                  <NMen>2</NMen>
                  <AdditionalParams>
                     <ParameterPair Key="ContractPrKey">
                         <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="CityID">
                        <Value xsi:type="xsd:int">80</Value>
                     </ParameterPair>
                     <ParameterPair Key="isSuccess">
                        <Value xsi:type="xsd:boolean">true</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <Duration>7</Duration>
                  <ID>-1</ID>
                   <Hotel>
                       <ID>2930</ID>
                          </Hotel>
               <Room>
                     <RoomTypeID>3</RoomTypeID>
                     <RoomCategoryID>20</RoomCategoryID>
                     <RoomAccomodationID>5558</RoomAccomodationID>
                  </Room>
                  <PansionID>3</PansionID>
               </Service>
    <Service xsi:type="TransferService">
                  <ExternalID>0</ExternalID>
                  <NMen>2</NMen>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <ID>-2</ID>
                  <Transfer>
                        <ID>606</ID>
                       </Transfer>
                  <Transport>
                    <ID>4</ID>
                   </Transport>
               </Service>
                <Service xsi:type="TransferService">
                  <ExternalID>0</ExternalID>
                  <NMen>2</NMen>
                  <StartDate>2022-08-27T00:00:00</StartDate>
                  <Duration>1</Duration>
                  <ID>-3</ID>
                  <Transfer>               
                    <ID>604</ID>
               </Transfer>
                  <Transport>
                     <ID>2</ID>
                     </Transport>
                  </Service>	
                  <Service xsi:type="ExtraService">
                  <ExternalID>0</ExternalID>
                  <NMen>2</NMen>
                  <StartDate>2022-08-23T00:00:00</StartDate>
                  <Duration>1</Duration>
	              <ID>-4</ID>
	              <Code>694</Code>
                   </Service>
                   <Service xsi:type="ExcursionService">
                  <ExternalID>0</ExternalID>
                  <NMen>2</NMen>
                   <StartDate>2022-08-23T00:00:00</StartDate>
                     <ID>-5</ID>
                     <ExcursionID>714</ExcursionID>
                     </Service>
                   </Services>
                 <CountryID>6</CountryID>
                 <CityID>80</CityID>
                    <Tourists>
                     <Tourist Sex="Male"  BirthDate="1979-08-10T00:00:00" FirstNameLat="Alex" SurNameLat="Vladimirov" AgeType="Adult" IsMain="true" ExternalID="0" ID="-1" Phone="89610553087" Email="dfj@ety.ua">
                     <ForeignPassport Serie="1234" Number="123456" EndDate="2025-01-01T00:00:00"/>
                     </Tourist>
                     <Tourist Name="" Sex="Male" FirstName="" LastName="" SurName="" BirthDate="1972-08-11T00:00:00" FirstNameLat="Alexa" SurNameLat="Vladimirovicha" AgeType="Adult" Citizen="" IsMain="false" ExternalID="0" ID="-2" Phone="" Email="">
                      <ForeignPassport EndDate="2025-01-01T00:00:00"/>
                     </Tourist>
                  </Tourists>
                <AdditionalParams>
               <ParameterPair Key="PcnId">
                  <Value xsi:type="xsd:int">116</Value>
               </ParameterPair>
            </AdditionalParams>
             <TourOperatorID>0</TourOperatorID>
             <TourOperatorCode>0</TourOperatorCode>
             <ID>0</ID>
             <ExternalID>0</ExternalID>
         </reserv>
      </CreateReservation>
   </soap:Body>
</soap:Envelope>

The Returning result of method CreateReservation:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CreateReservationResponse xmlns="http://www.megatec.ru/">
         <CreateReservationResult HasInvoices="false">
            <Rate>
               <Name>EU</Name>
               <ID>-13</ID>
               <IsMain>false</IsMain>
               <IsNational>false</IsNational>
            </Rate>
            <TouristServices>
               <TouristService>
                  <ID>368194</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168804</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368195</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168804</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368197</ID>
                  <ServiceID>168805</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368196</ID>
                  <ServiceID>168805</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368199</ID>
                  <ServiceID>168806</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368198</ID>
                  <ServiceID>168806</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368203</ID>
                  <ServiceID>168808</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368202</ID>
                  <ServiceID>168808</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368201</ID>
                  <ServiceID>168807</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368200</ID>
                  <ServiceID>168807</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368205</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168803</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368204</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168803</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
            </TouristServices>
            <Services>
               <Service xsi:type="HotelService">
                  <ExternalID>-1</ExternalID>
                  <Price>3850</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="CancellationPolicy">
                        <Value xsi:type="ArrayOfPenaltyCost">
                           <PenaltyCost>
                              <PolicyKey>-1</PolicyKey>
                              <DateFrom xsi:nil="true"/>
                              <DateTo>2022-08-15T00:00:00</DateTo>
                              <PenaltyValue>0</PenaltyValue>
                              <IsPercent>false</IsPercent>
                              <TotalPenalty>0</TotalPenalty>
                              <Description>If canceled before 15.08.2022, no penalty Penalty value is 0.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>125</PolicyKey>
                              <DateFrom>2022-08-15T00:00:00</DateFrom>
                              <DateTo>2022-08-16T23:59:59</DateTo>
                              <PenaltyValue>6</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>231</TotalPenalty>
                              <Description>If canceled in period 15.08.2022 - 16.08.2022, the penalty will be  6.00 % of the cost of accommodation Penalty value is 231.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>200</PolicyKey>
                              <DateFrom>2022-08-17T00:00:00</DateFrom>
                              <DateTo>2022-08-17T23:59:59</DateTo>
                              <PenaltyValue>11</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>423.5</TotalPenalty>
                              <Description>If canceled in period 17.08.2022 - 17.08.2022, the penalty will be  11.00 % of the cost of accommodation Penalty value is 423.50 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>123</PolicyKey>
                              <DateFrom>2022-08-18T00:00:00</DateFrom>
                              <DateTo>2022-08-19T23:59:59</DateTo>
                              <PenaltyValue>20</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>770</TotalPenalty>
                              <Description>If canceled in period 18.08.2022 - 19.08.2022, the penalty will be  20.00 % of the cost of accommodation Penalty value is 770.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>208</PolicyKey>
                              <DateFrom>2022-08-20T00:00:00</DateFrom>
                              <DateTo xsi:nil="true"/>
                              <PenaltyValue>20</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>770</TotalPenalty>
                              <Description>If canceled from 20.08.2022, the penalty will be 20.00 % of the cost of accommodation Penalty value is 770.00 EU</Description>
                           </PenaltyCost>
                        </Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(550,00[kolesnyk2/kolesnyk2]*7) * 1 room = 3850,00</DetailBrutto>
                  <Notes/>
                  <Name>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB</Name>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>8</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>3850</Brutto>
                  <ServiceClassID>0</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168804</ID>
                  <Status>
                     <Name>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB</Name>
                     <ID>1</ID>
                  </Status>
                  <Hotel>
                     <Name>Red</Name>
                     <ID>2930</ID>
                     <Description>4 stars (A)  (Ukraine\Kiev\Kiev)</Description>
                     <Code>Red</Code>
                     <City>
                        <Name>Kiev</Name>
                        <ID>80</ID>
                        <Code>IEV</Code>
                        <Country>
                           <Name>Ukraine</Name>
                           <ID>6</ID>
                           <IsIncoming>true</IsIncoming>
                        </Country>
                        <CountryID>6</CountryID>
                        <RegionID>28</RegionID>
                     </City>
                     <RegionID>28</RegionID>
                     <PriceType>None</PriceType>
                     <CountCosts xsi:nil="true"/>
                     <CityID>80</CityID>
                     <HotelCategoryID>4</HotelCategoryID>
                  </Hotel>
                  <Room>
                     <RoomType>
                        <Name/>
                        <ID>3</ID>
                        <Code>Double Room</Code>
                        <Places>2</Places>
                        <ExPlaces>2</ExPlaces>
                        <PrintOrder>0</PrintOrder>
                     </RoomType>
                     <RoomTypeID>3</RoomTypeID>
                     <RoomCategory>
                        <Name>Jakuzzi</Name>
                        <ID>20</ID>
                        <MainPlaces>0</MainPlaces>
                        <ExtraPlaces>0</ExtraPlaces>
                        <IsMain>false</IsMain>
                     </RoomCategory>
                     <RoomCategoryID>20</RoomCategoryID>
                     <RoomAccomodation>
                        <Name>2AD</Name>
                        <ID>5558</ID>
                        <PerRoom>false</PerRoom>
                        <AdultMainPalces>0</AdultMainPalces>
                        <ChildMainPalces>0</ChildMainPalces>
                        <AdultExtraPalces>0</AdultExtraPalces>
                        <ChildExtraPalces>0</ChildExtraPalces>
                        <MainPlaces>2</MainPlaces>
                        <ExtraPlaces>0</ExtraPlaces>
                        <IsMain>true</IsMain>
                        <AgeFrom>0</AgeFrom>
                        <AgeTo>0</AgeTo>
                        <Age2From>0</Age2From>
                        <Age2To>0</Age2To>
                     </RoomAccomodation>
                     <RoomAccomodationID>5558</RoomAccomodationID>
                     <ID>0</ID>
                     <Name/>
                  </Room>
                  <RoomID>0</RoomID>
                  <PansionID>3</PansionID>
               </Service>
               <Service xsi:type="TransferService">
                  <ExternalID>-2</ExternalID>
                  <Price>240</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="CityToKey">
                        <Value xsi:type="xsd:int">80</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointFromId">
                        <Value xsi:type="xsd:int">1000028</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointToId">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1171</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(120,00(0-120)[Vedi_test/Vedi_test] * 2 pax) = 240,00</DetailBrutto>
                  <Notes/>
                  <Name>TRF::Arrival transfer/Mini Bus/Kiev ap-Red/Kiev/</Name>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>240</Brutto>
                  <ServiceClassID>2</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168805</ID>
                  <Status>
                     <Name>TRF::Arrival transfer/Mini Bus/Kiev ap-Red/Kiev/</Name>
                     <ID>2</ID>
                  </Status>
                  <Transfer>
                     <AdditionalParams>
                        <ParameterPair Key="SlKey">
                           <Value xsi:type="xsd:int">1</Value>
                        </ParameterPair>
                     </AdditionalParams>
                     <Name/>
                     <ID>606</ID>
                  </Transfer>
                  <Transport>
                     <Name>Mini Bus</Name>
                     <ID>4</ID>
                  </Transport>
                  <PointToId>2930</PointToId>
                  <CityKey>80</CityKey>
                  <PointToName>Red</PointToName>
                  <PointFromId>1000028</PointFromId>
                  <PointFromName>Kiev ap</PointFromName>
               </Service>
               <Service xsi:type="TransferService">
                  <ExternalID>-3</ExternalID>
                  <Price>60</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="CityToKey">
                        <Value xsi:type="xsd:int">80</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointFromId">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointToId">
                        <Value xsi:type="xsd:int">1000028</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1171</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(15,00(0-120)[Vedi_test/Vedi_test] * 2 pax) = 30,00</DetailBrutto>
                  <Notes/>
                  <Name>TRF::Departure transfer/Group/Red-Kiev ap/Kiev/</Name>
                  <StartDate>2022-08-27T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>60</Brutto>
                  <ServiceClassID>2</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168806</ID>
                  <Status>
                     <Name>TRF::Departure transfer/Group/Red-Kiev ap/Kiev/</Name>
                     <ID>2</ID>
                  </Status>
                  <Transfer>
                     <AdditionalParams>
                        <ParameterPair Key="SlKey">
                           <Value xsi:type="xsd:int">2</Value>
                        </ParameterPair>
                     </AdditionalParams>
                     <Name/>
                     <ID>608</ID>
                  </Transfer>
                  <Transport>
                     <Name>Group</Name>
                     <ID>2</ID>
                  </Transport>
                  <PointToId>1000028</PointToId>
                  <CityKey>80</CityKey>
                  <PointToName>Kiev ap</PointToName>
                  <PointFromId>2930</PointFromId>
                  <PointFromName>Red</PointFromName>
               </Service>
               <Service xsi:type="ExcursionService">
                  <ExternalID>-5</ExternalID>
                  <Price>120</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1035</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(50,00(0-120)[test_exc] * 2 pax) = 100,00</DetailBrutto>
                  <Notes/>
                  <Name>EXC::Kiev City</Name>
                  <StartDate>2022-08-23T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>120</Brutto>
                  <ServiceClassID>1</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168808</ID>
                  <Status>
                     <Name>EXC::Kiev City</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <ExcursionID>714</ExcursionID>
               </Service>
               <Service xsi:type="ExtraService">
                  <ExternalID xsi:nil="true"/>
                  <Price>200</Price>
                  <NMen>2</NMen>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="HotelDlKey">
                        <Value xsi:type="xsd:int">168804</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1035</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(100,00(0-120)[Регресс] * 2 pax * 1 days) = 200,00</DetailBrutto>
                  <Notes/>
                  <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                  <StartDate>2022-08-23T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>200</Brutto>
                  <ServiceClassID>79</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168807</ID>
                  <Status>
                     <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <IsPackage>false</IsPackage>
                  <Code>694</Code>
                  <HasDuration>false</HasDuration>
               </Service>
               <Service xsi:type="ExtraService">
                  <ExternalID xsi:nil="true"/>
                  <Price>478</Price>
                  <NMen>2</NMen>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="HotelDlKey">
                        <Value xsi:type="xsd:int">168804</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(239,00(0-120)[тестэкстрарэд220822] * 2 pax * 1 days) = 478,00</DetailBrutto>
                  <Notes/>
                  <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                  <StartDate>2022-08-22T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>478</Brutto>
                  <ServiceClassID>102</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168803</ID>
                  <Status>
                     <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <IsPackage>false</IsPackage>
                  <Code>713</Code>
                  <HasDuration>false</HasDuration>
               </Service>
            </Services>
            <ID>-1</ID>
            <Name>MT140101A62</Name>
            <Brutto>4948</Brutto>
            <CountryID>6</CountryID>
            <CityID>80</CityID>
            <PartnerID>1035</PartnerID>
            <Status>WaitingConfirmation</Status>
            <StartDate>2022-08-20T00:00:00</StartDate>
            <EndDate>2022-08-27T00:00:00</EndDate>
            <Duration>7</Duration>
            <CreationDate>2022-03-04T16:56:48.953</CreationDate>
            <CreatorID>101</CreatorID>
            <Tourists>
               <Tourist Sex="Male" BirthDate="1979-08-10T00:00:00" FirstNameLat="Alex" SurNameLat="Vladimirov" AgeType="Adult" IsMain="true" ID="88548" Phone="89610553087" Email="dfj@ety.ua">
                  <ForeignPassport Serie="1234" Number="123456" EndDate="2025-01-01T00:00:00"/>
                  <ExternalID>0</ExternalID>
               </Tourist>
               <Tourist Sex="Male" BirthDate="1972-08-11T00:00:00" FirstNameLat="Alexa" SurNameLat="Vladimirovicha" AgeType="Adult" IsMain="false" ID="88549" Phone="" Email="">
                  <ForeignPassport Serie="" Number="" EndDate="2025-01-01T00:00:00"/>
                  <ExternalID>0</ExternalID>
               </Tourist>
            </Tourists>
            <OwnerID xsi:nil="true"/>
            <TourOperatorID>-1</TourOperatorID>
            <TourOperatorCode>0</TourOperatorCode>
            <ExternalID>37263</ExternalID>
            <AdditionalParams>
               <ParameterPair Key="PcnId">
                  <Value xsi:type="xsd:int">116</Value>
               </ParameterPair>
               <ParameterPair Key="IsIntegrationServiceReservation">
                  <Value xsi:type="xsd:boolean">true</Value>
               </ParameterPair>
               <ParameterPair Key="ReservationCost">
                  <Value xsi:type="xsd:double">4948</Value>
               </ParameterPair>
            </AdditionalParams>
         </CreateReservationResult>
      </CreateReservationResponse>
   </soap:Body>
</soap:Envelope>


GetReservation (Getting the reservation by key)

The method receives information about the reservation by the reservation key.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DgKey * – key of the reservation

Returning result:

  • HasInvoices – is the tour invoice issued
    • true – is issued
    • false – is not issued
  • AgentDiscount – agent discount
  • Rate – currency of the tour
    • Name – name of the currency
    • ID – id of the currency
    • Description – description of the currency
    • NameLat – name of the currency in Latin
    • Code – code of the currency
    • CodeLat – code of the currency in Latin
    • Unicode – ISO-code for the currency
    • IsMain – is the currency main (true – is, false – is not)
    • IsNational – is the currency national (true – is, false – is not)
  • TouristServices – array of services, using by tourists
    • TouristService – parate service, using by tourist
      • ID – id of service, using by tourist
      • TouristRoomNumber – number of room
      • TouristID – id of the tourist (-1 for the new tour)
      • ServiceID – id of the service (-1 for the new tour)
  • Services – an array of services for a tour (of a certain type, depanding on the type of service, for example: ExcursionService, ExtraService, HotelService, TransferService)
    • HotelService – parameters for the service type HotelService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – опиdescription of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
          • Value – value
            • PenaltyCost - an object with the value of the penalty and the conditions under which the penalty was calculated. The display of the parameters is regulated by the license
              • PolicyKey - the key of the penalty condition in the database (-1 – "fake condition", before the beginning of all conditions, or after the end of all, or there are no conditions at all)
              • DateFrom - start date of the condition in format YYYY-MM-DDT00:00:00 (can be null, usually for "fake condition": "without penalty till...")
              • DateTo - ate of end (can be null, for "fake condition": "100% after ...")
              • PenaltyValue - the amount of the penalty
              • IsPercent - percent, pointing, that the penalty is in "%" (true) or in "nights" (false)
              • TotalPenalty - total amount of the penalty
              • Description - description
      • DetailBrutto – gross details
      • Notes – notes for the service
      • Name – name of the service (example for the hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB))
      • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00)
      • StartDay – not using
      • Duration – duration of the service
      • RateBrutto – currency of the gross
      • Brutto – price of the gross
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • Hotel – array of the data Hotel
        • Name – name of the hotel
        • ID – id of the hotel
        • Description – description of the hotel
        • NameLat – name of the hotel in Latin
        • Code – code of the hotel
        • CodeLat – code of the hotel in Latin
        • Unicode – ISO-code of the hotel
        • City – array of data City
          • Name – name of the city
          • ID – id of the city
          • Description – description of the city
          • NameLat – name of the city in Latin
          • Code – code of the city
          • CodeLat – code of the city in Latin
          • Unicode – ISO-code of the city
          • Country – array of data Country
            • Name – name of the country
            • ID – id of the country
            • Description – description of the country
            • NameLat – name of the country in Latin
            • Code – code of the country
            • CodeLat – code of the country in Latin
            • Unicode – ISO-code of the country
            • IsIncoming – parameter for inner use
          • CountryID – id of the country in array data City
          • RegionID – id of the region in array data City
        • RegionID – id of the region
        • PriceType – availability of price (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
        • CountCosts – number of prices
        • CityID – id of the city
        • HotelCategoryID – id of the hotel category
      • Room – array of data Room
        • RoomType – array of data Type of the room
          • Name – name of the room type
          • ID – id of the room type
          • Description – description of the room type
          • NameLat – name of the room type in Latin
          • Code – code of the room type
          • CodeLat – code of the room type in Latin
          • Unicode – ISO-code of the room type
          • Places – number of places in room
          • ExPlaces – additional places in room
          • PrintOrder – additional places in room
        • RoomTypeID – id of room type
        • RoomCategory – array of data Room category
          • Name – name of the room category
          • ID – id of the room category
          • Description – description of the room category
          • NameLat – name of the room category in Latin
          • Code – code of the room category
          • CodeLat – code of the room category in Latin
          • Unicode – ISO-code of the room category
          • MainPlaces – number of main places
          • ExtraPlaces – number of additional places
          • IsMain – arameter of inner use
        • RoomCategoryID – id of the room category
        • RoomAccomodation – array of data Accommodation
          • Name – name of the accommodation
          • ID – id of the accommodation
          • Description – description of the accommodation
          • NameLat – name of the accommodation in Latin
          • Code – code of the accommodation
          • CodeLat – code of the accommodation in Latin
          • Unicode – ISO-code of the accommodation
          • PerRoom – per room/per person
          • AdultMainPlaces – number of main places for adults
          • ChildMainPlaces – number of main places for children
          • AdultExtraPlaces – number of additional places for adults
          • ChildExtraPlaces – number of additional places for children
          • MainPlaces – total number of main places
          • ExtraPlaces – total number of additional places
          • IsMain – parameter of inner use
          • AgeFrom – age of first child from
          • AgeTo – age of first child to
          • Age2From – age of second child from
          • Age2To – age of second child to
        • RoomAccomodationID – id of the accommodation
        • ID – id of the room
        • Name – name of the accommodation type
      • RoomID – id of the room
      • PansionID – id of the pansion
    • TransferService – parameters for service type TransferService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key - value)
        • ParameterPair Key – key
          • Value – value
              • Description - description
      • DetailBrutto – gross details
      • Notes – notes for the service
      • Name – name of the service (example for the hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00)
      • StartDay – not using
      • Duration – duration of the service
      • RateBrutto – currency of the gross
      • Brutto – price of the gross
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • Transfer – array of data Transfer
        • AdditionalParams – additional parameters (represents as a pair key – value)
          • ParameterPair Key – key
            • Value – value
        • Name – name of the transfer
        • ID – key of the transfer from table TransferDirecion
        • Description – description of the transfer
        • NameLat – name of the transfer in Latin
        • Code – code of the transfer
        • CodeLat – code of the transfer in Latin
        • Unicode – ISO-code of the transfer
        • PlaceFrom – name of the point from
        • PlaceTo – name of the point to
        • CityID – id of the city
        • RegionID – id of the region
      • Transport – array of data Transport
        • Name – name of the transport
        • ID – id of the transport
        • Description – description of the transport
        • NameLat – name of the transport in Latin
        • Code – code of the transport
        • CodeLat – code of the transport in Latin
        • Unicode – ISO-code of the transport
      • PointToID – id of the point to
      • CityKey – key of the city
      • PointToName – name of the point to
      • PointFromID – name of the point to
      • PointFromName – name of the point from
    • ExcursionService – parameters for the service type ExcursionService
      • ExternalID – неnot using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
        • Value – value
      • DetailBrutto – gross details
      • Notes – notes to the service
      • Name – name of the service (example for hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (In format YYYY-MM-DDT:00:00)
      • StartDay – not using
      • Duration – duration of service
      • RateBrutto – the currency of the gross
      • Brutto – gross price
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • CityKey – city key
      • ExcursionID – id of excursion
    • ExtraService – parameters for the service type ExtraService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – fax of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
        • Value – value
      • DetailBrutto – gross details
      • Notes – notes to the service
      • Name – name of the service (example for hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (In format YYYY-MM-DDT:00:00)
      • StartDay – not using
      • Duration – duration of service
      • RateBrutto – the currency of the gross
      • Brutto – gross price
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • CityKey – key of the city providing the service
      • IsPackage – attribute if the service is in package
      • Code – id of the service
      • HasDuration – has service duration or not
  • ID – key of the tour in external system (key of tour operator)
  • Name – name of the tour
  • Brutto – gross price of the tour
  • CountryID – id of the country of the tour
  • CityID – id of the city of the tour
  • PartnerID – id of buyer of the tour
  • AgentDiscount – agent discount
  • Status – status of the tour (Confirmed = 0, NotConfirmed = 1, WaitingConfirmation = 2, Canceled = 3, WaitingCancelation = 4)
  • StartDate – date of the beginning of the tour (in format YYYY-MM-DDT00:00:00)
  • EndDate – date of the end of the tour (in format YYYY-MM-DDT00:00:00)
  • Duration – duration
  • CreationDate – date of the creation of the tour (in format YYYY-MM-DDT00:00:00)
  • CreatorID – id of creator of the tour
  • Tourists – array of the tourists on the tour
    • Tourist – tourist
      • Sex – gender (key = value: Male = 0, Female = 1, Child = 2, Infant = 3)
      • BirthDate – date of birth of the touris (in format YYYY-MM-DDT00:00:00)*** FirstNameLat – name of the tourist in Latin
      • LastNameLat – surname of the tourist in Latin
      • AgeType – type of the age (Adult = 0, Child = 1, Infant = 2)
      • IsMain – sets attribute main tourist on the tour (Null, 0 – no, 1 – tourist is main)
      • ExternalID – parameter for the internal use
      • ID – id of the tourist (-1 for the new tour)
      • Phone – phone number of the tourist (sets according to the template)
      • Email – e-mail address of the tourist
      • ForeignPassport – foreign passport
        • Serie – series
        • Number – number
        • IssueDate –date of issue
        • EndDate – date of expire
      • ExternalID – not using
  • OwnerID – id of the creator of the tour
  • ExternalID – key of the tour in the database Interlook
  • TourOperatorID – key of the tour in external system (key of the tour operator)
  • TourOperatorCode – number from "customer reservation number"
  • AdditionalParams – additional parameters (providing as the pair key – value)
    • ParameterPair Key – key
    • Value – value
Example

The Invocation of method GetReservation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetReservation>
         <!--Optional:-->
         <meg:guid>6b311a75-ffa7-428b-8abe-420e9780ed4d</meg:guid>
         <meg:dgKey>37263</meg:dgKey>
      </meg:GetReservation>
   </soapenv:Body>
</soapenv:Envelope>

Retutning result for method GetReservation

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetReservationResponse xmlns="http://www.megatec.ru/">
         <GetReservationResult HasInvoices="false">
            <Rate>
               <Name>EU</Name>
               <ID>-44</ID>
               <IsMain>false</IsMain>
               <IsNational>false</IsNational>
            </Rate>
            <TouristServices>
               <TouristService>
                  <ID>368194</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168804</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368195</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168804</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368197</ID>
                  <ServiceID>168805</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368196</ID>
                  <ServiceID>168805</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368199</ID>
                  <ServiceID>168806</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368198</ID>
                  <ServiceID>168806</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368203</ID>
                  <ServiceID>168808</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368202</ID>
                  <ServiceID>168808</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368201</ID>
                  <ServiceID>168807</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368200</ID>
                  <ServiceID>168807</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368205</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168803</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368204</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168803</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
            </TouristServices>
            <Services>
               <Service xsi:type="HotelService">
                  <ExternalID>-1</ExternalID>
                  <Price>3850</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="CancellationPolicy">
                        <Value xsi:type="ArrayOfPenaltyCost">
                           <PenaltyCost>
                              <PolicyKey>-1</PolicyKey>
                              <DateFrom xsi:nil="true"/>
                              <DateTo>2022-08-15T00:00:00</DateTo>
                              <PenaltyValue>0</PenaltyValue>
                              <IsPercent>false</IsPercent>
                              <TotalPenalty>0</TotalPenalty>
                              <Description>If canceled before 15.08.2022, no penalty Penalty value is 0.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>125</PolicyKey>
                              <DateFrom>2022-08-15T00:00:00</DateFrom>
                              <DateTo>2022-08-16T23:59:59</DateTo>
                              <PenaltyValue>6</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>231</TotalPenalty>
                              <Description>If canceled in period 15.08.2022 - 16.08.2022, the penalty will be  6.00 % of the cost of accommodation Penalty value is 231.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>200</PolicyKey>
                              <DateFrom>2022-08-17T00:00:00</DateFrom>
                              <DateTo>2022-08-17T23:59:59</DateTo>
                              <PenaltyValue>11</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>423.5</TotalPenalty>
                              <Description>If canceled in period 17.08.2022 - 17.08.2022, the penalty will be  11.00 % of the cost of accommodation Penalty value is 423.50 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>123</PolicyKey>
                              <DateFrom>2022-08-18T00:00:00</DateFrom>
                              <DateTo>2022-08-19T23:59:59</DateTo>
                              <PenaltyValue>20</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>770</TotalPenalty>
                              <Description>If canceled in period 18.08.2022 - 19.08.2022, the penalty will be  20.00 % of the cost of accommodation Penalty value is 770.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>208</PolicyKey>
                              <DateFrom>2022-08-20T00:00:00</DateFrom>
                              <DateTo xsi:nil="true"/>
                              <PenaltyValue>20</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>770</TotalPenalty>
                              <Description>If canceled from 20.08.2022, the penalty will be 20.00 % of the cost of accommodation Penalty value is 770.00 EU</Description>
                           </PenaltyCost>
                        </Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(550,00[kolesnyk2/kolesnyk2]*7) * 1 room = 3850,00</DetailBrutto>
                  <Notes/>
                  <Name>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB</Name>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>8</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>3850</Brutto>
                  <ServiceClassID>0</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168804</ID>
                  <Status>
                     <Name>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB</Name>
                     <ID>1</ID>
                  </Status>
                  <Hotel>
                     <Name>Red</Name>
                     <ID>2930</ID>
                     <Description>4 stars (A)  (Ukraine\Kiev\Kiev)</Description>
                     <Code>Red</Code>
                     <City>
                        <Name>Kiev</Name>
                        <ID>80</ID>
                        <Code>IEV</Code>
                        <Country>
                           <Name>Ukraine</Name>
                           <ID>6</ID>
                           <IsIncoming>true</IsIncoming>
                        </Country>
                        <CountryID>6</CountryID>
                        <RegionID>28</RegionID>
                     </City>
                     <RegionID>28</RegionID>
                     <PriceType>None</PriceType>
                     <CountCosts xsi:nil="true"/>
                     <CityID>80</CityID>
                     <HotelCategoryID>4</HotelCategoryID>
                  </Hotel>
                  <Room>
                     <RoomType>
                        <Name/>
                        <ID>3</ID>
                        <Code>Double Room</Code>
                        <Places>2</Places>
                        <ExPlaces>2</ExPlaces>
                        <PrintOrder>0</PrintOrder>
                     </RoomType>
                     <RoomTypeID>3</RoomTypeID>
                     <RoomCategory>
                        <Name>Jakuzzi</Name>
                        <ID>20</ID>
                        <MainPlaces>0</MainPlaces>
                        <ExtraPlaces>0</ExtraPlaces>
                        <IsMain>false</IsMain>
                     </RoomCategory>
                     <RoomCategoryID>20</RoomCategoryID>
                     <RoomAccomodation>
                        <Name>2AD</Name>
                        <ID>5558</ID>
                        <PerRoom>false</PerRoom>
                        <AdultMainPalces>0</AdultMainPalces>
                        <ChildMainPalces>0</ChildMainPalces>
                        <AdultExtraPalces>0</AdultExtraPalces>
                        <ChildExtraPalces>0</ChildExtraPalces>
                        <MainPlaces>2</MainPlaces>
                        <ExtraPlaces>0</ExtraPlaces>
                        <IsMain>true</IsMain>
                        <AgeFrom>0</AgeFrom>
                        <AgeTo>0</AgeTo>
                        <Age2From>0</Age2From>
                        <Age2To>0</Age2To>
                     </RoomAccomodation>
                     <RoomAccomodationID>5558</RoomAccomodationID>
                     <ID>0</ID>
                     <Name/>
                  </Room>
                  <RoomID>0</RoomID>
                  <PansionID>3</PansionID>
               </Service>
               <Service xsi:type="TransferService">
                  <ExternalID>-2</ExternalID>
                  <Price>240</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="CityToKey">
                        <Value xsi:type="xsd:int">80</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointFromId">
                        <Value xsi:type="xsd:int">1000028</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointToId">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1171</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(120,00(0-120)[Vedi_test/Vedi_test] * 2 pax) = 240,00</DetailBrutto>
                  <Notes/>
                  <Name>TRF::Arrival transfer/Mini Bus/Kiev ap-Red/Kiev/</Name>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>240</Brutto>
                  <ServiceClassID>2</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168805</ID>
                  <Status>
                     <Name>TRF::Arrival transfer/Mini Bus/Kiev ap-Red/Kiev/</Name>
                     <ID>2</ID>
                  </Status>
                  <Transfer>
                     <AdditionalParams>
                        <ParameterPair Key="SlKey">
                           <Value xsi:type="xsd:int">1</Value>
                        </ParameterPair>
                     </AdditionalParams>
                     <Name/>
                     <ID>606</ID>
                  </Transfer>
                  <Transport>
                     <Name>Mini Bus</Name>
                     <ID>4</ID>
                  </Transport>
                  <PointToId>2930</PointToId>
                  <CityKey>80</CityKey>
                  <PointToName>Red</PointToName>
                  <PointFromId>1000028</PointFromId>
                  <PointFromName>Kiev ap</PointFromName>
               </Service>
               <Service xsi:type="TransferService">
                  <ExternalID>-3</ExternalID>
                  <Price>60</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="CityToKey">
                        <Value xsi:type="xsd:int">80</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointFromId">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointToId">
                        <Value xsi:type="xsd:int">1000028</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1171</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(15,00(0-120)[Vedi_test/Vedi_test] * 2 pax) = 30,00</DetailBrutto>
                  <Notes/>
                  <Name>TRF::Departure transfer/Group/Red-Kiev ap/Kiev/</Name>
                  <StartDate>2022-08-27T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>60</Brutto>
                  <ServiceClassID>2</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168806</ID>
                  <Status>
                     <Name>TRF::Departure transfer/Group/Red-Kiev ap/Kiev/</Name>
                     <ID>2</ID>
                  </Status>
                  <Transfer>
                     <AdditionalParams>
                        <ParameterPair Key="SlKey">
                           <Value xsi:type="xsd:int">2</Value>
                        </ParameterPair>
                     </AdditionalParams>
                     <Name/>
                     <ID>608</ID>
                  </Transfer>
                  <Transport>
                     <Name>Group</Name>
                     <ID>2</ID>
                  </Transport>
                  <PointToId>1000028</PointToId>
                  <CityKey>80</CityKey>
                  <PointToName>Kiev ap</PointToName>
                  <PointFromId>2930</PointFromId>
                  <PointFromName>Red</PointFromName>
               </Service>
               <Service xsi:type="ExcursionService">
                  <ExternalID>-5</ExternalID>
                  <Price>120</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1035</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(50,00(0-120)[test_exc] * 2 pax) = 100,00</DetailBrutto>
                  <Notes/>
                  <Name>EXC::Kiev City</Name>
                  <StartDate>2022-08-23T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>120</Brutto>
                  <ServiceClassID>1</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168808</ID>
                  <Status>
                     <Name>EXC::Kiev City</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <ExcursionID>714</ExcursionID>
               </Service>
               <Service xsi:type="ExtraService">
                  <ExternalID xsi:nil="true"/>
                  <Price>200</Price>
                  <NMen>2</NMen>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="HotelDlKey">
                        <Value xsi:type="xsd:int">168804</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1035</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(100,00(0-120)[Регресс] * 2 pax * 1 days) = 200,00</DetailBrutto>
                  <Notes/>
                  <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                  <StartDate>2022-08-23T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>200</Brutto>
                  <ServiceClassID>79</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168807</ID>
                  <Status>
                     <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <IsPackage>false</IsPackage>
                  <Code>694</Code>
                  <HasDuration>false</HasDuration>
               </Service>
               <Service xsi:type="ExtraService">
                  <ExternalID xsi:nil="true"/>
                  <Price>478</Price>
                  <NMen>2</NMen>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="HotelDlKey">
                        <Value xsi:type="xsd:int">168804</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(239,00(0-120)[тестэкстрарэд220822] * 2 pax * 1 days) = 478,00</DetailBrutto>
                  <Notes/>
                  <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                  <StartDate>2022-08-22T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>478</Brutto>
                  <ServiceClassID>102</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168803</ID>
                  <Status>
                     <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <IsPackage>false</IsPackage>
                  <Code>713</Code>
                  <HasDuration>false</HasDuration>
               </Service>
            </Services>
            <ID>37263</ID>
            <Name>MT140101A62</Name>
            <Brutto>4948</Brutto>
            <CountryID>6</CountryID>
            <CityID>80</CityID>
            <PartnerID>1035</PartnerID>
            <Status>WaitingConfirmation</Status>
            <StartDate>2022-08-20T00:00:00</StartDate>
            <EndDate>2022-08-27T00:00:00</EndDate>
            <Duration>7</Duration>
            <CreationDate>2022-03-04T16:56:48.953</CreationDate>
            <CreatorID>101</CreatorID>
            <Tourists>
               <Tourist Sex="Male" BirthDate="1979-08-10T00:00:00" FirstNameLat="Alex" SurNameLat="Vladimirov" AgeType="Adult" IsMain="true" ID="88548" Phone="89610553087" Email="dfj@ety.ua">
                  <ForeignPassport Serie="1234" Number="123456" EndDate="2025-01-01T00:00:00"/>
                  <ExternalID>0</ExternalID>
               </Tourist>
               <Tourist Sex="Male" BirthDate="1972-08-11T00:00:00" FirstNameLat="Alexa" SurNameLat="Vladimirovicha" AgeType="Adult" IsMain="false" ID="88549" Phone="" Email="">
                  <ForeignPassport Serie="" Number="" EndDate="2025-01-01T00:00:00"/>
                  <ExternalID>0</ExternalID>
               </Tourist>
            </Tourists>
            <OwnerID xsi:nil="true"/>
            <TourOperatorID>-1</TourOperatorID>
            <TourOperatorCode>0</TourOperatorCode>
            <ExternalID>0</ExternalID>
            <AdditionalParams>
               <ParameterPair Key="PcnId">
                  <Value xsi:type="xsd:int">116</Value>
               </ParameterPair>
            </AdditionalParams>
         </GetReservationResult>
      </GetReservationResponse>
   </soap:Body>
</soap:Envelope>


GetArrivalsByDate (Getting a list of tourists on the start date of the tour)

The method returns data on the list of arrivals in json format. The method returns data on the main tourist from the reservation. If the main tourist does not have a phone number set, the data of the next tourist on the ticket, who has a phone number set, will be returning.
If the main tourist's hotel accommodation service is canceled, the data of the next tourist who has a phone number will be returning.
The ShowhotelReservationsByDate setting is responsible for the accessibility of the method for the user. By default, the setting is disabled.
To enable the setting, you need to go from the Master-Interlook client application to Master-Interlook → Settings → Online users → User → Person connection → edit role.
If the current user does not have the ShowhotelReservationsByDate setting enabled – there will be no access to this method, a message about insufficient rights will be returning in response. Verification is performed by the authentication identifier Guid.

Настройка доступа
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • ArrivalDate * – date of arrival
  • CountryKey – key of the country
  • RegionKey – key of the region
  • CityKey – key of the city
  • HotelKey – key of the hotel

Returning result:

  • GetArrivalsByDateResult – result of the search
    • ReservationId – the reservation number in the Interlook client
    • Email – e-mail address if available
    • Name – the first and last name of the tourist
    • Phone – phone number (displayed in the format of digits only, processed when forming a response)
    • CheckIn – date of arrival
    • CheckOut – departure date
    • HotelId – departure date
    • HasTransferArrival – transfer to the hotel (true – there is a transfer to the hotel, if there is no transfer in the application, false is output)
    • FlightArrival – direct flight number
    • FlightDeparture – return flight number
    • FlightArrivalTime – departure time of a direct flight
    • FlightDepartureTime – departure time of the return flight
Example

The invocation of the method GetArrivalsByDate

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
<soapenv:Header/>
<soapenv:Body>
<meg:GetArrivalsByDate>
<!--Optional:-->
<meg:guid>96ab8f68-9a13-4845-b338-fdb29be4970b</meg:guid>
<meg:arrivalDate>2021-07-15</meg:arrivalDate>
</meg:GetArrivalsByDate>
</soapenv:Body>
</soapenv:Envelope>

Returning result of the method GetArrivalsByDate

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetArrivalsByDateResponse xmlns="http://www.megatec.ru/">
         <GetArrivalsByDateResult>[{"reservationId":"MT110831A01","email":"","name":"Gusn Genna","phone":"","checkIn"
:"31.08.2021","checkOut":"05.09.2021","hotelId":2945,"hasTransferArrival":false,"hasTransferDeparture"
:false,"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""}]</GetArrivalsByDateResult>
      </GetArrivalsByDateResponse>
   </soap:Body>
</soap:Envelope>


GetDeparturesByDate (Receiving the list of the tourists for the date of the end of the tour)

The method returns data on the list of departures in json format. The method returns data on the main tourist from the reservation. If the main tourist does not have a phone number set, the data of the next tourist on the ticket, who has a phone number set, will be returning.
If the main tourist's hotel accommodation service is canceled, the data of the next tourist who has a phone number will be returning.
The ShowhotelReservationsByDate setting is responsible for the accessibility of the method for the user. By default, the setting is disabled.
To enable the setting, you need to go from the Master-Interlook client application to Master-Interlook → Settings → Online users → User → Person connection → edit role.
If the current user does not have the ShowhotelReservationsByDate setting enabled – there will be no access to this method, a message about insufficient rights will be returning in response. Verification is performed by the authentication identifier Guid.

Настройка доступа
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DepartureDate * – date of departure
  • CountryKey – key of the country
  • RegionKey – key of the country
  • CityKey – key of the city
  • HotelKey – key of the hotel

Returning result:

  • GetDeparturesByDateResult – result of the search
    • ReservationId – the reservation number in the Interlook client
    • Email – e-mail address if available
    • Name – the first and last name of the tourist
    • Phone – phone number (displayed in the format of digits only, processed when forming a response)
    • CheckIn – date of arrival
    • checkOut – departure date
    • HotelId – hotel key
    • HasTransferArrival – transfer to the hotel (true – there is a transfer to the hotel, if there is no transfer in the application, false is output)
    • HasTransferDeparture – transfer from the hotel (true – there is a transfer to the hotel, if there is no transfer in the application, false is output)
    • FlightArrival – direct flight number
    • FlightDeparture – return flight number
    • FlightArrivalTime – departure time of a direct flight
    • FlightDepartureTime – departure time of the return flight
Example

The invocation of the method GetDeparturesByDate

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetDeparturesByDate>
         <!--Optional:-->
         <meg:guid>a1b232d3-6971-4ede-8ac3-54f43d43c867</meg:guid>
         <meg:departureDate>2021-07-27</meg:departureDate>
      </meg:GetDeparturesByDate>
   </soapenv:Body>
</soapenv:Envelope>

Returning result for the method GetDeparturesByDate

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetDeparturesByDateResponse xmlns="http://www.megatec.ru/">
         <GetDeparturesByDateResult>[{"reservationId":"MT110714A02","email":"","name":"dfsgd gfjf","phone":"","checkIn":"14.07.2021",
"checkOut":"27.07.2021","hotelId":2940,"hasTransferArrival":false,"hasTransferDeparture"
:false,"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""},{"reservationId":"MT110713A02","email":"","name":"eter rtet","phone":""
,"checkIn":"13.07.2021","checkOut":"27.07.2021","hotelId":2940,"hasTransferArrival":false,"hasTransferDeparture":false,
"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""}]</GetDeparturesByDateResult>
      </GetDeparturesByDateResponse>
   </soap:Body>
</soap:Envelope>


CancelReservation (Cancellation of the reservation)

The method provides the cancellation of the reservation.
The output of the method results is regulated by the license.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DgKey * – key of the reservation (not the number)
  • AnnulReasonID * – key of the reason of the cancellation (1001 – Cancel by the touroperator, 1009 – sdf. If such a cancellation reason key is not available in the database, we will receive the message. There is no this annulating reason in database))
  • Note – comment for the cancellation

Returning results.

  • CancelReservationResult – result of the cancellation.

In case of successful cancellation in response we receive full description of the deleted reservation with the date of the cancellation.
In case of an error we receive a transcript of the error in response.
If one of the required parameters is missing or the value is incorrect, we will receive notification" Check the parameter 'dgKey' = 0. There is no such reservation in the database".

Example

The invocation of the method CancelReservation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CancelReservation>
         <!--Optional:-->
         <meg:guid>e5910963-6f5a-4c18-8799-34417675bfe9</meg:guid>
         <meg:dgKey>36018</meg:dgKey>
         <meg:annulReasonID>1001</meg:annulReasonID>
         <!--Optional:-->
         <meg:note>Проверка штрафа</meg:note>
      </meg:CancelReservation>
   </soapenv:Body>
</soapenv:Envelope>

Returning result for the method CancelReservation

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CancelReservationResponse xmlns="http://www.megatec.ru/">
         <CancelReservationResult>
         HTL::Kiev/Maska/Double Room/2AD/Jakuzzi/BB - For cancellation date 19.08.2021, 
         the penalty is 1 night(s). Penalty value is 19.80 EU</CancelReservationResult>
      </CancelReservationResponse>
   </soap:Body>
</soap:Envelope>


CancelReservationExtended (Cancellation of the reservation with input of information about penalties)

The method cancels the reservation and provides information about the penalty.
The output of the method results is regulated by the license.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DgKey * – key of the reservation (not the number)
  • AnnulReasonID * – key of the reason of the cancellation (1001 – Cancel by the touroperator, 1009 – sdf. If such a cancellation reason key is not available in the database, we will receive the message. There is no this annulating reason in database)
  • Note – comment for the cancellation

Returning results.

  • Number – number of the service
  • ResultMessage – cancellation result with full description. In case of successful cancellation, we receive a full description of the deleted reservation with the cancellation date in the response. In case of an error, we receive a transcript of the error in response.
    • PenaltyCost - an object with the penalty value and the conditions under which the penalty was calculated
      • PolicyKey - the key of the penalty condition in the database (-1 is a "pseudo condition", before the beginning of all conditions, or after the end of all, or there are no conditions at all)*** DateFrom - the start date of the condition in the format YYYY-MM-DDT00:00:00 (can be null, usually for a "pseudo-condition": "without penalty until ...")
      • DateTo - end date (can be null, for "pseudo-condition" : "100% after ...")
      • PenaltyValue - penalty amount
      • IsPercent - percentage indicating that the penalty is in "%" (true) or in "nights" (false)
      • TotalPenalty - full amount of the penalty
      • Description - description


Example

The invocation of the method CancelReservation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CancelReservationExtended>
         <!--Optional:-->
         <meg:guid>16e129b9-5e69-4f53-808d-2fca840a32c1</meg:guid>
         <meg:dgKey>37084</meg:dgKey>
         <meg:annulReasonID>1001</meg:annulReasonID>
         <!--Optional:-->
         <meg:note>567658</meg:note>
      </meg:CancelReservationExtended>
   </soapenv:Body>
</soapenv:Envelope>

Returning result for method CancelReservation

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CancelReservationExtendedResponse xmlns="http://www.megatec.ru/">
         <CancelReservationExtendedResult>
            <CanceledServiceResult>
               <Number>1</Number>
               <ResultMessage>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB - If canceled in period 15.02.2022 - 16.02.2022, the penalty will be  20.00 % of the cost of accommodation Penalty value is 840.00 EU</ResultMessage>
               <PenaltyCost>
                  <PolicyKey>123</PolicyKey>
                  <DateFrom>2022-02-15T00:00:00</DateFrom>
                  <DateTo>2022-02-16T23:59:59</DateTo>
                  <PenaltyValue>20</PenaltyValue>
                  <IsPercent>true</IsPercent>
                  <TotalPenalty>840</TotalPenalty>
                  <Description>If canceled in period 15.02.2022 - 16.02.2022, the penalty will be  20.00 % of the cost of accommodation Penalty value is 840.00 EU</Description>
               </PenaltyCost>
            </CanceledServiceResult>
         </CancelReservationExtendedResult>
      </CancelReservationExtendedResponse>
   </soap:Body>
</soap:Envelope>


GetReservationsFrom (Selection of data by the date of creating of the reservation)

The method outputs data by the date of creation of the voucher.

Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DateFrom * – date from
  • DateTo – date till

Returning results:

  • Key – reservation key
  • Code – reservation number

In case of errors in the request, we receive a message in the response with a transcript of the errors.
In case of an error in the GUID, we will receive the message "Invalid user or password (Invalid GUID)."
If the start date is bigger than the end date, we will receive the message "Parameter 'DateTo' can't be less than 'DateFrom'."
If one of the required parameters is missing, we get the message "Parameter '<parameter value>' is required."

Example

The invocation of the method GetReservationsFrom

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetReservationsFrom>
         <!--Optional:-->
         <meg:guid>b4c08d98-0c24-4e34-abcc-e7794e3225a8</meg:guid>
         <meg:dateFrom>2021-08-17</meg:dateFrom>
         <meg:dateTo>2021-09-17</meg:dateTo>
      </meg:GetReservationsFrom>
   </soapenv:Body>
</soapenv:Envelope>

Returning result GetReservationsFrom

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetReservationsFromResponse xmlns="http://www.megatec.ru/">
         <GetReservationsFromResult Message="Ok">
            <Data>
               <ReservationKeyCode Key="35990" Code="MT110820A0J"/>
               <ReservationKeyCode Key="35991" Code="MT110820A0K"/>
               <ReservationKeyCode Key="35992" Code="MT110821A01"/>
               <ReservationKeyCode Key="35993" Code="MT110821A02"/>
               <ReservationKeyCode Key="35994" Code="MT110821A03"/>
               <ReservationKeyCode Key="35995" Code="MT110820A0L"/>
               <ReservationKeyCode Key="35996" Code="MT110820A0M"/>
               <ReservationKeyCode Key="35997" Code="MT110820A0N"/>
               <ReservationKeyCode Key="35998" Code="MT110820A0P"/>
               <ReservationKeyCode Key="35999" Code="MT110820A0Q"/>
               <ReservationKeyCode Key="36000" Code="MT110820A0R"/>
               <ReservationKeyCode Key="36001" Code="MT110820A0S"/>
               <ReservationKeyCode Key="36002" Code="MT110820A0T"/>
               <ReservationKeyCode Key="36003" Code="MT110820A0U"/>
               <ReservationKeyCode Key="36004" Code="MT110820A0V"/>
               <ReservationKeyCode Key="36005" Code="MT110820A0W"/>
               <ReservationKeyCode Key="36006" Code="MT110820A0X"/>
               <ReservationKeyCode Key="36007" Code="MT110820A0Y"/>
               <ReservationKeyCode Key="36008" Code="MT110820A0Z"/>
               <ReservationKeyCode Key="36009" Code="MT110820A10"/>
               <ReservationKeyCode Key="36010" Code="MT110820A11"/>
               <ReservationKeyCode Key="36011" Code="MT110820A12"/>
               <ReservationKeyCode Key="36012" Code="MT110820A13"/>
               <ReservationKeyCode Key="36013" Code="MT110820A14"/>
               <ReservationKeyCode Key="36014" Code="MT110829A03"/>
               <ReservationKeyCode Key="36015" Code="MT110829A04"/>
               <ReservationKeyCode Key="36016" Code="MT110827A01"/>
               <ReservationKeyCode Key="36017" Code="MT110827A02"/>
            </Data>
         </GetReservationsFromResult>
      </GetReservationsFromResponse>
   </soap:Body>
</soap:Envelope>


CreateReservationMessage (Creating message for the reservation)

The method creates a message for a specific reservation.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DgKey * – ticket key
  • Message * – text of the message
  • SenderName * – the name of the sender of the message

Returning result: does not return a result

Example

The invocation of the method CreateReservationMessage

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CreateReservationMessage>
         <!--Optional:-->
         <meg:guid>b4c08d98-0c24-4e34-abcc-e7794e3225a8</meg:guid>
         <meg:dgKey>35950</meg:dgKey>
         <!--Optional:-->
         <meg:message>testmessage</meg:message>
         <!--Optional:-->
         <meg:senderName>testsender</meg:senderName>
      </meg:CreateReservationMessage>
   </soapenv:Body>
</soapenv:Envelope>

Returning result of the method CreateReservationMessage

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CreateReservationMessageResponse xmlns="http://www.megatec.ru/"/>
   </soap:Body>
</soap:Envelope>


GetReservationMessages (Receiving messages for the reservation)

The method receives messages for a specific reservation.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DgKey * – reservation key
  • MessageDirection * – message location directory (default value 1)

Returning results:

  • DogovorMessageItem – search result
    • Id – message ID
    • IsOutgouing – outgoing (true – outgoing, false – incoming)
    • DogovorId – reservation number
    • DateCreate – date the message was created
    • SenderName – the sender's name
    • IsRead – read (true – read, false – not read)
    • TourOperKey – tour operator's key
    • Processed – processing status
    • Text – the text of the message

In case of an error, a transcript of the error will be received.
If there is an error in the Guid, we get the message: "Invalid user or password (Invalid GUID)".
If there is an error in the reservation key, we will receive the message: "Check the parameter 'dgKey' = <value in the request>. There is no any reservation for you in the database".
If there are no messages in the selected directory, we will get the answer: "Ok. There is no any message with 'messageDirection' = <value in the request>".

Example

The invocation of the method GetReservationMessages

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetReservationMessages>
         <!--Optional:-->
         <meg:guid>b4c08d98-0c24-4e34-abcc-e7794e3225a8</meg:guid>
         <meg:dgKey>35950</meg:dgKey>
         <meg:messageDirection>1</meg:messageDirection>
      </meg:GetReservationMessages>
   </soapenv:Body>
</soapenv:Envelope>

Returning result of the method GetReservationMessages

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetReservationMessagesResponse xmlns="http://www.megatec.ru/">
         <GetReservationMessagesResult Message="Ok">
            <Data>
               <DogovorMessageItem>
                  <Id>778841</Id>
                  <IsOutgouing>false</IsOutgouing>
                  <DogovorId>35950</DogovorId>
                  <DateCreate>2021-08-23T09:44:13.49</DateCreate>
                  <SenderName>testsender</SenderName>
                  <IsRead>false</IsRead>
                  <TourOperKey>1035</TourOperKey>
                  <Processed>1</Processed>
                  <Text>testmessage</Text>
               </DogovorMessageItem>
               <DogovorMessageItem>
                  <Id>778838</Id>
                  <IsOutgouing>false</IsOutgouing>
                  <DogovorId>35950</DogovorId>
                  <DateCreate>2021-08-23T09:40:37.2</DateCreate>
                  <SenderName>testsender</SenderName>
                  <IsRead>false</IsRead>
                  <TourOperKey>1035</TourOperKey>
                  <Processed>1</Processed>
                  <Text>testmessage</Text>
               </DogovorMessageItem>
               <DogovorMessageItem>
                  <Id>778837</Id>
                  <IsOutgouing>false</IsOutgouing>
                  <DogovorId>35950</DogovorId>
                  <DateCreate>2021-08-23T09:40:28.177</DateCreate>
                  <SenderName>testsender</SenderName>
                  <IsRead>false</IsRead>
                  <TourOperKey>1035</TourOperKey>
                  <Processed>1</Processed>
                  <Text>estmessage</Text>
               </DogovorMessageItem>
            </Data>
         </GetReservationMessagesResult>
      </GetReservationMessagesResponse>
   </soap:Body>
</soap:Envelope>


Search methods

SearchHotelServices (Receiving options of accommodations under request parameters)

The method retrieves possible accommodation options according to the request parameters.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – object with request parameters
    • PageSize * – the page size of the returning data, that is, how many calculated prices to stop at and give the search result. If PageSize = 5 is set, then the search will go by prices and as soon as it gets 5 calculated (but it can sort through prices more, not all prices are suitable) prices, it will output them as a result. The number of sorted internal prices will be displayed in the TotalCount line.
    • RowIndexFrom * – from which line the result must be output from. For the first page, specify RowIndexFrom = 0 – the search starts from the very first price. To get the second page or subsequent search pages in RowIndexFrom, you need to pass the internal price number at which the search for the previous price page stopped (this number will be in the response in the TotalCount line)
    • DateFrom * – date «from»
    • DateTo * – date «to»
    • RegionKeys – ids of regions (if cities and hotels are not specified – search wiil be made for all regions, RegionKeys or CityKeys or HotelKeys must be filled in)
    • CityKeys – ids of cities (if hotels are not specified, we are looking for a search for all hotels in cities, RegionKeys, CityKeys or HotelKeys must be filled in)
    • HotelKeys – hotel IDs (if hotels are specified, search will be made only for them, RegionKeys, CityKeys or HotelKeys must be filled in)
    • RoomDescriptions – IDs of room descriptions. If were not transferred it will search for all
    • PansionKeys – pansion IDs. If were not transferred it will search for all
    • Ages – age of children (if not specified, then accommodation with children will not be searched, tourists are considered adults)
    • Pax * – accommodation
    • Tariffs – IDs of tariffs for which to calculate the result. If you do not transmit it, it will be counted according to the Ordinary tariff
    • CacheGuid – the search ID that speeds up the navigation through the pages. You don't need to transmit it during the first search. The search will return this ID in the ResponseGuid parameter. Then, using paging, we transmit this ID further (but only within the framework of one search!)
    • ResultView – the type of output of the result (1 – sorting by daily price with grouping by hotels, 2 – sorting by daily price)
    • QuotaTypes – filter by quota type (0 – request, 1 – quota, 2 – stop). We get all possible results. If not specified, the value=0
    • Mode – do not specify or specify 0

The returning result:

  • DataRequestResult – the search result
    • ResultTable – the table with the result
      • HotelServices – the hotel service
        • HotelName – the name of the hotel
        • HotelKey – the hotel key
        • RtCode – the room type
        • RtKey – the room type key
        • RcName – the room category
        • RcKey – the room category key
        • RdName – type+room category
        • RdKey – key type+room category
        • AcName – type of accommodation
        • AcKey – the key of the accommodation type
        • PnCode – the type of pansion
        • PnKey – the type of pansion key
        • TotalCost – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
        • Cost – the amount of the mandatory surcharge Cost
        • AddHotsCost – the amount of the mandatory AdHot surcharge
        • AddHotsWithCosts – the amount of the mandatory surcharge of the AdHot type With costs (returns -1 if the display setting of the Adhot type With Costs is in the Integration Service Interlook config. Description.
        • DetailBrutto – the price calculation formula
        • QuoteType – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
        • CountryKey – the key of the country where the service is provided
        • CityKey – the key of the city where the service is provided
        • CityName – the name of the city where the service is provided
        • HotelWebSite – the address of the hotel's website
        • TariffId – the tariff ID
        • TariffName – the name of the tariff
        • TariffDescription – the description of the tariff
        • AddHots – the Adhot ID
        • ContractPrKey – the key of the partner providing the service
        • HotelImage – the hotel photo
        • Rate – the currency
        • AddHotsWithCostID – ID of AddHotsWithCost
    • ColunmNames – the name of table columns
      • HotelName – the name of the hotel
      • HotelKey – the hotel key
      • RtCode – the room type
      • RtKey – the room type key
      • RcName – the room category
      • RcKey – the room category key
      • RdName – the type+room category
      • RdKey – the key type+room category
      • AcName – type of accommodation
      • AcKey – the key of the accommodation type
      • PnCode – the type of pansion
      • PnKey – the type of pansion key
      • TotalCost – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
      • Cost – the amount of the mandatory surcharge Cost
      • AddHotsCost – the amount of the mandatory AddHotsCost surcharge
      • DetailBrutto – the price calculation formula
      • QuoteType – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
      • CountryKey – the key of the country where the service is provided
      • CityKey – the key of the city where the service is provided
      • CityName – the name of the city where the service is provided
      • HotelWebSite – the address of the hotel's website
      • TariffId – the tariff ID
      • TariffName – the name of the tariff
      • TariffDescription – the description of the tariff
      • AddHots – the Adhot ID
      • ContractPrKey – the key of the partner providing the service
      • HotelImage – the hotel photo
      • Rate – the currency
      • AddHotsWithCostID – ID of AddHotsWithCost
    • TotalCount – the number of the line where the search ended
    • PageSize – the number of data rows returning
    • PageIndex – the number of the line from which the search was started
    • IsLastPage – when displaying the last page of search results with hotels, the IsLastPage parameter takes the value true. If the IsLastPage parameter is not processed, the following totalCount value will return an empty result for hotels
    • AdditionalData – the list of required Addhots
      • ArrayOfAnyType – an array of service types
        • anyType – the type of service
          • ExternalID – the parameter for internal use
          • Price – the cost
          • NMen – the number of tourists in the reservation
          • PartnerID – the Partner ID
          • Quota – the quota for the service
          • PacketKey – the package key
          • AdditionalParams – an array of additional parameters (represented as a key – value pair)
            • ParameterPair Key – the key
              • Value – the value
          • Tourists – the tourists
          • DetailNetto – netto details
          • DetailBrutto – gross details
          • Notes – notes to the service
          • Name – the name of the service
          • StartDate – the date of providing service (in the format YYYY-MM-DDT00:00:00)
          • StartDay – the day of providing service
          • Duration – the duration of the service
          • RateBrutto – the gross currency
          • Brutto – the gross price
          • RateNetto – the netto currency
          • Netto – the netto price
          • ServiceClassID – the ID of the service class
          • TouristCount – the number of tourists using the service
          • ID – the service ID (-1 for a new reservation)
          • Status – the service status
            • Name – the name of the service status
            • ID – ID of the service status
            • Description – the description of the service status
            • NameLat – the name of the service status in Latin
            • Code – the service status code
            • CodeLat – the service status code in Latin
            • Unicode – ISO code of the service status
          • CityKey – the key of the city where the service is provided
          • IsPackage – the attribute of a package service
          • Code – the service ID
          • HasDuration – is the service with or without duration
    • ResponseGuid – ID of the response that needs to be transmitted if we are moving through the same search using paging

In case of errors in the request, we receive a message in the response with a transcript of the errors.
In case of an error in GUID we receive the message "Invalid user or password (Invalid GUID)."
If the start date is bigger than the end date, we will receive the message "The parameter 'DateTo' can not be less than 'DateFrom'."
If one of the required parameters is missing, we will receive the message "The parameter '<parameter value>' is required."
If there is no hotel key, city key, region key, we will receive the message "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'."

Example

The invocation of the method SearchHotelServices

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
<meg:SearchHotelServices>
<!--Optional:-->
         <meg:guid>ef5bafbc-722f-4d8b-bdd5-844e8633788f</meg:guid>
         <!--Optional:-->
         <meg:request>
<meg:PageSize>100000</meg:PageSize>
            <meg:RowIndexFrom>1</meg:RowIndexFrom>
            <meg:DateFrom>2021-12-01</meg:DateFrom>
            <meg:DateTo>2021-12-22</meg:DateTo>
            <!--Optional:-->
<meg:RegionKeys>
               <!--Zero or more repetitions:-->
               <meg:int>28</meg:int>
            </meg:RegionKeys>
            <!--Optional:-->
<meg:HotelKeys>
               <!--Zero or more repetitions:-->
               <meg:int>2932</meg:int>
           </meg:HotelKeys>
            <!--Optional:-->
<meg:Ages>
<!--Zero or more repetitions:-->
            </meg:Ages>
            <meg:Pax>2</meg:Pax>
            <!--Optional:-->
<meg:CacheGuid>9f542137-9403-472c-807d-ae839fb2ee29</meg:CacheGuid>
<meg:ResultView>1</meg:ResultView>
            <meg:Mode>0</meg:Mode>
            <!--Optional:-->
<meg:QuotaTypes>
               <!--Zero or more repetitions:-->
             </meg:QuotaTypes>
         </meg:request>
      </meg:SearchHotelServices>
   </soapenv:Body>
</soapenv:Envelope>

Returning result of the method SearchHotelServices

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <SearchHotelServicesResponse xmlns="http://www.megatec.ru/">
         <SearchHotelServicesResult Message="Ok">
            <Data>
               <DataRequestResult>
                  <ResultTable>
                     <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
                        <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="HotelServices" msdata:UseCurrentLocale="true">
                           <xs:complexType>
                              <xs:choice minOccurs="0" maxOccurs="unbounded">
                                 <xs:element name="HotelServices">
                                    <xs:complexType>
                                       <xs:sequence>
                                          <xs:element name="HotelName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RtCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RtKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RdName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RdKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="PnCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="PnKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TotalCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="Cost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHotsCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHotsWithCosts" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="DetailBrutto" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="QuoteType" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CountryKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CityKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CityName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelWebSite" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffId" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffDescription" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHots" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="ContractPrKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelImage" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="Rate" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHotsWithCostID" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                       </xs:sequence>
                                    </xs:complexType>
                                 </xs:element>
                              </xs:choice>
                           </xs:complexType>
                        </xs:element>
                     </xs:schema>
                     <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
                        <DocumentElement xmlns="">
                           <HotelServices diffgr:id="HotelServices1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room</RtCode>
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</RtKey>
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Side Sea View</RcName>
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">8</RcKey>
                              <RdName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room Side Sea View</RdName>
                              <RdKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">1599</RdKey>
                              <AcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">2AD</AcName>
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
                              <PnCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">BB</PnCode>
                              <PnKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</PnKey>
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">6915.0000</TotalCost>
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">6825.00</Cost>
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">30.00</AddHotsCost>
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">60.00</AddHotsWithCosts>
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(325,00[kolesnyk2]*21) * 1 room = 6825,00</DetailBrutto>
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">-1</AddHots>
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
                              <AddHotsWithCostID xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">-3,-4</AddHotsWithCostID>
                           </HotelServices>
                           <HotelServices diffgr:id="HotelServices2" msdata:rowOrder="1" diffgr:hasChanges="inserted">
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Junior Suite</RtCode>
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">45</RtKey>
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Side Sea View</RcName>
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">8</RcKey>
                              <RdName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Junior Suite Side Sea View</RdName>
                              <RdKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2480</RdKey>
                              <AcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">2AD</AcName>
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
                              <PnCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">HB</PnCode>
                              <PnKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">4</PnKey>
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">11335.0000</TotalCost>
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">11235.00</Cost>
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">40.00</AddHotsCost>
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">60.00</AddHotsWithCosts>
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(535,00[kolesnyk2]*21) * 1 room = 11235,00</DetailBrutto>
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">-2</AddHots>
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
                              <AddHotsWithCostID xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">-7,-8</AddHotsWithCostID>
                           </HotelServices>
                           <HotelServices diffgr:id="HotelServices3" msdata:rowOrder="2" diffgr:hasChanges="inserted">
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Junior Suite</RtCode>
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">45</RtKey>
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Jakuzzi</RcName>
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">20</RcKey>
                              <RdName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Junior Suite Jakuzzi</RdName>
                              <RdKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">46528</RdKey>
                              <AcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">2AD</AcName>
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
                              <PnCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">HB</PnCode>
                              <PnKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">4</PnKey>
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">11343.0000</TotalCost>
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">11235.00</Cost>
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">48.00</AddHotsCost>
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">60.00</AddHotsWithCosts>
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(535,00[kolesnyk2]*21) * 1 room = 11235,00</DetailBrutto>
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</AddHots>
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
                              <AddHotsWithCostID xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">-5,-6</AddHotsWithCostID>
                           </HotelServices>
                        </DocumentElement>
                     </diffgr:diffgram>
                  </ResultTable>
                  <ColunmNames>
                     <string>HotelName</string>
                     <string>HotelKey</string>
                     <string>RtCode</string>
                     <string>RtKey</string>
                     <string>RcName</string>
                     <string>RcKey</string>
                     <string>RdName</string>
                     <string>RdKey</string>
                     <string>AcName</string>
                     <string>AcKey</string>
                     <string>PnCode</string>
                     <string>PnKey</string>
                     <string>TotalCost</string>
                     <string>Cost</string>
                     <string>AddHotsCost</string>
                     <string>AddHotsWithCosts</string>
                     <string>DetailBrutto</string>
                     <string>QuoteType</string>
                     <string>CountryKey</string>
                     <string>CityKey</string>
                     <string>CityName</string>
                     <string>HotelWebSite</string>
                     <string>TariffId</string>
                     <string>TariffName</string>
                     <string>TariffDescription</string>
                     <string>AddHots</string>
                     <string>ContractPrKey</string>
                     <string>HotelImage</string>
                     <string>Rate</string>
                     <string>AddHotsWithCostID</string>
                  </ColunmNames>
                  <TotalCount>4</TotalCount>
                  <PageSize>100000</PageSize>
                  <PageIndex>1</PageIndex>
                  <IsLastPage>true</IsLastPage>
                  <AdditionalData>
                     <ArrayOfAnyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>48</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>Hardlink</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>0</Duration>
                           <RateBrutto/>
                           <Brutto>48</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>99</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>0</ID>
                           <Status>
                              <Name>Hardlink</Name>
                              <ID>0</ID>
                              <Description/>
                              <NameLat/>
                              <Code/>
                              <CodeLat/>
                              <Unicode/>
                           </Status>
                           <CityKey>80</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>699</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>30</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>Hardlink</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>0</Duration>
                           <RateBrutto/>
                           <Brutto>30</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>99</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-1</ID>
                           <Status>
                              <Name>Hardlink</Name>
                              <ID>0</ID>
                              <Description/>
                              <NameLat/>
                              <Code/>
                              <CodeLat/>
                              <Unicode/>
                           </Status>
                           <CityKey>80</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>699</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>Hardlink</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>0</Duration>
                           <RateBrutto/>
                           <Brutto>40</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>99</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-2</ID>
                           <Status>
                              <Name>Hardlink</Name>
                              <ID>0</ID>
                              <Description/>
                              <NameLat/>
                              <Code/>
                              <CodeLat/>
                              <Unicode/>
                           </Status>
                           <CityKey>80</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>699</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>тестовый ужин на 100921</Name>
                           <StartDate>2021-12-05T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>40</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>70</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-3</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>704</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>20</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>_Прачечная, химчистка</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>20</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>78</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-4</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>639</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>тестовый ужин на 100921</Name>
                           <StartDate>2021-12-05T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>40</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>70</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-5</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>704</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>20</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>_Прачечная, химчистка</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>20</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>78</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-6</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>639</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>тестовый ужин на 100921</Name>
                           <StartDate>2021-12-05T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>40</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>70</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-7</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>704</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>20</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>_Прачечная, химчистка</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>20</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>78</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-8</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>639</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>тестовый ужин на 100921</Name>
                           <StartDate>2021-12-05T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>40</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>70</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-9</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>704</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>20</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>_Прачечная, химчистка</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>20</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>78</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-10</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>639</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                     </ArrayOfAnyType>
                  </AdditionalData>
                  <ResponseGuid>36d4defd-a39d-48c5-8288-32a22822f411</ResponseGuid>
               </DataRequestResult>
            </Data>
         </SearchHotelServicesResult>
      </SearchHotelServicesResponse>
   </soap:Body>
</soap:Envelope>


SearchHotelServicesMinHotel (Receiving one minimal calculated price for the hotel)

The method outputs one minimal (sorted by daily price) calculated price for the hotel.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – object with request parameters
    • PageSize * – from which line to output the result. For the first page, specify RowIndexFrom = 0 – the search starts from the very first price. To get the second page or subsequent search pages in Row Index From, you need to pass the internal price number at which the search for the previous price page stopped (this number will be in the response in the totalCount line).
    • RowIndexFrom * – from which line the result must be output from. For the first page, specify RowIndexFrom = 0 – the search starts from the very first price. To get the second page or subsequent search pages in RowIndexFrom, you need to pass the internal price number at which the search for the previous price page stopped (this number will be in the response in the TotalCount line)
    • DateFrom * – date «from»
    • DateTo * – date «to»
    • RegionKeys – ids of regions (if cities and hotels are not specified – search wiil be made for all regions, RegionKeys or CityKeys or HotelKeys must be filled in)
    • CityKeys – ids of cities (if hotels are not specified, we are looking for a search for all hotels in cities, RegionKeys, CityKeys or HotelKeys must be filled in)
    • HotelKeys – hotel IDs (if hotels are specified, search will be made only for them, RegionKeys, CityKeys or HotelKeys must be filled in)
    • RoomDescriptions – ids of room descriptions. If not transmitted, it will search for everyone (returning when requesting the GetRoomDescriptions method)
    • PansionKeys – pansion IDs. If were not transferred it will search for all (returning when querying the GetPansions method)
    • Ages – age of children
    • Pax * – accommodation
    • Tariffs – IDs of tariffs for which to calculate the result. If you do not transmit it, it will be counted according to the Ordinary tariff (0 – Ordinary, 1 – SPO)
    • CacheGuid – the search ID that speeds up the navigation through the pages. You don't need to transmit it during the first search. The search will return this ID in the ResponseGuid parameter. Then, using paging, we transmit this ID further (but only within the framework of one search!)
    • ResultView – the type of output of the result (1 – sorting by daily price with grouping by hotels, 2 – sorting by daily price)
    • QuotaTypes – filter by quota type (0 – request, 1 – quota, 2 – stop). We get all possible results. If not specified, the value=0
    • Mode – do not specify or specify 0

The returning result:

  • DataRequestResult – the search result
    • ResultTable – the table with the result
      • HotelServices – the hotel service
        • HotelName – the name of the hotel
        • HotelKey – the hotel key
        • RtCode – the room type
        • RtKey – the room type key
        • RcName – the room category
        • RcKey – the room category key
        • RdName – type+room category
        • RdKey – key type+room category
        • AcName – type of accommodation
        • AcKey – the key of the accommodation type
        • PnCode – the type of pansion
        • PnKey – the type of pansion key
        • TotalCost – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
        • Cost – the amount of the mandatory surcharge Cost
        • AddHotsCost – the amount of the mandatory AdHot surcharge
        • AddHotsWithCosts – the amount of the mandatory surcharge of the AdHot type With costs (returns -1 if the display setting of the Adhot type With Costs is in the Integration Service Interlook config. Description.
        • DetailBrutto – the price calculation formula
        • QuoteType – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
        • CountryKey – the key of the country where the service is provided
        • CityKey – the key of the city where the service is provided
        • CityName – the name of the city where the service is provided
        • HotelWebSite – the address of the hotel's website
        • TariffId – the tariff ID
        • TariffName – the name of the tariff
        • TariffDescription – the description of the tariff
        • AddHots – the Adhot ID
        • ContractPrKey – the key of the partner providing the service
        • HotelImage – the hotel photo
        • Rate – the currency
        • AddHotsWithCostID – ID of AddHotsWithCost
    • ColunmNames – the name of table columns
      • HotelName – the name of the hotel
      • HotelKey – the hotel key
      • RtCode – the room type
      • RtKey – the room type key
      • RcName – the room category
      • RcKey – the room category key
      • RdName – the type+room category
      • RdKey – the key type+room category
      • AcName – type of accommodation
      • AcKey – the key of the accommodation type
      • PnCode – the type of pansion
      • PnKey – the type of pansion key
      • TotalCost – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
      • Cost – the amount of the mandatory surcharge Cost
      • AddHotsCost – the amount of the mandatory AddHotsCost surcharge
      • DetailBrutto – the price calculation formula
      • QuoteType – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
      • CountryKey – the key of the country where the service is provided
      • CityKey – the key of the city where the service is provided
      • CityName – the name of the city where the service is provided
      • HotelWebSite – the address of the hotel's website
      • TariffId – the tariff ID
      • TariffName – the name of the tariff
      • TariffDescription – the description of the tariff
      • AddHots – the Adhot ID
      • ContractPrKey – the key of the partner providing the service
      • HotelImage – the hotel photo
      • Rate – the currency
      • AddHotsWithCostID – ID of AddHotsWithCost
    • TotalCount – the number of the line where the search ended
    • PageSize – the number of data rows returning
    • PageIndex – the number of the line from which the search was started
    • IsLastPage – when displaying the last page of search results with hotels, the IsLastPage parameter takes the value true. If the IsLastPage parameter is not processed, the following totalCount value will return an empty result for hotels
    • AdditionalData – the list of required Addhots
      • ArrayOfAnyType – an array of service types
        • anyType – the type of service
          • ExternalID – the parameter for internal use
          • Price – the cost
          • NMen – the number of tourists in the reservation
          • PartnerID – the Partner ID
          • Quota – the quota for the service
          • PacketKey – the package key
          • AdditionalParams – an array of additional parameters (represented as a key – value pair)
            • ParameterPair Key – the key
              • Value – the value
          • Tourists – the tourists
          • DetailNetto – netto details
          • DetailBrutto – gross details
          • Notes – notes to the service
          • Name – the name of the service
          • StartDate – the date of providing service (in the format YYYY-MM-DDT00:00:00)
          • StartDay – the day of providing service
          • Duration – the duration of the service
          • RateBrutto – the gross currency
          • Brutto – the gross price
          • RateNetto – the netto currency
          • Netto – the netto price
          • ServiceClassID – the ID of the service class
          • TouristCount – the number of tourists using the service
          • ID – the service ID (-1 for a new reservation)
          • Status – the service status
            • Name – the name of the service status
            • ID – ID of the service status
            • Description – the description of the service status
            • NameLat – the name of the service status in Latin
            • Code – the service status code
            • CodeLat – the service status code in Latin
            • Unicode – ISO code of the service status
          • CityKey – the key of the city where the service is provided
          • IsPackage – the attribute of a package service
          • Code – the service ID
          • HasDuration – is the service with or without duration
    • ResponseGuid – ID of the response that needs to be transmitted if we are moving through the same search using paging

In case of errors in the request, we receive a message in the response with a transcript of the errors/or number of a string with an error.
In case of an error in GUID we receive the message "Invalid user or password (Invalid GUID)."
If the start date is bigger than the end date, we will receive the message "The parameter 'DateTo' can not be less than 'DateFrom'."
If one of the required parameters is missing, we will receive the message "The parameter '<parameter value>' is required."
If there is no hotel key, city key, region key, we will receive the message "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'."

Example

The invocation of the method SearchHotelServicesMinHotel

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:SearchHotelServicesMinHotel>
     <!--Optional:-->
         <meg:guid>138e178e-6c1c-4e5a-9f82-8280cb014804</meg:guid>
         <!--Optional:-->
         <meg:request>
<meg:PageSize>100000</meg:PageSize>
            <meg:RowIndexFrom>0</meg:RowIndexFrom>
            <meg:DateFrom>2021-12-01</meg:DateFrom>
            <meg:DateTo>2022-12-22</meg:DateTo>
            <!--Optional:-->
            <meg:RegionKeys>
               <!--Zero or more repetitions:-->
               <meg:int>6</meg:int>
            </meg:RegionKeys>
            <!--Optional:-->
            <meg:CityKeys>
               <!--Zero or more repetitions:-->
               <meg:int>80</meg:int>
            </meg:CityKeys>
            <!--Optional:-->
            <meg:HotelKeys>
               <!--Zero or more repetitions:-->
               <meg:int>2932</meg:int>
            </meg:HotelKeys>
            <!--Optional:-->
            <meg:RoomDescriptionsKeys>
               <!--Zero or more repetitions:-->
               <meg:int>1894</meg:int>
            </meg:RoomDescriptionsKeys>
            <!--Optional:-->
            <meg:PansionKeys>
               <!--Zero or more repetitions:-->
               <meg:int>3</meg:int>
            </meg:PansionKeys>
            <!--Optional:-->
            <meg:Ages>
               <!--Zero or more repetitions:-->
               <meg:int>0</meg:int>
            </meg:Ages>
            <meg:Pax>2</meg:Pax>
            <!--Optional:-->
            <meg:Tariffs>
               <!--Zero or more repetitions:-->
               <meg:int>0</meg:int>
            </meg:Tariffs>
            <!--Optional:-->
            <meg:CacheGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</meg:CacheGuid>
            <meg:ResultView>1</meg:ResultView>
            <meg:Mode>0</meg:Mode>
            <!--Optional:-->
            <meg:QuotaTypes>
               <!--Zero or more repetitions:-->
               <meg:int>0</meg:int>
            </meg:QuotaTypes>
         </meg:request>
      </meg:SearchHotelServicesMinHotel>
   </soapenv:Body>
</soapenv:Envelope>

Returning result of the method SearchHotelServicesMinHotel

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <SearchHotelServicesMinHotelResponse xmlns="http://www.megatec.ru/">
         <SearchHotelServicesMinHotelResult Message="Ok">
            <Data>
               <DataRequestResult>
                  <ResultTable>
                     <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
                        <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="HotelServices" msdata:UseCurrentLocale="true">
                           <xs:complexType>
                              <xs:choice minOccurs="0" maxOccurs="unbounded">
                                 <xs:element name="HotelServices">
                                    <xs:complexType>
                                       <xs:sequence>
                                          <xs:element name="HotelName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RtCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RtKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RdName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RdKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="PnCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="PnKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TotalCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="Cost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHotsCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHotsWithCosts" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="DetailBrutto" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="QuoteType" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CountryKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CityKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CityName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelWebSite" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffId" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffDescription" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHots" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="ContractPrKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelImage" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="Rate" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                       </xs:sequence>
                                    </xs:complexType>
                                 </xs:element>
                              </xs:choice>
                           </xs:complexType>
                        </xs:element>
                     </xs:schema>
                     <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
                        <DocumentElement xmlns="">
                           <HotelServices diffgr:id="HotelServices1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room</RtCode>
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</RtKey>
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Jakuzzi</RcName>
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">20</RcKey>
                              <RdName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room Jakuzzi</RdName>
                              <RdKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">1894</RdKey>
                              <AcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">2AD</AcName>
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
                              <PnCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">BB</PnCode>
                              <PnKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</PnKey>
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125470.0000</TotalCost>
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125450.00</Cost>
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">20.00</AddHotsCost>
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">-1</AddHotsWithCosts>
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(325,00[kolesnyk2]*386) * 1 room = 125450,00</DetailBrutto>
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</AddHots>
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
                           </HotelServices>
                        </DocumentElement>
                     </diffgr:diffgram>
                  </ResultTable>
                  <ColunmNames>
                     <string>HotelName</string>
                     <string>HotelKey</string>
                     <string>RtCode</string>
                     <string>RtKey</string>
                     <string>RcName</string>
                     <string>RcKey</string>
                     <string>RdName</string>
                     <string>RdKey</string>
                     <string>AcName</string>
                     <string>AcKey</string>
                     <string>PnCode</string>
                     <string>PnKey</string>
                     <string>TotalCost</string>
                     <string>Cost</string>
                     <string>AddHotsCost</string>
                     <string>AddHotsWithCosts</string>
                     <string>DetailBrutto</string>
                     <string>QuoteType</string>
                     <string>CountryKey</string>
                     <string>CityKey</string>
                     <string>CityName</string>
                     <string>HotelWebSite</string>
                     <string>TariffId</string>
                     <string>TariffName</string>
                     <string>TariffDescription</string>
                     <string>AddHots</string>
                     <string>ContractPrKey</string>
                     <string>HotelImage</string>
                     <string>Rate</string>
                  </ColunmNames>
                  <TotalCount>1</TotalCount>
                  <PageSize>100000</PageSize>
                  <PageIndex>0</PageIndex>
                  <IsLastPage>true</IsLastPage>
                  <AdditionalData>
                     <ArrayOfAnyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID xsi:nil="true"/>
                           <Price>20</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>Hardlink</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay xsi:nil="true"/>
                           <Duration>0</Duration>
                           <RateBrutto/>
                           <Brutto>20</Brutto>
                           <ServiceClassID>99</ServiceClassID>
                           <TouristCount xsi:nil="true"/>
                           <ID>0</ID>
                           <Status>
                              <Name>Hardlink</Name>
                              <ID>0</ID>
                           </Status>
                           <CityKey>80</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>699</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                     </ArrayOfAnyType>
                  </AdditionalData>
                  <ResponseGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</ResponseGuid>
               </DataRequestResult>
            </Data>
         </SearchHotelServicesMinHotelResult>
      </SearchHotelServicesMinHotelResponse>
   </soap:Body>
</soap:Envelope>


SearchActualCostCalculationVariant (Search for the possible types of rooms, categories of rooms, accommodations and pansions for which there are actual prices for the hotel)

The method provides possible options for room types, room categories, accommodations and pansions for which there are actual prices for the hotel.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the object with request parameters:
    • HotelId * – the hotel ID (required parameter, values 0 and -1 are not allowed)
    • DateFrom * – date «from»
    • DateTo * – date «to»
    • ValidateQuoata – whether to check the quota (true – check, false – no)
    • QuotaTypes – the filter by quota type (0 – request, 1 – quota, 2 – stop)
    • CheckAdHot – whether to take into account prices for mandatory adhots (true – take into account, false – not)
    • Rate * – the code of the currency in which the calculation will be made

The returning result:

  • SearchActualCostCalculationVariantResult – The returning result
    • CostCalculationVariant – an array of the data
      • RoomAccommodationId – the accommodation key
      • RoomTypeId – the room type key
      • RoomCategoryId – the room category key
      • PansionId – the pansion key
      • RoomAccommodationName – the accommodation code
      • RoomTypeName – the room type code
      • RoomCategoryName – the room category code
      • PansionName – the pansion code
      • CountAdult – the number of adults
      • CountChildren – the number of children
      • Quota – the quota value
Example

The invocation of the method SearchActualCostCalculationVariant

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:SearchActualCostCalculationVariant>
         <!--Optional:-->
         <meg:guid>d1ac9f4d-20bd-43e0-b5b5-ad60c3cf0065</meg:guid>
         <!--Optional:-->
         <meg:request HotelId="2940" DateFrom="2021-09-08" DateTo="2021-09-09" ValidateQuota="true" CheckAdHot="true" Rate="1" QuotaTypes="0"/>
      </meg:SearchActualCostCalculationVariant>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method SearchActualCostCalculationVariant

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <SearchActualCostCalculationVariantResponse xmlns="http://www.megatec.ru/">
         <SearchActualCostCalculationVariantResult Message="Ok">
            <Data>
               <CostCalculationVariant>
                  <RoomAccommodationId>5558</RoomAccommodationId>
                  <RoomTypeId>3</RoomTypeId>
                  <RoomCategoryId>20</RoomCategoryId>
                  <PansionId>3</PansionId>
                  <RoomAccommodationName>2AD</RoomAccommodationName>
                  <RoomTypeName>Double Room</RoomTypeName>
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
                  <PansionName>BB</PansionName>
                  <CountAdult>2</CountAdult>
                  <CountChildren>0</CountChildren>
                  <Quota>0</Quota>
               </CostCalculationVariant>
               <CostCalculationVariant>
                  <RoomAccommodationId>5558</RoomAccommodationId>
                  <RoomTypeId>45</RoomTypeId>
                  <RoomCategoryId>20</RoomCategoryId>
                  <PansionId>4</PansionId>
                  <RoomAccommodationName>2AD</RoomAccommodationName>
                  <RoomTypeName>Junior Suite</RoomTypeName>
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
                  <PansionName>HB</PansionName>
                  <CountAdult>2</CountAdult>
                  <CountChildren>0</CountChildren>
                  <Quota>0</Quota>
               </CostCalculationVariant>
             </Data>
         </SearchActualCostCalculationVariantResult>
      </SearchActualCostCalculationVariantResponse>
   </soap:Body>
</soap:Envelope>


Methods of working with prices

GetSpoList (Receiving the list of SPOs according to the request)

The method returns a list of SPOs according to the request.
An important point: information is returning only for those Costoffers for which there is a publication to the partner (partner group) of the user who connected to the web service.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the class with request parameters
    • SvKey * – the service class key (1 – accommodation, 2 – transfer, 4 – excursion, 5 – extraservice, 0 or -1 are not accepted)
    • PublicationDateBegin * – the date of publication of the SPO «from»
    • PublicationDateEnd * – the date of publication of the price «till»

The returning result:

  • SPOInfo – the search result
    • ResultTable – the search result
    • Id – SPO ID key
    • Name – the name of the SPO
    • PeriodBeforeCheckIn – the period before arrival
    • SaleDateBegin – the date from which booking is possible
    • SaleDateEnd – the date before which booking is possible
    • Comment – the description of the SPO
    • CreateDate – the creation date
    • UpdateDate – the update date
    • SpoType – the SPO type (Ordinary – 0, Spo – 1)
    • SvKey – the class of service
    • COLinkServices – SPO services
      • COLinkService – the specific SPO service
        • SvKey – the service type key
        • Code – key of the service
        • DurationMin – minimum duration
        • DurationMax – maximum duration
        • IsDisable – is the service blocked
        • DisableDate – the date of blocking
    • COServices – the date of blocking
      • COService – the information about the price of a specific service in this SPO
        • Code – the service ID
        • CostCount – the number of prices for the service in SPO
        • CostLastUpdate – the date of the last change (addition, deletion) of prices for the service in this SPO
Example

The invocation of the method GetSpoList

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetSpoList>
         <!--Optional:-->
         <meg:guid>16f4e0ca-725a-4ffe-8a5e-c41d16ef1b01</meg:guid>
         <!--Optional:-->
         <meg:request SvKey="1" PublicationDateBegin="2021-08-01" PublicationDateEnd="2021-08-04"/>
      </meg:GetSpoList>
   </soapenv:Body>
</soapenv:Envelope>

The returning result of the method GetSpoList

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetSpoListResponse xmlns="http://www.megatec.ru/">
         <GetSpoListResult Message="Ok">
            <Data>
               <SPOInfo Id="2049" Name="Maska Ordinary" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:31:38.35" UpdateDate="2021-08-03T12:32:35.897" SpoType="0" SvKey="1">
                  <COLinkServices>
                     <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
                  </COLinkServices>
                  <XYRules/>
                  <COServices>
                     <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
                     <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
                  </COServices>
               </SPOInfo>
               <SPOInfo Id="2050" Name="Maska 7=6" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:33:37.847" UpdateDate="2021-08-03T12:35:11.367" SpoType="1" SvKey="1">
                  <COLinkServices>
                     <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
                  </COLinkServices>
                  <XYRules>
                     <XYRule ExcludeBy="0" Sign="-" XFrom="2" XTo="7" Y="1"/>
                  </XYRules>
                  <COServices>
                     <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
                     <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
                  </COServices>
               </SPOInfo>
               <SPOInfo Id="2051" Name="Maska 14=12" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:35:15.797" UpdateDate="2021-08-03T12:35:42.75" SpoType="1" SvKey="1">
                  <COLinkServices>
                     <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
                  </COLinkServices>
                  <XYRules>
                     <XYRule ExcludeBy="0" Sign="-" XFrom="8" XTo="14" Y="2"/>
                  </XYRules>
                  <COServices>
                     <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
                     <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
                  </COServices>
               </SPOInfo>
            </Data>
         </GetSpoListResult>
      </GetSpoListResponse>
   </soap:Body>
</soap:Envelope>


GetCosts (Receiving gross price under request parameters)

The method returns the gross price according to the request parameters.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the object with request parameters
    • SpoId * – the SPO key (The CO_Id parameter of the CostOffers table). The SPO list is returning when the GetSpoList method is requested)
    • TariffId * – the tariff key (In the price table corresponds to the CS_CVId parameter). When setting "-1", all tariffs are selected)
    • SvKey * – the type of service (1 – accommodation, 2 – transfer, 4 – excursion, 5 – extraservice)
    • Code * – the service key (For the hotel this is the key from the Partners table. For all other services, this is the SL_KEY from the ServiceList table. You can also get these keys using web service methods: GetServiceList, GetExcursions, GetTransfers, GetHotels)
    • PriceType – the type of accommodation price (0 – per person, 1 – per room, 2 – all)
    • DownloadOnlyActualCosts * – the download of only current prices (1 – get current, 0 – get all)
    • DownloadUpdateCostsFromDate * – download prices only from the selected date (1 – the setting is enabled, 0 – receive everything)
    • CostsUpdateDateBegin * – the date from which to upload prices (used when setting the DownloadUpdateCostsFromDate parameter)

The returning result:

  • GetCostsResult – output results
    • CostInfo – an array of the data
      • Id – the price key
      • SvKey – the service type key
      • SpoId – ID of the SPO
      • Code – the key of the service
      • AgeFrom – age «from»
      • AgeTo – age «to»
      • CreateDate – the date of the creation
      • CheckInDateBegin – the check-in date «from»
      • CheckInDateEnd – the check-in date «till»
      • CheckOutDateBegin – the departure date «from»
      • CheckOutDateEnd – the departure date «till»
      • DateBegin – the price validity date «from»
      • DateEnd – the price validity date «till»
      • UpdateDate – the last date of the price update
      • Price – the value of the price
      • Rate – the currency
      • SubCode1 – the price parameter depending on the type of service (for accommodation – the room type key, for transfer – TransferType, for Adhot – the room type key)
      • SubCode2 – the price parameter depending on the type of service (for accommodation – the pansion key, for transfer – the start point, for Adhot – the hotel key)
      • SubCode3 – the price parameter depending on the type of service (for accommodation – the room category key, for transfer – end point, for Adhot – the room category key)
      • SubCode4 – the price parameter depending on the type of service (for accommodation – the accommodation, for Adhot – the accommodation)
      • TariffId – the tariff key
      • Type – the price type (1 – group, 0 – non-group. For a hotel per room or per person)
      • CountryId – the key of the country of the service
      • CityFromId – the key of the service city
      • CityToId – the key of the city of the «where» service (for transfers)
      • TouroperatorId – the tour operator's key
Example

The invocation of the method GetCosts

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetCosts>
         <!--Optional:-->
         <meg:guid>5932b280-c780-4c84-a83a-52b25bc22615</meg:guid>
         <!--Optional:-->
         <meg:request SpoId="2049" TariffId="-1" SvKey="1" Code="2945" PriceType="2" DownloadOnlyActualCosts="0" DownloadUpdateCostsFromDate="0" CostsUpdateDateBegin="2021-08-04"/>
      </meg:GetCosts>
   </soapenv:Body>
</soapenv:Envelope>

The returning result of the method GetCosts

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetCostsResponse xmlns="http://www.megatec.ru/">
         <GetCostsResult Message="Ok">
            <Data>
               <CostInfo Id="7795837" SvKey="1" SpoId="2049" Code="2945" AgeFrom="0" AgeTo="0" CreateDate="2021-08-03T12:56:34.237" CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" DateBegin="2021-01-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2021-08-03T12:56:35.08" Price="30.0000" Rate="EU" SubCode1="2" SubCode2="3" SubCode3="20" SubCode4="459" TariffId="0" Type="1" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035"/>
               <CostInfo Id="7795835" SvKey="1" SpoId="2049" Code="2945" AgeFrom="0" AgeTo="0" CreateDate="2021-08-03T12:56:34.237" CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" DateBegin="2021-01-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2021-08-03T12:56:35.08" Price="10.0000" Rate="EU" SubCode1="2" SubCode2="3" SubCode3="20" SubCode4="7864" TariffId="0" Type="1" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035"/>
           </Data>
         </GetCostsResult>
      </GetCostsResponse>
   </soap:Body>
</soap:Envelope>


SpoPriceMarkDownloaded (Receiving information about availability of a specific SPO for sale)

The method returns information about the availability of a specific SPO for sale.
An important point: information is returning only for those Cost offers for which there is a publication to the partner (partner group) of the user who connected to the web service.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • SpoKey * – SPO key (returning when requesting the GetSpoList method)
  • VariantOfCost – the price option
  • SvKey – the service class key
  • Code – the service code

The returning result:

  • SpoPriceMarkDownloadedResult – The returning result
    • true – SPO is available
    • false – SPO is not available
Example

The invocating of the method SpoPriceMarkDownloaded

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:SpoPriceMarkDownloaded>
         <!--Optional:-->
         <meg:guid>016e9dd9-802e-46fb-bb79-7c44a31d6560</meg:guid>
         <meg:spoKey>2049</meg:spoKey>
         <meg:variantOfCost>0</meg:variantOfCost>
         <meg:svKey>0</meg:svKey>
         <meg:code>0</meg:code>
      </meg:SpoPriceMarkDownloaded>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method SpoPriceMarkDownloaded

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <SpoPriceMarkDownloadedResponse xmlns="http://www.megatec.ru/">
         <SpoPriceMarkDownloadedResult>true</SpoPriceMarkDownloadedResult>
      </SpoPriceMarkDownloadedResponse>
   </soap:Body>
</soap:Envelope>


Methods of working with services

GetHotels (Receiving the list of the hotels by parameters)

The method returns a list of hotels by parameters.
Accepted request parameters ( * – required):

  • СountryKey * – the country key (-1 for all)
  • RegionKey * – the region key (-1 for all)
  • СityKey * – the city key (-1 for all)

The returning result:

  • GetHotelsResult – the output results
  • Hotel – the hotel
    • Name – the name of the hotel
    • ID – ID of the hotel
    • Description – the description of the hotel
    • NameLat – the name of the hotel in Latin
    • Code – the code of the hotel
    • CodeLat – the hotel code in Latin
    • Unicode – the ISO code of the hotel
    • City – the hotel city
      • Name – the name of the city
      • ID – ID of the city
      • Description – the description of the city
      • NameLat – the name of the city in Latin
      • Code – the city code
      • CodeLat – the city code in Latin
      • Unicode – the ISO code of the city
      • CountryID – ID of the hotel's country
      • RegionID – ID of the hotel's region
    • RegionID – ID of the hotel's region
    • PriceType – the price type (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
    • CountCosts – the number of hotel p
    • CityId – ID of the hotel's city
    • HotelCategoryID – ID of the hotel category
Example

The invocating of the method GetHotels

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetHotels>
         <meg:countryKey>10</meg:countryKey>
         <meg:regionKey>10</meg:regionKey>
         <meg:cityKey>10</meg:cityKey>
      </meg:GetHotels>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetHotels

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetHotelsResponse xmlns="http://www.megatec.ru/">
         <GetHotelsResult>
            <Hotel>
               <Name>Aegean Blue Hotel</Name>
               <ID>2254</ID>
               <Description>3 stars (B)  (\\Nea KallikratiaABBA)</Description>
               <NameLat/>
               <Code>AGN</Code>
               <CodeLat/>
               <Unicode/>
               <City>
                  <Name>Nea KallikratiaABBA</Name>
                  <ID>10</ID>
                  <Description/>
                  <NameLat/>
                  <Code>NKL</Code>
                  <CodeLat/>
                  <Unicode/>
                  <CountryID>4</CountryID>
                  <RegionID>6</RegionID>
               </City>
               <RegionID>6</RegionID>
               <PriceType>None</PriceType>
               <CountCosts>0</CountCosts>
               <CityID>10</CityID>
               <HotelCategoryID>6</HotelCategoryID>
            </Hotel>
            <Hotel>
               <Name>Alkyonis Hotel</Name>
               <ID>1015</ID>
               <Description>2+ stars (C Sup)   (\\Nea KallikratiaABBA)</Description>
               <NameLat/>
               <Code>ALK</Code>
               <CodeLat/>
               <Unicode/>
               <City>
                  <Name>Nea KallikratiaABBA</Name>
                  <ID>10</ID>
                  <Description/>
                  <NameLat/>
                  <Code>NKL</Code>
                  <CodeLat/>
                  <Unicode/>
                  <CountryID>4</CountryID>
                  <RegionID>6</RegionID>
               </City>
               <RegionID>6</RegionID>
               <PriceType>None</PriceType>
               <CountCosts>0</CountCosts>
               <CityID>10</CityID>
               <HotelCategoryID>7</HotelCategoryID>
            </Hotel>
          </GetHotelsResult>
      </GetHotelsResponse>
   </soap:Body>
</soap:Envelope>


GetTransfers (Receiving the list of the transfers by parameters)

The method returns a list of transfers by parameters.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the object with request parameters
    • СountryKey * – the country key (-1 for all)
    • СityKey * – the city key (-1 for all)
    • RegionKey * – the region key (-1 for all)
    • TypeKey * – the transfer type key (-1 for all)

The returning result:

  • GetTransferResult – the output results
    • TransferDirectionInfo – an array of the data
      • ID – the transfer ID
      • Name – the name
      • TransferTypeID – the transfer type key
      • TransferTypeName – the name of the transfer type
      • CityFromID – ID of the city from where
      • CityFromName – the name of the city from where
      • CityToID – ID of the city to
      • CityToName – the name of the city where
      • PointFromID – ID of the point from where
      • PointFromName – the name of the point from where
      • PointToID – ID of the point to
      • PointToName – the name of the point to
Example

The invocation of the method GetTransfers

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetTransfers>
         <!--Optional:-->
         <meg:guid>699cbbac-6acc-4339-9d3c-2a231357d0c1</meg:guid>
         <!--Optional:-->
         <meg:request>
            <meg:CountryKey>10</meg:CountryKey>
            <meg:CityKey>10</meg:CityKey>
            <meg:RegionKey>10</meg:RegionKey>
            <meg:TypeKey>1</meg:TypeKey>
         </meg:request>
      </meg:GetTransfers>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetTransfers

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetTransfersResponse xmlns="http://www.megatec.ru/">
         <GetTransfersResult Message="Ok">
            <Data>
               <TransferDirectionInfo Id="527" Name="Arrival transfer: Moscow - All Cities (Finance)" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="87" CityFromName="Moscow" CityToId="0" CityToName="All" PointFromId="0" PointFromName="All" PointToId="1341" PointToName="Finance"/>
               <TransferDirectionInfo Id="530" Name="Arrival transfer: All Cities - All Cities" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="0" CityFromName="All" CityToId="0" CityToName="All" PointFromId="0" PointFromName="All" PointToId="0" PointToName="All"/>
               <TransferDirectionInfo Id="576" Name="Arrival transfer: Moscow (lalala) - All Cities" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="87" CityFromName="Moscow" CityToId="0" CityToName="All" PointFromId="3" PointFromName="lalala" PointToId="0" PointToName="All"/>
            </Data>
         </GetTransfersResult>
      </GetTransfersResponse>
   </soap:Body>
</soap:Envelope>


GetExcursions (Receiving the list of the excursions by parameters)

The method returns excursions by parameters.
Accepted request parameters ( * – required):

  • СountryKey * – the country key (-1 for all)
  • RegionKey * – the region key (-1 for all)
  • СityKey * – the city key (-1 for all)

The returning result:

  • GetExcursionsResult – the output results
    • Excursion – an array of the data
      • Name – the name of the tour
      • ID – ID of the excursion
      • Description – the description of the tour
      • NameLat – the name of the tour in Latin
      • Code – the code of the excursion
      • CodeLat – the code of the excursion in Latin
      • Unicode – ISO code of the excursion
      • CityID – ID of the city
      • RegionID – the region ID
Example

The invocation of the method GetExcursions

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetExcursions>
         <meg:countryKey>5</meg:countryKey>
         <meg:regionKey>5</meg:regionKey>
         <meg:cityKey>5</meg:cityKey>
      </meg:GetExcursions>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetExcursions

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetExcursionsResponse xmlns="http://www.megatec.ru/">
         <GetExcursionsResult>
            <Excursion>
               <Name>Exc21_01_2020</Name>
               <ID>670</ID>
               <Description/>
               <NameLat>Exc21_01_2020</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <CityID>5</CityID>
               <RegionID>16</RegionID>
            </Excursion>
         </GetExcursionsResult>
      </GetExcursionsResponse>
   </soap:Body>
</soap:Envelope>
</soap:Envelope>


GetServiceList (Receiving the list of additional services)

The method returns additional services.
The returning result:

  • GetServiceListResult – the output results
    • ServiceList – an array of the data
      • AdditionalParams – the additional parameters
        • Key – the key
        • Value – the value
      • Name – the name of the additional service
      • ID – ID of the additional service
      • NameLat – the name of the additional service in Latin
      • Code – the code of the additional service
      • CodeLat – the code of the additional service in Latin
      • Unicode – the ISO code of the additional service
      • ServiceClaseID – ID of the additional service class
      • CountryID – ID of the country of the additional service
Example

The invocation of the method GetServiceList

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetServiceList/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetServiceList

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetServiceListResponse xmlns="http://www.megatec.ru/">
         <GetServiceListResult>
            <ServiceList>
               <AdditionalParams>
                  <ParameterPair Key="CountryKey">
                     <Value xsi:type="xsd:int">0</Value>
                  </ParameterPair>
                  <ParameterPair Key="CityKey">
                     <Value xsi:type="xsd:int">0</Value>
                  </ParameterPair>
               </AdditionalParams>
               <Name>Extra service class\Cancellation penalty</Name>
               <ID>10</ID>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <ServiceClaseID>1</ServiceClaseID>
               <CountryID>0</CountryID>
            </ServiceList>
            <ServiceList>
               <AdditionalParams>
                  <ParameterPair Key="CountryKey">
                     <Value xsi:type="xsd:int">0</Value>
                  </ParameterPair>
                  <ParameterPair Key="CityKey">
                     <Value xsi:type="xsd:int">0</Value>
                  </ParameterPair>
               </AdditionalParams>
               <Name>Shop Tour\Shop Tour With Terms</Name>
               <ID>15</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <ServiceClaseID>4</ServiceClaseID>
               <CountryID>0</CountryID>
            </ServiceList>
          </GetServiceListResult>
      </GetServiceListResponse>
   </soap:Body>
</soap:Envelope>


GetExtraServices (Receiving the list of additional services including services of AdHot type)

The method returns a list of additional services, including services of the AdHot type.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the object with request parameters
    • ServiceClassKey * – the additional service class key (-1 for all)
    • СountryKey * – the country key of the additional service (-1 for all)
    • СityKey * – the city key for AdHot (-1 for all)
    • HotelKey * – the hotel key for AdHot (-1 for all)
    • RegionKey * – the region key (-1 for all)
    • TypeKey * – the type of AdHot (-1 – for everyone, 1 – Manual, 2 – HardLink, 3 – WithCosts)

The returning result:

  • GetExtraServicesResult – the output results
    • ExtraServiceInfo – an array of the data
      • Id – ID of the additional service
      • Name – the name of the additional service
      • Description – the description of the additional service
      • ServiceClassId – ID of the class of the additional service
      • IsWeb – the availability of an additional service online
      • DurationType – with or without duration (1 – with duration)
      • UpdateDate – the date of the last update of the additional service
      • IsPartnerLikeHotel – is partner of AdHot is the same as that of accommodation
      • LinkType – the AdHot type (1 – Manual, 2 – HardLink, 3 – WithCosts)
      • IsAddHot – whether the service is AdHot (true – is, false – is not)
      • CountryList – the list of country keys for AdHot (if the collection is empty, it means – for all)
      • CityList – the list of city keys for AdHot (if the collection is empty, it means – for all)
      • HotelList – the list of hotel keys for AdHot (if the collection is empty, it means – for all)
      • RoomTypeList – the list of room type keys for AdHot (if the collection is empty, it means – for all)
      • RoomCategoryList – the list of room category keys for AdHot (if the collection is empty, it means – for all)
      • AccommodationList – the list of accommodation keys for AdHot (if the collection is empty, it means – for all)
      • HotelLinkTypeList – the list of redefinitions of the AdHot type for hotels
        • HotelLinkTypeEx – the redefining the AdHot type for a hotel
          • HotelId – the hotel key
          • ExtraServiceLinkType – the redefined AdHot type (1 – Manual, 2 – HardLink, 3 – WithCosts)
Example

The invocation of the method GetExtraServices

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetExtraServices>
         <!--Optional:-->
         <meg:guid>e7f7b188-611b-4a01-bcff-b7117c222e1f</meg:guid>
         <!--Optional:-->
         <meg:request>
            <meg:ServiceClassKey>-1</meg:ServiceClassKey>
            <meg:CountryKey>10</meg:CountryKey>
            <meg:CityKey>10</meg:CityKey>
            <meg:HotelKey>10</meg:HotelKey>
            <meg:TypeKey>-1</meg:TypeKey>
         </meg:request>
      </meg:GetExtraServices>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetExtraServices

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetExtraServicesResponse xmlns="http://www.megatec.ru/">
         <GetExtraServicesResult Message="Ok">
            <Data>
               <ExtraServiceInfo Id="293" Name="Air tickets test transmission Greece" Description="" ServiceClassId="15" IsWeb="true" DurationType="1" UpdateDate="2018-04-26T17:55:50.04" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
                  <CountryList/>
                  <CityList/>
                  <HotelList/>
                  <RoomTypeList/>
                  <RoomCategoryList/>
                  <AccommodationList/>
                  <HotelLinkTypeList>
                     <HotelLinkTypeEx HotelId="2830" ExtraServiceLinkType="1"/>
                  </HotelLinkTypeList>
               </ExtraServiceInfo>
               <ExtraServiceInfo Id="433" Name="111111111111111" ServiceClassId="36" IsWeb="true" DurationType="0" UpdateDate="2018-09-19T10:52:06.937" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
                  <CountryList/>
                  <CityList/>
                  <HotelList/>
                  <RoomTypeList/>
                  <RoomCategoryList/>
                  <AccommodationList/>
                  <HotelLinkTypeList/>
               </ExtraServiceInfo>
               <ExtraServiceInfo Id="439" Name="3221" Description="" ServiceClassId="36" IsWeb="true" DurationType="0" UpdateDate="2018-09-19T10:52:06.967" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
                  <CountryList/>
                  <CityList/>
                  <HotelList/>
                  <RoomTypeList/>
                  <RoomCategoryList/>
                  <AccommodationList/>
                  <HotelLinkTypeList>
                     <HotelLinkTypeEx HotelId="2821" ExtraServiceLinkType="1"/>
                  </HotelLinkTypeList>
               </ExtraServiceInfo>
             </Data>
         </GetExtraServicesResult>
      </GetExtraServicesResponse>
   </soap:Body>
</soap:Envelope>
</soap:Envelope>


GetExtraServiceWithPrices (Receiving the list of additional services including services of AdHot type with prices)

The method returns a list of additional services, including services of the AdHot type with prices.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the object with request parameters
    • HotelKey * – the hotel key for AdHot (-1 for all)
    • DateFrom – the date of validity from
    • DateTo – the date validity before

The returning result:

  • GetExtraServiceWithPricesResult Message="Ok">
    • CostInfo – an array of the data
      • Id – the price key
      • SvKey – the service type key
      • SpoId – ID of the SPO
      • Code – the key of the service
      • AgeFrom – age «from»
      • AgeTo – age «to»
      • CreateDate – the date the price was created
      • CheckInDateBegin – the check-in date «from»
      • CheckInDateEnd – the check-in date «till»
      • CheckOutDateBegin – the departure date «from»
      • CheckOutDateEnd – the departure date «till»
      • DateBegin – the price validity date «from»
      • DateEnd – the price validity date «till»
      • UpdateDate – the last date of the price update
      • Price – the value of the price
      • Rate – the currency
      • SubCode1 – the price parameter depending on the type of service (for accommodation – the room type key, for transfer – TransferType, for Adhot – the room type key)
      • SubCode2 – the price parameter depending on the type of service (for accommodation – the pansion key, for transfer – the start point, for Adhot – the hotel key)
      • SubCode3 – the price parameter depending on the type of service (for accommodation – the room category key, for transfer – the end point, for Adhot – the room category key)
      • SubCode4 – the price parameter depending on the type of service (for the accommodation – accommodation, for Adhot – the accommodation)
      • TariffId – the tariff key
      • Type – the price type (1 – group, 0 – non-group. For a hotel per room or per person)
      • CountryId – the key of the country of the service
      • CityFromId – the key of the service city
      • CityToId – the key of the city of the "where" service (for transfers)
      • TouroperatorId – the tour operator's key
      • AdHotName – the name of AdHot
      • LinkType – the AdHot type (1 – Manual, 2 – HardLink, 3 – WithCosts)
      • DurationType – with or without duration (1 – with duration)
Example

The invocation of the method GetExtraServicesWithPrices

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetExtraServiceWithPrices>
         <!--Optional:-->
         <meg:guid>c80b29df-4110-4769-85a5-99ef5def023c</meg:guid>
         <!--Optional:-->
         <meg:request>
            <meg:HotelKey>2930</meg:HotelKey>
            <meg:DateFrom>2022-01-01</meg:DateFrom>
            <meg:DateTo>2022-12-31</meg:DateTo>
         </meg:request>
      </meg:GetExtraServiceWithPrices>
   </soapenv:Body>
</soapenv:Envelope>

The invocation of the method GetExtraServicesWithPrices

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetExtraServiceWithPricesResponse xmlns="http://www.megatec.ru/">
         <GetExtraServiceWithPricesResult Message="Ok" Count="15">
            <Data>
               <CostInfoWithAdHotDescription Id="7795829" SvKey="5" SpoId="2047" Code="471" AgeFrom="0" AgeTo="0" CreateDate="2021-07-26T18:20:02.52" 
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" 
DateBegin="2002-08-01T00:00:00" DateEnd="2023-08-12T00:00:00" UpdateDate="2021-07-26T18:20:03.313" Price="17.0000" Rate="EU" SubCode1="0" SubCode2="2930" 
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="6" CityFromId="80" CityToId="0" TouroperatorId="1035" AdHotName="bonus" LinkType="Manual" 
DurationType="0"/>
               <CostInfoWithAdHotDescription Id="7807924" SvKey="5" SpoId="2029" Code="694" AgeFrom="0" AgeTo="0" CreateDate="2022-12-09T14:24:52.333" 
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" 
DateBegin="2022-02-01T00:00:00" DateEnd="2024-02-01T00:00:00" UpdateDate="2022-12-09T14:24:52.573" Price="3.0000" Rate="EU" SubCode1="0" SubCode2="0" 
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Сейф в номере" LinkType="Manual" 
DurationType="0"/>
               <CostInfoWithAdHotDescription Id="7805052" SvKey="5" SpoId="2136" Code="716" AgeFrom="0" AgeTo="0" CreateDate="2022-01-05T17:16:53.75" 
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" 
DateBegin="2022-01-01T00:00:00" DateEnd="2025-01-01T00:00:00" UpdateDate="2022-01-05T18:16:55.813" Price="17.0000" Rate="EU" SubCode1="0" SubCode2="0" 
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Maska dinners" LinkType="Manual"
 DurationType="0"/>
               <CostInfoWithAdHotDescription Id="7809780" SvKey="5" SpoId="2604" Code="726" AgeFrom="0" AgeTo="0" CreateDate="2023-02-15T12:29:03.747"
 CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
 DateBegin="2023-02-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2023-02-15T12:29:08.183" Price="0" Rate="USD" SubCode1="0" SubCode2="0" SubCode3="0"
 SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Такса (Тунис)" LinkType="Manual" DurationType="1"/>
            </Data>
         </GetExtraServiceWithPricesResult>
      </GetExtraServiceWithPricesResponse>
   </soap:Body>
</soap:Envelope>


CalculateSingleCost (Calculating the cost of the service according to its parameters by a standart calculation mechanism)

CalculateSingleCost (Calculating the cost of the service according to its parameters by a standart calculation mechanism) .
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • SvKey * – the service type key
  • СountryKey * – the country key
  • Сode * – the service key
  • Subcode1 * – the price parameter depending on the type of service (for accommodation – the room type key, for transfer – TransferType)
  • Subcode2 * – price parameter depending on the type of service (for accommodation – the pansion key, for transfer – the starting point)
  • Subcode3 * – the price parameter depending on the type of service (for accommodation – the room category key, for transfer – the end point)
  • Subcode4 * – the price parameter depending on the type of service (for accommodation – the accommodation)
  • TourOperatorGroupKey * – the key of the tour operator's grou
  • TourOperatorKey * – the key of the tour operator (seller)
  • MrKey * – the market key
  • FilialKey * – the branch key
  • TafiffKey * – the tariff key
  • Pax * – Pax by service
  • Ages * – the list with the ages of children
  • CheckInDate * – date «from»
  • CheckOutDate * – date «till»
  • CityKey * – the city key
  • CityKeyTo * – the key of the city «where»
  • Rate * – the currency code
  • PricePerRoom * – per room or per person
  • OnlyPublished * – consider only published prices
  • ServiceProviderKey * – the key of the service provider

The returning result:

  • CalculateSingleCostResult – the output results
    • Brutto – the calculated gross price
    • ProviderKey – the key of the service provider
    • IsCalcBrutto
    • CancellationPolicies – the cancellation Policy
    • PolicyKey – the policy key
    • DateFrom – date "from"
    • DateTo – date "till"
    • PenaltyValue – the penalty value
    • IsPercent - the percentage indicating that the penalty is in "%" (true) or in "nights" (false)
Example

The invocation of the method CalculateSingleCost

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CalculateSingleCost>
         <!--Optional:-->
         <meg:guid>823b2df5-a3fe-4153-b43a-accfba1bf86c</meg:guid>
         <meg:svKey>1</meg:svKey>
         <meg:countryKey>1</meg:countryKey>
         <meg:code>1</meg:code>
         <meg:subcode1>1</meg:subcode1>
         <meg:subcode2>1</meg:subcode2>
         <meg:subcode3>1</meg:subcode3>
         <meg:subcode4>1</meg:subcode4>
         <meg:tourOperatorGroupKey>1</meg:tourOperatorGroupKey>
         <meg:tourOperatorKey>1</meg:tourOperatorKey>
         <meg:mrKey>1</meg:mrKey>
         <meg:filialKey>1</meg:filialKey>
         <meg:tafiffKey>1</meg:tafiffKey>
         <meg:pax>1</meg:pax>
         <!--Optional:-->
         <meg:ages>
         <!--Zero or more repetitions:-->
         <meg:int>1</meg:int>
         </meg:ages>
         <meg:checkInDate>2021-08-01</meg:checkInDate>
         <meg:checkOutDate>2021-08-24</meg:checkOutDate>
         <meg:cityKey>1</meg:cityKey>
         <meg:cityKeyTo>1</meg:cityKeyTo>
         <!--Optional:-->
         <meg:rate>1</meg:rate>
         <meg:pricePerRoom>1</meg:pricePerRoom>
         <meg:onlyPublished>1</meg:onlyPublished>
         <meg:serviceProviderKey>1</meg:serviceProviderKey>
      </meg:CalculateSingleCost>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method CalculateSingleCost

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CalculateSingleCostResponse xmlns="http://www.megatec.ru/">
         <CalculateSingleCostResult>
            <Brutto>50.0000</Brutto>
            <ProviderKey>2943</ProviderKey>
            <IsCalcBrutto>false</IsCalcBrutto>
            <CancellationPolicies>
               <CancellationPolicyData>
                  <PolicyKey>151</PolicyKey>
                  <DateFrom>2021-08-25T00:00:00</DateFrom>
                  <DateTo>2021-08-27T00:00:00</DateTo>
                  <PenaltyValue>3</PenaltyValue>
                  <IsPercent>false</IsPercent>
               </CancellationPolicyData>
               <CancellationPolicyData>
                  <PolicyKey>149</PolicyKey>
                  <DateFrom>2021-08-27T00:00:00</DateFrom>
                  <DateTo>2021-08-31T00:00:00</DateTo>
                  <PenaltyValue>4</PenaltyValue>
                  <IsPercent>false</IsPercent>
               </CancellationPolicyData>
              </CancellationPolicies>
         </CalculateSingleCostResult>
      </CalculateSingleCostResponse>
   </soap:Body>
</soap:Envelope>


Methods of working with dictionaries

GetRegions (Receiving the list of the regions)

The method returns a list of regions. Accepted request parameters ( * – required):

  • СountryKey * – the country ID (-1 for all)

The returning result:

  • GetRegionsResult – the search result
    • Region – an array of the data
      • Name – the name of the region
      • ID – ID of the region
      • Description – the description of the region
      • NameLat – the name of the region in Latin
      • Code – the region code
      • CodeLat – the region code in Latin
      • Unicode – the ISO code of the region
      • CountryID – the country ID
Example

The Invocation of method GetRegions

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRegions>
         <meg:countryKey>10</meg:countryKey>
      </meg:GetRegions>
   </soapenv:Body>
</soapenv:Envelope>

The returning result of method GetRegions

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetRegionsResponse xmlns="http://www.megatec.ru/">
         <GetRegionsResult>
            <Region>
               <Name>Chisinau</Name>
               <ID>18</ID>
               <Description/>
               <NameLat/>
               <Code>KIV</Code>
               <CodeLat/>
               <Unicode/>
               <CountryID>10</CountryID>
            </Region>
            <Region>
               <Name>Tiraspol</Name>
               <ID>109</ID>
               <Description/>
               <NameLat/>
               <Code>TRS</Code>
               <CodeLat/>
               <Unicode/>
               <CountryID>10</CountryID>
            </Region>
         </GetRegionsResult>
      </GetRegionsResponse>
   </soap:Body>
</soap:Envelope>


GetCities (Receiving the list of the cities)

The method returns a list of cities. Accepted request parameters ( * – required):

  • СountryKey * – country ID (-1 for all)
  • RegionKey * – region ID (-1 for all)

The returning result:

  • GetCitiesResult – the search result
    • City – an array of the data
      • Name – the name of the city
      • ID – ID of the city
      • Description – the description of the city
      • NameLat – the name of the city in Latin
      • Code – the city code
      • CodeLat – the city code in Latin
      • Unicode – the ISO code of the city
      • CountryID – ID of the city
      • RegionID – the region ID
Example

The invocation of the method GetCities

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetCities>
         <meg:countryKey>10</meg:countryKey>
         <meg:regionKey>10</meg:regionKey>
      </meg:GetCities>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetCities

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetCitiesResponse xmlns="http://www.megatec.ru/">
         <GetCitiesResult>
            <City>
               <Name>Katerini</Name>
               <ID>153</ID>
               <Description/>
               <NameLat/>
               <Code>KTR</Code>
               <CodeLat/>
               <Unicode/>
               <CountryID>4</CountryID>
               <RegionID>10</RegionID>
            </City>
            <City>
               <Name>Leptokaria</Name>
               <ID>24</ID>
               <Description/>
               <NameLat/>
               <Code>LPK</Code>
               <CodeLat/>
               <Unicode/>
               <CountryID>4</CountryID>
               <RegionID>10</RegionID>
            </City>
         </GetCitiesResult>
      </GetCitiesResponse>
   </soap:Body>
</soap:Envelope>


GetCountries (Receiving the list of the countries)

The method returns a list of countries.
The returning result:

  • GetCountriesResult – the search result
    • Country – the an array of the data
      • Name – the name of the country
      • ID – the country ID
      • Description – the description of the country
      • NameLat – the name of the country in Latin
      • Code – the country code
      • CodeLat – the country code in Latin
      • Unicode – the ISO code of the country
      • IsIncoming – the parameter for internal use
Example

The invocation of the method GetCountries

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetCountries/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetCountries

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetCountriesResponse xmlns="http://www.megatec.ru/">
         <GetCountriesResult>
            <Country>
               <Name>Azerbaijan</Name>
               <ID>19</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <IsIncoming>false</IsIncoming>
            </Country>
            <Country>
               <Name>Belarus</Name>
               <ID>7</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <IsIncoming>false</IsIncoming>
            </Country>
            </Country>
         </GetCountriesResult>
      </GetCountriesResponse>
   </soap:Body>
</soap:Envelope>


GetRoomType (Receiving the list of the room types)

The method returns a list of room types.
The returning result:

  • GetRoomTypeResult – the search result
    • RoomType – an array of the data
      • Name – the name of the room type
      • ID – ID of the room type
      • Description – the description of the room type
      • NameLat – the name of the room type
      • Code – the room type code
      • CodeLat – the room type code in Latin
      • Unicode – the ISO code of the room type
      • Places – the number of main places
      • ExPlaces – the number of additional seats
      • PrintOrder – the number of additional seats
Example

The invocation of the method GetRoomType

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRoomType/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRoomType

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetRoomTypeResponse xmlns="http://www.megatec.ru/">
         <GetRoomTypeResult>
            <RoomType>
               <Name>NOVALUE</Name>
               <ID>0</ID>
               <Description/>
               <NameLat/>
               <Code>-</Code>
               <CodeLat/>
               <Unicode/>
               <Places>0</Places>
               <ExPlaces>0</ExPlaces>
               <PrintOrder>0</PrintOrder>
            </RoomType>
            <RoomType>
               <Name>10</Name>
               <ID>876</ID>
               <Description>111</Description>
               <NameLat/>
               <Code>111</Code>
               <CodeLat/>
               <Unicode/>
               <Places>111</Places>
               <ExPlaces>0</ExPlaces>
               <PrintOrder>0</PrintOrder>
            </RoomType>
            <RoomType>
               <Name>33444</Name>
               <ID>915</ID>
               <Description>12</Description>
               <NameLat/>
               <Code>1123</Code>
               <CodeLat/>
               <Unicode/>
               <Places>1</Places>
               <ExPlaces>0</ExPlaces>
               <PrintOrder>0</PrintOrder>
            </RoomType>
          </GetRoomTypeResult>
      </GetRoomTypeResponse>
   </soap:Body>
</soap:Envelope>


GetRoomCategories (Receiving the list of the room categories)

The method returns a list of room categories.
The returning result:

  • GetRoomCategoriesResult – the search result
    • RoomCategory – an array of the data
      • Name – the name of the room category
      • ID – ID of the room category
      • Description – the description of the room category
      • NameLat – the name of the room category
      • Code – the room category code
      • CodeLat – the room category code in Latin
      • Unicode – the ISO code of the room category
      • MainPlaces – the number of main places
      • ExtraPlaces – the number of additional places
      • IsMain – the parameter for internal use
Example

The invocation of the method GetRoomCategories

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRoomCategories/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRoomCategories

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetRoomCategoriesResponse xmlns="http://www.megatec.ru/">
         <GetRoomCategoriesResult>
            <RoomCategory>
               <Name>-</Name>
               <ID>0</ID>
               <Description/>
               <NameLat/>
               <CodeLat/>
               <Unicode/>
               <MainPlaces>0</MainPlaces>
               <ExtraPlaces>0</ExtraPlaces>
               <IsMain>false</IsMain>
            </RoomCategory>
            <RoomCategory>
               <Name>!!!</Name>
               <ID>304</ID>
               <Description/>
               <NameLat/>
               <Code>1</Code>
               <CodeLat/>
               <Unicode/>
               <MainPlaces>0</MainPlaces>
               <ExtraPlaces>0</ExtraPlaces>
               <IsMain>false</IsMain>
             </RoomCategory>
         </GetRoomCategoriesResult>
      </GetRoomCategoriesResponse>
   </soap:Body>
</soap:Envelope>


GetPansions (Receiving the list of the pansion types)

The method returns a list of types of meals.
The returning result:

  • GetPansionsResult – the search result
    • Pansion – the search result
      • Name – the name of the pansion type
      • ID – ID of the type of pansion
      • Description – the description of the type of pansion
      • NameLat – the name of the type of pansion in Latin
      • Code – the code of the type of pansion
      • CodeLat – the type of pansion code in Latin
      • Unicode – the ISO code of the pansion type
Example

The invocation of the method GetPansions

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetPansions/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetPansions

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetPansionsResponse xmlns="http://www.megatec.ru/">
         <GetPansionsResult>
            <Pansion>
               <Name>&lt;Not defined></Name>
               <ID>0</ID>
               <Description/>
               <NameLat/>
               <Code>ND</Code>
               <CodeLat/>
               <Unicode/>
            </Pansion>
            <Pansion>
               <Name>Full Board</Name>
               <ID>1</ID>
               <Description/>
               <NameLat/>
               <Code>FB</Code>
               <CodeLat/>
               <Unicode/>
            </Pansion>
            <Pansion>
               <Name>All Inclusive</Name>
               <ID>2</ID>
               <Description/>
               <NameLat/>
               <Code>AL</Code>
               <CodeLat/>
               <Unicode/>
            </Pansion>
        </GetPansionsResult>
      </GetPansionsResponse>
   </soap:Body>
</soap:Envelope>


GetRatings (Receiving an array of hotel categories (hotel stars))

The method returns an array of hotel categories.
The returning result:

  • GetRatingsResult – the search result
    • HotelCategory – an array of the data
      • Name – the name of the hotel category
      • ID – ID of the hotel category
      • Description – the description of the hotel category
      • NameLat – the name of the hotel category in Latin
      • Code – the code of the hotel category
      • CodeLat – the code of the hotel category
      • Unicode – the ISO code of the hotel categoryя
Example

The invocation of the method GetRatings

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRatings/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRatings

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetRatingsResponse xmlns="http://www.megatec.ru/">
         <GetRatingsResult>
            <HotelCategory>
               <Name>Not defined</Name>
               <ID>0</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </HotelCategory>
            <HotelCategory>
               <Name>5 stars (Deluxe)</Name>
               <ID>2</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </HotelCategory>
         </GetRatingsResult>
      </GetRatingsResponse>
   </soap:Body>
</soap:Envelope>


GetFlights (Receiving the list of the regions)

The method returns a list of flights.
The returning result:

  • GetFlightsResult – the search result
    • Flight – an array of the data
      • AirportFrom – the transfer hub at the departure point
        • Name – the name of the transfer node from the Flight numbers dictionary
        • ID – ID of the city of the transfer node
        • Description – the name of the city of the transfer node from the Pickup point list dictionary
        • NameLat – the name of the transfer node
        • Code – the code of the transfer node
        • CodeLat – the code of the transfer node in Latin
        • Unicode – the ISO code of the transfer node
        • RegionID – ID of the region of the transfer node location
        • CityID – ID of the city where the transfer node is located
      • AirportTo – the transfer hub at the point of arrival
        • Name – the name of the transfer node from the Flight numbers dictionary
        • ID – ID of the city of the transfer node
        • Description – the name of the city of the transfer node from the Pickup point list dictionary
        • NameLat – the name of the transfer node
        • Code – the code of the transfer node
        • CodeLat – the code of the transfer node in Latin
        • Unicode – the ISO code of the transfer node
        • RegionID – ID of the region of the transfer node location
        • CityID – ID of the region of the transfer node location
      • TimeFrom – time from
      • TimeTo – time to
      • DateFrom – date from
      • DateTo – date to
      • IsArrival
      • Available
      • ID – ID of the row from the Charter table from the database
      • Name – ID of the row from the Charter table from the database
      • Number – the flight number from the Flight numbers dictionary
      • ArrivalFlightNumber – the arrival flight number from the Flight numbers dictionary
      • DepartureFlightNumber – the departure flight number from the Flight numbers dictionary


Example

The invocation of the method GetFlights

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetFlights/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetFlights

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetFlightsResponse xmlns="http://www.megatec.ru/">
         <GetFlightsResult>
            <Flight>
               <AirportFrom>
                  <Name>Makedonia</Name>
                  <ID>1000001</ID>
                  <Description>Thessaloniki</Description>
                  <NameLat/>
                  <Code/>
                  <CodeLat/>
                  <Unicode/>
                  <RegionID>7</RegionID>
                  <CityID>12</CityID>
               </AirportFrom>
               <AirportTo>
                  <Name>Makedonia</Name>
                  <ID>1000001</ID>
                  <Description>Thessaloniki</Description>
                  <NameLat/>
                  <Code/>
                  <CodeLat/>
                  <Unicode/>
                  <RegionID>7</RegionID>
                  <CityID>12</CityID>
               </AirportTo>
               <TimeFrom>2021-08-31T00:00:00+04:00</TimeFrom>
               <TimeTo>2021-08-31T00:00:00+04:00</TimeTo>
               <DateFrom>2021-08-31T00:00:00+04:00</DateFrom>
               <DateTo>2021-08-31T00:00:00+04:00</DateTo>
               <IsArrival>false</IsArrival>
               <Available>No</Available>
               <ID>4</ID>
               <Name/>
               <Number>NN 283/284 00:01</Number>
            </Flight>
         </GetFlightsResult>
      </GetFlightsResponse>
   </soap:Body>
</soap:Envelope>


GetAirport (Receiving the list of the transfer nodes)

The method returns a list of transfer nodes.
The returning result:

  • GetFlightsResult – the search result
    • Airport – an array of the data
      • Name – the name of the transfer node from the Pickup Pickup point list dictionary
      • ID – ID of the transfer node
      • Description – the name of the city of the transfer node from the Pickup point list dictionary
      • NameLat – the name of the city of the transfer node in Latin
      • Code – the city code of the transfer node in Latin
      • CodeLat – the city code of the transfer node in Latin
      • Unicode – the ISO code of the city of the transfer node in Latin
      • RegionID – ID of the region of the transfer node location
      • CityID – ID of the city where the transfer node is located
Example

The invocation of the method GetAirport

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetAirport/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetAirport

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetAirportResponse xmlns="http://www.megatec.ru/">
         <GetAirportResult>
            <Airport>
               <Name>lalala</Name>
               <ID>3</ID>
               <Description>Moscow</Description>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <RegionID>19</RegionID>
               <CityID>87</CityID>
            </Airport>
            <Airport>
               <Name>El.Venizelos</Name>
               <ID>1004</ID>
               <Description>Athens</Description>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <RegionID>38</RegionID>
               <CityID>55</CityID>
            </Airport>
         </GetAirportResult>
      </GetAirportResponse>
   </soap:Body>
</soap:Envelope>


GetProviders (Receiving the list of the partners which are providers of services)

The method returns a list of partners of the system who are used to be service providers.
Returning result:

  • GetProvidersResult – the search result
    • Partner – an array of the data
      • Name – the name of the partner
      • ID – the ID of the stalls
      • Description – the description of the partner
      • NameLat – the name of the partner in Latin
      • Code – the partner's code
      • CodeLat – the partner code in Latin
      • Unicode – the partner's ISO code
      • PartnersGroupID – ID of the partner's group
      • FullName – the full name of the partner
      • Fax – the partner's fax
      • Address – the partner's address
      • Zip – the partner's zip code
      • Email – the partner's e-mail
      • Phones – the partner's phones
Example

The invocation of the method GetProviders

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetProviders/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetProviders

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetProvidersResponse xmlns="http://www.megatec.ru/">
         <GetProvidersResult>
            <Partner>
               <Name>&lt;All></Name>
               <ID>0</ID>
               <Description/>
               <NameLat>&lt;All></NameLat>
               <Code>&lt;AL</Code>
               <CodeLat/>
               <Unicode/>
               <PartnersGroupID>0</PartnersGroupID>
               <FullName>&lt;All></FullName>
               <Fax/>
               <Address/>
               <Zip/>
               <Email/>
               <Phones/>
            </Partner>
            <Partner>
               <Name>HOTEL CHANGE</Name>
               <ID>1</ID>
               <Description/>
               <NameLat>HOTEL CHANGE</NameLat>
               <Code>HOT</Code>
               <CodeLat/>
               <Unicode/>
               <PartnersGroupID>0</PartnersGroupID>
               <FullName>HOTEL CHANGE</FullName>
               <Fax/>
               <Address/>
               <Zip/>
               <Email/>
               <Phones/>
            </Partner>
         </GetProvidersResult>
      </GetProvidersResponse>
   </soap:Body>
</soap:Envelope>


GetTransports (Receiving the list of the vehicles)

The method returns a list of vehicles.
The returning result:

  • GetTransportsResult – the search result
    • Transport – an array of the data
      • Name – the name of the vehicle
      • ID – the vehicle ID
      • Description – the description of the vehicle
      • NameLat – the name of the vehicle in Latin
      • Code – the vehicle code
      • CodeLat – the vehicle code in Latin
      • Unicode – the ISO code of the vehicle
Example

The invocation of the method GetTransports

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetTransports/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetTransports

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetTransportsResponse xmlns="http://www.megatec.ru/">
         <GetTransportsResult>
            <Transport>
               <Name>Not defined</Name>
               <ID>0</ID>
               <Description/>
               <NameLat>Not defined</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </Transport>
            <Transport>
               <Name>Bus</Name>
               <ID>3</ID>
               <Description/>
               <NameLat>Bus</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </Transport>
            <Transport>
               <Name>Minibus</Name>
               <ID>4</ID>
               <Description/>
               <NameLat>Minibus</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </Transport>
         </GetTransportsResult>
      </GetTransportsResponse>
   </soap:Body>
</soap:Envelope>


GetTransferTypes (Receiving the list of the transfer types)

The method returns a list of transfer types.
The returning result:

  • GetTransferTypesResult – the search result
    • Transport – an array of the data
      • Name – the name of the transfer
      • ID – the transfer ID
      • Description – the description of the transfer
      • NameLat – the name of the transfer in Latin
      • Code – the transfer code
      • CodeLat – transfer code in Latin
      • Unicode – the ISO code of the transfer
Example

The invocation of the method GetTransferTypes

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetTransferTypes/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetTransferTypes

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetTransferTypesResponse xmlns="http://www.megatec.ru/">
         <GetTransferTypesResult>
            <Transport>
               <Name>Group</Name>
               <ID>2</ID>
               <Description/>
               <NameLat>Group</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </Transport>
            <Transport>
               <Name>Ind Car</Name>
               <ID>3</ID>
               <Description/>
               <NameLat>Ind Car</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </Transport>
         </GetTransferTypesResult>
      </GetTransferTypesResponse>
   </soap:Body>
</soap:Envelope>


GetRates (Receiving the list of the currencies)

The method returns a list of currencies.
The returning result:

  • GetRatesResult – the search result
    • Rate – an array of the data
      • Name – the name of the currency
      • ID – the currency ID
      • Description – the currency description
      • NameLat – the description of the currency in Latin
      • Code – the currency code
      • CodeLat – the currency code in Latin
      • Unicode – the ISO code of the currency
      • IsMain – the currency attribute "main"
      • IsNational – the currency attribute "national"
Example

The invocation of the method GetRates

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRates/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRates

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetRatesResponse xmlns="http://www.megatec.ru/">
         <GetRatesResult>
            <Rate>
               <Name>Euro</Name>
               <ID>1</ID>
               <Description/>
               <NameLat/>
               <Code>EU</Code>
               <CodeLat/>
               <Unicode>EUR</Unicode>
               <IsMain>false</IsMain>
               <IsNational>false</IsNational>
            </Rate>
            <Rate>
               <Name>US dollar</Name>
               <ID>2</ID>
               <Description/>
               <NameLat/>
               <Code>USD</Code>
               <CodeLat/>
               <Unicode>USD</Unicode>
               <IsMain>false</IsMain>
               <IsNational>false</IsNational>
            </Rate>
         </GetRatesResult>
      </GetRatesResponse>
   </soap:Body>
</soap:Envelope>


GetServicePackage (Receiving the list of the options for package services)

The method returns a list of options for package services.
The returning result:

  • GetServicePackageResult – the search result
    • ServiceList – an array of the data
      • Name – the name of the option
      • ID – ID of the option
      • Description – the description of the option
      • NameLat – the description of the option in Latin
      • Code – the code of the option
      • CodeLat – the code of the option in Latin
      • Unicode – the ISO code of the option
      • ServiceClaseID – ID of the additional service class
      • CountryID – the key of the country of the option
Example

The invocation of the method GetServicePackage

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetServicePackage/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetServicePackage

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetServicePackageResponse xmlns="http://www.megatec.ru/">
         <GetServicePackageResult>
            <ServiceList>
               <Name>5 days in Antique Greece (4 nights)/DBL BB</Name>
               <ID>21</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <ServiceClaseID>0</ServiceClaseID>
               <CountryID>4</CountryID>
            </ServiceList>
            <ServiceList>
               <Name>5 days in Antique Greece (4 nights)/DBL HB</Name>
               <ID>148</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <ServiceClaseID>0</ServiceClaseID>
               <CountryID>4</CountryID>
            </ServiceList>
         </GetServicePackageResult>
      </GetServicePackageResponse>
   </soap:Body>
</soap:Envelope>


GetDLStatuses (Receiving the list of the service statuses)

The method returns the file status of the service.
The returning result:

  • GetDLStatusesResult – the search result
    • StatusService – an array of the data
      • Name – the name of the
      • ID – the service status ID
      • Description – the description status services
      • NameLat – the description of services in Latin
      • Code – the code of service status
      • CodeLat – the code of service status in Latin
      • Unicode – the ISO code of service status
Example

The invocation of the method GetDLStatuses

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetDLStatuses/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetDLStatuses

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetDLStatusesResponse xmlns="http://www.megatec.ru/">
         <GetDLStatusesResult>
            <StatusService>
               <Name>Wait</Name>
               <ID>1</ID>
               <Description/>
               <NameLat>Wait</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </StatusService>
            <StatusService>
               <Name>Confirmed</Name>
               <ID>2</ID>
               <Description/>
               <NameLat>Confirmed</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </StatusService>
            <StatusService>
               <Name>Not confirmed</Name>
               <ID>4</ID>
               <Description/>
               <NameLat>Not confirmed</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </StatusService>
         </GetDLStatusesResult>
      </GetDLStatusesResponse>
   </soap:Body>
</soap:Envelope>


GetTariffs (Receiving the list of the tariffs for the certain type of services)

The method returns tariffs for the certain type of service.
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)
  • SvKey * – the service type key

The returning result:

  • GetTariffsResult – the search result
    • Tariff – an array of the data
      • ID – the tariff ID
      • Name – the name of the tariff
      • Description – the description of the tariff
      • NameLat – the name of the tariff in Latin
      • Code – the code of the tariff
      • CodeLat – the tariff code in Latin
      • Unicode – the ISO code of the tariff
      • SvKey – the service type key
      • Comment – the description
      • CreateDate – the creation date
Example

The invocation of the method GetTariffs

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetTariffs>
         <!--Optional:-->
         <meg:guid>6ef6eeb2-a766-4a30-92c0-348d5c2afb94</meg:guid>
         <meg:svKey>1</meg:svKey>
      </meg:GetTariffs>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetTariffs

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetTariffsResponse xmlns="http://www.megatec.ru/">
         <GetTariffsResult>
            <Tariff>
               <Name>!A4</Name>
               <ID>785</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <SVKey>1</SVKey>
               <Comment>A</Comment>
               <CreateDate>2018-11-14T00:00:00</CreateDate>
            </Tariff>
            <Tariff>
               <Name>Info Tour</Name>
               <ID>623</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <SVKey>1</SVKey>
               <Comment/>
               <CreateDate>2009-10-01T00:00:00</CreateDate>
            </Tariff>
         </GetTariffsResult>
      </GetTariffsResponse>
   </soap:Body>
</soap:Envelope>


GetRoomDescriptions (Receiving an array of the descriptions of the rooms)

The method returns an array of room descriptions.
Accepted request parameters ( * – required):

  • RoomTypeId * – the room type key (0 – for all)
  • RoomCategoryId * – the room category key (0 – for all)

The returning result:

  • GetRoomDescriptionsResult – the search result
    • AdditionalDescription – an array of the data
      • Name – the name of the description of the room
      • ID – the name of the description of the room
      • Description – the description
      • NameLat – the name of the description of the room in Latin
      • Code – the room description code
      • CodeLat – the code of the description of the room in Latin
      • Unicode – the ISO code of the room description
Example

The invocation of the method GetRoomDescriptions

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRoomDescriptions>
         <meg:roomTypeId>7</meg:roomTypeId>
         <meg:roomCategoryId>7</meg:roomCategoryId>
      </meg:GetRoomDescriptions>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRoomDescriptions

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetRoomDescriptionsResponse xmlns="http://www.megatec.ru/">
         <GetRoomDescriptionsResult>
            <AdditionalDescription>
               <Name>Family Room Golf View</Name>
               <ID>1368</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </AdditionalDescription>
         </GetRoomDescriptionsResult>
      </GetRoomDescriptionsResponse>
   </soap:Body>
</soap:Envelope>


GetAccommodations (Receiving the accommodations for the hotel)

The method returns hotel accommodations.
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)

The returning result:

  • GetAccommodationsResult – the search result
    • Message – the accommodation ID
    • Data – an array of objects with data
      • AccomodationInfo – an array of the data with accommodation
        • Id – the accommodation ID
        • Code – the accommodation code
        • Name – the name of the accommodation
        • IsPerRoom – per room or per person
        • NameUnicode – the name of the accommodation in Unicode
        • CountAdultMain – the number of adults in the main places
        • CountChildMain – the number of children in the main places
        • CountAdultExtra – the number of adults per additional place
        • CountChildExtra – the number of children per additional place
        • ChildrenAges – the string with a description of the ages of children
        • IsWeb – the accessibility for Interlook-Web
        • IsPackage – is it possible to add to the package
        • UpdateDate – the date of the last update of the accommodation
        • ClildrenAgesList – the list with the ages of children
          • AccomadationAge – an array of the data with age
            • Id – ID of the record
            • AgeFrom – age «from»
            • AgeTo – age «to»
            • CountMen – the number of adults in the accommodation
            • IsMain – is a child of this age in the main place
            • UpdateDate – the date of the last update of the record
Example

The invocation of the method GetAccommodations

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetAccommodations>
         <!--Optional:-->
         <meg:guid>1b972765-0318-4ca3-9437-cefa99a3959d</meg:guid>
      </meg:GetAccommodations>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetAccommodations

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetAccommodationsResponse xmlns="http://www.megatec.ru/">
         <GetAccommodationsResult Message="Ok">
            <Data>
             <AccomodationInfo Id="7939" Code="1Ad+2Ch(3-12)" Name="1Ad+2Ch(3-12)" IsPerRoom="true" NameUnicode="1Ad+2Ch(3-12)" CountAdultMain="1" CountChildMain="2" CountAdultExtra="0" CountChildExtra="0" ChildrenAges="2Ch(3-12)" IsWeb="true" IsPackage="false" UpdateDate="2020-04-10T18:25:09.3">
                  <ChildrenAgesList>
                     <AccomadationAge Id="6664" AgeFrom="3" AgeTo="12" CountMen="2" IsMain="true" UpdateDate="2020-04-10T18:25:09.293"/>
                  </ChildrenAgesList>
               </AccomodationInfo>
            </Data>
         </GetAccommodationsResult>
      </GetAccommodationsResponse>
   </soap:Body>
</soap:Envelope>


GetRoomAccommodations (Receiving the accommodations for the hotel an 2 first values of ages from the list of childrenages)

The method returns the hotel accommodation and the first 2 values of ages from the list of ages of children.
The returning result:

  • GetRoomAccommodationsResult – The returning result
    • RoomAccomodation – an array of the data
      • Name – the name of the accommodation
      • ID – the accommodation ID
      • Description – the description of the accommodation
      • NameLat – the name of the accommodation in Latin
      • Code – the accommodation code
      • CodeLat – the accommodation code in Latin
      • Unicode – the ISO code of the accommodation
      • PerRoom – per room
      • AdultMainPalces – the number of adult main places
      • ChildMainPalces – the number of primary places for children
      • AdultExtraPalces – the number of adult additional places
      • ChildExtraPalces – the number of additional places for children
      • MainPlaces – the number of main places
      • ExtraPlaces – the number of additional seats
      • IsMain – the are there any main places
      • AgeFrom – the age of children «from»
      • AgeTo – the age of children «to»
      • Age2From – the age of children «from»
      • Age2To – the age of children «to»
Example

The invocation of the method GetRoomAccommodations

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRoomAccommodations/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRoomAccommodations

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetRoomAccommodationsResponse xmlns="http://www.megatec.ru/">
         <GetRoomAccommodationsResult>
            <RoomAccomodation>
               <Name>2Add</Name>
               <ID>15</ID>
               <Description/>
               <NameLat/>
               <Code>2+</Code>
               <CodeLat/>
               <Unicode>2Ad+1Ch(3-5)</Unicode>
               <PerRoom>true</PerRoom>
               <AdultMainPalces>2</AdultMainPalces>
               <ChildMainPalces>4</ChildMainPalces>
               <AdultExtraPalces>0</AdultExtraPalces>
               <ChildExtraPalces>0</ChildExtraPalces>
               <MainPlaces>6</MainPlaces>
               <ExtraPlaces>0</ExtraPlaces>
               <IsMain>true</IsMain>
               <AgeFrom>3</AgeFrom>
               <AgeTo>5</AgeTo>
               <Age2From>0</Age2From>
               <Age2To>0</Age2To>
            </RoomAccomodation>
            <RoomAccomodation>
               <Name>1Ad+1inf</Name>
               <ID>16</ID>
               <Description/>
               <NameLat/>
               <Code>1Ad+1inf</Code>
               <CodeLat/>
               <Unicode>1Ad</Unicode>
               <PerRoom>true</PerRoom>
               <AdultMainPalces>1</AdultMainPalces>
               <ChildMainPalces>0</ChildMainPalces>
               <AdultExtraPalces>0</AdultExtraPalces>
               <ChildExtraPalces>0</ChildExtraPalces>
               <MainPlaces>1</MainPlaces>
               <ExtraPlaces>0</ExtraPlaces>
               <IsMain>true</IsMain>
               <AgeFrom>0</AgeFrom>
               <AgeTo>0</AgeTo>
               <Age2From>0</Age2From>
               <Age2To>0</Age2To>
            </RoomAccomodation>
         </GetRoomAccommodationsResult>
      </GetRoomAccommodationsResponse>
   </soap:Body>
</soap:Envelope>


GetClientInfo (Issuing information about the partner to which relates the on-line user)

The method provides information about the partner to which the on-line user belongs, under which the request was made in the Connect method .
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)

The returning result:

  • Name – the name of the partner
  • MarketName – the list of markets from the partner card
  • Address – the address from the partner's card
Example

The invocation of the method GetClientInfo

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetClientInfo>
         <!--Optional:-->
         <meg:guid>6851ab74-f299-4668-ade8-b8e125b7ad61</meg:guid>
      </meg:GetClientInfo>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetClientInfo

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetClientInfoResponse xmlns="http://www.megatec.ru/">
         <GetClientInfoResult Message="Ok">
            <Data>
               <ClientInfo>
                  <Name>Alpha Tour</Name>
                  <MarketName>Russian Market</MarketName>
                  <Address>Belarus,Minsk,Pobediteley street 23/1-115a A</Address>
               </ClientInfo>
            </Data>
         </GetClientInfoResult>
      </GetClientInfoResponse>
   </soap:Body>
</soap:Envelope>


Methods of integration with payment systems

GetReservationPenalties (Receiving the penalties for the reservation before canceling it)

The method returns the amount of penalties for the reservation before it is canceled.
The operation of the method is regulated by a license.
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)
  • ReservationKey * – the reservation key
  • CancellationDate – the cancellation date on which the condition and the amount of the fine are issued. If not specified, then we get all possible cancellation rules up to arrival.

The returning result:

  • GetReservationPenaltiesResult – the search result
    • Penalty – fine
      • ServicePenalty – the penalty service
        • ServiceClassID – id of the service class
        • ID – ID of the fine
        • Name – the name of the fine
        • PenaltyData – an array of penalty data
          • PenaltyDataInfo – an array of data
            • TotalPenalty – the full amount of the penalty
            • RateCode – the currency code
            • PolicyDescription – the penalty conditions
            • CancellationPolicyData – an array of cancellation data
              • PolicyKey – the cancellation key
              • DateFrom – date from
              • DateTo – date to
              • PenaltyValue – the penalty value
              • IsPercent - the percentage indicating that the penalty is in "%" (true) or in "nights" (false)
        • Hotel – the Hotel
          • ID – the hotel ID
          • Name – the name of the hotel
        • RoomType – the room type
          • ID – the Room ID
          • Name – the name of the room
        • RoomCategory – the room category
          • ID – ID of the room category
          • Name – the name of the room category
        • Accommodation – the accommodation
          • ID – the accommodation ID
          • Name – the name of the placement
        • Pansion – the type of pansion supply
          • ID – ID of the type of pansion supply
          • Name – the name of the type of the pansion

In case of errors, we will receive a message with a decryption.
In case of an incorrect Guid, we will receive the message: "Invalid user or password (Invalid GUID)".
If there is no contract with the specified key for the current partner, we will receive the message:"Check the parameter 'reservationKey' = <value in request>. There is no booking in the database for you.".br />

Example

The invocation of the method GetReservationPenalties

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetReservationPenalties>
         <!--Optional:-->
         <meg:guid>9d041308-0e4c-4d07-8486-9e2293f1de75</meg:guid>
         <meg:reservationKey>36080</meg:reservationKey>
         </meg:GetReservationPenalties>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetReservationPenalties

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetReservationPenaltiesResponse xmlns="http://www.megatec.ru/">
         <GetReservationPenaltiesResult>
            <Penalty>
               <ServicePenalty xsi:type="HotelPenalty">
                  <ServiceClassID>0</ServiceClassID>
                  <ID>164217</ID>
                  <Name>HTL::Delphi/Fedriades Hotel /Double Room/2AD/100 m2/BB</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>0</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled before 01.09.2021, no penalty Penalty value is 0.00 EU</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>-1</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo>2021-09-01T00:00:00</DateTo>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                     <PenaltyDataInfo>
                        <TotalPenalty>17.76</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled from 01.09.2021, the penalty will be 2.00 % of the cost of accommodation Penalty value is 17.76 EU</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>73</PolicyKey>
                           <DateFrom>2021-09-01T00:00:00</DateFrom>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>2</PenaltyValue>
                           <IsPercent>true</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
                  <Hotel>
                     <ID>2426</ID>
                     <Name>Fedriades Hotel</Name>
                  </Hotel>
                  <RoomType>
                     <ID>3</ID>
                     <Name>Double Room</Name>
                  </RoomType>
                  <RoomCategory>
                     <ID>47</ID>
                     <Name>100 m2</Name>
                  </RoomCategory>
                  <Accommodation>
                     <ID>5558</ID>
                     <Name>2Ad</Name>
                  </Accommodation>
                  <Pansion>
                     <ID>3</ID>
                     <Name>Bed and Breakfast</Name>
                  </Pansion>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>2</ServiceClassID>
                  <ID>164218</ID>
                  <Name>TRF::Arrival transfer/Mini Bus/El.Venizelos-Fedriades Hotel /Delphi/!AA 910</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>0</TotalPenalty>
                        <RateCode/>
                        <PolicyDescription/>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>5</ServiceClassID>
                  <ID>164219</ID>
                  <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>270</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>0</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>5</ServiceClassID>
                  <ID>164220</ID>
                  <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>270</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>0</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>5</ServiceClassID>
                  <ID>164222</ID>
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>100</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>0</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>5</ServiceClassID>
                  <ID>164223</ID>
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>100</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>0</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>5</ServiceClassID>
                  <ID>164224</ID>
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>100</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>0</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
             </Penalty>
         </GetReservationPenaltiesResult>
      </GetReservationPenaltiesResponse>
   </soap:Body>
</soap:Envelope>


CreatePayment (Creating the payments for the reservation)

The method creates the payment for the reservation.
Accepted request parameters ( * – required):

  • UserToken * – Id of authentification (returns in request for method Connect)
  • Date * – the date of payment creation
  • Sum * – the payment amount
  • CurrencyIsoCode * – the ISO code of the payment currency
  • ReservationCode * – the reservation code
  • PaymentId * – the payment ID (set manually for subsequent identification of the payment). The unique code specified by the user once should not be repeated in the next payment for this reservation.

The returning result:

  • CreatePaymentResult – the output result
    • 0 – NoError – no errors
    • 1 – DogovorNotFound – the reservation with this code was not found
    • 2 – InternalError – an internal error
    • 3 – DogovorAnnulate – the reservation is canceled
    • 4 – DogovorPayed – the reservation is paid
    • 7 – ExistingPaymentID – the payment with such an external ID already exists
    • 8 – IncorrectPaymentType – there are payments of prohibited types for the reservation
    • 9 – NotAllowedPartnerKey – the partner on the reservation is not allowed
    • 10 – FailureSignature – the signature error
    • 11 – NoInvoices – there are no invoices for the reservation
Example

The invocation of the method CreatePayment

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CreatePayment>
         <!--Optional:-->
         <meg:userToken>96ce5daf-f8ca-4dd9-a114-ede84d1d1608</meg:userToken>
         <meg:date>2021-09-10</meg:date>
         <meg:sum>120</meg:sum>
         <!--Optional:-->
         <meg:currencyIsoCode>EUR</meg:currencyIsoCode>
         <!--Optional:-->
         <meg:reservationCode>MT110919A0K</meg:reservationCode>
         <!--Optional:-->
         <meg:paymentId>13</meg:paymentId>
      </meg:CreatePayment>
   </soapenv:Body>
</soapenv:Envelope>

The invocation of the method CreatePayment

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CreatePaymentResponse xmlns="http://www.megatec.ru/">
         <CreatePaymentResult>0</CreatePaymentResult>
      </CreatePaymentResponse>
   </soap:Body>
</soap:Envelope>


GetPaymentInformation (Searching for the payment information with a specified payment ID from an external system)

The method returns information about the payment with the specified payment ID from the external system.
Accepted request parameters ( * – required):

  • UserToken * – Id of authentification (returns in request for method Connect)
  • ReservationCode * – the reservation code
  • ExternalPaymentId * – the payment ID (the PaymentID parameter in the CreatePayment method request)

The returning result:

  • GetPaymentInformationResult – the output result
    • IsPaymentExists – shows if there is a requested payment
      • true – the payment with the specified ID for the specified reservation exists
      • false – there is no requested payment
    • PaymentInformationResult – an array for payment data
      • InternalPaymentId – the payment ID in the Interlook system
      • DogovorCode – the reservation code
      • PaymentSum – the payment amount
      • PaymentNationalSum – the amount of the payment in the national currency
      • PaymentRateISOCode – the ISO code of the payment currency
      • CreateDate – the date of payment
    • ErrorCode – the error code
      • 0 – NoError – no errors
      • 1 – DogovorNotFound – the reservation with this code was not found
      • 2 – InternalError – an internal error
      • 3 – DogovorAnnulate – the reservation is canceled
      • 4 – DogovorPayed – the reservation is paid
      • 7 – ExistingPaymentID – the payment with such an external ID already exists
      • 8 – IncorrectPaymentType – there are payments of prohibited types for the reservation
      • 9 – NotAllowedPartnerKey – the partner on the reservation is not allowed
      • 10 – FailureSignature – the signature error
      • 11 – NoInvoices – there are no invoices for the reservation
Example

The invocation of the method GetPaymentInformation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetPaymentInformation>
         <!--Optional:-->
         <meg:userToken>96ce5daf-f8ca-4dd9-a114-ede84d1d1608</meg:userToken>
         <!--Optional:-->
         <meg:reservationCode>MT110919A0K</meg:reservationCode>
         <!--Optional:-->
         <meg:externalPaymentId>12</meg:externalPaymentId>
      </meg:GetPaymentInformation>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetPaymentInformation

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetPaymentInformationResponse xmlns="http://www.megatec.ru/">
         <GetPaymentInformationResult>
            <IsPaymentExists>true</IsPaymentExists>
            <PaymentsShortInformation>
               <InternalPaymentId>1997</InternalPaymentId>
               <DogovorCode>MT110919A0K</DogovorCode>
               <PaymentSum>150</PaymentSum>
               <PaymentNationalSum>150</PaymentNationalSum>
               <PaymentRateISOCode>EUR</PaymentRateISOCode>
               <CreateDate>2021-09-13T18:17:20.837</CreateDate>
            </PaymentsShortInformation>
            <ErrorCode>0</ErrorCode>
         </GetPaymentInformationResult>
      </GetPaymentInformationResponse>
   </soap:Body>
</soap:Envelope>


GetCancellationPolicyInfoWithPenalty (Receiving the information on the calculation of penalties for the hotel)

This functionality is available starting from release 11.20


The method returns information about the calculation of penalties for the hotel.
The output of the method results is regulated by the license.
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)
  • DateFrom * – the start date of the stay
  • DateTo * – the start date of the stay
  • HotelKey * – the hotel ID
  • PansionKey – the pansion ID
  • AccommodationKey – the accommodation ID, optional if we transmit Pax
  • RoomTypeKey – the room type ID
  • RoomCategoryKey – ID of the room category
  • Pax * – Pax by service
  • Ages* – the list with the ages of children. If we are looking for accommodation without children, we transmit an empty parameter (<meg:Ages></meg:Ages>)
  • CancellationDate – the cancellation date (if not specified, the current one is taken)

The returning result:

  • GetCancellationPolicyInfoWithPenaltyResult – the output result
    • CancellationPolicyInfoWithPenalty – an array of data
      • HotelKey – the hotel ID
      • HotelName – the name of the hotel
      • AccomodatioKey – the accommodation ID
      • AccomodatioName – the name of the accommodation
      • RoomTypeKey – the room type ID
      • RoomTypeName – the name of the room type
      • RoomCategoryKey – ID of the room category
      • RoomCategoryName – the name of the room category
      • PansionKey – the pansion ID
      • PansionName – the name of the food
      • PolicyDescripion – the description of the cancellation policy and the full amount of the penalty
      • CancellationDate – the cancellation date
      • PolicyData – the cancellation date
        • CancellationPolicyWithPenaltyValue – an array of data for calculating the penalty
          • PolicyKey – the policy key
          • DateFrom – the date "from"
          • DateTo – not set
          • PenaltyValue – the penalty value
          • IsPercent – the parameter indicating that the penalty is in "%" (true) or in "nights" (false)
          • PenaltyTotal – the total amount of the penalty
Example

The invocation of the method GetCancellationPolicyInfoWithPenalty

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
  <soapenv:Header/>
  <soapenv:Body>
     <meg:GetCancellationPolicyInfoWithPenalty>
        <meg:guid>66c8bbb3-53dc-47a0-8ddb-8e08ec68c84c</meg:guid>
        <meg:dateFrom>2021-12-01</meg:dateFrom>
        <meg:dateTo>2021-12-15</meg:dateTo>
        <meg:HotelKey>2942</meg:HotelKey>
        <meg:PansionKey>3</meg:PansionKey>
        <meg:AccommodationKey>5558</meg:AccommodationKey>
        <meg:RoomTypeKey>3</meg:RoomTypeKey>
        <meg:RoomCategoryKey>20</meg:RoomCategoryKey>
        <meg:Pax>2</meg:Pax>
        <meg:Ages>
           <meg:int>14</meg:int>
        </meg:Ages>
        <meg:CancellationDate>2021-11-30</meg:CancellationDate>
     </meg:GetCancellationPolicyInfoWithPenalty>
  </soapenv:Body>

</soapenv:Envelope> </syntaxhighlight> The returning result for the method GetCancellationPolicyInfoWithPenalty

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetCancellationPolicyInfoWithPenaltyResponse xmlns="http://www.megatec.ru/">
         <GetCancellationPolicyInfoWithPenaltyResult Message="Ok">
            <Data>
               <CancellationPolicyInfoWithPenalty>
                  <HotelKey>2942</HotelKey>
                  <HotelName>Green (Kiev) Not defined</HotelName>
                  <AccomodatioKey>5558</AccomodatioKey>
                  <AccomodatioName>2AD</AccomodatioName>
                  <RoomTypeKey>3</RoomTypeKey>
                  <RoomTypeName>Double Room</RoomTypeName>
                  <RoomCategoryKey>20</RoomCategoryKey>
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
                  <PansionKey>3</PansionKey>
                  <PansionName>BB</PansionName>
                  <PolicyDescripion>
                     <string>If canceled in period 30.11.2021 - 30.11.2021, the penalty will be 2 night(s). Penalty value is 690.00 EU</string>
                     <string>If canceled from 01.12.2021, the penalty will be 100.00 % of the cost of accommodation. Penalty value is 4,140.00 EU</string>
                  </PolicyDescripion>
                  <CancellationDate>2021-11-30T00:00:00</CancellationDate>
                  <PolicyData>
                     <CancellationPolicyWithPenaltyValue>
                        <PolicyKey>166</PolicyKey>
                        <DateFrom>2021-11-30T00:00:00</DateFrom>
                        <DateTo>2021-11-30T00:00:00</DateTo>
                        <PenaltyValue>2</PenaltyValue>
                        <IsPercent>false</IsPercent>
                        <PenaltyTotal>690</PenaltyTotal>
                        <Currency>EU</Currency>
                     </CancellationPolicyWithPenaltyValue>
                     <CancellationPolicyWithPenaltyValue>
                        <PolicyKey>-1</PolicyKey>
                        <DateFrom>2021-12-01T00:00:00</DateFrom>
                        <DateTo xsi:nil="true"/>
                        <PenaltyValue>100</PenaltyValue>
                        <IsPercent>true</IsPercent>
                        <PenaltyTotal>4140</PenaltyTotal>
                        <Currency>EU</Currency>
                     </CancellationPolicyWithPenaltyValue>
                  </PolicyData>
               </CancellationPolicyInfoWithPenalty>
            </Data>
         </GetCancellationPolicyInfoWithPenaltyResult>
      </GetCancellationPolicyInfoWithPenaltyResponse>
   </soap:Body>
</soap:Envelope>


CheckReservation (Receiving the information about the payment required for the reservation in the selected currency)

The method returns information about the payment required for the reservation in the selected currency.
Accepted request parameters ( * – required):

  • UserToken * – Id of authentification (returns in request for method Connect)
  • DgCode * – the voucher code
  • CurrencyIsoCode * – the ISO code of the payment currency

The returning result:

  • CheckReservationResult – the output result
    • Amount – the payment amount
    • RateCode – the ISO code of the payment currency
    • NationalCurrencyPrice – the payment amount in national currency
    • NationalRateCode – the ISO code of the national currency
    • CustomCurrencyPrice – the payment amount in any currency
    • CustomRateCode – the ISO code of any payment currency
    • ErrorCode – the result code
      • 0 – NoError – no errors
      • 1 – DogovorNotFound – the reservation with this code was not found
      • 2 – InternalError – an internal error
      • 3 – DogovorAnnulate – the reservation is canceled
      • 4 – DogovorPayed – the reservation is paid
      • 7 – ExistingPaymentID – the payment with such an external ID already exists
      • 8 – IncorrectPaymentType – there are payments of prohibited types for the reservation
      • 9 – NotAllowedPartnerKey – the partner on the reservation is not allowed
      • 10 – FailureSignature – the signature error
      • 11 – NoInvoices – there are no invoices for the reservation
    • FilialKey – the ID of the partner's branch
    • BeginTourDate – the start date of the tour in the reservation
    • EndTourDate – the end date of the tour package
Example

The invocation of the method CheckReservation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CheckReservation>
         <!--Optional:-->
         <meg:userToken>d9c97f30-e0f5-450a-a802-f50551960d78</meg:userToken>
         <!--Optional:-->
         <meg:dgCode>MT110919A0K</meg:dgCode>
         <!--Optional:-->
         <meg:currencyIsoCode>EUR</meg:currencyIsoCode>
      </meg:CheckReservation>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method CheckReservation

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CheckReservationResponse xmlns="http://www.megatec.ru/">
         <CheckReservationResult>
            <Amount>1310</Amount>
            <RateCode>EUR</RateCode>
            <NationalCurrencyPrice>1310</NationalCurrencyPrice>
            <NationalRateCode>EUR</NationalRateCode>
            <CustomCurrencyPrice>1310</CustomCurrencyPrice>
            <CustomRateCode>EUR</CustomRateCode>
            <ErrorCode>0</ErrorCode>
            <FilialKey>1199</FilialKey>
            <BeginTourDate>2021-09-19T00:00:00</BeginTourDate>
            <EndTourDate>2021-10-11T00:00:00</EndTourDate>
         </CheckReservationResult>
      </CheckReservationResponse>
   </soap:Body>
</soap:Envelope>


CreatePaymentForDogovor (Creating the reservation payment based on issued invoice)

The method creates the payment for the reservation that has an invoice.
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)
  • DgKey * – the reservation key
  • Payment * – the payment amount

The returning result:

  • CreatePaymentForDogovorResult – the output result
    • OrderId – the payment ID

If there is no created invoice for the reservation, we will receive the message: "There is no invoice".

Example

The invocation of the method CreatePaymentForDogovor

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CreatePaymentForDogovor>
         <!--Optional:-->
         <meg:guid>92a87a3b-04f8-4cad-bd0f-360fe8bd0a8f</meg:guid>
         <meg:dgKey>36225</meg:dgKey>
         <meg:payment>1500</meg:payment>
      </meg:CreatePaymentForDogovor>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method CreatePaymentForDogovor

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CreatePaymentForDogovorResponse xmlns="http://www.megatec.ru/">
         <CreatePaymentForDogovorResult/>
         <orderId>2008</orderId>
      </CreatePaymentForDogovorResponse>
   </soap:Body>
</soap:Envelope>


Methods for working with quotas

CheckQuota (Checking the availability of a hotel room for a period)

The method returns information about the availability of the hotel room for the period.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DateFrom – date from
  • DateTo – date to
  • HotelId * – the hotel key
  • RoomTypeId * – the room type key (-1 for all)
  • RoomCategoryId * – the room category key (-1 for all)

The returning result:

  • ServiceResult – the search result
  • QuotaSimpleInfo – an array of data
    • RoomTypeId – the room type key
    • RoomCategoryId – the room category key
    • Quota – the information about the quota (0 – on request, 1 – there is a quota, 2 – stop)
    • RoomVariantName – the name of the room option (combinations from the RoomVariant table)
    • Date – not filled in
Example

The invocation of the method CheckQuota

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CheckQuota>
         <!--Optional:-->
         <meg:guid>fcce4f31-dd71-4d70-bbb3-0e279f59eefc</meg:guid>
         <meg:dateFrom>2021-07-13</meg:dateFrom>
         <meg:dateTo>2021-07-30</meg:dateTo>
         <meg:hotelId>2930</meg:hotelId>
         <meg:roomTypeId>-1</meg:roomTypeId>
         <meg:roomCategoryId>-1</meg:roomCategoryId>
      </meg:CheckQuota>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method CheckQuota

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CheckQuotaResponse xmlns="http://www.megatec.ru/">
         <CheckQuotaResult Message="Ok">
            <Data>
               <QuotaSimpleInfo RoomTypeId="2" RoomCategoryId="8" Quota="0" RoomVariantName="Single Room Side Sea View" Date="0001-01-01T00:00:00"/>
               <QuotaSimpleInfo RoomTypeId="150" RoomCategoryId="8" Quota="0" RoomVariantName="Double Classical Side Sea View" Date="0001-01-01T00:00:00"/>
            </Data>
         </CheckQuotaResult>
      </CheckQuotaResponse>
   </soap:Body>
</soap:Envelope>


GetQuotaInfo (Checking the availability of a hotel room for a period with details by day)

МеThe method returns information about the availability of the hotel room for the period with details by day.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DateFrom * – date from
  • DateTo * – date to
  • HotelId * – the hotel key
  • RoomTypeId * – the room type key (-1 for all)
  • RoomCategoryId * – the room category key (-1 for all)

The returning result:

  • GetQuotaInfoResult – the search result
  • QuotaSimpleInfo – an array of data
    • RoomTypeId – the room type key
    • RoomCategoryId – the room category key
    • Quota – the information about the quota (0 – on request, 1 – there is a quota, 2 – stop)
    • RoomVariantName – the name of the room options (combinations from the RoomVariant table)
    • Date – the day
Example

The invocation of the method GetQuotaInfo

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CheckQuota>
         <!--Optional:-->
         <meg:guid>fcce4f31-dd71-4d70-bbb3-0e279f59eefc</meg:guid>
         <meg:dateFrom>2021-07-13</meg:dateFrom>
         <meg:dateTo>2021-07-30</meg:dateTo>
         <meg:hotelId>2930</meg:hotelId>
         <meg:roomTypeId>-1</meg:roomTypeId>
         <meg:roomCategoryId>-1</meg:roomCategoryId>
      </meg:CheckQuota>
   </soapenv:Body>
</soapenv:Envelope>

The invocation of the method GetQuotaInfo

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CheckQuotaResponse xmlns="http://www.megatec.ru/">
         <CheckQuotaResult Message="Ok">
            <Data>
               <QuotaSimpleInfo RoomTypeId="2" RoomCategoryId="8" Quota="0" RoomVariantName="Single Room Side Sea View" Date="0001-01-01T00:00:00"/>
               <QuotaSimpleInfo RoomTypeId="150" RoomCategoryId="8" Quota="0" RoomVariantName="Double Classical Side Sea View" Date="0001-01-01T00:00:00"/>
               <QuotaSimpleInfo RoomTypeId="2" RoomCategoryId="6" Quota="0" RoomVariantName="Single Room Standard" Date="0001-01-01T00:00:00"/>
            </Data>
         </CheckQuotaResult>
      </CheckQuotaResponse>
   </soap:Body>
</soap:Envelope>


GetChangeQuotaAndStop (Receiving the information on quotas and stops at the hotel)

The method transmits information about quotas and stops at the hotel.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • HotelKey * – the hotel key
  • Date – the date from which we receive the changes (if we do not send them, then the current one is taken)
  • UseRoomDescription * – how to compare the category and type of room (through a general description of the room or separately)
  • LoadQuaota * – whether or not to upload changes for stops
  • LoadStop * – whether or not to upload changes for stops

The returning result:

  • GetChangeQuotaAndStopResult – the search result
    • QuotaStopInfo – an array of data
      • ID – not used
      • SvKey – the service class key (for hotel = 1)
      • Code – the hotel key
      • SubCode1Name – the name of the room type
      • SubCode1 – the room type key
      • SubCode2 – not used
      • SubCode3Name – the name of the room category
      • SubCode3 – the room category key
      • RoomDescriptionID – the room description key
      • RoomDescriptionName – the name of the description of the room
      • Place – the number of places (2 and more, 1 – there are few or one seats, 0 – there are no seats in the quota, -1 – the stop is canceled (if IsStop=true) or the quota is removed (if IsStop=false)), -2 – the stop is canceled and there are no quotas)
      • IsStop – is there a stop on the current date
      • Date – the date of the current quota (stop)
      • UpdateDate – the update date
      • Release – release period
Example

The invocation of the method GetChangeQuotaAndStop

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetChangeQuotaAndStop>
         <!--Optional:-->
         <meg:guid>7e4781f3-cef1-4b05-b6aa-ef9bb091f055</meg:guid>
         <meg:hotelKey>2942</meg:hotelKey>
         <meg:date>2023-11-01T21:17:00</meg:date>
         <meg:UseRoomDescription>true</meg:UseRoomDescription>
         <meg:LoadQuota>true</meg:LoadQuota>
         <meg:LoadStop>false</meg:LoadStop>
      </meg:GetChangeQuotaAndStop>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetChangeQuotaAndStop

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetChangeQuotaAndStopResponse xmlns="http://www.megatec.ru/">
         <GetChangeQuotaAndStopResult>
            <QuotaStopInfo ID="0" SvKey="1" Code="2942" SubCode1Name="Double Room" SubCode1="3" SubCode2="0" SubCode3Name="Inner View" SubCode3="19" RoomDescriptionID="4076" RoomDescriptionName="Double Room Inner View" Place="2" IsStop="false" Date="2023-11-08T00:00:00" UpdateDate="2023-11-01T21:18:18.63" Release="3"/>
         </GetChangeQuotaAndStopResult>
      </GetChangeQuotaAndStopResponse>
   </soap:Body>
</soap:Envelope>


GetHotelQuotaStopInfo (Receiving the information on hotels that have had changes in quotas or stops since a certain date)

The method returns hotels that have had changes in quotas or stops since a certain date.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Date * – the date from which we will search for hotels with changed quotas or stops

The returning result:

  • GetHotelQuotaStopResult – the search result
    • HotelQuotaStopInfo – an array of data
      • HotelKey – the hotel key
      • UpdateDateQuota – the date of the last change in hotel quotas
      • UpdateDateStop – the date of the last change in hotel stops
Example

The invocation of the method GetHotelQuotaStopInfo

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetHotelQuotaStopInfo>
         <!--Optional:-->
         <meg:guid>99c047a9-a1e9-4a8c-b585-3c09239b3fa3</meg:guid>
         <meg:date>2021-07-13</meg:date>
      </meg:GetHotelQuotaStopInfo>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetHotelQuotaStopInfo

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetHotelQuotaStopInfoResponse xmlns="http://www.megatec.ru/">
         <GetHotelQuotaStopInfoResult>
            <HotelQuotaStopInfo HotelKey="2930" UpdateDateQuota="2021-08-18T12:51:26.037+04:00" UpdateDateStop="2021-08-18T12:51:26.037+04:00"/>
            <HotelQuotaStopInfo HotelKey="2932" UpdateDateQuota="2021-08-31T16:57:32.213+04:00" UpdateDateStop="0001-01-01T00:00:00"/>
        </GetHotelQuotaStopInfoResult>
      </GetHotelQuotaStopInfoResponse>
   </soap:Body>
</soap:Envelope>


GetQuotaStop (Receiving the information on the established stops for hotel rooms)

GetQuotaStop (Receiving the information on the established stops for hotel rooms) .
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Date * – the date from which we will search for hotels with changed quotas or stops
  • HotelKey * – the hotel key

The returning result:

  • GetQuotaStopResult – the search result
    • QuoteHotel – an array of data
      • Code – the hotel key
      • StartDate – the start date
      • EndDate – the end date
      • Date – the date
      • CreateDate – the creation date
      • ID – not used
      • IsRemove – deleted or notет
      • Total – the number of places
      • Sold – sold
      • Free – free
      • HotelKey – the hotel key
      • RoomTypeKey – the hotel key
      • RoomCategoryKey – the room category key
      • QuoteType – the quota type
      • IsStopSale – is the stop set for sale
    • RoomTypeId – the room type key
    • RoomCategoryId – the room category key
Example

The invocation of the method GetQuotaStop

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetQuotaStop>
         <!--Optional:-->
         <meg:guid>eb99a14f-d4ad-4b90-a37f-a93550eb1c74</meg:guid>
         <meg:date>2021-07-13</meg:date>
         <meg:hotelKey>2941</meg:hotelKey>
      </meg:GetQuotaStop>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetQuotaStop

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetQuotaStopResponse xmlns="http://www.megatec.ru/">
         <GetQuotaStopResult>
            <QuoteHotel Code="0" StartDate="2021-07-13T00:00:00" EndDate="2021-07-13T00:00:00" Date="2021-07-13T00:00:00" CreateDate="2021-09-14T00:00:00+04:00" ID="-1" IsRemove="true" Total="0" Sold="0" Free="0" HotelKey="2941" RoomTypeKey="0" RoomCategoryKey="0" QuoteType="NotSet" IsStopSale="true">
               <RelizPeriod>0</RelizPeriod>
            </QuoteHotel>
            <QuoteHotel Code="0" StartDate="2021-07-14T00:00:00" EndDate="2021-07-14T00:00:00" Date="2021-07-14T00:00:00" CreateDate="2021-09-14T00:00:00+04:00" ID="-1" IsRemove="true" Total="0" Sold="0" Free="0" HotelKey="2941" RoomTypeKey="0" RoomCategoryKey="0" QuoteType="NotSet" IsStopSale="true">
               <RelizPeriod>0</RelizPeriod>
            </QuoteHotel>
         </GetQuotaStopResult>
      </GetQuotaStopResponse>
   </soap:Body>
</soap:Envelope>