PUT api/Agreement/Put

Request Information

URI Parameters

None.

Body Parameters

InsertAgreementRequest
NameDescriptionTypeAdditional information
AgreementData

AgreementData

None.

Request Formats

application/json, text/json

Sample:
{
  "AgreementData": {
    "CountryID": 1,
    "RegionID": 2,
    "CityID": 3,
    "DepartureID": 4,
    "OperatorID": 5,
    "OperatorLegalID": 6,
    "ClientPartnerID": 7,
    "ClientPartnerLegalID": 8,
    "TourTypeID": 9,
    "OwnerID": 10,
    "OwnerLegalId": 11,
    "SubAgentPartnerId": 1,
    "SubAgentPartnerLegalId": 1,
    "ReservationCenterPartnerLegalId": 1,
    "CurrencyID": 12,
    "Course": 13.1,
    "IsPreAgreement": true,
    "IsOperatorRequest": true,
    "TouristRequestNumber": "sample string 16",
    "RequestList": [
      {
        "PartnerName": "sample string 1",
        "PartnerID": 2,
        "PartnerLegalID": 3,
        "CurrencyName": "sample string 4",
        "CurrencyID": 5,
        "Course": 6.1,
        "Price": 7.1,
        "NonCommissionPrice": 8.1,
        "NonCommissionVisaPrice": 9.1,
        "NonCommissionInsurancePrice": 10.1,
        "NonCommissionFuelPrice": 11.1,
        "NonCommissionOtherPrice": 12.1,
        "PriceNetto": 13.1,
        "Discount": 14.1,
        "IsPercent": true,
        "FixNetCost": true,
        "Commission": 17.1,
        "CommissionAgreementCurrency": 18.1,
        "IsPercentCommission": true,
        "Reward": 20.1,
        "RewardAgreementCurrency": 21.1,
        "IsPercentReward": true,
        "ForPay": 23.1,
        "CurrencyNameAgreement": "sample string 24",
        "CurrencyIDAgreement": 25,
        "PriceAgreementCurrency": 26.1,
        "PriceNettoAgreementCurrency": 27.1,
        "DiscountAgreementCurrency": 28.1,
        "IsPercentAgreementCurrency": true,
        "ForPayAgreementCurrency": 30.1,
        "RequestOperatorCode": "sample string 31",
        "SPONumber": "sample string 32",
        "StatusID": 33,
        "StatusName": "sample string 34",
        "SubAgentPrice": 35.1,
        "SubAgentCommission": 36.1,
        "SubAgentCommissionSum": 37.1,
        "IsPercentSubAgentCommission": true,
        "UseSubAgentCommission": 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
          }
        ],
        "FixClientPrice": true
      },
      {
        "PartnerName": "sample string 1",
        "PartnerID": 2,
        "PartnerLegalID": 3,
        "CurrencyName": "sample string 4",
        "CurrencyID": 5,
        "Course": 6.1,
        "Price": 7.1,
        "NonCommissionPrice": 8.1,
        "NonCommissionVisaPrice": 9.1,
        "NonCommissionInsurancePrice": 10.1,
        "NonCommissionFuelPrice": 11.1,
        "NonCommissionOtherPrice": 12.1,
        "PriceNetto": 13.1,
        "Discount": 14.1,
        "IsPercent": true,
        "FixNetCost": true,
        "Commission": 17.1,
        "CommissionAgreementCurrency": 18.1,
        "IsPercentCommission": true,
        "Reward": 20.1,
        "RewardAgreementCurrency": 21.1,
        "IsPercentReward": true,
        "ForPay": 23.1,
        "CurrencyNameAgreement": "sample string 24",
        "CurrencyIDAgreement": 25,
        "PriceAgreementCurrency": 26.1,
        "PriceNettoAgreementCurrency": 27.1,
        "DiscountAgreementCurrency": 28.1,
        "IsPercentAgreementCurrency": true,
        "ForPayAgreementCurrency": 30.1,
        "RequestOperatorCode": "sample string 31",
        "SPONumber": "sample string 32",
        "StatusID": 33,
        "StatusName": "sample string 34",
        "SubAgentPrice": 35.1,
        "SubAgentCommission": 36.1,
        "SubAgentCommissionSum": 37.1,
        "IsPercentSubAgentCommission": true,
        "UseSubAgentCommission": 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
          }
        ],
        "FixClientPrice": true
      }
    ],
    "ClientList": [
      1,
      2
    ],
    "ClientFlagsList": [
      {
        "ClientID": 1,
        "IsMain": true,
        "IsTourist": true,
        "IsBuyer": true,
        "DocumentType": 1
      },
      {
        "ClientID": 1,
        "IsMain": true,
        "IsTourist": true,
        "IsBuyer": true,
        "DocumentType": 1
      }
    ],
    "ClientServicesList": [
      {
        "ClientID": 1,
        "ClientServiceList": [
          1,
          2
        ]
      },
      {
        "ClientID": 1,
        "ClientServiceList": [
          1,
          2
        ]
      }
    ],
    "Comment": "sample string 17",
    "AdvertisementID": 18,
    "AdvertisementsList": [
      {
        "CanMaped": true,
        "Color": "sample string 2",
        "ID": 3,
        "IsExternal": true,
        "MappingId": 1,
        "Name": "sample string 5",
        "ParentId": 1,
        "ParentName": "sample string 6",
        "RecordSource": "sample string 7"
      },
      {
        "CanMaped": true,
        "Color": "sample string 2",
        "ID": 3,
        "IsExternal": true,
        "MappingId": 1,
        "Name": "sample string 5",
        "ParentId": 1,
        "ParentName": "sample string 6",
        "RecordSource": "sample string 7"
      }
    ],
    "AdditionalValues": [
      {
        "FieldName": "sample string 1",
        "IsConstraint": true,
        "Options": [
          "sample string 1",
          "sample string 2"
        ],
        "OptionsIds": [
          "sample string 1",
          "sample string 2"
        ],
        "RowTypeID": 2,
        "Title": "sample string 3",
        "Type": "sample string 4",
        "Value": "sample string 5",
        "ValueId": 1,
        "ValuesDictionary": [
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          }
        ]
      },
      {
        "FieldName": "sample string 1",
        "IsConstraint": true,
        "Options": [
          "sample string 1",
          "sample string 2"
        ],
        "OptionsIds": [
          "sample string 1",
          "sample string 2"
        ],
        "RowTypeID": 2,
        "Title": "sample string 3",
        "Type": "sample string 4",
        "Value": "sample string 5",
        "ValueId": 1,
        "ValuesDictionary": [
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          }
        ]
      }
    ],
    "ManagerID": 1,
    "DepartmentId": 1,
    "SubagentManagerId": 1,
    "SubagentDepartmentId": 1,
    "LeadId": 1,
    "DiscountCardId": 19,
    "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"
      }
    ],
    "IsCreditAgreement": true,
    "PaymentNumber": "sample string 21",
    "PrePaymentValue": 1.1,
    "PrePaymentIsPercent": true,
    "CountryName": "sample string 22",
    "RegionName": "sample string 23",
    "CityName": "sample string 24",
    "DepartureCity": "sample string 25",
    "OperatorName": "sample string 26",
    "TourTypeName": "sample string 27",
    "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": 28,
    "Children": 29,
    "CurrencyName": "sample string 30",
    "DatePrePayment": {
      "Serialized": "01.01.1970",
      "HasValue": true,
      "Milliseconds": 3,
      "Format": "sample string 4"
    }
  }
}

application/xml, text/xml

Sample:
<InsertAgreementRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Order.Contract">
  <AgreementData>
    <Adults>28</Adults>
    <Children>29</Children>
    <CityName>sample string 24</CityName>
    <CountryName>sample string 22</CountryName>
    <CurrencyName>sample string 30</CurrencyName>
    <DateBegin xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
      <d3p1:_format>sample string 4</d3p1:_format>
      <d3p1:_serialized>01.01.1970</d3p1:_serialized>
      <d3p1:_value>1970-01-01T03:00:00.003+03:00</d3p1:_value>
    </DateBegin>
    <DateEnd xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
      <d3p1:_format>sample string 4</d3p1:_format>
      <d3p1:_serialized>01.01.1970</d3p1:_serialized>
      <d3p1:_value>1970-01-01T03:00:00.003+03:00</d3p1:_value>
    </DateEnd>
    <DatePrePayment xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
      <d3p1:_format>sample string 4</d3p1:_format>
      <d3p1:_serialized>01.01.1970</d3p1:_serialized>
      <d3p1:_value>1970-01-01T03:00:00.003+03:00</d3p1:_value>
    </DatePrePayment>
    <DepartureCity>sample string 25</DepartureCity>
    <OperatorName>sample string 26</OperatorName>
    <RegionName>sample string 23</RegionName>
    <TourTypeName>sample string 27</TourTypeName>
    <AdditionalValues xmlns:d3p1="http://schemas.datacontract.org/2004/07/Megatec.MasterAgent.Entities.Dictionaries">
      <d3p1:AdditionalValueField>
        <d3p1:FieldName>sample string 1</d3p1:FieldName>
        <d3p1:IsConstraint>true</d3p1:IsConstraint>
        <d3p1:Options xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </d3p1:Options>
        <d3p1:OptionsIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </d3p1:OptionsIds>
        <d3p1:RowTypeID>2</d3p1:RowTypeID>
        <d3p1:Title>sample string 3</d3p1:Title>
        <d3p1:Type>sample string 4</d3p1:Type>
        <d3p1:Value>sample string 5</d3p1:Value>
        <d3p1:ValueId>1</d3p1:ValueId>
        <d3p1:ValuesDictionary>
          <d3p1:ValuesDictionary>
            <d3p1:Key>sample string 1</d3p1:Key>
            <d3p1:Value>sample string 2</d3p1:Value>
          </d3p1:ValuesDictionary>
          <d3p1:ValuesDictionary>
            <d3p1:Key>sample string 1</d3p1:Key>
            <d3p1:Value>sample string 2</d3p1:Value>
          </d3p1:ValuesDictionary>
        </d3p1:ValuesDictionary>
      </d3p1:AdditionalValueField>
      <d3p1:AdditionalValueField>
        <d3p1:FieldName>sample string 1</d3p1:FieldName>
        <d3p1:IsConstraint>true</d3p1:IsConstraint>
        <d3p1:Options xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </d3p1:Options>
        <d3p1:OptionsIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </d3p1:OptionsIds>
        <d3p1:RowTypeID>2</d3p1:RowTypeID>
        <d3p1:Title>sample string 3</d3p1:Title>
        <d3p1:Type>sample string 4</d3p1:Type>
        <d3p1:Value>sample string 5</d3p1:Value>
        <d3p1:ValueId>1</d3p1:ValueId>
        <d3p1:ValuesDictionary>
          <d3p1:ValuesDictionary>
            <d3p1:Key>sample string 1</d3p1:Key>
            <d3p1:Value>sample string 2</d3p1:Value>
          </d3p1:ValuesDictionary>
          <d3p1:ValuesDictionary>
            <d3p1:Key>sample string 1</d3p1:Key>
            <d3p1:Value>sample string 2</d3p1:Value>
          </d3p1:ValuesDictionary>
        </d3p1:ValuesDictionary>
      </d3p1:AdditionalValueField>
    </AdditionalValues>
    <AdvertisementID>18</AdvertisementID>
    <AdvertisementsList xmlns:d3p1="http://schemas.datacontract.org/2004/07/Megatec.MasterAgent.Entities.Dictionaries">
      <d3p1:DictAdvertisementInfo>
        <d3p1:CanMaped>true</d3p1:CanMaped>
        <d3p1:Color>sample string 2</d3p1:Color>
        <d3p1:ID>3</d3p1:ID>
        <d3p1:IsExternal>true</d3p1:IsExternal>
        <d3p1:MappingId>1</d3p1:MappingId>
        <d3p1:Name>sample string 5</d3p1:Name>
        <d3p1:ParentId>1</d3p1:ParentId>
        <d3p1:ParentName>sample string 6</d3p1:ParentName>
        <d3p1:RecordSource>sample string 7</d3p1:RecordSource>
      </d3p1:DictAdvertisementInfo>
      <d3p1:DictAdvertisementInfo>
        <d3p1:CanMaped>true</d3p1:CanMaped>
        <d3p1:Color>sample string 2</d3p1:Color>
        <d3p1:ID>3</d3p1:ID>
        <d3p1:IsExternal>true</d3p1:IsExternal>
        <d3p1:MappingId>1</d3p1:MappingId>
        <d3p1:Name>sample string 5</d3p1:Name>
        <d3p1:ParentId>1</d3p1:ParentId>
        <d3p1:ParentName>sample string 6</d3p1:ParentName>
        <d3p1:RecordSource>sample string 7</d3p1:RecordSource>
      </d3p1:DictAdvertisementInfo>
    </AdvertisementsList>
    <CityID>3</CityID>
    <ClientFlagsList>
      <ClientWithFlags>
        <ClientID>1</ClientID>
        <DocumentType>1</DocumentType>
        <IsBuyer>true</IsBuyer>
        <IsMain>true</IsMain>
        <IsTourist>true</IsTourist>
      </ClientWithFlags>
      <ClientWithFlags>
        <ClientID>1</ClientID>
        <DocumentType>1</DocumentType>
        <IsBuyer>true</IsBuyer>
        <IsMain>true</IsMain>
        <IsTourist>true</IsTourist>
      </ClientWithFlags>
    </ClientFlagsList>
    <ClientList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </ClientList>
    <ClientPartnerID>7</ClientPartnerID>
    <ClientPartnerLegalID>8</ClientPartnerLegalID>
    <ClientServicesList>
      <ClientServices>
        <ClientID>1</ClientID>
        <ClientServiceList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>1</d5p1:int>
          <d5p1:int>2</d5p1:int>
        </ClientServiceList>
      </ClientServices>
      <ClientServices>
        <ClientID>1</ClientID>
        <ClientServiceList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>1</d5p1:int>
          <d5p1:int>2</d5p1:int>
        </ClientServiceList>
      </ClientServices>
    </ClientServicesList>
    <Comment>sample string 17</Comment>
    <CountryID>1</CountryID>
    <Course>13.1</Course>
    <CurrencyID>12</CurrencyID>
    <DepartmentId>1</DepartmentId>
    <DepartureID>4</DepartureID>
    <DiscountCardId>19</DiscountCardId>
    <IsCreditAgreement>true</IsCreditAgreement>
    <IsOperatorRequest>true</IsOperatorRequest>
    <IsPreAgreement>true</IsPreAgreement>
    <LeadId>1</LeadId>
    <ManagerID>1</ManagerID>
    <Notes xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Client.Contract">
      <d3p1:Note>
        <d3p1:Created 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>
        </d3p1:Created>
        <d3p1:CreatorId>1</d3p1:CreatorId>
        <d3p1:CreatorName>sample string 3</d3p1:CreatorName>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Text>sample string 1</d3p1:Text>
        <d3p1:TypeId>2</d3p1:TypeId>
      </d3p1:Note>
      <d3p1:Note>
        <d3p1:Created 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>
        </d3p1:Created>
        <d3p1:CreatorId>1</d3p1:CreatorId>
        <d3p1:CreatorName>sample string 3</d3p1:CreatorName>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Text>sample string 1</d3p1:Text>
        <d3p1:TypeId>2</d3p1:TypeId>
      </d3p1:Note>
    </Notes>
    <OperatorID>5</OperatorID>
    <OperatorLegalID>6</OperatorLegalID>
    <OwnerID>10</OwnerID>
    <OwnerLegalId>11</OwnerLegalId>
    <PaymentNumber>sample string 21</PaymentNumber>
    <PrePaymentIsPercent>true</PrePaymentIsPercent>
    <PrePaymentValue>1.1</PrePaymentValue>
    <RegionID>2</RegionID>
    <RequestList>
      <DefaultRequest>
        <Commission>17.1</Commission>
        <CommissionAgreementCurrency>18.1</CommissionAgreementCurrency>
        <Course>6.1</Course>
        <CurrencyID>5</CurrencyID>
        <CurrencyIDAgreement>25</CurrencyIDAgreement>
        <CurrencyName>sample string 4</CurrencyName>
        <CurrencyNameAgreement>sample string 24</CurrencyNameAgreement>
        <Discount>14.1</Discount>
        <DiscountAgreementCurrency>28.1</DiscountAgreementCurrency>
        <FixClientPrice>true</FixClientPrice>
        <FixNetCost>true</FixNetCost>
        <ForPay>23.1</ForPay>
        <ForPayAgreementCurrency>30.1</ForPayAgreementCurrency>
        <IsPercent>true</IsPercent>
        <IsPercentAgreementCurrency>true</IsPercentAgreementCurrency>
        <IsPercentCommission>true</IsPercentCommission>
        <IsPercentReward>true</IsPercentReward>
        <IsPercentSubAgentCommission>true</IsPercentSubAgentCommission>
        <NonCommissionFuelPrice>11.1</NonCommissionFuelPrice>
        <NonCommissionInsurancePrice>10.1</NonCommissionInsurancePrice>
        <NonCommissionOtherPrice>12.1</NonCommissionOtherPrice>
        <NonCommissionPrice>8.1</NonCommissionPrice>
        <NonCommissionVisaPrice>9.1</NonCommissionVisaPrice>
        <PartnerID>2</PartnerID>
        <PartnerLegalID>3</PartnerLegalID>
        <PartnerName>sample string 1</PartnerName>
        <Price>7.1</Price>
        <PriceAgreementCurrency>26.1</PriceAgreementCurrency>
        <PriceNetto>13.1</PriceNetto>
        <PriceNettoAgreementCurrency>27.1</PriceNettoAgreementCurrency>
        <RequestOperatorCode>sample string 31</RequestOperatorCode>
        <Reward>20.1</Reward>
        <RewardAgreementCurrency>21.1</RewardAgreementCurrency>
        <SPONumber>sample string 32</SPONumber>
        <ServiceList>
          <DefaultService>
            <AgreementCode>sample string 2</AgreementCode>
            <Brutto>23.1</Brutto>
            <CityID>12</CityID>
            <CityName>sample string 11</CityName>
            <ClassName>sample string 5</ClassName>
            <CountryID>10</CountryID>
            <CountryName>sample string 9</CountryName>
            <DateBegin xmlns:d7p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
              <d7p1:_format>sample string 4</d7p1:_format>
              <d7p1:_serialized>01.01.1970</d7p1:_serialized>
              <d7p1:_value>1970-01-01T03:00:00.003+03:00</d7p1:_value>
            </DateBegin>
            <DateEnd xmlns:d7p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
              <d7p1:_format>sample string 4</d7p1:_format>
              <d7p1:_serialized>01.01.1970</d7p1:_serialized>
              <d7p1:_value>1970-01-01T03:00:00.003+03:00</d7p1:_value>
            </DateEnd>
            <Day>19</Day>
            <Days>7</Days>
            <ID>3</ID>
            <IncludeInCost>true</IncludeInCost>
            <IsCommissionService>true</IsCommissionService>
            <Mens>8</Mens>
            <Name>sample string 4</Name>
            <Netto>24.1</Netto>
            <RequestID>1</RequestID>
            <ServiceClassID>6</ServiceClassID>
            <StatusID>20</StatusID>
            <StatusName>sample string 21</StatusName>
            <SubService1ID>16</SubService1ID>
            <SubService1Name>sample string 15</SubService1Name>
            <SubService2ID>18</SubService2ID>
            <SubService2Name>sample string 17</SubService2Name>
            <SubServiceID>14</SubServiceID>
            <SubServiceName>sample string 13</SubServiceName>
            <SupplierDescription>sample string 22</SupplierDescription>
          </DefaultService>
          <DefaultService>
            <AgreementCode>sample string 2</AgreementCode>
            <Brutto>23.1</Brutto>
            <CityID>12</CityID>
            <CityName>sample string 11</CityName>
            <ClassName>sample string 5</ClassName>
            <CountryID>10</CountryID>
            <CountryName>sample string 9</CountryName>
            <DateBegin xmlns:d7p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
              <d7p1:_format>sample string 4</d7p1:_format>
              <d7p1:_serialized>01.01.1970</d7p1:_serialized>
              <d7p1:_value>1970-01-01T03:00:00.003+03:00</d7p1:_value>
            </DateBegin>
            <DateEnd xmlns:d7p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
              <d7p1:_format>sample string 4</d7p1:_format>
              <d7p1:_serialized>01.01.1970</d7p1:_serialized>
              <d7p1:_value>1970-01-01T03:00:00.003+03:00</d7p1:_value>
            </DateEnd>
            <Day>19</Day>
            <Days>7</Days>
            <ID>3</ID>
            <IncludeInCost>true</IncludeInCost>
            <IsCommissionService>true</IsCommissionService>
            <Mens>8</Mens>
            <Name>sample string 4</Name>
            <Netto>24.1</Netto>
            <RequestID>1</RequestID>
            <ServiceClassID>6</ServiceClassID>
            <StatusID>20</StatusID>
            <StatusName>sample string 21</StatusName>
            <SubService1ID>16</SubService1ID>
            <SubService1Name>sample string 15</SubService1Name>
            <SubService2ID>18</SubService2ID>
            <SubService2Name>sample string 17</SubService2Name>
            <SubServiceID>14</SubServiceID>
            <SubServiceName>sample string 13</SubServiceName>
            <SupplierDescription>sample string 22</SupplierDescription>
          </DefaultService>
        </ServiceList>
        <StatusID>33</StatusID>
        <StatusName>sample string 34</StatusName>
        <SubAgentCommission>36.1</SubAgentCommission>
        <SubAgentCommissionSum>37.1</SubAgentCommissionSum>
        <SubAgentPrice>35.1</SubAgentPrice>
        <UseSubAgentCommission>true</UseSubAgentCommission>
      </DefaultRequest>
      <DefaultRequest>
        <Commission>17.1</Commission>
        <CommissionAgreementCurrency>18.1</CommissionAgreementCurrency>
        <Course>6.1</Course>
        <CurrencyID>5</CurrencyID>
        <CurrencyIDAgreement>25</CurrencyIDAgreement>
        <CurrencyName>sample string 4</CurrencyName>
        <CurrencyNameAgreement>sample string 24</CurrencyNameAgreement>
        <Discount>14.1</Discount>
        <DiscountAgreementCurrency>28.1</DiscountAgreementCurrency>
        <FixClientPrice>true</FixClientPrice>
        <FixNetCost>true</FixNetCost>
        <ForPay>23.1</ForPay>
        <ForPayAgreementCurrency>30.1</ForPayAgreementCurrency>
        <IsPercent>true</IsPercent>
        <IsPercentAgreementCurrency>true</IsPercentAgreementCurrency>
        <IsPercentCommission>true</IsPercentCommission>
        <IsPercentReward>true</IsPercentReward>
        <IsPercentSubAgentCommission>true</IsPercentSubAgentCommission>
        <NonCommissionFuelPrice>11.1</NonCommissionFuelPrice>
        <NonCommissionInsurancePrice>10.1</NonCommissionInsurancePrice>
        <NonCommissionOtherPrice>12.1</NonCommissionOtherPrice>
        <NonCommissionPrice>8.1</NonCommissionPrice>
        <NonCommissionVisaPrice>9.1</NonCommissionVisaPrice>
        <PartnerID>2</PartnerID>
        <PartnerLegalID>3</PartnerLegalID>
        <PartnerName>sample string 1</PartnerName>
        <Price>7.1</Price>
        <PriceAgreementCurrency>26.1</PriceAgreementCurrency>
        <PriceNetto>13.1</PriceNetto>
        <PriceNettoAgreementCurrency>27.1</PriceNettoAgreementCurrency>
        <RequestOperatorCode>sample string 31</RequestOperatorCode>
        <Reward>20.1</Reward>
        <RewardAgreementCurrency>21.1</RewardAgreementCurrency>
        <SPONumber>sample string 32</SPONumber>
        <ServiceList>
          <DefaultService>
            <AgreementCode>sample string 2</AgreementCode>
            <Brutto>23.1</Brutto>
            <CityID>12</CityID>
            <CityName>sample string 11</CityName>
            <ClassName>sample string 5</ClassName>
            <CountryID>10</CountryID>
            <CountryName>sample string 9</CountryName>
            <DateBegin xmlns:d7p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
              <d7p1:_format>sample string 4</d7p1:_format>
              <d7p1:_serialized>01.01.1970</d7p1:_serialized>
              <d7p1:_value>1970-01-01T03:00:00.003+03:00</d7p1:_value>
            </DateBegin>
            <DateEnd xmlns:d7p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
              <d7p1:_format>sample string 4</d7p1:_format>
              <d7p1:_serialized>01.01.1970</d7p1:_serialized>
              <d7p1:_value>1970-01-01T03:00:00.003+03:00</d7p1:_value>
            </DateEnd>
            <Day>19</Day>
            <Days>7</Days>
            <ID>3</ID>
            <IncludeInCost>true</IncludeInCost>
            <IsCommissionService>true</IsCommissionService>
            <Mens>8</Mens>
            <Name>sample string 4</Name>
            <Netto>24.1</Netto>
            <RequestID>1</RequestID>
            <ServiceClassID>6</ServiceClassID>
            <StatusID>20</StatusID>
            <StatusName>sample string 21</StatusName>
            <SubService1ID>16</SubService1ID>
            <SubService1Name>sample string 15</SubService1Name>
            <SubService2ID>18</SubService2ID>
            <SubService2Name>sample string 17</SubService2Name>
            <SubServiceID>14</SubServiceID>
            <SubServiceName>sample string 13</SubServiceName>
            <SupplierDescription>sample string 22</SupplierDescription>
          </DefaultService>
          <DefaultService>
            <AgreementCode>sample string 2</AgreementCode>
            <Brutto>23.1</Brutto>
            <CityID>12</CityID>
            <CityName>sample string 11</CityName>
            <ClassName>sample string 5</ClassName>
            <CountryID>10</CountryID>
            <CountryName>sample string 9</CountryName>
            <DateBegin xmlns:d7p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
              <d7p1:_format>sample string 4</d7p1:_format>
              <d7p1:_serialized>01.01.1970</d7p1:_serialized>
              <d7p1:_value>1970-01-01T03:00:00.003+03:00</d7p1:_value>
            </DateBegin>
            <DateEnd xmlns:d7p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
              <d7p1:_format>sample string 4</d7p1:_format>
              <d7p1:_serialized>01.01.1970</d7p1:_serialized>
              <d7p1:_value>1970-01-01T03:00:00.003+03:00</d7p1:_value>
            </DateEnd>
            <Day>19</Day>
            <Days>7</Days>
            <ID>3</ID>
            <IncludeInCost>true</IncludeInCost>
            <IsCommissionService>true</IsCommissionService>
            <Mens>8</Mens>
            <Name>sample string 4</Name>
            <Netto>24.1</Netto>
            <RequestID>1</RequestID>
            <ServiceClassID>6</ServiceClassID>
            <StatusID>20</StatusID>
            <StatusName>sample string 21</StatusName>
            <SubService1ID>16</SubService1ID>
            <SubService1Name>sample string 15</SubService1Name>
            <SubService2ID>18</SubService2ID>
            <SubService2Name>sample string 17</SubService2Name>
            <SubServiceID>14</SubServiceID>
            <SubServiceName>sample string 13</SubServiceName>
            <SupplierDescription>sample string 22</SupplierDescription>
          </DefaultService>
        </ServiceList>
        <StatusID>33</StatusID>
        <StatusName>sample string 34</StatusName>
        <SubAgentCommission>36.1</SubAgentCommission>
        <SubAgentCommissionSum>37.1</SubAgentCommissionSum>
        <SubAgentPrice>35.1</SubAgentPrice>
        <UseSubAgentCommission>true</UseSubAgentCommission>
      </DefaultRequest>
    </RequestList>
    <ReservationCenterPartnerLegalId>1</ReservationCenterPartnerLegalId>
    <SubAgentPartnerId>1</SubAgentPartnerId>
    <SubAgentPartnerLegalId>1</SubAgentPartnerLegalId>
    <SubagentDepartmentId>1</SubagentDepartmentId>
    <SubagentManagerId>1</SubagentManagerId>
    <TourTypeID>9</TourTypeID>
    <TouristRequestNumber>sample string 16</TouristRequestNumber>
  </AgreementData>
</InsertAgreementRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'InsertAgreementRequest'.

Response Information

Resource Description

InsertOrderResponse
NameDescriptionTypeAdditional information
AgreementCode

string

None.

DebugCollector

DebugCollector

None.

ResultQueryInfo

Сообщения

ResultQueryInfoContainer

None.

Response Formats

application/json, text/json

Sample:
{
  "AgreementCode": "sample string 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:08:40.6911462+03:00",
    "UserMessages": "",
    "UserMessagesHtml": ""
  }
}

application/xml, text/xml

Sample:
<InsertOrderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Order.Contract">
  <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 2</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.6911462+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField>
    <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField>
    <info />
  </ResultQueryInfo>
  <AgreementCode>sample string 1</AgreementCode>
  <DebugCollector xmlns:d2p1="http://schemas.datacontract.org/2004/07/Megatec.IntegrationGate.Common">
    <d2p1:DebugInfo xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </d2p1:DebugInfo>
  </DebugCollector>
</InsertOrderResponse>