PATCH api/agreement/{code}
Обновление отдельных полей путевки
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
code |
номер путёвки (спецсимволы требуется дважды экранировать - например, "/" надо заменять на "%252F") |
string |
Required |
Body Parameters
описание обновляемых данных
UpdateAgreementRequestName | Description | Type | Additional information |
---|---|---|---|
SpecifySubAgent | boolean |
None. |
|
SpecifyReservationCenter | boolean |
None. |
|
SpecifyClientLegal | boolean |
None. |
|
SpecifyDays | boolean |
None. |
|
AgreementCode |
Номер путёвки |
string |
None. |
CountryID |
ID страны |
integer |
None. |
RegionID |
ID региона |
integer |
None. |
CityID |
ID города |
integer |
None. |
DepartureID |
ID города отправления |
integer |
None. |
OperatorID |
ID оператора |
integer |
None. |
OperatorLegalID |
ID ЮЛ оператора |
integer |
None. |
SubAgentPartnerId |
ID партнера субагента |
integer |
None. |
SubAgentPartnerLegalId |
ID ЮЛ партнера субагента |
integer |
None. |
ReservationCenterPartnerLegalId |
ID ЮЛ партнера ЦБ |
integer |
None. |
TourTypeID |
ID типа тура |
integer |
None. |
CurrencyID |
ID валюты |
integer |
None. |
Course |
Курс |
decimal number |
None. |
ClientPartnerID |
ID партнера клиента |
integer |
None. |
ClientPartnerLegalID |
ID ЮЛ партнера клиента |
integer |
None. |
DateBegin |
Дата начала |
SerializedDateTime |
None. |
DateEnd |
Дата окончания |
SerializedDateTime |
None. |
Adults |
Количество взрослых |
integer |
None. |
Children |
Количество детей |
integer |
None. |
Comment |
Комментарий |
string |
None. |
IsPreOrder |
Флаг предзаказа (поле AG_IsPreAgreement) |
boolean |
None. |
OwnerLegalId |
ЮЛ парнера-владельца |
integer |
None. |
IsAcceptanceAllowedForSubagent |
Признак доступности акцептации(подтверждения) для субагента |
boolean |
None. |
AdvertisementId |
Идентификатор источника рекламы |
integer |
None. |
DepartmentId |
Идентификатор отдела |
integer |
None. |
ManagerId |
Идентификатор менеджера |
integer |
None. |
SubagentDepartmentId |
Идентификатор отдела субагента |
integer |
None. |
SubagentManagerId |
Идентификатор менеджера субагента |
integer |
None. |
CheckDate | SerializedDateTime |
None. |
|
DatePay |
Срок оплаты |
SerializedDateTime |
None. |
DateDoc |
Срок сдачи документов |
SerializedDateTime |
None. |
ShowAllPaySystems |
Показывать все способы оплаты |
boolean |
None. |
AvailableForPayment |
Доступна для оплаты |
boolean |
None. |
DocumentFlag |
Документы выданы |
boolean |
None. |
PaymentNumber |
Номер для оплаты |
string |
None. |
DatePrePayment |
Дата предоплаты |
SerializedDateTime |
None. |
PrePaymentValue |
Размер предоплаты |
decimal number |
None. |
PrePaymentIsPercent |
Тип предоплаты: true - в %, false - абсолютное значение |
boolean |
None. |
DateCreate | SerializedDateTime |
None. |
|
PaymentSettingsListId | integer |
None. |
Request Formats
application/json, text/json
{ "SpecifySubAgent": true, "SpecifyReservationCenter": true, "SpecifyClientLegal": true, "SpecifyDays": true, "AgreementCode": "sample string 5", "CountryID": 1, "RegionID": 1, "CityID": 1, "DepartureID": 1, "OperatorID": 1, "OperatorLegalID": 1, "SubAgentPartnerId": 1, "SubAgentPartnerLegalId": 1, "ReservationCenterPartnerLegalId": 1, "TourTypeID": 1, "CurrencyID": 1, "Course": 1.1, "ClientPartnerID": 1, "ClientPartnerLegalID": 1, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Adults": 1, "Children": 1, "Comment": "sample string 6", "IsPreOrder": true, "OwnerLegalId": 1, "IsAcceptanceAllowedForSubagent": true, "AdvertisementId": 1, "DepartmentId": 1, "ManagerId": 1, "SubagentDepartmentId": 1, "SubagentManagerId": 1, "CheckDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DatePay": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateDoc": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "ShowAllPaySystems": true, "AvailableForPayment": true, "DocumentFlag": true, "PaymentNumber": "sample string 7", "DatePrePayment": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "PrePaymentValue": 1.1, "PrePaymentIsPercent": true, "DateCreate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "PaymentSettingsListId": 1 }
application/xml, text/xml
<UpdateAgreementRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Order.Contract"> <Adults>1</Adults> <AdvertisementId>1</AdvertisementId> <AgreementCode>sample string 5</AgreementCode> <AvailableForPayment>true</AvailableForPayment> <CheckDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d2p1:_format>sample string 4</d2p1:_format> <d2p1:_serialized>01.01.1970</d2p1:_serialized> <d2p1:_value>1970-01-01T03:00:00.003+03:00</d2p1:_value> </CheckDate> <Children>1</Children> <CityID>1</CityID> <ClientPartnerID>1</ClientPartnerID> <ClientPartnerLegalID>1</ClientPartnerLegalID> <Comment>sample string 6</Comment> <CountryID>1</CountryID> <Course>1.1</Course> <CurrencyID>1</CurrencyID> <DateBegin xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d2p1:_format>sample string 4</d2p1:_format> <d2p1:_serialized>01.01.1970</d2p1:_serialized> <d2p1:_value>1970-01-01T03:00:00.003+03:00</d2p1:_value> </DateBegin> <DateCreate xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d2p1:_format>sample string 4</d2p1:_format> <d2p1:_serialized>01.01.1970</d2p1:_serialized> <d2p1:_value>1970-01-01T03:00:00.003+03:00</d2p1:_value> </DateCreate> <DateDoc xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d2p1:_format>sample string 4</d2p1:_format> <d2p1:_serialized>01.01.1970</d2p1:_serialized> <d2p1:_value>1970-01-01T03:00:00.003+03:00</d2p1:_value> </DateDoc> <DateEnd xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d2p1:_format>sample string 4</d2p1:_format> <d2p1:_serialized>01.01.1970</d2p1:_serialized> <d2p1:_value>1970-01-01T03:00:00.003+03:00</d2p1:_value> </DateEnd> <DatePay xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d2p1:_format>sample string 4</d2p1:_format> <d2p1:_serialized>01.01.1970</d2p1:_serialized> <d2p1:_value>1970-01-01T03:00:00.003+03:00</d2p1:_value> </DatePay> <DatePrePayment xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d2p1:_format>sample string 4</d2p1:_format> <d2p1:_serialized>01.01.1970</d2p1:_serialized> <d2p1:_value>1970-01-01T03:00:00.003+03:00</d2p1:_value> </DatePrePayment> <DepartmentId>1</DepartmentId> <DepartureID>1</DepartureID> <DocumentFlag>true</DocumentFlag> <IsAcceptanceAllowedForSubagent>true</IsAcceptanceAllowedForSubagent> <IsPreOrder>true</IsPreOrder> <ManagerId>1</ManagerId> <OperatorID>1</OperatorID> <OperatorLegalID>1</OperatorLegalID> <OwnerLegalId>1</OwnerLegalId> <PaymentNumber>sample string 7</PaymentNumber> <PaymentSettingsListId>1</PaymentSettingsListId> <PrePaymentIsPercent>true</PrePaymentIsPercent> <PrePaymentValue>1.1</PrePaymentValue> <RegionID>1</RegionID> <ReservationCenterPartnerLegalId>1</ReservationCenterPartnerLegalId> <ShowAllPaySystems>true</ShowAllPaySystems> <SpecifyClientLegal>true</SpecifyClientLegal> <SpecifyDays>true</SpecifyDays> <SpecifyReservationCenter>true</SpecifyReservationCenter> <SpecifySubAgent>true</SpecifySubAgent> <SubAgentPartnerId>1</SubAgentPartnerId> <SubAgentPartnerLegalId>1</SubAgentPartnerLegalId> <SubagentDepartmentId>1</SubagentDepartmentId> <SubagentManagerId>1</SubagentManagerId> <TourTypeID>1</TourTypeID> </UpdateAgreementRequest>
application/x-www-form-urlencoded
Response Information
Resource Description
информация о выполнении операции
AgreementResponse2Name | Description | Type | Additional information |
---|---|---|---|
AgreementData | AgreementInfoData |
None. |
|
BonusProgramId | integer |
None. |
|
DebugCollector | DebugCollector |
None. |
|
ResultQueryInfo |
Сообщения |
ResultQueryInfoContainer |
None. |
Response Formats
application/json, text/json
{ "AgreementData": { "ID": 1, "AgreementCode": "sample string 2", "SupplierBookingCode": "sample string 3", "StatusID": 4, "ClientDebt": 5.1, "CurrencyIso": "sample string 6", "NationalCurrencyId": 7, "NationalCurrencyName": "sample string 8", "NationalCurrencyCode": "sample string 9", "AgencyCourse": 1.1, "BankCourse": 1.1, "OperatorCourse": 1.1, "IsAnyPartnersBlacklisted": true, "DataPrivateCabinet": { "Step": 1, "IsHasCabinet": true, "Key": "290983f7-6a4b-4b9d-b6d4-f48a9ab014a5", "IsArchive": true, "IsHideHistory": true, "DateVisited": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "SignedDocuments": [ { "Date": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Files": "sample string 1", "Type": 2 }, { "Date": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Files": "sample string 1", "Type": 2 } ], "SignedDocuments1": { "PartnerId": 1, "AgreementCode": "sample string 2", "ClientId": 3 }, "HistoryDocuments": [ { "DocId": 1, "IsReport": true }, { "DocId": 1, "IsReport": true } ] }, "StatusName": "sample string 10", "StatusColor": "sample string 11", "Price": 12.1, "ForPay": 13.1, "Discount": 14.1, "DiscountPercent": 15.1, "Commission": 16.1, "CommissionPercent": 17.1, "PayedNational": 18.1, "DebtNational": 19.1, "Notes": [ { "Id": 1, "Text": "sample string 1", "TypeId": 2, "Created": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "CreatorId": 1, "CreatorName": "sample string 3" }, { "Id": 1, "Text": "sample string 1", "TypeId": 2, "Created": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "CreatorId": 1, "CreatorName": "sample string 3" } ], "CountryID": 20, "CountryName": "sample string 21", "RegionID": 22, "RegionName": "sample string 23", "CityID": 24, "CityName": "sample string 25", "DepartureID": 26, "DepartureCity": "sample string 27", "OperatorID": 28, "OperatorLegalID": 29, "OperatorName": "sample string 30", "TourTypeID": 31, "TourTypeName": "sample string 32", "AdvertisementID": 33, "AdvertisementList": [ { "Id": 1, "Name": "sample string 2", "Color": "sample string 3", "ParentId": 1, "ParentName": "sample string 4", "MappingId": 1, "IsExternal": true, "CanMaped": true, "PartnerName": "sample string 7" }, { "Id": 1, "Name": "sample string 2", "Color": "sample string 3", "ParentId": 1, "ParentName": "sample string 4", "MappingId": 1, "IsExternal": true, "CanMaped": true, "PartnerName": "sample string 7" } ], "PaymentSettingsListId": 1, "PaymentSettingsList": [ { "Id": 1, "Name": "sample string 2" }, { "Id": 1, "Name": "sample string 2" } ], "ClientPartnerID": 34, "ClientPartnerLegalID": 35, "OwnerID": 36, "OwnerLegalID": 37, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Adults": 38, "Children": 39, "CurrencyName": "sample string 40", "CurrencyID": 41, "ClientPartnerName": "sample string 42", "ClientPartnerLegalName": "sample string 43", "Buyer": "sample string 44", "Course": 45.1, "Comment": "sample string 46", "IsPreAgreement": true, "IsOperatorRequest": true, "TouristRequestNumber": "sample string 49", "IsNational": true, "BonusesFromAgreement": "sample string 51", "RecommendationFromCC": "sample string 52", "RecommendationFromRG": "sample string 53", "RecommendationFromNumber": "sample string 54", "Debited": "sample string 55", "BonusLimit": 56.1, "ClientBonuses": 57.1, "IsLocked": true, "IsPreOrder": true, "RequestList": [ { "ID": 1, "AgreementCode": "sample string 2", "CurrencyID": 3, "CurrencyName": "sample string 4", "CurrencyIso": "sample string 5", "PartnerID": 6, "PartnerName": "sample string 7", "PartnerGateCode": "sample string 8", "PartnerLegalID": 9, "StatusID": 10, "StatusName": "sample string 11", "PartnerLegalName": "sample string 12", "Price": 13.1, "PriceNetto": 14.1, "RequestOperatorCode": "sample string 15", "Course": 16.1, "Discount": 17.1, "IsPercent": true, "Commission": 19.1, "CommissionAgreementCurrency": 20.1, "IsPercentCommission": true, "Reward": 22.1, "RewardAgreementCurrency": 23.1, "IsPercentReward": true, "ForPay": 25.1, "CurrencyNameAgreement": "sample string 26", "CurrencyIDAgreement": 27, "PriceAgreementCurrency": 28.1, "PriceNettoAgreementCurrency": 29.1, "DiscountAgreementCurrency": 30.1, "IsPercentAgreementCurrency": true, "ForPayAgreementCurrency": 32.1, "ServiceList": [ { "RequestID": 1, "AgreementCode": "sample string 2", "ID": 3, "Name": "sample string 4", "ClassName": "sample string 5", "ServiceClassID": 6, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Days": 7, "Mens": 8, "CountryName": "sample string 9", "CountryID": 10, "CityName": "sample string 11", "CityID": 12, "SubServiceName": "sample string 13", "SubServiceID": 14, "SubService1Name": "sample string 15", "SubService1ID": 16, "SubService2Name": "sample string 17", "SubService2ID": 18, "Day": 19, "StatusID": 20, "StatusName": "sample string 21", "SupplierDescription": "sample string 22", "Brutto": 23.1, "Netto": 24.1, "IncludeInCost": true, "IsCommissionService": true }, { "RequestID": 1, "AgreementCode": "sample string 2", "ID": 3, "Name": "sample string 4", "ClassName": "sample string 5", "ServiceClassID": 6, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Days": 7, "Mens": 8, "CountryName": "sample string 9", "CountryID": 10, "CityName": "sample string 11", "CityID": 12, "SubServiceName": "sample string 13", "SubServiceID": 14, "SubService1Name": "sample string 15", "SubService1ID": 16, "SubService2Name": "sample string 17", "SubService2ID": 18, "Day": 19, "StatusID": 20, "StatusName": "sample string 21", "SupplierDescription": "sample string 22", "Brutto": 23.1, "Netto": 24.1, "IncludeInCost": true, "IsCommissionService": true } ], "IsLocked": true, "SPONumber": "sample string 34", "FixClientPrice": true, "FixNetCost": true, "SubAgentPrice": 37.1, "SubAgentCommission": 38.1, "IsPercentSubAgentCommission": true, "UseSubAgentCommission": true, "SubAgentCommissionSum": 41.1, "NonCommissionPrice": 42.1, "NonCommissionVisaPrice": 43.1, "NonCommissionInsurancePrice": 44.1, "NonCommissionFuelPrice": 45.1, "NonCommissionOtherPrice": 46.1 }, { "ID": 1, "AgreementCode": "sample string 2", "CurrencyID": 3, "CurrencyName": "sample string 4", "CurrencyIso": "sample string 5", "PartnerID": 6, "PartnerName": "sample string 7", "PartnerGateCode": "sample string 8", "PartnerLegalID": 9, "StatusID": 10, "StatusName": "sample string 11", "PartnerLegalName": "sample string 12", "Price": 13.1, "PriceNetto": 14.1, "RequestOperatorCode": "sample string 15", "Course": 16.1, "Discount": 17.1, "IsPercent": true, "Commission": 19.1, "CommissionAgreementCurrency": 20.1, "IsPercentCommission": true, "Reward": 22.1, "RewardAgreementCurrency": 23.1, "IsPercentReward": true, "ForPay": 25.1, "CurrencyNameAgreement": "sample string 26", "CurrencyIDAgreement": 27, "PriceAgreementCurrency": 28.1, "PriceNettoAgreementCurrency": 29.1, "DiscountAgreementCurrency": 30.1, "IsPercentAgreementCurrency": true, "ForPayAgreementCurrency": 32.1, "ServiceList": [ { "RequestID": 1, "AgreementCode": "sample string 2", "ID": 3, "Name": "sample string 4", "ClassName": "sample string 5", "ServiceClassID": 6, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Days": 7, "Mens": 8, "CountryName": "sample string 9", "CountryID": 10, "CityName": "sample string 11", "CityID": 12, "SubServiceName": "sample string 13", "SubServiceID": 14, "SubService1Name": "sample string 15", "SubService1ID": 16, "SubService2Name": "sample string 17", "SubService2ID": 18, "Day": 19, "StatusID": 20, "StatusName": "sample string 21", "SupplierDescription": "sample string 22", "Brutto": 23.1, "Netto": 24.1, "IncludeInCost": true, "IsCommissionService": true }, { "RequestID": 1, "AgreementCode": "sample string 2", "ID": 3, "Name": "sample string 4", "ClassName": "sample string 5", "ServiceClassID": 6, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Days": 7, "Mens": 8, "CountryName": "sample string 9", "CountryID": 10, "CityName": "sample string 11", "CityID": 12, "SubServiceName": "sample string 13", "SubServiceID": 14, "SubService1Name": "sample string 15", "SubService1ID": 16, "SubService2Name": "sample string 17", "SubService2ID": 18, "Day": 19, "StatusID": 20, "StatusName": "sample string 21", "SupplierDescription": "sample string 22", "Brutto": 23.1, "Netto": 24.1, "IncludeInCost": true, "IsCommissionService": true } ], "IsLocked": true, "SPONumber": "sample string 34", "FixClientPrice": true, "FixNetCost": true, "SubAgentPrice": 37.1, "SubAgentCommission": 38.1, "IsPercentSubAgentCommission": true, "UseSubAgentCommission": true, "SubAgentCommissionSum": 41.1, "NonCommissionPrice": 42.1, "NonCommissionVisaPrice": 43.1, "NonCommissionInsurancePrice": 44.1, "NonCommissionFuelPrice": 45.1, "NonCommissionOtherPrice": 46.1 } ], "RequestsServicesList": [ { "ServiceList": [ { "RequestID": 1, "AgreementCode": "sample string 2", "ID": 3, "Name": "sample string 4", "ClassName": "sample string 5", "ServiceClassID": 6, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Days": 7, "Mens": 8, "CountryName": "sample string 9", "CountryID": 10, "CityName": "sample string 11", "CityID": 12, "SubServiceName": "sample string 13", "SubServiceID": 14, "SubService1Name": "sample string 15", "SubService1ID": 16, "SubService2Name": "sample string 17", "SubService2ID": 18, "Day": 19, "StatusID": 20, "StatusName": "sample string 21", "SupplierDescription": "sample string 22", "Brutto": 23.1, "Netto": 24.1, "IncludeInCost": true, "IsCommissionService": true }, { "RequestID": 1, "AgreementCode": "sample string 2", "ID": 3, "Name": "sample string 4", "ClassName": "sample string 5", "ServiceClassID": 6, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Days": 7, "Mens": 8, "CountryName": "sample string 9", "CountryID": 10, "CityName": "sample string 11", "CityID": 12, "SubServiceName": "sample string 13", "SubServiceID": 14, "SubService1Name": "sample string 15", "SubService1ID": 16, "SubService2Name": "sample string 17", "SubService2ID": 18, "Day": 19, "StatusID": 20, "StatusName": "sample string 21", "SupplierDescription": "sample string 22", "Brutto": 23.1, "Netto": 24.1, "IncludeInCost": true, "IsCommissionService": true } ] }, { "ServiceList": [ { "RequestID": 1, "AgreementCode": "sample string 2", "ID": 3, "Name": "sample string 4", "ClassName": "sample string 5", "ServiceClassID": 6, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Days": 7, "Mens": 8, "CountryName": "sample string 9", "CountryID": 10, "CityName": "sample string 11", "CityID": 12, "SubServiceName": "sample string 13", "SubServiceID": 14, "SubService1Name": "sample string 15", "SubService1ID": 16, "SubService2Name": "sample string 17", "SubService2ID": 18, "Day": 19, "StatusID": 20, "StatusName": "sample string 21", "SupplierDescription": "sample string 22", "Brutto": 23.1, "Netto": 24.1, "IncludeInCost": true, "IsCommissionService": true }, { "RequestID": 1, "AgreementCode": "sample string 2", "ID": 3, "Name": "sample string 4", "ClassName": "sample string 5", "ServiceClassID": 6, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Days": 7, "Mens": 8, "CountryName": "sample string 9", "CountryID": 10, "CityName": "sample string 11", "CityID": 12, "SubServiceName": "sample string 13", "SubServiceID": 14, "SubService1Name": "sample string 15", "SubService1ID": 16, "SubService2Name": "sample string 17", "SubService2ID": 18, "Day": 19, "StatusID": 20, "StatusName": "sample string 21", "SupplierDescription": "sample string 22", "Brutto": 23.1, "Netto": 24.1, "IncludeInCost": true, "IsCommissionService": true } ] } ], "Services": [ { "ServiceType": 0, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Quantity": 1, "Content": "sample string 2", "MensCount": 3, "MAServiceClassID": 4, "StartDay": 5, "SupplierDescription": "sample string 6" }, { "ServiceType": 0, "DateBegin": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Quantity": 1, "Content": "sample string 2", "MensCount": 3, "MAServiceClassID": 4, "StartDay": 5, "SupplierDescription": "sample string 6" } ], "ClientList": [ 1, 2 ], "ClientFlagsList": [ { "ClientID": 1, "IsMain": true, "IsTourist": true, "IsBuyer": true, "DocumentType": 1 }, { "ClientID": 1, "IsMain": true, "IsTourist": true, "IsBuyer": true, "DocumentType": 1 } ], "TouristList": [ { "BirthCity": "sample string 1", "BirthCountry": "sample string 2", "PassportByWhom": "sample string 3", "PassportRusByWhom": "sample string 4", "Family": "sample string 5", "Fax": "sample string 6", "BirthArea": "sample string 7", "BirthDistrict": "sample string 8", "PostCountry": "sample string 9", "PostArea": "sample string 10", "PostDistrict": "sample string 11", "IsSendSMS": true, "IsSendEmail": true, "ManagerId": 1, "FileList": [ { "Id": 1, "Name": "sample string 2", "Extension": "", "Url": "sample string 3", "ShowInAgreement": true, "ShowInRequest": true, "DownloadDate": "sample string 6", "Date": "sample string 7", "IsAvailableForTourist": true, "IsNeedSignedDocument": true, "DocumentType": 10 }, { "Id": 1, "Name": "sample string 2", "Extension": "", "Url": "sample string 3", "ShowInAgreement": true, "ShowInRequest": true, "DownloadDate": "sample string 6", "Date": "sample string 7", "IsAvailableForTourist": true, "IsNeedSignedDocument": true, "DocumentType": 10 } ], "PhoneCallId": "sample string 12", "Phones": [ { "Id": 1, "TagsContactID": 1, "Value": "sample string 2", "isDefault": true }, { "Id": 1, "TagsContactID": 1, "Value": "sample string 2", "isDefault": true } ], "Emails": [ { "Id": 1, "TagsContactID": 1, "Value": "sample string 2", "isDefault": true }, { "Id": 1, "TagsContactID": 1, "Value": "sample string 2", "isDefault": true } ], "Documents": [ { "Type": 1, "Serial": "sample string 2", "Number": "sample string 3", "DateFrom": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateTo": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "IssuedBy": "sample string 4" }, { "Type": 1, "Serial": "sample string 2", "Number": "sample string 3", "DateFrom": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateTo": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "IssuedBy": "sample string 4" } ], "BirthAddress": "sample string 13", "ClientLeads": [ { "IsMainClient": true, "LeadId": 2, "LeadName": "sample string 3", "LeadStatus": "sample string 4", "Created": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "IsNew": true, "IsSuccess": true, "IsFailure": true }, { "IsMainClient": true, "LeadId": 2, "LeadName": "sample string 3", "LeadStatus": "sample string 4", "Created": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "IsNew": true, "IsSuccess": true, "IsFailure": true } ], "ID": 1, "Name": "sample string 14", "FirstName": "sample string 15", "MiddleName": "sample string 16", "NameLat": "sample string 17", "FirstNameLat": "sample string 18", "MiddleNameLat": "sample string 19", "Birthday": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Age": "sample string 20", "PostIndex": "sample string 21", "PostCity": "sample string 22", "PostStreet": "sample string 23", "PostBuilding": "sample string 24", "PostFlat": "sample string 25", "Phone": "sample string 26", "PassportType": "sample string 27", "PassportNumber": "sample string 28", "PassportDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "PassportDateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "PassportRusSer": "sample string 29", "PassportRusNumber": "sample string 30", "PassportRusDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Code": "sample string 31", "Comment": "sample string 32", "Email": "sample string 33", "Constant": true, "CreateDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "ChangeDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "UserID": 35, "Mobile_CC": "sample string 36", "Mobile_RG": "sample string 37", "Mobile_Number": "sample string 38", "Gender": "MAN", "GenderName": "Мужской", "Citizen": "sample string 39", "CitizenId": 1, "AgeCategory": "ADULT", "LeadsCount": 40, "AgreementsCount": 41, "Address": "sample string 42", "RealAddress": "sample string 43", "Manager": { "CanLogin": true, "Code": "sample string 2", "DepartmentId": 3, "DepartmentName": "sample string 4", "Email": "sample string 5", "FirstName": "sample string 6", "Id": 7, "IsNeedPassword": true, "IsNewLogin": true, "Login": "sample string 10", "MiddleName": "sample string 11", "Name": "sample string 12", "OldLogin": "sample string 13", "Password": "sample string 14" } }, { "BirthCity": "sample string 1", "BirthCountry": "sample string 2", "PassportByWhom": "sample string 3", "PassportRusByWhom": "sample string 4", "Family": "sample string 5", "Fax": "sample string 6", "BirthArea": "sample string 7", "BirthDistrict": "sample string 8", "PostCountry": "sample string 9", "PostArea": "sample string 10", "PostDistrict": "sample string 11", "IsSendSMS": true, "IsSendEmail": true, "ManagerId": 1, "FileList": [ { "Id": 1, "Name": "sample string 2", "Extension": "", "Url": "sample string 3", "ShowInAgreement": true, "ShowInRequest": true, "DownloadDate": "sample string 6", "Date": "sample string 7", "IsAvailableForTourist": true, "IsNeedSignedDocument": true, "DocumentType": 10 }, { "Id": 1, "Name": "sample string 2", "Extension": "", "Url": "sample string 3", "ShowInAgreement": true, "ShowInRequest": true, "DownloadDate": "sample string 6", "Date": "sample string 7", "IsAvailableForTourist": true, "IsNeedSignedDocument": true, "DocumentType": 10 } ], "PhoneCallId": "sample string 12", "Phones": [ { "Id": 1, "TagsContactID": 1, "Value": "sample string 2", "isDefault": true }, { "Id": 1, "TagsContactID": 1, "Value": "sample string 2", "isDefault": true } ], "Emails": [ { "Id": 1, "TagsContactID": 1, "Value": "sample string 2", "isDefault": true }, { "Id": 1, "TagsContactID": 1, "Value": "sample string 2", "isDefault": true } ], "Documents": [ { "Type": 1, "Serial": "sample string 2", "Number": "sample string 3", "DateFrom": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateTo": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "IssuedBy": "sample string 4" }, { "Type": 1, "Serial": "sample string 2", "Number": "sample string 3", "DateFrom": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateTo": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "IssuedBy": "sample string 4" } ], "BirthAddress": "sample string 13", "ClientLeads": [ { "IsMainClient": true, "LeadId": 2, "LeadName": "sample string 3", "LeadStatus": "sample string 4", "Created": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "IsNew": true, "IsSuccess": true, "IsFailure": true }, { "IsMainClient": true, "LeadId": 2, "LeadName": "sample string 3", "LeadStatus": "sample string 4", "Created": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "IsNew": true, "IsSuccess": true, "IsFailure": true } ], "ID": 1, "Name": "sample string 14", "FirstName": "sample string 15", "MiddleName": "sample string 16", "NameLat": "sample string 17", "FirstNameLat": "sample string 18", "MiddleNameLat": "sample string 19", "Birthday": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Age": "sample string 20", "PostIndex": "sample string 21", "PostCity": "sample string 22", "PostStreet": "sample string 23", "PostBuilding": "sample string 24", "PostFlat": "sample string 25", "Phone": "sample string 26", "PassportType": "sample string 27", "PassportNumber": "sample string 28", "PassportDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "PassportDateEnd": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "PassportRusSer": "sample string 29", "PassportRusNumber": "sample string 30", "PassportRusDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Code": "sample string 31", "Comment": "sample string 32", "Email": "sample string 33", "Constant": true, "CreateDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "ChangeDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "UserID": 35, "Mobile_CC": "sample string 36", "Mobile_RG": "sample string 37", "Mobile_Number": "sample string 38", "Gender": "MAN", "GenderName": "Мужской", "Citizen": "sample string 39", "CitizenId": 1, "AgeCategory": "ADULT", "LeadsCount": 40, "AgreementsCount": 41, "Address": "sample string 42", "RealAddress": "sample string 43", "Manager": { "CanLogin": true, "Code": "sample string 2", "DepartmentId": 3, "DepartmentName": "sample string 4", "Email": "sample string 5", "FirstName": "sample string 6", "Id": 7, "IsNeedPassword": true, "IsNewLogin": true, "Login": "sample string 10", "MiddleName": "sample string 11", "Name": "sample string 12", "OldLogin": "sample string 13", "Password": "sample string 14" } } ], "ClientServicesList": [ { "ClientID": 1, "ClientServiceList": [ 1, 2 ] }, { "ClientID": 1, "ClientServiceList": [ 1, 2 ] } ], "AgreementCorrespondence": [ { "Text": "sample string 1", "SenderName": "sample string 2", "SenderId": 1, "ToMessageId": 1, "Direction": "ToAgent", "DateTime": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Id": 3, "IsRead": true, "ClientId": 1, "PartnerId": 1, "CorrespondenceTypeId": 1, "ForLead": true, "MessageType": 6 }, { "Text": "sample string 1", "SenderName": "sample string 2", "SenderId": 1, "ToMessageId": 1, "Direction": "ToAgent", "DateTime": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Id": 3, "IsRead": true, "ClientId": 1, "PartnerId": 1, "CorrespondenceTypeId": 1, "ForLead": true, "MessageType": 6 } ], "FileList": [ { "Id": 1, "Name": "sample string 2", "Extension": "", "Url": "sample string 3", "ShowInAgreement": true, "ShowInRequest": true, "DownloadDate": "sample string 6", "Date": "sample string 7", "IsAvailableForTourist": true, "IsNeedSignedDocument": true, "DocumentType": 10 }, { "Id": 1, "Name": "sample string 2", "Extension": "", "Url": "sample string 3", "ShowInAgreement": true, "ShowInRequest": true, "DownloadDate": "sample string 6", "Date": "sample string 7", "IsAvailableForTourist": true, "IsNeedSignedDocument": true, "DocumentType": 10 } ], "ServicesExtension": [ { "Type": 0, "Description": "sample string 1", "Required": true, "IncludedInTourCost": true, "Cost": { "CurrencyCode": "sample string 1", "Brutto": 1.0, "Netto": 1.0, "Commission": 1.0 }, "Variants": [ { "Id": "74bf02e4-3def-47b0-b250-b72d1b0a5ebf", "Name": "sample string 2", "Description": "sample string 3", "Cost": { "CurrencyCode": "sample string 1", "Brutto": 1.0, "Netto": 1.0, "Commission": 1.0 }, "Selected": true, "IncludedInTourCost": true, "RelatedServiceId": "9ce1ff15-16d4-4d2f-8a29-4cf66f5675e0", "RelatedServiceVariants": [ 1, 2 ], "BeginDate": "2024-11-23T17:33:02.1119396+03:00" }, { "Id": "74bf02e4-3def-47b0-b250-b72d1b0a5ebf", "Name": "sample string 2", "Description": "sample string 3", "Cost": { "CurrencyCode": "sample string 1", "Brutto": 1.0, "Netto": 1.0, "Commission": 1.0 }, "Selected": true, "IncludedInTourCost": true, "RelatedServiceId": "9ce1ff15-16d4-4d2f-8a29-4cf66f5675e0", "RelatedServiceVariants": [ 1, 2 ], "BeginDate": "2024-11-23T17:33:02.1119396+03:00" } ] }, { "Type": 0, "Description": "sample string 1", "Required": true, "IncludedInTourCost": true, "Cost": { "CurrencyCode": "sample string 1", "Brutto": 1.0, "Netto": 1.0, "Commission": 1.0 }, "Variants": [ { "Id": "74bf02e4-3def-47b0-b250-b72d1b0a5ebf", "Name": "sample string 2", "Description": "sample string 3", "Cost": { "CurrencyCode": "sample string 1", "Brutto": 1.0, "Netto": 1.0, "Commission": 1.0 }, "Selected": true, "IncludedInTourCost": true, "RelatedServiceId": "9ce1ff15-16d4-4d2f-8a29-4cf66f5675e0", "RelatedServiceVariants": [ 1, 2 ], "BeginDate": "2024-11-23T17:33:02.1119396+03:00" }, { "Id": "74bf02e4-3def-47b0-b250-b72d1b0a5ebf", "Name": "sample string 2", "Description": "sample string 3", "Cost": { "CurrencyCode": "sample string 1", "Brutto": 1.0, "Netto": 1.0, "Commission": 1.0 }, "Selected": true, "IncludedInTourCost": true, "RelatedServiceId": "9ce1ff15-16d4-4d2f-8a29-4cf66f5675e0", "RelatedServiceVariants": [ 1, 2 ], "BeginDate": "2024-11-23T17:33:02.1119396+03:00" } ] } ], "ManagerID": 60, "SubagentManagerId": 1, "SubagentDepartmentId": 1, "ReservationCenterDepartmentId": 61, "ReservationCenterManagerId": 62, "ReservationManagerName": "sample string 63", "DepartmentId": 64, "ShowAllPaySystems": true, "ManagerData": "sample string 66", "DepartmentRegionId": 67, "CurrentManagerId": 68, "CurrentManagerDepartmentId": 69, "CurrentManagerRegionId": 1, "History": [ { "Created": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Action": "sample string 1", "Description": "sample string 2", "UserName": "sample string 3" }, { "Created": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "Action": "sample string 1", "Description": "sample string 2", "UserName": "sample string 3" } ], "Reports": [ { "Title": "sample string 1", "Name": "sample string 2", "Id": 3, "WebReportId": 4, "TemplateId": "924a7797-423a-4351-93a7-546d801cdbe0", "ReportFormat": "sample string 6", "NeedSelectedData": [ "sample string 1", "sample string 2" ], "NeedScreenFilter": true, "Url": "sample string 8", "IsAvailableForTourist": true, "IsNeedSignedDocument": true, "IsShowPrivateCabinet": true }, { "Title": "sample string 1", "Name": "sample string 2", "Id": 3, "WebReportId": 4, "TemplateId": "924a7797-423a-4351-93a7-546d801cdbe0", "ReportFormat": "sample string 6", "NeedSelectedData": [ "sample string 1", "sample string 2" ], "NeedScreenFilter": true, "Url": "sample string 8", "IsAvailableForTourist": true, "IsNeedSignedDocument": true, "IsShowPrivateCabinet": true } ], "AdditionalValues": [ { "Title": "sample string 1", "Type": "sample string 2", "RowTypeID": 3, "Options": [ "sample string 1", "sample string 2" ], "OptionsIds": [ "sample string 1", "sample string 2" ], "Value": "sample string 4", "FieldName": "sample string 5", "IsConstraint": true, "ValueId": 1, "ValuesDictionary": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }, { "Title": "sample string 1", "Type": "sample string 2", "RowTypeID": 3, "Options": [ "sample string 1", "sample string 2" ], "OptionsIds": [ "sample string 1", "sample string 2" ], "Value": "sample string 4", "FieldName": "sample string 5", "IsConstraint": true, "ValueId": 1, "ValuesDictionary": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } } ], "ReservationURL": "sample string 70", "MT_DG_Code": "sample string 71", "AdditionalServiceInfo": "sample string 72", "SourceTypeName": "sample string 73", "SubAgentPartnerId": 1, "SubAgentPartnerName": "sample string 74", "SubAgentPartnerLegalId": 1, "SubAgentPartnerLegalName": "sample string 75", "ForReservationCenter": true, "IsReservationCenter": true, "IsSubAgent": true, "AllowViewClientPrices": true, "AllowViewOperatorPrices": true, "AllowViewReservationCenterPrices": true, "AllowViewSubagentPrices": true, "AllowOperatorAgreements": true, "ActivityType": 84, "ReservationCenterPartnerLegalId": 1, "SubAgentNetto": 85.1, "SubAgentCommission": 86.1, "SubAgentCommissionPercent": 87.1, "DiscountCardId": 1, "ChangeOrderClientIfPayExist": 0, "HasPayments": true, "PayerId": 1, "PayerLegalId": 1, "DepartureCountryID": 89, "OwnerLegalName": "sample string 90", "ReservationCenterPartnerLegalName": "sample string 91", "ClientPayed": 92.1, "FirstPaymentDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "LastPaymentDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateCreate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "SubAgentPhone": "sample string 93", "SubAgentEmail": "sample string 94", "IsSubAgentToOperatorAgreement": true, "DatePrePayment": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "IsCreditAgreement": true, "IsAcceptanceAllowedForSubAgent": true, "CreditProfilesList": [ { "Id": 1, "SupplierCode": "sample string 2", "Status": "sample string 3", "Type": 4, "Sum": 5.0, "FirstPayment": 6, "Period": 7, "ClientID": 8, "ClientName": "sample string 9", "Passport": "sample string 10", "Phone": "sample string 11", "CreateDateString": "sample string 12", "AccountType": 13 }, { "Id": 1, "SupplierCode": "sample string 2", "Status": "sample string 3", "Type": 4, "Sum": 5.0, "FirstPayment": 6, "Period": 7, "ClientID": 8, "ClientName": "sample string 9", "Passport": "sample string 10", "Phone": "sample string 11", "CreateDateString": "sample string 12", "AccountType": 13 } ], "PaymentNumber": "sample string 97", "PrePaymentValue": 1.1, "PrePaymentIsPercent": true, "PrePaymentSum": 1.1, "PayedTo": "sample string 98", "DatePay": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DateDoc": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DocumentFlag": true, "AvailableForPayment": true, "LeadId": 1, "LeadName": "sample string 101", "LeadCreateDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "LeadAdvertisementSourceId": 102, "LeadAdvertisementSourceName": "sample string 103", "LeadStatusId": 104, "LeadStatusName": "sample string 105", "LeadSource": 1, "EtvNumber": "sample string 106", "EtvStatus": 107, "EtvLastSync": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "TourTariffs": [ { "TariffName": "sample string 1", "TariffsCount": 2, "AdultsCount": 3, "ChildCount": 4, "PeopleCount": 5 }, { "TariffName": "sample string 1", "TariffsCount": 2, "AdultsCount": 3, "ChildCount": 4, "PeopleCount": 5 } ] }, "BonusProgramId": 1, "DebugCollector": { "DebugInfo": [ "sample string 1", "sample string 2" ] }, "RedirectUrl": "sample string 2", "ResultQueryInfo": { "ResultsCount": 1, "HasError": false, "Info": [], "CacheStorageTimeEnd": true, "RefreshPeriod": 0, "DelFromCacheDateTime": "2024-11-23T17:33:02.1119396+03:00", "UserMessages": "", "UserMessagesHtml": "" } }