Master-Interlook:IntegrationService (en) — различия между версиями
[досмотренная версия] | [досмотренная версия] |
Biryukov (обсуждение | вклад) (→Методы поиска) |
Biryukov (обсуждение | вклад) (→Метод работы с квотами) |
||
(не показано 5 промежуточных версий этого же участника) | |||
Строка 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 | + | * '''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''' | + | ****** '''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 ( | + | ****** '''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)# | + | ***** '''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 ( | + | ***** '''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 (Getting the reservation by key)=== | |
− | + | The method receives information about the reservation by the reservation key.<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 /> | |
− | + | * '''DgKey *''' – key of the reservation | |
− | + | Returning result:<br /> | |
− | + | * '''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 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<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="ContractPrKey"> | |
− | |||
− | |||
− | <ParameterPair Key="ContractPrKey"> | ||
<Value xsi:type="xsd:int">2930</Value> | <Value xsi:type="xsd:int">2930</Value> | ||
</ParameterPair> | </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:Body> | ||
</soap:Envelope> | </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 method | + | 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 /> | 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 /> | * '''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 |
− | ** ''' | + | |
− | ** ''' | + | Returning result:<br /> |
− | ** ''' | + | * '''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 | ||
+ | |||
+ | <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 GetArrivalsByDate | ||
+ | <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:GetArrivalsByDate> | ||
+ | <!--Optional:--> | ||
+ | <meg:guid>96ab8f68-9a13-4845-b338-fdb29be4970b</meg:guid> | ||
+ | <meg:arrivalDate>2021-07-15</meg:arrivalDate> | ||
+ | </meg:GetArrivalsByDate> | ||
+ | </soapenv:Body> | ||
+ | </soapenv:Envelope> | ||
+ | </syntaxhighlight> | ||
+ | Returning result of the method GetArrivalsByDate | ||
+ | <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> | ||
+ | <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> | ||
+ | </syntaxhighlight> | ||
+ | </TD></TR></TABLE> | ||
+ | </div></div><br /> | ||
+ | |||
+ | ===GetDeparturesByDate (Receiving the list of the tourists for the date of the end of the tour)=== | ||
+ | The method returns data on the list of departures in json format. The method returns data on the main tourist from the reservation. If the main tourist does not have a phone number set, the data of the next tourist on the ticket, who has a phone number set, will be returning.<br /> | ||
+ | If the main tourist's hotel accommodation service is canceled, the data of the next tourist who has a phone number will be returning. <br /> | ||
+ | The '''ShowhotelReservationsByDate''' setting is responsible for the accessibility of the method for the user. By default, the setting is disabled.<br /> | ||
+ | To enable the setting, you need to go from the Master-Interlook client application to '''Master-Interlook → Settings → Online users → User → Person connection → edit role'''.<br /> | ||
+ | If the current user does not have the '''ShowhotelReservationsByDate''' setting enabled – there will be no access to this method, a message about insufficient rights will be returning in response. Verification is performed by the authentication identifier Guid. <br /> | ||
+ | <br />[[Файл:Ea_33.png|Настройка доступа]]<br /> | ||
+ | Accepted request parameters ( '''*''' – required):<br /> | ||
+ | * '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br /> | ||
+ | * '''DepartureDate *''' – date of departure | ||
+ | * '''CountryKey''' – key of the country | ||
+ | * '''RegionKey''' – key of the country | ||
+ | * '''CityKey''' – key of the city | ||
+ | * '''HotelKey''' – key of the hotel | ||
− | + | 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 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 | |
− | + | ||
− | + | <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 GetDeparturesByDate | |
− | + | <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:GetDeparturesByDate> | |
− | + | <!--Optional:--> | |
− | + | <meg:guid>a1b232d3-6971-4ede-8ac3-54f43d43c867</meg:guid> | |
− | + | <meg:departureDate>2021-07-27</meg:departureDate> | |
− | + | </meg:GetDeparturesByDate> | |
− | + | </soapenv:Body> | |
− | + | </soapenv:Envelope> | |
− | + | </syntaxhighlight> | |
− | + | Returning result for the method GetDeparturesByDate | |
− | + | <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> | |
− | + | <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> | |
− | + | </syntaxhighlight> | |
− | + | </TD></TR></TABLE> | |
− | + | </div></div><br /> | |
− | + | ||
− | + | ===CancelReservation (Cancellation of the reservation)=== | |
− | + | The method provides the cancellation of the reservation.<br /> | |
− | + | The output of the method results is regulated by the license.<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 /> | |
− | + | * '''DgKey *''' – key of the reservation (not the number) | |
− | + | * '''AnnulReasonID *''' – key of the reason of the cancellation (1001 – Cancel by the touroperator, 1009 – sdf. If such a cancellation reason key is not available in the database, we will receive the message. There is no this annulating reason in database)) | |
− | + | * '''Note''' – comment for the cancellation | |
− | + | Returning results. | |
− | + | * '''CancelReservationResult''' – result of the cancellation.<br /> | |
− | + | In case of successful cancellation in response we receive full description of the deleted reservation with the date of the cancellation.<br /> | |
− | + | In case of an error we receive a transcript of the error in response.<br /> | |
− | + | If one of the required parameters is missing or the value is incorrect, we will receive notification" Check the parameter 'dgKey' = 0. There is no such reservation in the database".<br /> | |
− | + | ||
− | + | <div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example | |
− | + | <div class="mw-collapsible-content"> | |
− | + | <TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD> | |
− | + | The invocation of the method CancelReservation | |
− | + | <syntaxhighlight lang="java" enclose="div"> | |
− | + | <soapenv:Envelope xmlns:soapenv="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> | |
− | + | </syntaxhighlight> | |
− | + | Returning result for the method CancelReservation | |
− | + | <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> | |
− | + | <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> | |
− | + | </syntaxhighlight> | |
− | + | </TD></TR></TABLE> | |
− | + | </div></div><br /> | |
− | + | ||
− | + | ===CancelReservationExtended (Cancellation of the reservation with input of information about penalties)=== | |
− | ****** ''' | + | The method cancels the reservation and provides information about the penalty.<br /> |
− | + | The output of the method results is regulated by the license.<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 /> | |
− | + | * '''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 | |
− | <div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example | + | *** '''Description''' - description |
− | <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 | + | <div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example |
− | <syntaxhighlight lang="java" enclose="div"> | + | <div class="mw-collapsible-content"> |
+ | <TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD> | ||
+ | The invocation of the method CancelReservation | ||
+ | <syntaxhighlight lang="java" enclose="div"> | ||
<soapenv:Envelope xmlns:soapenv="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: | + | <meg:CancelReservationExtended> |
− | <!--Optional:--> | + | <!--Optional:--> |
− | <meg:guid> | + | <meg:guid>16e129b9-5e69-4f53-808d-2fca840a32c1</meg:guid> |
+ | <meg:dgKey>37084</meg:dgKey> | ||
+ | <meg:annulReasonID>1001</meg:annulReasonID> | ||
<!--Optional:--> | <!--Optional:--> | ||
− | <meg: | + | <meg:note>567658</meg:note> |
− | + | </meg:CancelReservationExtended> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </meg: | ||
</soapenv:Body> | </soapenv:Body> | ||
</soapenv:Envelope> | </soapenv:Envelope> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | Returning result | + | Returning result for method CancelReservation |
<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> | ||
− | + | <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> | |
+ | </syntaxhighlight> | ||
+ | </TD></TR></TABLE> | ||
+ | </div></div><br /> | ||
+ | |||
+ | ===GetReservationsFrom (Selection of data by the date of creating of the reservation)=== | ||
+ | The method outputs data by the date of creation of the voucher.<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 /> | ||
+ | * '''DateFrom *''' – date from | ||
+ | * '''DateTo''' – date till | ||
+ | |||
+ | Returning results:<br /> | ||
+ | * '''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.<br /> | ||
+ | In case of an error in the GUID, we will 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 "Parameter 'DateTo' can't be less than 'DateFrom'."<br /> | ||
+ | If one of the required parameters is missing, we get the message "Parameter '<parameter value>' is required."<br /> | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw- | ||
<anyType xsi:type="ExtraService"> | <anyType xsi:type="ExtraService"> | ||
<ExternalID>0</ExternalID> | <ExternalID>0</ExternalID> | ||
− | <Price> | + | <Price>48</Price> |
<NMen>0</NMen> | <NMen>0</NMen> | ||
<PartnerID>0</PartnerID> | <PartnerID>0</PartnerID> | ||
Строка 3304: | Строка 2949: | ||
<DetailBrutto/> | <DetailBrutto/> | ||
<Notes/> | <Notes/> | ||
− | <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> | + | <Duration>0</Duration> |
<RateBrutto/> | <RateBrutto/> | ||
− | <Brutto> | + | <Brutto>48</Brutto> |
<RateNetto/> | <RateNetto/> | ||
<Netto>0</Netto> | <Netto>0</Netto> | ||
− | <ServiceClassID> | + | <ServiceClassID>99</ServiceClassID> |
<TouristCount>0</TouristCount> | <TouristCount>0</TouristCount> | ||
− | <ID> | + | <ID>0</ID> |
− | <CityKey> | + | <Status> |
+ | <Name>Hardlink</Name> | ||
+ | <ID>0</ID> | ||
+ | <Description/> | ||
+ | <NameLat/> | ||
+ | <Code/> | ||
+ | <CodeLat/> | ||
+ | <Unicode/> | ||
+ | </Status> | ||
+ | <CityKey>80</CityKey> | ||
<IsPackage>false</IsPackage> | <IsPackage>false</IsPackage> | ||
− | <Code> | + | <Code>699</Code> |
<HasDuration>false</HasDuration> | <HasDuration>false</HasDuration> | ||
</anyType> | </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> | ||
+ | </syntaxhighlight> | ||
+ | </TD></TR></TABLE> | ||
+ | </div></div><br /> | ||
+ | |||
+ | ===SearchHotelServicesMinHotel (Receiving one minimal calculated price for the hotel)=== | ||
+ | The method outputs one minimal (sorted by daily price) calculated price for the hotel.<br /> | ||
+ | Accepted request parameters ( '''*''' – required):<br /> | ||
+ | * '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br /> | ||
+ | * '''Request ''' – 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 [[Master-Interlook:IntegrationService (en)#GetRoomDescriptions (Receiving an array of the descriptions of the rooms)|GetRoomDescriptions]] method)<br /> | ||
+ | ** '''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) | ||
+ | ** '''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:<br /> | ||
+ | * '''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. [[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">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 SearchHotelServicesMinHotel<br /> | ||
+ | <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: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:--> | <!--Optional:--> | ||
− | <meg: | + | <meg:QuotaTypes> |
<!--Zero or more repetitions:--> | <!--Zero or more repetitions:--> | ||
− | + | <meg:int>0</meg:int> | |
− | + | </meg:QuotaTypes> | |
− | + | </meg:request> | |
− | + | </meg:SearchHotelServicesMinHotel> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <meg:int>0</meg:int> | ||
− | </meg:QuotaTypes> | ||
− | </meg:request> | ||
− | </meg:SearchHotelServicesMinHotel> | ||
</soapenv:Body> | </soapenv:Body> | ||
</soapenv:Envelope> | </soapenv:Envelope> | ||
Строка 6608: | Строка 6600: | ||
</div></div><br /> | </div></div><br /> | ||
− | == | + | ==Methods for working with quotas== |
− | === CheckQuota ( | + | ===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. <br /> | |
− | + | Accepted request parameters ( '''*''' – required): | |
− | * '''Guid *''' – | + | * '''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 *''' – | + | * '''RoomTypeId *''' – the room type key (-1 for all) |
− | * '''RoomCategoryId *''' – | + | * '''RoomCategoryId *''' – the room category key (-1 for all) |
− | + | 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''' – | + | ** '''Quota''' – the information about the quota (0 – on request, 1 – there is a quota, 2 – stop) |
− | ** '''RoomVariantName''' – | + | ** '''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> | ||
− | + | 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/"> | ||
Строка 6647: | Строка 6639: | ||
</soapenv:Envelope> | </soapenv:Envelope> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | 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"> | ||
Строка 6664: | Строка 6656: | ||
</TD></TR></TABLE> | </TD></TR></TABLE> | ||
</div></div><br /> | </div></div><br /> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <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> | ||
− | + | 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/"> | ||
Строка 6702: | Строка 6695: | ||
</soapenv:Envelope> | </soapenv:Envelope> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | 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"> | ||
Строка 6720: | Строка 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 *''' – | + | 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 |
− | + | * '''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''' – | + | *** '''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''' – | + | *** '''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> | ||
− | + | 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/"> | ||
Строка 6767: | Строка 6762: | ||
</soapenv:Envelope> | </soapenv:Envelope> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | 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"> | ||
Строка 6782: | Строка 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)=== |
− | + | The method returns hotels that have had changes in quotas or stops since a certain date.<br /> | |
− | + | Accepted request parameters ( '''*''' – required): | |
− | * '''Guid *''' – | + | * '''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 |
− | + | 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> | ||
− | + | 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/"> | ||
Строка 6810: | Строка 6805: | ||
</soapenv:Envelope> | </soapenv:Envelope> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | 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"> | ||
Строка 6825: | Строка 6820: | ||
</TD></TR></TABLE> | </TD></TR></TABLE> | ||
</div></div><br /> | </div></div><br /> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <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> | ||
− | + | 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/"> | ||
Строка 6869: | Строка 6865: | ||
</soapenv:Envelope> | </soapenv:Envelope> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | 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
Содержание
- 1 Introduction
- 2 The Methods of IntegrationService
- 2.1 The Methods of IntegrationService
- 2.2 Methods for working with tours
- 2.2.1 CreateReservation (The booking of the tour)
- 2.2.2 GetReservation (Getting the reservation by key)
- 2.2.3 GetArrivalsByDate (Getting a list of tourists on the start date of the tour)
- 2.2.4 GetDeparturesByDate (Receiving the list of the tourists for the date of the end of the tour)
- 2.2.5 CancelReservation (Cancellation of the reservation)
- 2.2.6 CancelReservationExtended (Cancellation of the reservation with input of information about penalties)
- 2.2.7 GetReservationsFrom (Selection of data by the date of creating of the reservation)
- 2.2.8 CreateReservationMessage (Creating message for the reservation)
- 2.2.9 GetReservationMessages (Receiving messages for the reservation)
- 2.3 Search methods
- 2.3.1 SearchHotelServices (Receiving options of accommodations under request parameters)
- 2.3.2 SearchHotelServicesMinHotel (Receiving one minimal calculated price for the hotel)
- 2.3.3 SearchActualCostCalculationVariant (Search for the possible types of rooms, categories of rooms, accommodations and pansions for which there are actual prices for the hotel)
- 2.4 Methods of working with prices
- 2.5 Methods of working with services
- 2.5.1 GetHotels (Receiving the list of the hotels by parameters)
- 2.5.2 GetTransfers (Receiving the list of the transfers by parameters)
- 2.5.3 GetExcursions (Receiving the list of the excursions by parameters)
- 2.5.4 GetServiceList (Receiving the list of additional services)
- 2.5.5 GetExtraServices (Receiving the list of additional services including services of AdHot type)
- 2.5.6 GetExtraServiceWithPrices (Receiving the list of additional services including services of AdHot type with prices)
- 2.5.7 CalculateSingleCost (Calculating the cost of the service according to its parameters by a standart calculation mechanism)
- 2.6 Methods of working with dictionaries
- 2.6.1 GetRegions (Receiving the list of the regions)
- 2.6.2 GetCities (Receiving the list of the cities)
- 2.6.3 GetCountries (Receiving the list of the countries)
- 2.6.4 GetRoomType (Receiving the list of the room types)
- 2.6.5 GetRoomCategories (Receiving the list of the room categories)
- 2.6.6 GetPansions (Receiving the list of the pansion types)
- 2.6.7 GetRatings (Receiving an array of hotel categories (hotel stars))
- 2.6.8 GetFlights (Receiving the list of the regions)
- 2.6.9 GetAirport (Receiving the list of the transfer nodes)
- 2.6.10 GetProviders (Receiving the list of the partners which are providers of services)
- 2.6.11 GetTransports (Receiving the list of the vehicles)
- 2.6.12 GetTransferTypes (Receiving the list of the transfer types)
- 2.6.13 GetRates (Receiving the list of the currencies)
- 2.6.14 GetServicePackage (Receiving the list of the options for package services)
- 2.6.15 GetDLStatuses (Receiving the list of the service statuses)
- 2.6.16 GetTariffs (Receiving the list of the tariffs for the certain type of services)
- 2.6.17 GetRoomDescriptions (Receiving an array of the descriptions of the rooms)
- 2.6.18 GetAccommodations (Receiving the accommodations for the hotel)
- 2.6.19 GetRoomAccommodations (Receiving the accommodations for the hotel an 2 first values of ages from the list of childrenages)
- 2.6.20 GetClientInfo (Issuing information about the partner to which relates the on-line user)
- 2.7 Methods of integration with payment systems
- 2.7.1 GetReservationPenalties (Receiving the penalties for the reservation before canceling it)
- 2.7.2 CreatePayment (Creating the payments for the reservation)
- 2.7.3 GetPaymentInformation (Searching for the payment information with a specified payment ID from an external system)
- 2.7.4 GetCancellationPolicyInfoWithPenalty (Receiving the information on the calculation of penalties for the hotel)
- 2.7.5 CheckReservation (Receiving the information about the payment required for the reservation in the selected currency)
- 2.7.6 CreatePaymentForDogovor (Creating the reservation payment based on issued invoice)
- 2.8 Methods for working with quotas
- 2.8.1 CheckQuota (Checking the availability of a hotel room for a period)
- 2.8.2 GetQuotaInfo (Checking the availability of a hotel room for a period with details by day)
- 2.8.3 GetChangeQuotaAndStop (Receiving the information on quotas and stops at the hotel)
- 2.8.4 GetHotelQuotaStopInfo (Receiving the information on hotels that have had changes in quotas or stops since a certain date)
- 2.8.5 GetQuotaStop (Receiving the information on the established stops for hotel rooms)
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.
- 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")
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)
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
- ParameterPair Key – key
- 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
- ParameterPair Key – key
- ID * – id of hotel
- AdditionalParams – additional parameters (providing as pair key – value)
- 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
- ParameterPair Key – key
- 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
- ParameterPair Key – key
- 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
- ParameterPair Key – key
- 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
- HotelService * – the parameters for a HotelService type of the service
- TouristService * – a separate service, used by tourists
- 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
- Tourist * – tourist
- 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
- HasInvoices * – is the tour invoice issued
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)
- TouristService – parate service, using by tourist
- 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
- 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
- Value – value
- ParameterPair Key – key
- 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
- RoomType – array of data Type of the room
- 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
- Value – value
- ParameterPair Key – key
- 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
- ParameterPair Key – key
- 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
- AdditionalParams – additional parameters (represents as a pair key – value)
- 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
- HotelService – parameters for the service type HotelService
- 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
- Tourist – tourist
- 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."
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)
- TouristService – parate service, using by tourist
- 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
- 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
- Value – value
- ParameterPair Key – key
- 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
- RoomType – array of data Type of the room
- 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
- Value – value
- ParameterPair Key – key
- 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
- ParameterPair Key – key
- 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
- AdditionalParams – additional parameters (represents as a pair key – value)
- 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
- HotelService – parameters for the service type HotelService
- 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
- Tourist – tourist
- 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
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
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
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".
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
- PenaltyCost - an object with the penalty value and the conditions under which the penalty was calculated
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."
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
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>".
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
- HotelServices – the hotel service
- 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
- ParameterPair Key – the key
- 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
- anyType – the type of service
- ArrayOfAnyType – an array of service types
- ResponseGuid – ID of the response that needs to be transmitted if we are moving through the same search using paging
- ResultTable – the table with the result
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'."
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
- HotelServices – the hotel service
- 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
- ParameterPair Key – the key
- 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
- anyType – the type of service
- ArrayOfAnyType – an array of service types
- ResponseGuid – ID of the response that needs to be transmitted if we are moving through the same search using paging
- ResultTable – the table with the result
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'."
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
- CostCalculationVariant – an array of the data
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
- COLinkService – the specific SPO service
- 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
- COService – the information about the price of a specific service in this SPO
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)
- SpoId * – the SPO key (The CO_Id parameter of the CostOffers table). The SPO list is returning when the GetSpoList method is requested)
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
- CostInfo – an array of the data
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
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
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
- TransferDirectionInfo – an array of the data
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
- Excursion – an array of the data
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
- AdditionalParams – the additional parameters
- ServiceList – an array of the data
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)
- HotelLinkTypeEx – the redefining the AdHot type for a hotel
- ExtraServiceInfo – an array of the data
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)
- CostInfo – an array of the data
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)
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
- Region – an array of the data
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
- City – an array of the data
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
- Country – the an array of the data
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
- RoomType – an array of the data
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
- RoomCategory – an array of the data
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
- Pansion – the search result
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><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я
- HotelCategory – an array of the data
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
- AirportFrom – the transfer hub at the departure point
- Flight – an array of the data
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
- Airport – an array of the data
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
- Partner – an array of the data
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><All></Name>
<ID>0</ID>
<Description/>
<NameLat><All></NameLat>
<Code><AL</Code>
<CodeLat/>
<Unicode/>
<PartnersGroupID>0</PartnersGroupID>
<FullName><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
- Transport – an array of the data
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
- Transport – an array of the data
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"
- Rate – an array of the data
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
- ServiceList – an array of the data
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
- StatusService – an array of the data
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
- Tariff – an array of the data
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
- AdditionalDescription – an array of the data
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
- AccomadationAge – an array of the data with age
- AccomodationInfo – an array of the data with accommodation
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»
- RoomAccomodation – an array of the data
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
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)
- PenaltyDataInfo – an array of data
- 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
- ServicePenalty – the penalty service
- Penalty – fine
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 />
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
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
- IsPaymentExists – shows if there is a requested payment
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
- CancellationPolicyWithPenaltyValue – an array of data for calculating the penalty
- CancellationPolicyInfoWithPenalty – an array of data
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
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".
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
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
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
- QuotaStopInfo – an array of data
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
- HotelQuotaStopInfo – an array of data
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
- QuoteHotel – an array of data
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>
|