POST api/tour/management
Request Information
URI Parameters
None.
Body Parameters
UpdateTourRequestName | Description | Type | Additional information |
---|---|---|---|
Tour | TourItem |
None. |
Request Formats
application/json, text/json
Sample:
{ "Tour": { "Id": 1, "Name": "sample string 2", "IsActive": true, "TourTypeId": 4, "OwnerLegalId": 5, "DepartureCityId": 6, "CountryId": 7, "CityId": 8, "Duration": 9, "DefaultBeginTime": 10, "DefaultPeopleQuota": 11, "TourServices": [ { "Id": 1, "Day": 2, "Duration": 3, "Name": "sample string 4", "ServiceClass": { "Id": 1, "Name": "sample string 2", "NameLat": "sample string 3", "IsCity": true, "IsID1": true, "IsID2": true, "MappingId": 1, "IsExternal": true, "CanMaped": true, "PartnerName": "sample string 9", "IsPredefined": true }, "PeopleCount": 5, "CountryId": 6, "RegionId": 1, "CityId": 1, "StartTime": 7, "DurationTime": 8, "HotelData": { "HotelId": 1, "RoomTypeId": 2, "RoomCategoryId": 3, "RoomAccommodationId": 4, "BoardingId": 5 }, "AirflightData": { "FromCountryId": 1, "FromCityId": 2, "ToCountryId": 3, "ToCityId": 4, "TariffId": 5, "FlightId": 6 }, "TransferData": { "TransferId": 1, "TransportId": 2 }, "ExcursionData": { "ExcursionId": 1, "TransportId": 2 }, "CruiseData": { "ShipId": 1, "CabinId": 2, "BoardingId": 3, "RoomAccommodationId": 4 }, "AdditionalData": { "AdditionalServiceId": 1, "AddDescription1Id": 2, "AddDescription2Id": 3 }, "TariffServicePrices": [ { "Id": 1, "TourTariffId": "sample string 2", "TourServiceId": 3, "TourServiceKey": "sample string 4", "HasVariants": true, "IncludeInCost": true, "IsCommissionService": true, "IsGroupService": true, "Netto": 9.1, "AgentPrice": 10.1, "ClientPrice": 11.1, "HotelServicePrices": [ { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 }, { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 } ] }, { "Id": 1, "TourTariffId": "sample string 2", "TourServiceId": 3, "TourServiceKey": "sample string 4", "HasVariants": true, "IncludeInCost": true, "IsCommissionService": true, "IsGroupService": true, "Netto": 9.1, "AgentPrice": 10.1, "ClientPrice": 11.1, "HotelServicePrices": [ { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 }, { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 } ] } ] }, { "Id": 1, "Day": 2, "Duration": 3, "Name": "sample string 4", "ServiceClass": { "Id": 1, "Name": "sample string 2", "NameLat": "sample string 3", "IsCity": true, "IsID1": true, "IsID2": true, "MappingId": 1, "IsExternal": true, "CanMaped": true, "PartnerName": "sample string 9", "IsPredefined": true }, "PeopleCount": 5, "CountryId": 6, "RegionId": 1, "CityId": 1, "StartTime": 7, "DurationTime": 8, "HotelData": { "HotelId": 1, "RoomTypeId": 2, "RoomCategoryId": 3, "RoomAccommodationId": 4, "BoardingId": 5 }, "AirflightData": { "FromCountryId": 1, "FromCityId": 2, "ToCountryId": 3, "ToCityId": 4, "TariffId": 5, "FlightId": 6 }, "TransferData": { "TransferId": 1, "TransportId": 2 }, "ExcursionData": { "ExcursionId": 1, "TransportId": 2 }, "CruiseData": { "ShipId": 1, "CabinId": 2, "BoardingId": 3, "RoomAccommodationId": 4 }, "AdditionalData": { "AdditionalServiceId": 1, "AddDescription1Id": 2, "AddDescription2Id": 3 }, "TariffServicePrices": [ { "Id": 1, "TourTariffId": "sample string 2", "TourServiceId": 3, "TourServiceKey": "sample string 4", "HasVariants": true, "IncludeInCost": true, "IsCommissionService": true, "IsGroupService": true, "Netto": 9.1, "AgentPrice": 10.1, "ClientPrice": 11.1, "HotelServicePrices": [ { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 }, { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 } ] }, { "Id": 1, "TourTariffId": "sample string 2", "TourServiceId": 3, "TourServiceKey": "sample string 4", "HasVariants": true, "IncludeInCost": true, "IsCommissionService": true, "IsGroupService": true, "Netto": 9.1, "AgentPrice": 10.1, "ClientPrice": 11.1, "HotelServicePrices": [ { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 }, { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 } ] } ] } ], "Tariffs": [ { "Id": 1, "TariffId": "sample string 2", "Name": "sample string 3", "AdultCount": 4, "ChildCount": 5, "ChildAgeSince": 6, "ChildAgeFor": 7, "Netto": 8.0, "Brutto": 9.0, "Commission": 10.0, "Charge": 11.0 }, { "Id": 1, "TariffId": "sample string 2", "Name": "sample string 3", "AdultCount": 4, "ChildCount": 5, "ChildAgeSince": 6, "ChildAgeFor": 7, "Netto": 8.0, "Brutto": 9.0, "Commission": 10.0, "Charge": 11.0 } ], "TourSchedule": [ { "Id": 1, "DateSince": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateFor": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Time": 2, "DaysOfWeek": [ 1, 2 ], "TariffIds": [ "sample string 1", "sample string 2" ], "Quota": 3, "StopSale": true }, { "Id": 1, "DateSince": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateFor": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Time": 2, "DaysOfWeek": [ 1, 2 ], "TariffIds": [ "sample string 1", "sample string 2" ], "Quota": 3, "StopSale": true } ], "ShortDescription": "sample string 12", "FullDescription": "sample string 13", "TourConditions": "sample string 14", "CancellationConditions": "sample string 15", "ImagesInfo": { "ImagesUrls": [ "sample string 1", "sample string 2" ], "PreviewImageUrl": "sample string 1" }, "CityName": "sample string 16", "CountryName": "sample string 17", "TourTypeName": "sample string 18", "DepartureCityName": "sample string 19", "OwnerLegalName": "sample string 20", "TourMarks": [ { "Id": 1, "MarkId": 2, "TourId": 3, "Priority": 4 }, { "Id": 1, "MarkId": 2, "TourId": 3, "Priority": 4 } ] } }
application/xml, text/xml
Sample:
<UpdateTourRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Areas.Tour.Models.Dto"> <Tour> <CancellationConditions>sample string 15</CancellationConditions> <CityId>8</CityId> <CityName>sample string 16</CityName> <CountryId>7</CountryId> <CountryName>sample string 17</CountryName> <DefaultBeginTime>10</DefaultBeginTime> <DefaultPeopleQuota>11</DefaultPeopleQuota> <DepartureCityId>6</DepartureCityId> <DepartureCityName>sample string 19</DepartureCityName> <Duration>9</Duration> <FullDescription>sample string 13</FullDescription> <Id>1</Id> <ImagesInfo> <ImagesUrls xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </ImagesUrls> <PreviewImageUrl>sample string 1</PreviewImageUrl> </ImagesInfo> <IsActive>true</IsActive> <Name>sample string 2</Name> <OwnerLegalId>5</OwnerLegalId> <OwnerLegalName>sample string 20</OwnerLegalName> <ShortDescription>sample string 12</ShortDescription> <Tariffs> <TourTariff> <AdultCount>4</AdultCount> <Brutto>9</Brutto> <Charge>11</Charge> <ChildAgeFor>7</ChildAgeFor> <ChildAgeSince>6</ChildAgeSince> <ChildCount>5</ChildCount> <Commission>10</Commission> <Id>1</Id> <Name>sample string 3</Name> <Netto>8</Netto> <TariffId>sample string 2</TariffId> </TourTariff> <TourTariff> <AdultCount>4</AdultCount> <Brutto>9</Brutto> <Charge>11</Charge> <ChildAgeFor>7</ChildAgeFor> <ChildAgeSince>6</ChildAgeSince> <ChildCount>5</ChildCount> <Commission>10</Commission> <Id>1</Id> <Name>sample string 3</Name> <Netto>8</Netto> <TariffId>sample string 2</TariffId> </TourTariff> </Tariffs> <TourConditions>sample string 14</TourConditions> <TourMarks> <TourMark> <Id>1</Id> <MarkId>2</MarkId> <Priority>4</Priority> <TourId>3</TourId> </TourMark> <TourMark> <Id>1</Id> <MarkId>2</MarkId> <Priority>4</Priority> <TourId>3</TourId> </TourMark> </TourMarks> <TourSchedule> <TourScheduleItem> <DateFor xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d5p1:_format>sample string 4</d5p1:_format> <d5p1:_serialized>01.01.1970</d5p1:_serialized> <d5p1:_value>1970-01-01T03:00:00.003+03:00</d5p1:_value> </DateFor> <DateSince xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d5p1:_format>sample string 4</d5p1:_format> <d5p1:_serialized>01.01.1970</d5p1:_serialized> <d5p1:_value>1970-01-01T03:00:00.003+03:00</d5p1:_value> </DateSince> <DaysOfWeek xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </DaysOfWeek> <Id>1</Id> <Quota>3</Quota> <StopSale>true</StopSale> <TariffIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </TariffIds> <Time>2</Time> </TourScheduleItem> <TourScheduleItem> <DateFor xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d5p1:_format>sample string 4</d5p1:_format> <d5p1:_serialized>01.01.1970</d5p1:_serialized> <d5p1:_value>1970-01-01T03:00:00.003+03:00</d5p1:_value> </DateFor> <DateSince xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d5p1:_format>sample string 4</d5p1:_format> <d5p1:_serialized>01.01.1970</d5p1:_serialized> <d5p1:_value>1970-01-01T03:00:00.003+03:00</d5p1:_value> </DateSince> <DaysOfWeek xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </DaysOfWeek> <Id>1</Id> <Quota>3</Quota> <StopSale>true</StopSale> <TariffIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </TariffIds> <Time>2</Time> </TourScheduleItem> </TourSchedule> <TourServices> <TourItemService> <AdditionalData> <AddDescription1Id>2</AddDescription1Id> <AddDescription2Id>3</AddDescription2Id> <AdditionalServiceId>1</AdditionalServiceId> </AdditionalData> <AirflightData> <FlightId>6</FlightId> <FromCityId>2</FromCityId> <FromCountryId>1</FromCountryId> <TariffId>5</TariffId> <ToCityId>4</ToCityId> <ToCountryId>3</ToCountryId> </AirflightData> <CityId>1</CityId> <CountryId>6</CountryId> <CruiseData> <BoardingId>3</BoardingId> <CabinId>2</CabinId> <RoomAccommodationId>4</RoomAccommodationId> <ShipId>1</ShipId> </CruiseData> <Day>2</Day> <Duration>3</Duration> <DurationTime>8</DurationTime> <ExcursionData> <ExcursionId>1</ExcursionId> <TransportId>2</TransportId> </ExcursionData> <HotelData> <BoardingId>5</BoardingId> <HotelId>1</HotelId> <RoomAccommodationId>4</RoomAccommodationId> <RoomCategoryId>3</RoomCategoryId> <RoomTypeId>2</RoomTypeId> </HotelData> <Id>1</Id> <Name>sample string 4</Name> <PeopleCount>5</PeopleCount> <RegionId>1</RegionId> <ServiceClass xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.MasterAgentDictionary.Contract.Entities"> <d5p1:CanMaped>true</d5p1:CanMaped> <d5p1:Id>1</d5p1:Id> <d5p1:IsCity>true</d5p1:IsCity> <d5p1:IsExternal>true</d5p1:IsExternal> <d5p1:IsID1>true</d5p1:IsID1> <d5p1:IsID2>true</d5p1:IsID2> <d5p1:IsPredefined>true</d5p1:IsPredefined> <d5p1:MappingId>1</d5p1:MappingId> <d5p1:Name>sample string 2</d5p1:Name> <d5p1:NameLat>sample string 3</d5p1:NameLat> <d5p1:PartnerName>sample string 9</d5p1:PartnerName> </ServiceClass> <StartTime>7</StartTime> <TariffServicePrices> <TariffServicePrice> <AgentPrice>10.1</AgentPrice> <ClientPrice>11.1</ClientPrice> <HasVariants>true</HasVariants> <HotelServicePrices> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> </HotelServicePrices> <Id>1</Id> <IncludeInCost>true</IncludeInCost> <IsCommissionService>true</IsCommissionService> <IsGroupService>true</IsGroupService> <Netto>9.1</Netto> <TourServiceId>3</TourServiceId> <TourServiceKey>sample string 4</TourServiceKey> <TourTariffId>sample string 2</TourTariffId> </TariffServicePrice> <TariffServicePrice> <AgentPrice>10.1</AgentPrice> <ClientPrice>11.1</ClientPrice> <HasVariants>true</HasVariants> <HotelServicePrices> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> </HotelServicePrices> <Id>1</Id> <IncludeInCost>true</IncludeInCost> <IsCommissionService>true</IsCommissionService> <IsGroupService>true</IsGroupService> <Netto>9.1</Netto> <TourServiceId>3</TourServiceId> <TourServiceKey>sample string 4</TourServiceKey> <TourTariffId>sample string 2</TourTariffId> </TariffServicePrice> </TariffServicePrices> <TransferData> <TransferId>1</TransferId> <TransportId>2</TransportId> </TransferData> </TourItemService> <TourItemService> <AdditionalData> <AddDescription1Id>2</AddDescription1Id> <AddDescription2Id>3</AddDescription2Id> <AdditionalServiceId>1</AdditionalServiceId> </AdditionalData> <AirflightData> <FlightId>6</FlightId> <FromCityId>2</FromCityId> <FromCountryId>1</FromCountryId> <TariffId>5</TariffId> <ToCityId>4</ToCityId> <ToCountryId>3</ToCountryId> </AirflightData> <CityId>1</CityId> <CountryId>6</CountryId> <CruiseData> <BoardingId>3</BoardingId> <CabinId>2</CabinId> <RoomAccommodationId>4</RoomAccommodationId> <ShipId>1</ShipId> </CruiseData> <Day>2</Day> <Duration>3</Duration> <DurationTime>8</DurationTime> <ExcursionData> <ExcursionId>1</ExcursionId> <TransportId>2</TransportId> </ExcursionData> <HotelData> <BoardingId>5</BoardingId> <HotelId>1</HotelId> <RoomAccommodationId>4</RoomAccommodationId> <RoomCategoryId>3</RoomCategoryId> <RoomTypeId>2</RoomTypeId> </HotelData> <Id>1</Id> <Name>sample string 4</Name> <PeopleCount>5</PeopleCount> <RegionId>1</RegionId> <ServiceClass xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.MasterAgentDictionary.Contract.Entities"> <d5p1:CanMaped>true</d5p1:CanMaped> <d5p1:Id>1</d5p1:Id> <d5p1:IsCity>true</d5p1:IsCity> <d5p1:IsExternal>true</d5p1:IsExternal> <d5p1:IsID1>true</d5p1:IsID1> <d5p1:IsID2>true</d5p1:IsID2> <d5p1:IsPredefined>true</d5p1:IsPredefined> <d5p1:MappingId>1</d5p1:MappingId> <d5p1:Name>sample string 2</d5p1:Name> <d5p1:NameLat>sample string 3</d5p1:NameLat> <d5p1:PartnerName>sample string 9</d5p1:PartnerName> </ServiceClass> <StartTime>7</StartTime> <TariffServicePrices> <TariffServicePrice> <AgentPrice>10.1</AgentPrice> <ClientPrice>11.1</ClientPrice> <HasVariants>true</HasVariants> <HotelServicePrices> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> </HotelServicePrices> <Id>1</Id> <IncludeInCost>true</IncludeInCost> <IsCommissionService>true</IsCommissionService> <IsGroupService>true</IsGroupService> <Netto>9.1</Netto> <TourServiceId>3</TourServiceId> <TourServiceKey>sample string 4</TourServiceKey> <TourTariffId>sample string 2</TourTariffId> </TariffServicePrice> <TariffServicePrice> <AgentPrice>10.1</AgentPrice> <ClientPrice>11.1</ClientPrice> <HasVariants>true</HasVariants> <HotelServicePrices> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> </HotelServicePrices> <Id>1</Id> <IncludeInCost>true</IncludeInCost> <IsCommissionService>true</IsCommissionService> <IsGroupService>true</IsGroupService> <Netto>9.1</Netto> <TourServiceId>3</TourServiceId> <TourServiceKey>sample string 4</TourServiceKey> <TourTariffId>sample string 2</TourTariffId> </TariffServicePrice> </TariffServicePrices> <TransferData> <TransferId>1</TransferId> <TransportId>2</TransportId> </TransferData> </TourItemService> </TourServices> <TourTypeId>4</TourTypeId> <TourTypeName>sample string 18</TourTypeName> </Tour> </UpdateTourRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
TourItemResponseName | Description | Type | Additional information |
---|---|---|---|
Tour | TourItem |
None. |
|
IsError | boolean |
None. |
|
Message | string |
None. |
|
ResultQueryInfo |
Сообщения |
ResultQueryInfoContainer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Tour": { "Id": 1, "Name": "sample string 2", "IsActive": true, "TourTypeId": 4, "OwnerLegalId": 5, "DepartureCityId": 6, "CountryId": 7, "CityId": 8, "Duration": 9, "DefaultBeginTime": 10, "DefaultPeopleQuota": 11, "TourServices": [ { "Id": 1, "Day": 2, "Duration": 3, "Name": "sample string 4", "ServiceClass": { "Id": 1, "Name": "sample string 2", "NameLat": "sample string 3", "IsCity": true, "IsID1": true, "IsID2": true, "MappingId": 1, "IsExternal": true, "CanMaped": true, "PartnerName": "sample string 9", "IsPredefined": true }, "PeopleCount": 5, "CountryId": 6, "RegionId": 1, "CityId": 1, "StartTime": 7, "DurationTime": 8, "HotelData": { "HotelId": 1, "RoomTypeId": 2, "RoomCategoryId": 3, "RoomAccommodationId": 4, "BoardingId": 5 }, "AirflightData": { "FromCountryId": 1, "FromCityId": 2, "ToCountryId": 3, "ToCityId": 4, "TariffId": 5, "FlightId": 6 }, "TransferData": { "TransferId": 1, "TransportId": 2 }, "ExcursionData": { "ExcursionId": 1, "TransportId": 2 }, "CruiseData": { "ShipId": 1, "CabinId": 2, "BoardingId": 3, "RoomAccommodationId": 4 }, "AdditionalData": { "AdditionalServiceId": 1, "AddDescription1Id": 2, "AddDescription2Id": 3 }, "TariffServicePrices": [ { "Id": 1, "TourTariffId": "sample string 2", "TourServiceId": 3, "TourServiceKey": "sample string 4", "HasVariants": true, "IncludeInCost": true, "IsCommissionService": true, "IsGroupService": true, "Netto": 9.1, "AgentPrice": 10.1, "ClientPrice": 11.1, "HotelServicePrices": [ { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 }, { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 } ] }, { "Id": 1, "TourTariffId": "sample string 2", "TourServiceId": 3, "TourServiceKey": "sample string 4", "HasVariants": true, "IncludeInCost": true, "IsCommissionService": true, "IsGroupService": true, "Netto": 9.1, "AgentPrice": 10.1, "ClientPrice": 11.1, "HotelServicePrices": [ { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 }, { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 } ] } ] }, { "Id": 1, "Day": 2, "Duration": 3, "Name": "sample string 4", "ServiceClass": { "Id": 1, "Name": "sample string 2", "NameLat": "sample string 3", "IsCity": true, "IsID1": true, "IsID2": true, "MappingId": 1, "IsExternal": true, "CanMaped": true, "PartnerName": "sample string 9", "IsPredefined": true }, "PeopleCount": 5, "CountryId": 6, "RegionId": 1, "CityId": 1, "StartTime": 7, "DurationTime": 8, "HotelData": { "HotelId": 1, "RoomTypeId": 2, "RoomCategoryId": 3, "RoomAccommodationId": 4, "BoardingId": 5 }, "AirflightData": { "FromCountryId": 1, "FromCityId": 2, "ToCountryId": 3, "ToCityId": 4, "TariffId": 5, "FlightId": 6 }, "TransferData": { "TransferId": 1, "TransportId": 2 }, "ExcursionData": { "ExcursionId": 1, "TransportId": 2 }, "CruiseData": { "ShipId": 1, "CabinId": 2, "BoardingId": 3, "RoomAccommodationId": 4 }, "AdditionalData": { "AdditionalServiceId": 1, "AddDescription1Id": 2, "AddDescription2Id": 3 }, "TariffServicePrices": [ { "Id": 1, "TourTariffId": "sample string 2", "TourServiceId": 3, "TourServiceKey": "sample string 4", "HasVariants": true, "IncludeInCost": true, "IsCommissionService": true, "IsGroupService": true, "Netto": 9.1, "AgentPrice": 10.1, "ClientPrice": 11.1, "HotelServicePrices": [ { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 }, { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 } ] }, { "Id": 1, "TourTariffId": "sample string 2", "TourServiceId": 3, "TourServiceKey": "sample string 4", "HasVariants": true, "IncludeInCost": true, "IsCommissionService": true, "IsGroupService": true, "Netto": 9.1, "AgentPrice": 10.1, "ClientPrice": 11.1, "HotelServicePrices": [ { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 }, { "Id": 1, "RoomTypeId": 2, "RoomAccomodationId": 3, "BoardingId": 4, "IsDefault": true, "Netto": 6.1, "AgentPrice": 7.1, "ClientPrice": 8.1 } ] } ] } ], "Tariffs": [ { "Id": 1, "TariffId": "sample string 2", "Name": "sample string 3", "AdultCount": 4, "ChildCount": 5, "ChildAgeSince": 6, "ChildAgeFor": 7, "Netto": 8.0, "Brutto": 9.0, "Commission": 10.0, "Charge": 11.0 }, { "Id": 1, "TariffId": "sample string 2", "Name": "sample string 3", "AdultCount": 4, "ChildCount": 5, "ChildAgeSince": 6, "ChildAgeFor": 7, "Netto": 8.0, "Brutto": 9.0, "Commission": 10.0, "Charge": 11.0 } ], "TourSchedule": [ { "Id": 1, "DateSince": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateFor": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Time": 2, "DaysOfWeek": [ 1, 2 ], "TariffIds": [ "sample string 1", "sample string 2" ], "Quota": 3, "StopSale": true }, { "Id": 1, "DateSince": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateFor": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Time": 2, "DaysOfWeek": [ 1, 2 ], "TariffIds": [ "sample string 1", "sample string 2" ], "Quota": 3, "StopSale": true } ], "ShortDescription": "sample string 12", "FullDescription": "sample string 13", "TourConditions": "sample string 14", "CancellationConditions": "sample string 15", "ImagesInfo": { "ImagesUrls": [ "sample string 1", "sample string 2" ], "PreviewImageUrl": "sample string 1" }, "CityName": "sample string 16", "CountryName": "sample string 17", "TourTypeName": "sample string 18", "DepartureCityName": "sample string 19", "OwnerLegalName": "sample string 20", "TourMarks": [ { "Id": 1, "MarkId": 2, "TourId": 3, "Priority": 4 }, { "Id": 1, "MarkId": 2, "TourId": 3, "Priority": 4 } ] }, "IsError": true, "Message": "sample string 2", "RedirectUrl": "sample string 3", "ResultQueryInfo": { "ResultsCount": 1, "HasError": false, "Info": [], "CacheStorageTimeEnd": true, "RefreshPeriod": 0, "DelFromCacheDateTime": "2024-11-23T17:08:40.8317816+03:00", "UserMessages": "", "UserMessagesHtml": "" } }
application/xml, text/xml
Sample:
<TourItemResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Areas.Tour.Models.Dto"> <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 3</RedirectUrl> <ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <_x003C_DelFromCacheDateTime_x003E_k__BackingField>2024-11-23T17:08:40.8317816+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField> <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField> <info /> </ResultQueryInfo> <IsError>true</IsError> <Message>sample string 2</Message> <Tour> <CancellationConditions>sample string 15</CancellationConditions> <CityId>8</CityId> <CityName>sample string 16</CityName> <CountryId>7</CountryId> <CountryName>sample string 17</CountryName> <DefaultBeginTime>10</DefaultBeginTime> <DefaultPeopleQuota>11</DefaultPeopleQuota> <DepartureCityId>6</DepartureCityId> <DepartureCityName>sample string 19</DepartureCityName> <Duration>9</Duration> <FullDescription>sample string 13</FullDescription> <Id>1</Id> <ImagesInfo> <ImagesUrls xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </ImagesUrls> <PreviewImageUrl>sample string 1</PreviewImageUrl> </ImagesInfo> <IsActive>true</IsActive> <Name>sample string 2</Name> <OwnerLegalId>5</OwnerLegalId> <OwnerLegalName>sample string 20</OwnerLegalName> <ShortDescription>sample string 12</ShortDescription> <Tariffs> <TourTariff> <AdultCount>4</AdultCount> <Brutto>9</Brutto> <Charge>11</Charge> <ChildAgeFor>7</ChildAgeFor> <ChildAgeSince>6</ChildAgeSince> <ChildCount>5</ChildCount> <Commission>10</Commission> <Id>1</Id> <Name>sample string 3</Name> <Netto>8</Netto> <TariffId>sample string 2</TariffId> </TourTariff> <TourTariff> <AdultCount>4</AdultCount> <Brutto>9</Brutto> <Charge>11</Charge> <ChildAgeFor>7</ChildAgeFor> <ChildAgeSince>6</ChildAgeSince> <ChildCount>5</ChildCount> <Commission>10</Commission> <Id>1</Id> <Name>sample string 3</Name> <Netto>8</Netto> <TariffId>sample string 2</TariffId> </TourTariff> </Tariffs> <TourConditions>sample string 14</TourConditions> <TourMarks> <TourMark> <Id>1</Id> <MarkId>2</MarkId> <Priority>4</Priority> <TourId>3</TourId> </TourMark> <TourMark> <Id>1</Id> <MarkId>2</MarkId> <Priority>4</Priority> <TourId>3</TourId> </TourMark> </TourMarks> <TourSchedule> <TourScheduleItem> <DateFor xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d5p1:_format>sample string 4</d5p1:_format> <d5p1:_serialized>01.01.1970</d5p1:_serialized> <d5p1:_value>1970-01-01T03:00:00.003+03:00</d5p1:_value> </DateFor> <DateSince xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d5p1:_format>sample string 4</d5p1:_format> <d5p1:_serialized>01.01.1970</d5p1:_serialized> <d5p1:_value>1970-01-01T03:00:00.003+03:00</d5p1:_value> </DateSince> <DaysOfWeek xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </DaysOfWeek> <Id>1</Id> <Quota>3</Quota> <StopSale>true</StopSale> <TariffIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </TariffIds> <Time>2</Time> </TourScheduleItem> <TourScheduleItem> <DateFor xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d5p1:_format>sample string 4</d5p1:_format> <d5p1:_serialized>01.01.1970</d5p1:_serialized> <d5p1:_value>1970-01-01T03:00:00.003+03:00</d5p1:_value> </DateFor> <DateSince xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d5p1:_format>sample string 4</d5p1:_format> <d5p1:_serialized>01.01.1970</d5p1:_serialized> <d5p1:_value>1970-01-01T03:00:00.003+03:00</d5p1:_value> </DateSince> <DaysOfWeek xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </DaysOfWeek> <Id>1</Id> <Quota>3</Quota> <StopSale>true</StopSale> <TariffIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </TariffIds> <Time>2</Time> </TourScheduleItem> </TourSchedule> <TourServices> <TourItemService> <AdditionalData> <AddDescription1Id>2</AddDescription1Id> <AddDescription2Id>3</AddDescription2Id> <AdditionalServiceId>1</AdditionalServiceId> </AdditionalData> <AirflightData> <FlightId>6</FlightId> <FromCityId>2</FromCityId> <FromCountryId>1</FromCountryId> <TariffId>5</TariffId> <ToCityId>4</ToCityId> <ToCountryId>3</ToCountryId> </AirflightData> <CityId>1</CityId> <CountryId>6</CountryId> <CruiseData> <BoardingId>3</BoardingId> <CabinId>2</CabinId> <RoomAccommodationId>4</RoomAccommodationId> <ShipId>1</ShipId> </CruiseData> <Day>2</Day> <Duration>3</Duration> <DurationTime>8</DurationTime> <ExcursionData> <ExcursionId>1</ExcursionId> <TransportId>2</TransportId> </ExcursionData> <HotelData> <BoardingId>5</BoardingId> <HotelId>1</HotelId> <RoomAccommodationId>4</RoomAccommodationId> <RoomCategoryId>3</RoomCategoryId> <RoomTypeId>2</RoomTypeId> </HotelData> <Id>1</Id> <Name>sample string 4</Name> <PeopleCount>5</PeopleCount> <RegionId>1</RegionId> <ServiceClass xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.MasterAgentDictionary.Contract.Entities"> <d5p1:CanMaped>true</d5p1:CanMaped> <d5p1:Id>1</d5p1:Id> <d5p1:IsCity>true</d5p1:IsCity> <d5p1:IsExternal>true</d5p1:IsExternal> <d5p1:IsID1>true</d5p1:IsID1> <d5p1:IsID2>true</d5p1:IsID2> <d5p1:IsPredefined>true</d5p1:IsPredefined> <d5p1:MappingId>1</d5p1:MappingId> <d5p1:Name>sample string 2</d5p1:Name> <d5p1:NameLat>sample string 3</d5p1:NameLat> <d5p1:PartnerName>sample string 9</d5p1:PartnerName> </ServiceClass> <StartTime>7</StartTime> <TariffServicePrices> <TariffServicePrice> <AgentPrice>10.1</AgentPrice> <ClientPrice>11.1</ClientPrice> <HasVariants>true</HasVariants> <HotelServicePrices> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> </HotelServicePrices> <Id>1</Id> <IncludeInCost>true</IncludeInCost> <IsCommissionService>true</IsCommissionService> <IsGroupService>true</IsGroupService> <Netto>9.1</Netto> <TourServiceId>3</TourServiceId> <TourServiceKey>sample string 4</TourServiceKey> <TourTariffId>sample string 2</TourTariffId> </TariffServicePrice> <TariffServicePrice> <AgentPrice>10.1</AgentPrice> <ClientPrice>11.1</ClientPrice> <HasVariants>true</HasVariants> <HotelServicePrices> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> </HotelServicePrices> <Id>1</Id> <IncludeInCost>true</IncludeInCost> <IsCommissionService>true</IsCommissionService> <IsGroupService>true</IsGroupService> <Netto>9.1</Netto> <TourServiceId>3</TourServiceId> <TourServiceKey>sample string 4</TourServiceKey> <TourTariffId>sample string 2</TourTariffId> </TariffServicePrice> </TariffServicePrices> <TransferData> <TransferId>1</TransferId> <TransportId>2</TransportId> </TransferData> </TourItemService> <TourItemService> <AdditionalData> <AddDescription1Id>2</AddDescription1Id> <AddDescription2Id>3</AddDescription2Id> <AdditionalServiceId>1</AdditionalServiceId> </AdditionalData> <AirflightData> <FlightId>6</FlightId> <FromCityId>2</FromCityId> <FromCountryId>1</FromCountryId> <TariffId>5</TariffId> <ToCityId>4</ToCityId> <ToCountryId>3</ToCountryId> </AirflightData> <CityId>1</CityId> <CountryId>6</CountryId> <CruiseData> <BoardingId>3</BoardingId> <CabinId>2</CabinId> <RoomAccommodationId>4</RoomAccommodationId> <ShipId>1</ShipId> </CruiseData> <Day>2</Day> <Duration>3</Duration> <DurationTime>8</DurationTime> <ExcursionData> <ExcursionId>1</ExcursionId> <TransportId>2</TransportId> </ExcursionData> <HotelData> <BoardingId>5</BoardingId> <HotelId>1</HotelId> <RoomAccommodationId>4</RoomAccommodationId> <RoomCategoryId>3</RoomCategoryId> <RoomTypeId>2</RoomTypeId> </HotelData> <Id>1</Id> <Name>sample string 4</Name> <PeopleCount>5</PeopleCount> <RegionId>1</RegionId> <ServiceClass xmlns:d5p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.MasterAgentDictionary.Contract.Entities"> <d5p1:CanMaped>true</d5p1:CanMaped> <d5p1:Id>1</d5p1:Id> <d5p1:IsCity>true</d5p1:IsCity> <d5p1:IsExternal>true</d5p1:IsExternal> <d5p1:IsID1>true</d5p1:IsID1> <d5p1:IsID2>true</d5p1:IsID2> <d5p1:IsPredefined>true</d5p1:IsPredefined> <d5p1:MappingId>1</d5p1:MappingId> <d5p1:Name>sample string 2</d5p1:Name> <d5p1:NameLat>sample string 3</d5p1:NameLat> <d5p1:PartnerName>sample string 9</d5p1:PartnerName> </ServiceClass> <StartTime>7</StartTime> <TariffServicePrices> <TariffServicePrice> <AgentPrice>10.1</AgentPrice> <ClientPrice>11.1</ClientPrice> <HasVariants>true</HasVariants> <HotelServicePrices> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> </HotelServicePrices> <Id>1</Id> <IncludeInCost>true</IncludeInCost> <IsCommissionService>true</IsCommissionService> <IsGroupService>true</IsGroupService> <Netto>9.1</Netto> <TourServiceId>3</TourServiceId> <TourServiceKey>sample string 4</TourServiceKey> <TourTariffId>sample string 2</TourTariffId> </TariffServicePrice> <TariffServicePrice> <AgentPrice>10.1</AgentPrice> <ClientPrice>11.1</ClientPrice> <HasVariants>true</HasVariants> <HotelServicePrices> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> <HotelServicePrice> <AgentPrice>7.1</AgentPrice> <BoardingId>4</BoardingId> <ClientPrice>8.1</ClientPrice> <Id>1</Id> <IsDefault>true</IsDefault> <Netto>6.1</Netto> <RoomAccomodationId>3</RoomAccomodationId> <RoomTypeId>2</RoomTypeId> </HotelServicePrice> </HotelServicePrices> <Id>1</Id> <IncludeInCost>true</IncludeInCost> <IsCommissionService>true</IsCommissionService> <IsGroupService>true</IsGroupService> <Netto>9.1</Netto> <TourServiceId>3</TourServiceId> <TourServiceKey>sample string 4</TourServiceKey> <TourTariffId>sample string 2</TourTariffId> </TariffServicePrice> </TariffServicePrices> <TransferData> <TransferId>1</TransferId> <TransportId>2</TransportId> </TransferData> </TourItemService> </TourServices> <TourTypeId>4</TourTypeId> <TourTypeName>sample string 18</TourTypeName> </Tour> </TourItemResponse>