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

Материал из Megatec
Перейти к: навигация, поиск
[досмотренная версия][досмотренная версия]
(Методы интеграции с системами оплаты)
(Метод работы с квотами)
 
(не показано 8 промежуточных версий этого же участника)
Строка 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
*** '''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 партнера
 
**** '
 
 
                   <NMen>2</NMen>
 
                   <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>
 
                   <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">
 
                        <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">
 
                     <ParameterPair Key="ContractPrKey">
 
                         <Value xsi:type="xsd:int">2930</Value>
 
                         <Value xsi:type="xsd:int">2930</Value>
 
                     </ParameterPair>
 
                     </ParameterPair>
                   </AdditionalParams>
+
                    <ParameterPair Key="CancellationPolicy">
                   <DetailBrutto>(239,00(0-120)[тестэкстрарэд220822] * 2 pax * 1 days) = 478,00</DetailBrutto>
+
                        <Value xsi:type="ArrayOfPenaltyCost">
                   <Notes/>
+
                          <PenaltyCost>
                   <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
+
                              <PolicyKey>-1</PolicyKey>
                   <StartDate>2022-08-22T00:00:00</StartDate>
+
                              <DateFrom xsi:nil="true"/>
                   <StartDay xsi:nil="true"/>
+
                              <DateTo>2022-08-15T00:00:00</DateTo>
                   <Duration>1</Duration>
+
                              <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>
 
                   <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"/>
 
              <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>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
 
===CreateReservationMessage (Создание сообщения для путевки)===
 
Метод создает сообщение для конкретной путевки.<br />
 
Принимаемые параметры запроса ( * – обязательный):<br />
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''DgKey *''' – ключ путевки
 
* '''Message *''' – текст сообщения
 
* '''SenderName *''' – имя отправителя сообщения
 
Возвращаемый результат: не возвращает результата
 
 
 
<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>
 
Вызов метода CreateReservationMessage
 
<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: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>
 
</syntaxhighlight>
 
Возвращаемый результат метода CreateReservationMessage
 
<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>
 
      <CreateReservationMessageResponse xmlns="http://www.megatec.ru/"/>
 
  </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:Envelope>
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</TD></TR></TABLE>
 
</div></div><br />
 
</div></div><br />
  
==Методы поиска==
+
===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.<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 />
 +
* '''ArrivalDate *''' – date of arrival
 +
* '''CountryKey''' – key of the country
 +
* '''RegionKey''' – key of the region
 +
* '''CityKey''' – key of the city
 +
* '''HotelKey''' – key of the hotel
  
===SearchHotelServices (Получение вариантов проживаний по параметрам запроса)===
+
Returning result:<br />
Метод производит получение возможных вариантов проживаний по параметрам запроса.<br />
+
* '''GetArrivalsByDateResult''' – 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''' – departure date
** '''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)
+
** '''FlightArrival''' – direct flight number
** '''HotelKeys''' – идентификаторы отелей (если заданы отели – поиск только для них, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
** '''FlightDeparture''' – return flight number
** '''RoomDescriptions''' – идентификаторы описаний комнат. Если не предавать будет искать для всех
+
** '''FlightArrivalTime''' – departure time of a direct flight
** '''PansionKeys''' – идентификаторы питаний. Если не передавать будет искать для всех
+
** '''FlightDepartureTime''' – departure time of the return flight
** '''Ages''' возраст детей (если не указан, то размещения с детьми не ищутся, туристы считаются взрослыми)
 
** '''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 GetArrivalsByDate
 
<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:GetArrivalsByDate>
 
<!--Optional:-->
 
<!--Optional:-->
        <meg:guid>ef5bafbc-722f-4d8b-bdd5-844e8633788f</meg:guid>
+
<meg:guid>96ab8f68-9a13-4845-b338-fdb29be4970b</meg:guid>
        <!--Optional:-->
+
<meg:arrivalDate>2021-07-15</meg:arrivalDate>
        <meg:request>
+
</meg:GetArrivalsByDate>
<meg:PageSize>100000</meg:PageSize>
+
</soapenv:Body>
            <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>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода SearchHotelServices<br />
+
Returning result of the method GetArrivalsByDate
 
<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/">
+
      <GetArrivalsByDateResponse xmlns="http://www.megatec.ru/">
        <SearchHotelServicesResult Message="Ok">
+
        <GetArrivalsByDateResult>[{"reservationId":"MT110831A01","email":"","name":"Gusn Genna","phone":"","checkIn"
            <Data>
+
:"31.08.2021","checkOut":"05.09.2021","hotelId":2945,"hasTransferArrival":false,"hasTransferDeparture"
              <DataRequestResult>
+
:false,"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""}]</GetArrivalsByDateResult>
                  <ResultTable>
+
      </GetArrivalsByDateResponse>
                    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+
  </soap:Body>
                        <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="HotelServices" msdata:UseCurrentLocale="true">
+
</soap:Envelope>
                          <xs:complexType>
+
</syntaxhighlight>
                              <xs:choice minOccurs="0" maxOccurs="unbounded">
+
</TD></TR></TABLE>
                                <xs:element name="HotelServices">
+
</div></div><br />
                                    <xs:complexType>
+
 
                                      <xs:sequence>
+
===GetDeparturesByDate (Receiving the list of the tourists for the date of the end of the tour)===
                                          <xs:element name="HotelName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
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 />
                                          <xs:element name="HotelKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
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 />
                                          <xs:element name="RtCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
The '''ShowhotelReservationsByDate''' setting is responsible for the accessibility of the method for the user. By default, the setting is disabled.<br />
                                          <xs:element name="RtKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
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 />
                                          <xs:element name="RcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
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 />
                                          <xs:element name="RcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"
+
<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
 +
 
 +
Returning result:<br />
 +
* '''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
 
                         <anyType xsi:type="ExtraService">
 
                         <anyType xsi:type="ExtraService">
 
                           <ExternalID>0</ExternalID>
 
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
+
                           <Price>48</Price>
 
                           <NMen>0</NMen>
 
                           <NMen>0</NMen>
 
                           <PartnerID>0</PartnerID>
 
                           <PartnerID>0</PartnerID>
Строка 3271: Строка 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>-9</ID>
+
                           <ID>0</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>704</Code>
+
                           <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>
Строка 3303: Строка 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>-10</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>
                    </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>Hardlink</Name>
* '''Request ''' – объект с параметрами запроса
+
                          <StartDate>2021-12-01T00:00:00</StartDate>
** '''PageSize *''' – размер страницы возвращаемых данных, то есть на каком количестве рассчитанных цен останавливаться и выдавать результат поиска. Если задано PageSize = 5, то поиск пойдет по ценам и как только наберет 5 рассчитанных (но перебрать цен он может больше, не все цены подходят) цен, выдаст их в результат. Количество перебранных внутренних цен будет выдано в строке TotalCount.
+
                          <StartDay>0</StartDay>
** '''RowIndexFrom *''' – с какой строчки выдавать результат.  Для первой страницы указываем RowIndexFrom = 0 – перебор идет с самой первой цены. Чтобы получить вторую страницу или последующие страницы поиска в RowIndexFrom надо передавать внутренний номер цены на котором остановился поиск предыдущей страницы цен (этот номер будет в ответе в строке TotalCount)
+
                          <Duration>0</Duration>
** '''DateFrom *''' – дата «С»
+
                          <RateBrutto/>
** '''DateTo *''' – дата «По»
+
                          <Brutto>40</Brutto>
** '''RegionKeys''' – идентификаторы регионов (если не заданы города и отели – поиск по всем регионам, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
                          <RateNetto/>
** '''CityKeys''' – идентификаторы городов (если не заданы отели – ищем поиск для всех отелей городов, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
                          <Netto>0</Netto>
** '''HotelKeys''' – идентификаторы отелей (если заданы отели – поиск только для них, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
                          <ServiceClassID>99</ServiceClassID>
** '''RoomDescriptions''' – идентификаторы описаний комнат. Если не предавать будет искать для всех (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetRoomFescriptions|GetRoomFescriptions]])<br />
+
                          <TouristCount>0</TouristCount>
** '''PansionKeys''' – идентификаторы питаний. Если не передавать будет искать для всех (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetPansions|GetPansions]])
+
                          <ID>-2</ID>
** '''Ages''' – возраст детей
+
                          <Status>
** '''Pax *''' – размещение
+
                              <Name>Hardlink</Name>
** '''Tariffs''' – идентификаторы тарифов по которым рассчитывать результат. Если не передавать будет считать по тарифу Ordinary (0 - Ordinary, 1 - SPO)
+
                              <ID>0</ID>
** '''CacheGuid''' – идентификатор поиска, который ускоряет переход по страницам. При первом поиске его передавать не нужно. Поиск вернет этот идентификатор в параметре ResponseGuid. Далее, используя пейджинг, передаем этот идентификатор дальше (но только в рамках одного поиска!)
+
                              <Description/>
** '''ResultView''' – тип вывода результата (1 – cортировка по суточной цене с группировкой по отелям, 2 – сортировка по суточной цене)
+
                              <NameLat/>
** '''QuotaTypes''' – фильтр по типу квоты(0 – запрос, 1 – квота, 2 – стоп). Получаем все возможные результаты. Если не указано, то значение=0
+
                              <Code/>
** ''' Mode''' – не указываем или указываем 0
+
                              <CodeLat/>
 
+
                              <Unicode/>
Возвращаемый результат:<br />
+
                          </Status>
* '''DataRequestResult''' – результат поиска
+
                          <CityKey>80</CityKey>
** '''ResultTable''' – таблица с результатом
+
                          <IsPackage>false</IsPackage>
*** '''HotelServices''' – услуга отеля
+
                          <Code>699</Code>
**** '''HotelName''' – наименование отеля
+
                          <HasDuration>false</HasDuration>
**** '''HotelKey''' – ключ отеля
+
                        </anyType>
**** '''RtCode''' – тип номера
+
                        <anyType xsi:type="ExtraService">
**** '''RtKey''' – ключ типа номера
+
                          <ExternalID>0</ExternalID>
**** '''RcName''' – категория номера
+
                          <Price>40</Price>
**** '''RcKey''' – ключ категории номера
+
                          <NMen>0</NMen>
**** '''RdName''' – тип+категория номера
+
                          <PartnerID>0</PartnerID>
**** '''RdKey''' – ключ тип+категория номера
+
                          <Quota>NotChecked</Quota>
**** '''AcName''' – тип размещения
+
                          <PacketKey>0</PacketKey>
**** '''AcKey''' – ключ типа размещения
+
                          <AdditionalParams>
**** '''PnCode''' – тип питания
+
                              <ParameterPair Key="ContractPrKey">
**** '''PnKey''' – ключ типа питания
+
                                <Value xsi:type="xsd:int">0</Value>
**** '''TotalCost''' – конечная стоимость проживания в отеле включая обязательные доплаты Cost + AdHotCost. Сортировка по минимальной цене производиться по параметру TotalCost от наименьшей цены к наибольшей
+
                              </ParameterPair>
**** '''Cost''' – размер обязательной доплаты Cost
+
                          </AdditionalParams>
**** '''AddHotsCost''' – размер обязательной доплаты AdHot
+
                          <Tourists/>
**** '''AddHotsWithCosts''' – размер обязательной доплаты AdHot типа With costs (выдает -1 если настройка отображения Adhot типа With Costs в конфиге Integration Service Interlook. Описание настройки [[Master-Interlook:Обмен. Настройка Web-сервиса Master-Interlook#Настройка параметров конфига web.config Integration Service ]])
+
                          <DetailNetto/>
**** '''DetailBrutto''' – формула расчета цены
+
                          <DetailBrutto/>
**** '''QuoteType''' – тип квоты. Может принимать 3 значения: 0 – на запрос,1 – в квоте, 2 – стоит стоп сейл.
+
                          <Notes/>
**** '''CountryKey''' – ключ страны предоставления услуги
+
                          <Name>тестовый ужин на 100921</Name>
**** '''CityKey''' – ключ города предоставления услуги
+
                          <StartDate>2021-12-05T00:00:00</StartDate>
**** '''CityName''' – наименование города предоставления услуги
+
                          <StartDay>0</StartDay>
**** '''HotelWebSite''' – адрес веб-сайта отеля
+
                          <Duration>1</Duration>
**** '''TariffId''' – идентификатор тарифа
+
                          <RateBrutto/>
**** '''TariffName''' – наименование тарифа
+
                          <Brutto>40</Brutto>
**** '''TariffDescription''' – описание тарифа
+
                          <RateNetto/>
**** '''AddHots''' – идентификатор Adhot
+
                          <Netto>0</Netto>
**** '''ContractPrKey''' – ключ партнера предоставляющего услугу
+
                          <ServiceClassID>70</ServiceClassID>
**** '''HotelImage''' – фото отеля
+
                          <TouristCount>0</TouristCount>
**** '''AddHotsWithCostID''' – идентификатор AddHotsWithCost
+
                          <ID>-3</ID>
**** '''Rate''' – валюта
+
                          <CityKey>0</CityKey>
** '''ColunmNames''' – название столбцов таблицы
+
                          <IsPackage>false</IsPackage>
*** '''HotelName''' – наименование отеля
+
                          <Code>704</Code>
*** '''HotelKey''' – ключ отеля
+
                          <HasDuration>false</HasDuration>
*** '''RtCode''' – тип номер
+
                        </anyType>
*** '''RtKey''' – ключ типа номера
+
                        <anyType xsi:type="ExtraService">
*** '''RcName''' – категория номера
+
                          <ExternalID>0</ExternalID>
*** '''RcKey''' – ключ категории номера
+
                          <Price>20</Price>
*** '''RdName''' – тип+категория номера
+
                          <NMen>0</NMen>
*** '''RdKey''' – ключ тип+категория номера
+
                          <PartnerID>0</PartnerID>
*** '''AcName''' – тип размещения
+
                          <Quota>NotChecked</Quota>
*** '''AcKey''' – ключ типа размещения
+
                          <PacketKey>0</PacketKey>
*** '''PnCode''' – тип питания
+
                          <AdditionalParams>
*** '''PnKey''' – ключ типа питания
+
                              <ParameterPair Key="ContractPrKey">
*** '''TotalCost''' – конечная стоимость проживания в отеле включая обязательные доплаты Cost + AdHotCost. Сортировка по минимальной цене производиться по параметру TotalCost от наименьшей цены к наибольшей
+
                                <Value xsi:type="xsd:int">0</Value>
*** '''Cost''' – размер обязательной доплаты Cost
+
                              </ParameterPair>
*** '''AddHotsCost''' – размер обязательной доплаты AddHotsCost
+
                          </AdditionalParams>
*** '''DetailBrutto''' – формула расчета цены
+
                          <Tourists/>
*** '''QuoteType''' – тип квоты. Может принимать 3 значения: 0 – на запрос,1 – в квоте, 2 – стоит стоп сейл.
+
                          <DetailNetto/>
*** '''CountryKey''' – ключ страны предоставления услуги
+
                          <DetailBrutto/>
*** '''CityKey''' – ключ города предоставления услуги
+
                          <Notes/>
*** '''CityName''' – наименование города предоставления услуги
+
                          <Name>_Прачечная, химчистка</Name>
*** '''HotelWebSite''' – адрес сайта отеля
+
                          <StartDate>2021-12-01T00:00:00</StartDate>
*** '''TariffId''' – идентификатор тарифа
+
                          <StartDay>0</StartDay>
*** '''TariffName''' – наименование тарифа
+
                          <Duration>1</Duration>
*** '''TariffDescription''' – описание тарифа
+
                          <RateBrutto/>
*** '''AddHots''' – доплата
+
                          <Brutto>20</Brutto>
*** '''ContractPrKey''' – ключ партнера, предоставляющего услугу
+
                          <RateNetto/>
*** '''HotelImage''' – фото отеля
+
                          <Netto>0</Netto>
*** '''AddHotsWithCostID''' – идентификатор AddHotsWithCost
+
                          <ServiceClassID>78</ServiceClassID>
*** '''Rate''' – валюта
+
                          <TouristCount>0</TouristCount>
** '''TotalCount''' – номер строки, на которой закончился поиск
+
                          <ID>-4</ID>
** '''PageSize''' – количество возвращаемых строк данных
+
                          <CityKey>0</CityKey>
** '''PageIndex''' – номер строки, с которой начали поиск
+
                          <IsPackage>false</IsPackage>
** '''IsLastPage''' – при отображении последней страницы результатов поиска с отелями параметр IsLastPage принимает значение '''true'''. Если не обрабатывать параметр IsLastPage, то следующее значение TotalCount вернет пустой результат по отелям
+
                          <Code>639</Code>
** '''AdditionalData''' – список обязательных Adhot
+
                          <HasDuration>false</HasDuration>
*** '''ArrayOfAnyType''' – массив типов услуг
+
                        </anyType>
**** '''anyType''' – тип услуги
+
                        <anyType xsi:type="ExtraService">
***** '''ExternalID''' –  параметр для внутреннего использования
+
                          <ExternalID>0</ExternalID>
***** '''Price''' – стоимость
+
                          <Price>40</Price>
***** '''NMen''' – количество туристов по путевке
+
                          <NMen>0</NMen>
***** '''PartnerID''' – идентификатор партнера
+
                          <PartnerID>0</PartnerID>
***** '''Quota''' – квота по услуге
+
                          <Quota>NotChecked</Quota>
***** '''PacketKey''' – ключ пакета
+
                          <PacketKey>0</PacketKey>
***** '''AdditionalParams''' – массив дополнительных параметры (представляются в виде пары ключ – значение)
+
                          <AdditionalParams>
****** '''ParameterPair Key''' – ключ
+
                              <ParameterPair Key="ContractPrKey">
******* '''Value''' – значение
+
                                <Value xsi:type="xsd:int">0</Value>
***** '''Tourists''' – туристы
+
                              </ParameterPair>
***** '''DetailNetto''' – подробности нетто
+
                          </AdditionalParams>
***** '''DetailBrutto''' – подробности брутто
+
                          <Tourists/>
***** '''Notes''' – примечания к услуге
+
                          <DetailNetto/>
***** '''Name''' – наименование услуги
+
                          <DetailBrutto/>
***** '''StartDate''' – дата предоставления услуги (в формате ГГГГ-ММ-ДДT00:00:00)
+
                          <Notes/>
***** '''StartDay''' – день предоставления услуги
+
                          <Name>тестовый ужин на 100921</Name>
***** '''Duration''' – продолжительность услуги
+
                          <StartDate>2021-12-05T00:00:00</StartDate>
***** '''RateBrutto''' – валюта брутто
+
                          <StartDay>0</StartDay>
***** '''Brutto''' – цена брутто
+
                          <Duration>1</Duration>
***** '''RateNetto''' – валюта нетто
+
                          <RateBrutto/>
***** '''Netto''' – цена нетто
+
                          <Brutto>40</Brutto>
***** '''ServiceClassID''' – идентификатор класса услуги
+
                          <RateNetto/>
***** '''TouristCount''' – количество туристов, пользующихся услугой
+
                          <Netto>0</Netto>
***** '''ID''' – идентификатор услуги (-1 для новой путевки )
+
                          <ServiceClassID>70</ServiceClassID>
***** '''Status''' – статус услуги
+
                          <TouristCount>0</TouristCount>
****** '''Name''' – наименование статуса услуги
+
                          <ID>-5</ID>
****** '''ID''' –  идентификатор статуса услуги
+
                          <CityKey>0</CityKey>
****** '''Description''' – описание статуса услуги
+
                          <IsPackage>false</IsPackage>
****** '''NameLat''' – наименование статуса услуги латиницей
+
                          <Code>704</Code>
****** '''Code''' – код статуса услуги
+
                          <HasDuration>false</HasDuration>
****** '''CodeLat''' – код статуса услуги латиницей
+
                        </anyType>
****** '''Unicode''' – код ISO статуса услуги
+
                        <anyType xsi:type="ExtraService">
***** '''CityKey''' – ключ города предоставления услуги
+
                          <ExternalID>0</ExternalID>
***** '''IsPackage''' – признак пакетной услуги
+
                          <Price>20</Price>
***** '''Code''' – идентификатор услуги
+
                          <NMen>0</NMen>
***** '''HasDuration''' – услуга с продолжительностью или без
+
                          <PartnerID>0</PartnerID>
** '''ResponseGuid''' – идентификатор ответа<br />
+
                          <Quota>NotChecked</Quota>
В случае ошибок в запросе в ответе получаем сообщение с расшифровкой ошибок и/или номер строки с ошибкой.<br />
+
                          <PacketKey>0</PacketKey>
В случае ошибки в GUID получим сообщение "Invalid user or password (Invalid GUID)."<br />
+
                          <AdditionalParams>
В случае если дата начала больше даты окончания получим сообщение "Parameter 'DateTo' can't be less than 'DateFrom'."<br />
+
                              <ParameterPair Key="ContractPrKey">
В случае отсутствия одного из обязательных параметров получим сообщение "Parameter '<значение параметра>' is required."<br />
+
                                <Value xsi:type="xsd:int">0</Value>
В случае отсутствия ключа отеля, ключа города, ключа региона получим сообщение "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'." <br />
+
                              </ParameterPair>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                          </AdditionalParams>
<div class="mw-collapsible-content">
+
                          <Tourists/>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                          <DetailNetto/>
Вызов метода SearchHotelServicesMinHotel<br />
+
                          <DetailBrutto/>
<syntaxhighlight lang="java" enclose="div">
+
                          <Notes/>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                          <Name>_Прачечная, химчистка</Name>
  <soapenv:Header/>
+
                          <StartDate>2021-12-01T00:00:00</StartDate>
  <soapenv:Body>
+
                          <StartDay>0</StartDay>
      <meg:SearchHotelServicesMinHotel>
+
                          <Duration>1</Duration>
    <!--Optional:-->
+
                          <RateBrutto/>
        <meg:guid>138e178e-6c1c-4e5a-9f82-8280cb014804</meg:guid>
+
                          <Brutto>20</Brutto>
        <!--Optional:-->
+
                          <RateNetto/>
        <meg:request>
+
                          <Netto>0</Netto>
<meg:PageSize>100000</meg:PageSize>
+
                          <ServiceClassID>78</ServiceClassID>
            <meg:RowIndexFrom>0</meg:RowIndexFrom>
+
                          <TouristCount>0</TouristCount>
            <meg:DateFrom>2021-12-01</meg:DateFrom>
+
                           <ID>-6</ID>
            <meg:DateTo>2022-12-22</meg:DateTo>
+
                          <CityKey>0</CityKey>
            <!--Optional:-->
+
                          <IsPackage>false</IsPackage>
            <meg:RegionKeys>
+
                          <Code>639</Code>
              <!--Zero or more repetitions:-->
+
                          <HasDuration>false</HasDuration>
              <meg:int>6</meg:int>
+
                        </anyType>
            </meg:RegionKeys>
+
                        <anyType xsi:type="ExtraService">
            <!--Optional:-->
+
                          <ExternalID>0</ExternalID>
            <meg:CityKeys>
+
                           <Price>40</Price>
              <!--Zero or more repetitions:-->
+
                           <NMen>0</NMen>
              <meg:int>80</meg:int>
+
                           <PartnerID>0</PartnerID>
            </meg:CityKeys>
+
                           <Quota>NotChecked</Quota>
            <!--Optional:-->
+
                           <PacketKey>0</PacketKey>
            <meg:HotelKeys>
+
                           <AdditionalParams>
              <!--Zero or more repetitions:-->
+
                               <ParameterPair Key="ContractPrKey">
              <meg:int>2932</meg:int>
+
                                 <Value xsi:type="xsd:int">0</Value>
            </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>
 
</syntaxhighlight>
 
Возвращаемый результат метода SearchHotelServicesMinHotel<br />
 
<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>
 
      <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>
 
                               </ParameterPair>
 
                           </AdditionalParams>
 
                           </AdditionalParams>
 +
                          <Tourists/>
 +
                          <DetailNetto/>
 
                           <DetailBrutto/>
 
                           <DetailBrutto/>
 
                           <Notes/>
 
                           <Notes/>
                           <Name>Hardlink</Name>
+
                           <Name>тестовый ужин на 100921</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
+
                           <StartDate>2021-12-05T00:00:00</StartDate>
                           <StartDay xsi:nil="true"/>
+
                           <StartDay>0</StartDay>
                           <Duration>0</Duration>
+
                          <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/>
 
                           <RateBrutto/>
 
                           <Brutto>20</Brutto>
 
                           <Brutto>20</Brutto>
                           <ServiceClassID>99</ServiceClassID>
+
                           <RateNetto/>
                           <TouristCount xsi:nil="true"/>
+
                           <Netto>0</Netto>
                           <ID>0</ID>
+
                           <ServiceClassID>78</ServiceClassID>
                           <Status>
+
                           <TouristCount>0</TouristCount>
                              <Name>Hardlink</Name>
+
                          <ID>-8</ID>
                              <ID>0</ID>
+
                           <CityKey>0</CityKey>
                          </Status>
 
                           <CityKey>80</CityKey>
 
 
                           <IsPackage>false</IsPackage>
 
                           <IsPackage>false</IsPackage>
                           <Code>699</Code>
+
                           <Code>639</Code>
 
                           <HasDuration>false</HasDuration>
 
                           <HasDuration>false</HasDuration>
 
                         </anyType>
 
                         </anyType>
                    </ArrayOfAnyType>
+
                        <anyType xsi:type="ExtraService">
                  </AdditionalData>
+
                          <ExternalID>0</ExternalID>
                  <ResponseGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</ResponseGuid>
+
                          <Price>40</Price>
              </DataRequestResult>
+
                          <NMen>0</NMen>
            </Data>
+
                          <PartnerID>0</PartnerID>
        </SearchHotelServicesMinHotelResult>
+
                          <Quota>NotChecked</Quota>
      </SearchHotelServicesMinHotelResponse>
+
                          <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/>
===SearchActualCostCalculationVariant (Поиск возможных вариантов типов комнат, категорий комнат, размещений и питаний на которые есть актуальные цены по отелю)===
+
                          <DetailNetto/>
Метод выдает возможные варианты типов комнат, категорий комнат, размещений и питаний на которые есть актуальные цены по отелю.<br />
+
                          <DetailBrutto/>
Принимаемые параметры запроса ( * – обязательный):<br />
+
                          <Notes/>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                          <Name>тестовый ужин на 100921</Name>
* '''Request ''' – объект с параметрами запроса:
+
                          <StartDate>2021-12-05T00:00:00</StartDate>
** '''HotelId *''' – идентификатор отеля (обязательный параметр, значения 0 и -1 не допустимы)
+
                          <StartDay>0</StartDay>
** '''DateFrom *''' – дата «с»
+
                          <Duration>1</Duration>
** '''DateTo *''' – дата «по»
+
                          <RateBrutto/>
** '''ValidateQuoata''' – проверять ли квоту (true – проверять, false – нет)
+
                          <Brutto>40</Brutto>
** '''QuotaTypes''' – фильтр по типу квоты (0 – запрос, 1 – квота, 2 – стоп)
+
                          <RateNetto/>
** '''CheckAdHot''' – учитывать ли цены на обязательные адхоты (true – учитывать, false – нет)
+
                          <Netto>0</Netto>
** '''Rate *''' – код валюты, в которой будет вестись расчет
+
                          <ServiceClassID>70</ServiceClassID>
Возвращаемый результат:<br />
+
                          <TouristCount>0</TouristCount>
* '''SearchActualCostCalculationVariantResult''' – результат поиска
+
                          <ID>-9</ID>
** '''CostCalculationVariant''' – массив данных
+
                          <CityKey>0</CityKey>
*** '''RoomAccommodationId''' – ключ размещения
+
                          <IsPackage>false</IsPackage>
*** '''RoomTypeId''' – ключ типа комнаты
+
                          <Code>704</Code>
*** '''RoomCategoryId''' – ключ категории комнаты
+
                          <HasDuration>false</HasDuration>
*** '''PansionId''' – ключ питания
+
                        </anyType>
*** '''RoomAccommodationName''' – код размещения
+
                        <anyType xsi:type="ExtraService">
*** '''RoomTypeName''' – код типа комнаты
+
                          <ExternalID>0</ExternalID>
*** '''RoomCategoryName''' – код категории комнаты
+
                          <Price>20</Price>
*** '''PansionName''' – код питания
+
                          <NMen>0</NMen>
*** '''CountAdult''' – количество взрослых
+
                          <PartnerID>0</PartnerID>
*** '''CountChildren''' – количество детей
+
                          <Quota>NotChecked</Quota>
*** '''Quota''' – значение квоты
+
                          <PacketKey>0</PacketKey>
 
+
                          <AdditionalParams>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                              <ParameterPair Key="ContractPrKey">
<div class="mw-collapsible-content">
+
                                <Value xsi:type="xsd:int">0</Value>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                              </ParameterPair>
Вызов метода SearchActualCostCalculationVariant
+
                          </AdditionalParams>
<syntaxhighlight lang="java" enclose="div">
+
                          <Tourists/>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                          <DetailNetto/>
  <soapenv:Header/>
+
                          <DetailBrutto/>
  <soapenv:Body>
+
                          <Notes/>
      <meg:SearchActualCostCalculationVariant>
+
                          <Name>_Прачечная, химчистка</Name>
        <!--Optional:-->
+
                          <StartDate>2021-12-01T00:00:00</StartDate>
        <meg:guid>d1ac9f4d-20bd-43e0-b5b5-ad60c3cf0065</meg:guid>
+
                          <StartDay>0</StartDay>
        <!--Optional:-->
+
                          <Duration>1</Duration>
        <meg:request HotelId="2940" DateFrom="2021-09-08" DateTo="2021-09-09" ValidateQuota="true" CheckAdHot="true" Rate="1" QuotaTypes="0"/>
+
                          <RateBrutto/>
      </meg:SearchActualCostCalculationVariant>
+
                          <Brutto>20</Brutto>
  </soapenv:Body>
+
                          <RateNetto/>
</soapenv:Envelope>
+
                          <Netto>0</Netto>
</syntaxhighlight>
+
                          <ServiceClassID>78</ServiceClassID>
Возвращаемый результат метода SearchActualCostCalculationVariant
+
                          <TouristCount>0</TouristCount>
<syntaxhighlight lang="java" enclose="div">
+
                          <ID>-10</ID>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
                          <CityKey>0</CityKey>
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
                          <IsPackage>false</IsPackage>
  <soap:Body>
+
                          <Code>639</Code>
      <SearchActualCostCalculationVariantResponse xmlns="http://www.megatec.ru/">
+
                          <HasDuration>false</HasDuration>
        <SearchActualCostCalculationVariantResult Message="Ok">
+
                        </anyType>
            <Data>
+
                    </ArrayOfAnyType>
              <CostCalculationVariant>
+
                   </AdditionalData>
                  <RoomAccommodationId>5558</RoomAccommodationId>
+
                   <ResponseGuid>36d4defd-a39d-48c5-8288-32a22822f411</ResponseGuid>
                  <RoomTypeId>3</RoomTypeId>
+
               </DataRequestResult>
                  <RoomCategoryId>20</RoomCategoryId>
+
            </Data>
                  <PansionId>3</PansionId>
+
         </SearchHotelServicesResult>
                  <RoomAccommodationName>2AD</RoomAccommodationName>
+
       </SearchHotelServicesResponse>
                  <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>
Строка 3790: Строка 3325:
 
</div></div><br />
 
</div></div><br />
  
==Методы работы с ценами==
+
===SearchHotelServicesMinHotel (Receiving one minimal calculated price for the hotel)===
===GetSpoList (Получение списка SPO согласно запросу)===
+
The method outputs one minimal (sorted by daily price) calculated price for the hotel.<br />
Метод возвращает  список SPO согласно запросу.<br />
+
Accepted request parameters ( '''*''' required):<br />
Важный момент: возвращается информация только по тем Costoffers, на которые есть публикация партнеру (группе партнера) пользователя, которые подключились к веб сервису.<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
Принимаемые параметры запроса (* – обязательный):
+
* '''Request ''' – object with request parameters
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
** '''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).
* '''Request''' – класс с параметрами запроса
+
** '''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)
** '''SvKey *''' – ключ класса услуги (1 проживание, 2 трансфер, 4 экскурсия, 5 экстрасервис, 0 или -1 не принимаются)
+
** '''DateFrom *''' – date «from»
** '''PublicationDateBegin *''' – дата публикации SPO «с»
+
** '''DateTo *''' – date «to»
** '''PublicationDateEnd *''' – дата публикации цены «по»
+
** '''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)
Возвращаемый результат:<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)
* '''SPOInfo''' – результат поиска
+
** '''HotelKeys''' hotel IDs (if hotels are specified, search will be made only for them, RegionKeys, CityKeys or HotelKeys must be filled in)
** '''ResultTable''' – таблица с результатом
+
** '''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 />
** '''Id''' – ключ SPO
+
** '''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)
** '''Name''' – название SPO
+
** '''Ages''' age of children
** '''PeriodBeforeCheckIn''' – период до заезда
+
** '''Pax *''' – accommodation
** '''SaleDateBegin''' – дата с которой возможно бронирование
+
** '''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)
** '''SaleDateEnd''' – дата до которой возможно бронирование
+
** '''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!)
** '''Comment''' – описание SPO
+
** '''ResultView''' – the type of output of the result (1 – sorting by daily price with grouping by hotels, 2 – sorting by daily price)
** '''CreateDate''' – дата создания
+
** '''QuotaTypes''' – filter by quota type (0 – request, 1 – quota, 2 – stop). We get all possible results. If not specified, the value=0
** '''UpdateDate''' – дата обновления
+
** ''' Mode''' – do not specify or specify 0
** '''SpoType''' – тип SPO (Ordinary – 0, Spo – 1)
+
 
** '''SvKey''' – класс услуги
+
The returning result:<br />
** '''COLinkServices''' – услуги SPO
+
* '''DataRequestResult''' – the search result
*** '''COLinkService''' – конкретная услуга SPO
+
** '''ResultTable''' – the table with the result
**** '''SvKey''' – ключ типа услуги
+
*** '''HotelServices''' – the hotel service
**** '''Code''' –  ключ услуги
+
**** '''HotelName''' – the name of the hotel
**** '''DurationMin''' – минимальная продолжительность
+
**** '''HotelKey''' – the hotel key
**** '''DurationMax''' – максимальная продолжительность
+
**** '''RtCode''' – the room type
**** '''IsDisable''' – заблокирована ли услуга
+
**** '''RtKey''' – the room type key
**** '''DisableDate''' – дата блокировки
+
**** '''RcName''' – the room category
** '''COServices''' – информация о ценах на услуги в этом SPO
+
**** '''RcKey''' – the room category key
*** '''COService''' – информация о цене на конкретную услугу в этом SPO
+
**** '''RdName''' – type+room category
**** '''Code''' – идентификатор услуги
+
**** '''RdKey''' – key type+room category
**** '''CostCount''' – количество цен для услуги в SPO
+
**** '''AcName''' – type of accommodation
**** '''CostLastUpdate''' – дата последнего изменения (добавления, удаления) цен для услуги в этом СПО
+
**** '''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. [[Master-Interlook:Обмен. Настройка Web-сервиса Master-Interlook#Настройка параметров конфига web.config Integration Service|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<br />
 +
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 />
 +
In case of an error in GUID we receive the message "Invalid user or password (Invalid GUID)."<br />
 +
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 />
 +
If one of the required parameters is missing, we will receive the message "The parameter '<parameter value>' is required."<br />
 +
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 />
  
<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>
Вызов метода GetSpoList
+
The invocation of the method SearchHotelServicesMinHotel<br />
 
<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:GetSpoList>
+
       <meg:SearchHotelServicesMinHotel>
 +
    <!--Optional:-->
 +
        <meg:guid>138e178e-6c1c-4e5a-9f82-8280cb014804</meg:guid>
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:guid>16f4e0ca-725a-4ffe-8a5e-c41d16ef1b01</meg:guid>
+
         <meg:request>
        <!--Optional:-->
+
<meg:PageSize>100000</meg:PageSize>
        <meg:request SvKey="1" PublicationDateBegin="2021-08-01" PublicationDateEnd="2021-08-04"/>
+
            <meg:RowIndexFrom>0</meg:RowIndexFrom>
      </meg:GetSpoList>
+
            <meg:DateFrom>2021-12-01</meg:DateFrom>
  </soapenv:Body>
+
            <meg:DateTo>2022-12-22</meg:DateTo>
</soapenv:Envelope>
+
            <!--Optional:-->
</syntaxhighlight>
+
            <meg:RegionKeys>
Возвращаемый результат метода GetSpoList
+
              <!--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" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
            </meg:RegionKeys>
  <soap:Body>
+
             <!--Optional:-->
      <GetSpoListResponse xmlns="http://www.megatec.ru/">
+
            <meg:CityKeys>
        <GetSpoListResult Message="Ok">
+
              <!--Zero or more repetitions:-->
             <Data>
+
              <meg:int>80</meg:int>
              <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">
+
            </meg:CityKeys>
                  <COLinkServices>
+
            <!--Optional:-->
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
+
            <meg:HotelKeys>
                  </COLinkServices>
+
               <!--Zero or more repetitions:-->
                  <XYRules/>
+
              <meg:int>2932</meg:int>
                  <COServices>
+
            </meg:HotelKeys>
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
+
            <!--Optional:-->
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
+
            <meg:RoomDescriptionsKeys>
                  </COServices>
+
              <!--Zero or more repetitions:-->
               </SPOInfo>
+
              <meg:int>1894</meg:int>
              <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">
+
            </meg:RoomDescriptionsKeys>
                  <COLinkServices>
+
            <!--Optional:-->
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
+
            <meg:PansionKeys>
                  </COLinkServices>
+
              <!--Zero or more repetitions:-->
                  <XYRules>
+
              <meg:int>3</meg:int>
                    <XYRule ExcludeBy="0" Sign="-" XFrom="2" XTo="7" Y="1"/>
+
            </meg:PansionKeys>
                  </XYRules>
+
            <!--Optional:-->
                  <COServices>
+
            <meg:Ages>
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
+
              <!--Zero or more repetitions:-->
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
+
              <meg:int>0</meg:int>
                  </COServices>
+
             </meg:Ages>
              </SPOInfo>
+
            <meg:Pax>2</meg:Pax>
              <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">
+
            <!--Optional:-->
                  <COLinkServices>
+
            <meg:Tariffs>
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
+
              <!--Zero or more repetitions:-->
                  </COLinkServices>
+
              <meg:int>0</meg:int>
                  <XYRules>
+
            </meg:Tariffs>
                    <XYRule ExcludeBy="0" Sign="-" XFrom="8" XTo="14" Y="2"/>
+
            <!--Optional:-->
                  </XYRules>
+
            <meg:CacheGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</meg:CacheGuid>
                  <COServices>
+
            <meg:ResultView>1</meg:ResultView>
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
+
            <meg:Mode>0</meg:Mode>
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
+
            <!--Optional:-->
                  </COServices>
+
            <meg:QuotaTypes>
              </SPOInfo>
+
              <!--Zero or more repetitions:-->
             </Data>
+
              <meg:int>0</meg:int>
        </GetSpoListResult>
+
            </meg:QuotaTypes>
      </GetSpoListResponse>
+
         </meg:request>
  </soap:Body>
+
       </meg:SearchHotelServicesMinHotel>
</soap:Envelope>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
 
===GetCosts (Получение брутто цены по параметрам запроса)===
 
Метод возвращает брутто цены по параметрам запроса.<br />
 
Принимаемые параметры запроса ( * – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''Request''' – объект с параметрами запроса
 
** '''SpoId *''' – ключ SPO ((Параметр CO_Id таблицы CostOffers). Список SPO возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetSpoList (Получение списка СПО согласно запросу)|GetSpoList]])<br />
 
** '''TariffId *''' – ключ тарифа ((В таблице цен соответствует параметру CS_CVId). При установке "-1" подбираются все тарифы)
 
** '''SvKey *''' – тип услуги(1 – проживание, 2 – трансфер, 4 – экскурсия, 5 – экстрасервис)
 
** '''Code *''' – ключ услуги (Для отеля это ключ из таблицы Partners. Для всех остальных  услуг – это ключ SL_KEY из таблицы ServiceList. Так же эти ключи можно получить методами веб сервиса: GetServiceList, GetExcursions, GetTransfers, GetHotels)
 
** '''PriceType''' – тип цены проживания (0 – за человека, 1 – за комнату, 2 – все). Если не указан, то запрашивается 2.
 
** '''DownloadOnlyActualCosts *''' – закачка только актуальных цен (1 – получать актуальные, 0 – получать все) 
 
** '''DownloadUpdateCostsFromDate *''' – закачивать цены только с выбранной даты (1 – настройка включена, 0 – получаем все)
 
** '''CostsUpdateDateBegin *''' – дата, с которой закачивать цены (используется при установке параметра DownloadUpdateCostsFromDate)
 
Возвращаемый результат:<br />
 
* '''GetCostsResult''' – результаты выдачи
 
** '''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''' – ключ туроператора
 
 
 
<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>
 
Вызов метода GetCosts
 
<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: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>
Возвращаемый результат метода GetCosts
+
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>
       <GetCostsResponse xmlns="http://www.megatec.ru/">
+
       <SearchHotelServicesMinHotelResponse xmlns="http://www.megatec.ru/">
         <GetCostsResult Message="Ok">
+
         <SearchHotelServicesMinHotelResult Message="Ok">
 
             <Data>
 
             <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"/>
+
               <DataRequestResult>
              <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"/>
+
                  <ResultTable>
          </Data>
+
                    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        </GetCostsResult>
+
                        <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="HotelServices" msdata:UseCurrentLocale="true">
      </GetCostsResponse>
+
                          <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"/>
===SpoPriceMarkDownloaded (Получение информации о доступности конкретного SPO для продажи)===
+
                                          <xs:element name="RtCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
Метод возвращает информацию о доступности конкретного SPO для продажи.<br />
+
                                          <xs:element name="RtKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
Важный момент: возвращается информация только по тем Costoffers, на которые есть публикация партнеру (группе партнера) пользователя, которые подключились к веб сервису.<br />
+
                                          <xs:element name="RcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
Принимаемые параметры запроса (* – обязательный):<br />
+
                                          <xs:element name="RcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                                          <xs:element name="RdName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''SpoKey *''' – ключ SPO (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetSpoLList (получение списка SPO согласно запросу)|GetSpoLList]])
+
                                          <xs:element name="RdKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''VariantOfCost''' – вариант цены
+
                                          <xs:element name="AcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''SvKey''' – ключ класса услуги
+
                                          <xs:element name="AcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''Code''' – код услуги
+
                                          <xs:element name="PnCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
Возвращаемый результат:<br />
+
                                          <xs:element name="PnKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''SpoPriceMarkDownloadedResult''' – результат поиска
+
                                          <xs:element name="TotalCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
** '''true''' – SPO доступно
+
                                          <xs:element name="Cost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
** '''false''' – SPO недоступно
+
                                          <xs:element name="AddHotsCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                                          <xs:element name="AddHotsWithCosts" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
<div class="mw-collapsible-content">
+
                                          <xs:element name="DetailBrutto" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                                          <xs:element name="QuoteType" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
Вызов метода SpoPriceMarkDownloaded
+
                                          <xs:element name="CountryKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
<syntaxhighlight lang="java" enclose="div">
+
                                          <xs:element name="CityKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                                          <xs:element name="CityName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
  <soapenv:Header/>
+
                                          <xs:element name="HotelWebSite" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
  <soapenv:Body>
+
                                          <xs:element name="TariffId" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
      <meg:SpoPriceMarkDownloaded>
+
                                          <xs:element name="TariffName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <!--Optional:-->
+
                                          <xs:element name="TariffDescription" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <meg:guid>016e9dd9-802e-46fb-bb79-7c44a31d6560</meg:guid>
+
                                          <xs:element name="AddHots" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <meg:spoKey>2049</meg:spoKey>
+
                                          <xs:element name="ContractPrKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <meg:variantOfCost>0</meg:variantOfCost>
+
                                          <xs:element name="HotelImage" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <meg:svKey>0</meg:svKey>
+
                                          <xs:element name="Rate" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <meg:code>0</meg:code>
+
                                      </xs:sequence>
      </meg:SpoPriceMarkDownloaded>
+
                                    </xs:complexType>
  </soapenv:Body>
+
                                </xs:element>
</soapenv:Envelope>
+
                              </xs:choice>
</syntaxhighlight>
+
                          </xs:complexType>
Возвращаемый результат метода SpoPriceMarkDownloaded
+
                        </xs:element>
<syntaxhighlight lang="java" enclose="div">
+
                    </xs:schema>
<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">
+
                    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
  <soap:Body>
+
                        <DocumentElement xmlns="">
      <SpoPriceMarkDownloadedResponse xmlns="http://www.megatec.ru/">
+
                          <HotelServices diffgr:id="HotelServices1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
        <SpoPriceMarkDownloadedResult>true</SpoPriceMarkDownloadedResult>
+
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
      </SpoPriceMarkDownloadedResponse>
+
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
  </soap:Body>
+
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room</RtCode>
</soap:Envelope>
+
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</RtKey>
</syntaxhighlight>
+
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Jakuzzi</RcName>
</TD></TR></TABLE>
+
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">20</RcKey>
</div></div><br />
+
                              <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>
===GetHotels (Получение списка отелей по параметрам)===
+
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
Метод возвращает список отелей по параметрам.<br />
+
                              <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>
* '''СountryKey *''' – ключ страны (-1 для всех)
+
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125470.0000</TotalCost>
* '''RegionKey *''' – ключ региона (-1 для всех)
+
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125450.00</Cost>
* '''СityKey *''' – ключ города (-1 для всех)
+
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">20.00</AddHotsCost>
Возвращаемый результат:<br />
+
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">-1</AddHotsWithCosts>
* '''GetHotelsResult''' – результаты выдачи
+
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(325,00[kolesnyk2]*386) * 1 room = 125450,00</DetailBrutto>
* '''Hotel''' – отель
+
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
** '''Name''' – название отеля
+
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
** '''ID''' – идентификатор отеля
+
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
** '''Description''' – описание отеля
+
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
** '''NameLat''' – название отеля латиницей
+
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
** '''Code''' – код отеля
+
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
** '''CodeLat''' – код отеля латиницей
+
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
** '''Unicode''' – код ISO отеля
+
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
** '''City''' – город отеля
+
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</AddHots>
*** '''Name''' – название города
+
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
*** '''ID''' – идентификатор города
+
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
*** '''Description''' – описание города
+
                          </HotelServices>
*** '''NameLat''' – название города латиницей
+
                        </DocumentElement>
*** '''Code''' – код города
+
                    </diffgr:diffgram>
*** '''CodeLat''' – код города латиницей
+
                  </ResultTable>
*** '''Unicode''' – код ISO города
+
                  <ColunmNames>
*** '''CountryID''' – идентификатор страны отеля
+
                    <string>HotelName</string>
*** '''RegionID''' – идентификатор региона отеля
+
                    <string>HotelKey</string>
** '''RegionID''' – идентификатор региона отеля
+
                    <string>RtCode</string>
** '''PriceType''' – тип цены (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
+
                    <string>RtKey</string>
** '''CountCosts''' – количество цен на отель
+
                    <string>RcName</string>
** '''CityId''' – идентификатор города отеля
+
                    <string>RcKey</string>
** '''HotelCategoryID''' – идентификатор категории отеля
+
                    <string>RdName</string>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                    <string>RdKey</string>
<div class="mw-collapsible-content">
+
                    <string>AcName</string>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                    <string>AcKey</string>
Вызов метода GetHotels
+
                    <string>PnCode</string>
<syntaxhighlight lang="java" enclose="div">
+
                    <string>PnKey</string>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                    <string>TotalCost</string>
  <soapenv:Header/>
+
                    <string>Cost</string>
  <soapenv:Body>
+
                    <string>AddHotsCost</string>
      <meg:GetHotels>
+
                    <string>AddHotsWithCosts</string>
        <meg:countryKey>10</meg:countryKey>
+
                    <string>DetailBrutto</string>
        <meg:regionKey>10</meg:regionKey>
+
                    <string>QuoteType</string>
        <meg:cityKey>10</meg:cityKey>
+
                    <string>CountryKey</string>
      </meg:GetHotels>
+
                    <string>CityKey</string>
  </soapenv:Body>
+
                    <string>CityName</string>
</soapenv:Envelope>
+
                    <string>HotelWebSite</string>
</syntaxhighlight>
+
                    <string>TariffId</string>
Возвращаемый результат метода GetHotels
+
                    <string>TariffName</string>
<syntaxhighlight lang="java" enclose="div">
+
                    <string>TariffDescription</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>AddHots</string>
  <soap:Body>
+
                    <string>ContractPrKey</string>
      <GetHotelsResponse xmlns="http://www.megatec.ru/">
+
                    <string>HotelImage</string>
        <GetHotelsResult>
+
                    <string>Rate</string>
            <Hotel>
+
                  </ColunmNames>
              <Name>Aegean Blue Hotel</Name>
+
                  <TotalCount>1</TotalCount>
              <ID>2254</ID>
+
                  <PageSize>100000</PageSize>
              <Description>3 stars (B)  (\\Nea KallikratiaABBA)</Description>
+
                  <PageIndex>0</PageIndex>
              <NameLat/>
+
                  <IsLastPage>true</IsLastPage>
              <Code>AGN</Code>
+
                  <AdditionalData>
              <CodeLat/>
+
                    <ArrayOfAnyType>
              <Unicode/>
+
                        <anyType xsi:type="ExtraService">
              <City>
+
                          <ExternalID xsi:nil="true"/>
                  <Name>Nea KallikratiaABBA</Name>
+
                          <Price>20</Price>
                  <ID>10</ID>
+
                          <NMen>0</NMen>
                  <Description/>
+
                          <PartnerID>0</PartnerID>
                  <NameLat/>
+
                          <Quota>NotChecked</Quota>
                  <Code>NKL</Code>
+
                          <PacketKey>0</PacketKey>
                  <CodeLat/>
+
                          <AdditionalParams>
                  <Unicode/>
+
                              <ParameterPair Key="ContractPrKey">
                  <CountryID>4</CountryID>
+
                                <Value xsi:type="xsd:int">0</Value>
                  <RegionID>6</RegionID>
+
                              </ParameterPair>
              </City>
+
                          </AdditionalParams>
              <RegionID>6</RegionID>
+
                          <DetailBrutto/>
              <PriceType>None</PriceType>
+
                          <Notes/>
              <CountCosts>0</CountCosts>
+
                          <Name>Hardlink</Name>
              <CityID>10</CityID>
+
                          <StartDate>2021-12-01T00:00:00</StartDate>
              <HotelCategoryID>6</HotelCategoryID>
+
                          <StartDay xsi:nil="true"/>
            </Hotel>
+
                          <Duration>0</Duration>
            <Hotel>
+
                          <RateBrutto/>
              <Name>Alkyonis Hotel</Name>
+
                          <Brutto>20</Brutto>
              <ID>1015</ID>
+
                          <ServiceClassID>99</ServiceClassID>
              <Description>2+ stars (C Sup)  (\\Nea KallikratiaABBA)</Description>
+
                          <TouristCount xsi:nil="true"/>
              <NameLat/>
+
                          <ID>0</ID>
              <Code>ALK</Code>
+
                          <Status>
              <CodeLat/>
+
                              <Name>Hardlink</Name>
              <Unicode/>
+
                              <ID>0</ID>
              <City>
+
                          </Status>
                  <Name>Nea KallikratiaABBA</Name>
+
                          <CityKey>80</CityKey>
                  <ID>10</ID>
+
                          <IsPackage>false</IsPackage>
                  <Description/>
+
                          <Code>699</Code>
                  <NameLat/>
+
                          <HasDuration>false</HasDuration>
                  <Code>NKL</Code>
+
                        </anyType>
                  <CodeLat/>
+
                    </ArrayOfAnyType>
                  <Unicode/>
+
                   </AdditionalData>
                  <CountryID>4</CountryID>
+
                  <ResponseGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</ResponseGuid>
                   <RegionID>6</RegionID>
+
               </DataRequestResult>
              </City>
+
             </Data>
              <RegionID>6</RegionID>
+
        </SearchHotelServicesMinHotelResult>
              <PriceType>None</PriceType>
+
       </SearchHotelServicesMinHotelResponse>
              <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>
  </soap:Body>
+
                  <RoomTypeName>Double Room</RoomTypeName>
</soap:Envelope>
+
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
</syntaxhighlight>
+
                  <PansionName>BB</PansionName>
</TD></TR></TABLE>
+
                  <CountAdult>2</CountAdult>
</div></div><br />
+
                  <CountChildren>0</CountChildren>
 
+
                  <Quota>0</Quota>
===GetExcursions (Получение списка экскурсий по параметрам)===
+
              </CostCalculationVariant>
Метод возвращает экскурсии по параметрам.<br />
+
              <CostCalculationVariant>
Принимаемые параметры запроса ( * – обязательный):
+
                  <RoomAccommodationId>5558</RoomAccommodationId>
* '''СountryKey *''' – ключ страны (-1 для всех)
+
                  <RoomTypeId>45</RoomTypeId>
* '''RegionKey *''' – ключ региона (-1 для всех)
+
                  <RoomCategoryId>20</RoomCategoryId>
* '''СityKey *''' – ключ города (-1 для всех)
+
                  <PansionId>4</PansionId>
Возвращаемый результат:<br />
+
                  <RoomAccommodationName>2AD</RoomAccommodationName>
* '''GetExcursionsResult''' – результаты выдачи
+
                  <RoomTypeName>Junior Suite</RoomTypeName>
** '''Excursion''' – массив данных
+
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
*** '''Name''' – название экскурсии
+
                  <PansionName>HB</PansionName>
*** '''ID''' – идентификатор экскурсии
+
                  <CountAdult>2</CountAdult>
*** '''Description''' – описание экскурсии
+
                  <CountChildren>0</CountChildren>
*** '''NameLat''' – название экскурсии латиницей
+
                  <Quota>0</Quota>
*** '''Code''' – код экскурсии
+
              </CostCalculationVariant>
*** '''CodeLat''' – код экскурсии латиницей
+
            </Data>
*** '''Unicode''' – код ISO экскурсии
+
        </SearchActualCostCalculationVariantResult>
*** '''CityID''' – идентификатор города
+
      </SearchActualCostCalculationVariantResponse>
*** '''RegionID''' – идентификатор региона
+
  </soap:Body>
 
+
</soap:Envelope>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
</syntaxhighlight>
<div class="mw-collapsible-content">
+
</TD></TR></TABLE>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
</div></div><br />
Вызов метода GetExcursions
+
 
<syntaxhighlight lang="java" enclose="div">
+
==Methods of working with prices==
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
===GetSpoList (Receiving the list of SPOs according to the request)===
  <soapenv:Header/>
+
The method returns a list of SPOs according to the request.<br />
  <soapenv:Body>
+
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 />
      <meg:GetExcursions>
+
Accepted request parameters ( '''*''' – required):
        <meg:countryKey>5</meg:countryKey>
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
        <meg:regionKey>5</meg:regionKey>
+
* '''Request''' – the class with request parameters
        <meg:cityKey>5</meg:cityKey>
+
** '''SvKey *''' – the service class key (1 – accommodation, 2 – transfer, 4 – excursion, 5 – extraservice, 0 or -1 are not accepted)
      </meg:GetExcursions>
+
** '''PublicationDateBegin *''' – the date of publication of the SPO «from»
  </soapenv:Body>
+
** '''PublicationDateEnd *''' – the date of publication of the price «till»
</soapenv:Envelope>
+
The returning result:<br />
</syntaxhighlight>
+
* '''SPOInfo''' – the search result
Возвращаемый результат метода GetExcursions
+
** '''ResultTable''' – the search result
<syntaxhighlight lang="java" enclose="div">
+
** '''Id''' – SPO ID key
<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">
+
** '''Name''' – the name of the SPO
  <soap:Body>
+
** '''PeriodBeforeCheckIn''' – the period before arrival
      <GetExcursionsResponse xmlns="http://www.megatec.ru/">
+
** '''SaleDateBegin''' – the date from which booking is possible
        <GetExcursionsResult>
+
** '''SaleDateEnd''' – the date before which booking is possible
            <Excursion>
+
** '''Comment''' – the description of the SPO
               <Name>Exc21_01_2020</Name>
+
** '''CreateDate''' – the creation date
               <ID>670</ID>
+
** '''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">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 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:Envelope>
 +
</syntaxhighlight>
 +
The returning result of the method GetSpoList
 +
<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>
 +
      <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>
 +
</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">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetCosts
 +
<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: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>
 +
</syntaxhighlight>
 +
The returning result of the method GetCosts
 +
<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>
 +
      <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>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===SpoPriceMarkDownloaded (Receiving information about availability of a specific SPO for sale)===
 +
The method returns information about the availability of a specific SPO for sale.<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 />
 +
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 />
 +
* '''SpoKey *''' – SPO key (returning when requesting the [[Master-Interlook:IntegrationService (en)#GetSpoList (Receiving the list of SPOs according to the request)|GetSpoList]] method)
 +
* '''VariantOfCost''' – the price option
 +
* '''SvKey''' – the service class key
 +
* '''Code''' – the service code
 +
The returning result:<br />
 +
* '''SpoPriceMarkDownloadedResult''' – The returning result
 +
** '''true''' – SPO is available
 +
** '''false''' – SPO is not available
 +
 
 +
<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 invocating of the method SpoPriceMarkDownloaded
 +
<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: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>
 +
</syntaxhighlight>
 +
The returning result for the method SpoPriceMarkDownloaded
 +
<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>
 +
      <SpoPriceMarkDownloadedResponse xmlns="http://www.megatec.ru/">
 +
        <SpoPriceMarkDownloadedResult>true</SpoPriceMarkDownloadedResult>
 +
      </SpoPriceMarkDownloadedResponse>
 +
  </soap:Body>
 +
</soap:Envelope>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
==Methods of working with services==
 +
===GetHotels (Receiving the list of the hotels by parameters)===
 +
The method returns a list of hotels by parameters.<br />
 +
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:<br />
 +
* '''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
 +
 
 +
<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 invocating of the method 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>
 +
The returning result for the method 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:Envelope>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetTransfers (Receiving the list of the transfers by parameters)===
 +
The method returns a list of transfers by 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
 +
** '''С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:<br />
 +
* '''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
 +
 
 +
<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 GetTransfers
 +
<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: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>
 +
</syntaxhighlight>
 +
The returning result for the method GetTransfers
 +
<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>
 +
      <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>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetExcursions (Receiving the list of the excursions by parameters)===
 +
The method returns excursions by parameters.<br />
 +
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:<br />
 +
* '''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
 +
 
 +
<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 GetExcursions
 +
<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:GetExcursions>
 +
        <meg:countryKey>5</meg:countryKey>
 +
        <meg:regionKey>5</meg:regionKey>
 +
        <meg:cityKey>5</meg:cityKey>
 +
      </meg:GetExcursions>
 +
  </soapenv:Body>
 +
</soapenv:Envelope>
 +
</syntaxhighlight>
 +
The returning result for the method GetExcursions
 +
<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>
 +
      <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>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetServiceList (Receiving the list of additional services)===
 +
The method returns additional services.<br />
 +
The returning result:<br />
 +
* '''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
 +
 +
<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 GetServiceList
 +
<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:GetServiceList/>
 +
  </soapenv:Body>
 +
</soapenv:Envelope>
 +
</syntaxhighlight>
 +
The returning result for the method GetServiceList
 +
<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>
 +
      <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/>
 
               <Description/>
               <NameLat>Exc21_01_2020</NameLat>
+
               <NameLat/>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <CityID>5</CityID>
+
               <ServiceClaseID>4</ServiceClaseID>
               <RegionID>16</RegionID>
+
               <CountryID>0</CountryID>
             </Excursion>
+
             </ServiceList>
        </GetExcursionsResult>
+
          </GetServiceListResult>
       </GetExcursionsResponse>
+
       </GetServiceListResponse>
 
   </soap:Body>
 
   </soap:Body>
</soap:Envelope>
 
 
</soap:Envelope>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Строка 4256: Строка 4332:
 
</div></div><br />
 
</div></div><br />
  
===GetServiceList (Получение списка дополнительных услуг)===
+
===GetExtraServices (Receiving the list of additional services including services of AdHot type)===
Метод возвращает дополнительные услуги.<br />
+
The method returns a list of additional services, including services of the AdHot type.<br />
Возвращаемый результат:<br />
+
Accepted request parameters ( '''*''' – required):<br />
* '''GetServiceListResult''' – результаты выдачи
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
** '''ServiceList''' – массив данных
+
* '''Request''' – the object with request parameters
*** '''AdditionalParams''' – дополнительные параметры
+
** '''ServiceClassKey *''' – the additional service class key (-1 for all)
**** '''Key''' – ключ
+
** '''СountryKey *''' – the country key of the additional service (-1 for all)
**** '''Value''' – значение
+
** '''СityKey *''' – the city key for AdHot (-1 for all)
*** '''Name''' – название дополнительной услуги
+
** '''HotelKey *''' – the hotel key for AdHot (-1 for all)
*** '''ID''' – идентификатор дополнительной услуги
+
** '''RegionKey *''' – the region key (-1 for all)
*** '''NameLat''' – название дополнительной услуги латиницей
+
** '''TypeKey *''' – the type of AdHot (-1 – for everyone, 1 – Manual, 2 – HardLink, 3 – WithCosts)
*** '''Code''' – код дополнительной услуги
+
The returning result:<br />
*** '''CodeLat''' – код дополнительной услуги латиницей
+
* '''GetExtraServicesResult''' – the output results
*** '''Unicode''' – код ISO дополнительной услуги
+
** '''ExtraServiceInfo''' – an array of the data
*** '''ServiceClaseID''' – идентификатор класса дополнительной услуги
+
*** '''Id''' – ID of the additional service
*** '''CountryID''' – идентификатор страны дополнительной услуги
+
*** '''Name''' – the name of the additional service
+
*** '''Description''' – the description of the additional service
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
*** '''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)
 +
 
 +
<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 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:GetServiceList/>
+
       <meg:GetExtraServices>
  </soapenv:Body>
+
         <!--Optional:-->
</soapenv:Envelope>
+
         <meg:guid>e7f7b188-611b-4a01-bcff-b7117c222e1f</meg:guid>
</syntaxhighlight>
+
         <!--Optional:-->
Возвращаемый результат метода GetServiceList
+
         <meg:request>
<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>
 
      <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>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
 
===GetExtraServices (Получение списка дополнительных услуг включая услуги типа AdHot)===
 
Метод возвращает список дополнительных услуг, в том числе и услуги типа AdHot.<br />
 
Принимаемые параметры запроса ( * – обязательный):<br />
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''Request''' – объект с параметрами запроса
 
** '''ServiceClassKey *''' – ключ класса дополнительной услуги (-1 для всех)
 
** '''СountryKey *''' – ключ страны дополнительной услуги (-1 для всех)
 
** '''СityKey *''' – ключ города  для AdHot (-1 для всех)
 
** '''HotelKey *''' – ключ отеля для AdHot (-1 для всех)
 
** '''RegionKey *''' – ключ региона (-1 для всех)
 
** '''TypeKey *''' – тип AdHot (-1 – для всех, 1 – Manual, 2 – HardLink, 3 – WithCosts)
 
Возвращаемый результат:<br />
 
* '''GetExtraServicesResult''' – результаты выдачи
 
** '''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="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода GetExtraServices
 
<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:GetExtraServices>
 
         <!--Optional:-->
 
         <meg:guid>e7f7b188-611b-4a01-bcff-b7117c222e1f</meg:guid>
 
         <!--Optional:-->
 
         <meg:request>
 
 
             <meg:ServiceClassKey>-1</meg:ServiceClassKey>
 
             <meg:ServiceClassKey>-1</meg:ServiceClassKey>
 
             <meg:CountryKey>10</meg:CountryKey>
 
             <meg:CountryKey>10</meg:CountryKey>
Строка 4394: Строка 4390:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetExtraServices
+
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">
Строка 4442: Строка 4438:
 
</div></div><br />
 
</div></div><br />
  
===GetExtraServiceWithPrices (Получение списка дополнительных услуг включая услуги типа AdHot с ценами)===
+
===GetExtraServiceWithPrices (Receiving the list of additional services including services of AdHot type with prices)===
Метод возвращает список дополнительных услуг, в том числе и услуги типа AdHot с ценами.<br />
+
The method returns a list of additional services, including services of the AdHot type with prices.<br />
Принимаемые параметры запроса ( * – обязательный):<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
** '''HotelKey *''' – ключ отеля для AdHot (-1 для всех)
+
** '''HotelKey *''' – the hotel key for AdHot (-1 for all)
** '''DateFrom''' – дата действия от
+
** '''DateFrom''' – the date of validity from
** '''DateTo''' – дата действия до
+
** '''DateTo''' – the date validity before
Возвращаемый результат:<br />
+
The returning result:<br />
 
* '''GetExtraServiceWithPricesResult Message="Ok">
 
* '''GetExtraServiceWithPricesResult Message="Ok">
** '''CostInfo''' – массив данных
+
** '''CostInfo''' – an array of the data
*** '''Id''' – ключ цены
+
*** '''Id''' – the price key
*** '''SvKey''' – ключ типа услуги
+
*** '''SvKey''' – the service type key
*** '''SpoId''' – идентификатор SPO
+
*** '''SpoId''' – ID of the SPO
*** '''Code''' – ключ услуги
+
*** '''Code''' – the key of the service
*** '''AgeFrom''' – возраст «с»
+
*** '''AgeFrom''' – age «from»
*** '''AgeTo''' – возраст «по»
+
*** '''AgeTo''' – age «to»
*** '''CreateDate''' – дата создания цены
+
*** '''CreateDate''' – the date the price was created
*** '''CheckInDateBegin''' – дата заезда «с»
+
*** '''CheckInDateBegin''' – the check-in date «from»
*** '''CheckInDateEnd''' – дата заезда «до»
+
*** '''CheckInDateEnd''' – the check-in date «till»
*** '''CheckOutDateBegin''' – дата выезда «с»
+
*** '''CheckOutDateBegin''' – the departure date «from»
*** '''CheckOutDateEnd''' – дата выезда «до»
+
*** '''CheckOutDateEnd''' – the departure date «till»
*** '''DateBegin''' – дата действия цены «с»
+
*** '''DateBegin''' – the price validity date «from»
*** '''DateEnd''' – дата действия цены «до»
+
*** '''DateEnd''' – the price validity date «till»
*** '''UpdateDate''' – последняя дата обновления цены
+
*** '''UpdateDate''' – the last date of the price update
*** '''Price''' – значение цены
+
*** '''Price''' – the value of the price
*** '''Rate''' – валюта
+
*** '''Rate''' – the currency
*** '''SubCode1''' – параметр цены в зависимости от типа услуги (для проживания ключ типа номера, для трансфера – TransferType, для Adhot – ключ типа комнаты)
+
*** '''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''' – параметр цены в зависимости от типа услуги (для проживания ключ питания, для трансфера точка начала, для Adhot – ключ отеля)
+
*** '''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''' – параметр цены в зависимости от типа услуги (для проживания ключ категории номера, для трансфера точка окончания, для Adhot – ключ категории комнаты)
+
*** '''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''' – параметр цены в зависимости от типа услуги (для проживания размещение, для Adhot – размещение)
+
*** '''SubCode4''' – the price parameter depending on the type of service (for the accommodation accommodation, for Adhot – the accommodation)
*** '''TariffId''' – ключ тарифа
+
*** '''TariffId''' – the tariff key
*** '''Type''' – тип цены (1 – групповая, 0 – негрупповая. Для отеля за комнату или за человека.)
+
*** '''Type''' – the price type (1 – group, 0 – non-group. For a hotel per room or per person)
*** '''CountryId''' – ключ страны услуги
+
*** '''CountryId''' – the key of the country of the service
*** '''CityFromId''' – ключ города услуги
+
*** '''CityFromId''' – the key of the service city
*** '''CityToId''' – ключ города услуги «куда» (для трансферов)
+
*** '''CityToId''' – the key of the city of the "where" service (for transfers)
*** '''TouroperatorId''' – ключ туроператора
+
*** '''TouroperatorId''' – the tour operator's key
*** '''AdHotName''' – название доп. услуги в отеле
+
*** '''AdHotName''' – the name of AdHot
*** '''LinkType''' – тип доп. услуги в отеле: 1 - Manual (услуга, добавляемая по желанию), 2 – HardLink (обязательная услуга в отеле), 3 - WithCosts (обязательная услуга, добавляемая при наличии цены в период бронирования отеля)
+
*** '''LinkType''' – the AdHot type (1 Manual, 2 – HardLink, 3 WithCosts)
*** '''DurationType''' – услуга c продолжительностью или без (1 – цена указана за сутки, 0 - цена указана за весь период проживания)
+
*** '''DurationType''' – with or without duration (1 – with duration)
  
<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>
Вызов метода GetExtraServicesWithPrices
+
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/">
Строка 4504: Строка 4500:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetExtraServicesWithPrices
+
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">
Строка 4539: Строка 4535:
 
</div></div><br />
 
</div></div><br />
  
===CalculateSingleCost (Расчет стоимости услуги по ее параметрам стандартным механизмом расчета)===
+
===CalculateSingleCost (Calculating the cost of the service according to its parameters by a standart calculation mechanism)===
Метод рассчитывает стоимость услуги по ее параметрам стандартным механизмом расчета.<br />
+
CalculateSingleCost (Calculating the cost of the service according to its parameters by a standart calculation mechanism) .<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 *''' – ключ типа услуги
+
* '''SvKey *''' – the service type key
* '''СountryKey *''' – ключ страны
+
* '''СountryKey *''' – the country key
* '''Сode *''' – ключ услуги
+
* '''Сode *''' – the service key
* '''Subcode1 *''' – параметр цены в зависимости от типа услуги (для проживания ключ типа номера, для трансфера – TransferType)
+
* '''Subcode1 *''' – the price parameter depending on the type of service (for accommodation the room type key, for transfer – TransferType)
* '''Subcode2 *''' – параметр цены в зависимости от типа услуги (для проживания ключ питания, для трансфера точка начала)
+
* '''Subcode2 *''' – price parameter depending on the type of service (for accommodation the pansion key, for transfer the starting point)
* '''Subcode3 *''' – параметр цены в зависимости от типа услуги (для проживания ключ категории номера, для трансфера точка окончания)
+
* '''Subcode3 *''' – the price parameter depending on the type of service (for accommodation the room category key, for transfer the end point)
* '''Subcode4 *''' – параметр цены в зависимости от типа услуги (для проживания размещение)
+
* '''Subcode4 *''' – the price parameter depending on the type of service (for accommodation the accommodation)
* '''TourOperatorGroupKey *''' – ключ группы туроператора
+
* '''TourOperatorGroupKey *''' – the key of the tour operator's grou
* '''TourOperatorKey *''' – ключ туроператора (продавца)
+
* '''TourOperatorKey *''' – the key of the tour operator (seller)
* '''MrKey *''' – ключ рынка
+
* '''MrKey *''' – the market key
* '''FilialKey *''' – ключ филиала
+
* '''FilialKey *''' – the branch key
* '''TafiffKey *''' – ключ тарифа
+
* '''TafiffKey *''' – the tariff key
* '''Pax *''' – Pax по услуге
+
* '''Pax *''' – Pax by service
* '''Ages *''' – список с возрастами детей
+
* '''Ages *''' – the list with the ages of children
* '''CheckInDate *''' – дата «с»
+
* '''CheckInDate *''' – date «from»
* '''CheckOutDate *''' – дата «по»
+
* '''CheckOutDate *''' – date «till»
* '''CityKey *''' – ключ города
+
* '''CityKey *''' – the city key
* '''CityKeyTo *''' – ключ города «куда»
+
* '''CityKeyTo *''' – the key of the city «where»
* '''Rate *''' – код валюты
+
* '''Rate *''' – the currency code
* '''PricePerRoom *''' – за комнату или за человека
+
* '''PricePerRoom *''' – per room or per person
* '''OnlyPublished *''' – учитывать только опубликованные цены
+
* '''OnlyPublished *''' – consider only published prices
* '''ServiceProviderKey *''' –  ключ поставщика услуги
+
* '''ServiceProviderKey *''' –  the key of the service provider
Возвращаемый результат:<br />
+
The returning result:<br />
* '''CalculateSingleCostResult''' – результаты выдачи
+
* '''CalculateSingleCostResult''' – the output results
** '''Brutto''' – рассчитанная брутто цена
+
** '''Brutto''' – the calculated gross price
** '''ProviderKey''' – ключ поставщика услуги
+
** '''ProviderKey''' – the key of the service provider
 
** '''IsCalcBrutto'''
 
** '''IsCalcBrutto'''
** '''CancellationPolicies''' – Политика аннуляции
+
** '''CancellationPolicies''' – the cancellation Policy
** '''PolicyKey''' – ключ политики
+
** '''PolicyKey''' – the policy key
** '''DateFrom''' – дата "от"
+
** '''DateFrom''' – date "from"
** '''DateTo''' – дата "до"
+
** '''DateTo''' – date "till"
** '''PenaltyValue''' – значение штрафа
+
** '''PenaltyValue''' – the penalty value
** '''IsPercent''' - процент, указывающий,  что штраф в "%" (''true'') или в "ночах" (''false'')
+
** '''IsPercent''' - the percentage indicating that the penalty is in "%" (true) or in "nights" (false)
<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>
Вызов метода CalculateSingleCost
+
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/">
Строка 4618: Строка 4615:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CalculateSingleCost
+
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">
Строка 6603: Строка 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/">
Строка 6642: Строка 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">
Строка 6659: Строка 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/">
Строка 6697: Строка 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">
Строка 6715: Строка 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/">
Строка 6762: Строка 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">
Строка 6777: Строка 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/">
Строка 6805: Строка 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">
Строка 6820: Строка 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/">
Строка 6864: Строка 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>