PUT api/lead/offers/{id}

Добавление предложений в лид

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Идентификатор лида

integer

Required

Body Parameters

Коллекция предложений

Collection of LeadOfferItemData
NameDescriptionTypeAdditional information
Id

Идентификатор предложения

integer

None.

IsEdit

Признак редактирования предложения

boolean

None.

CountryId

Идентификатор страны предложения

integer

None.

CountryName

Наименование страны предложения

string

None.

CityId

Идентификатор города предложения

integer

None.

CityName

Наименование города предложения

string

None.

CurrencyId

Идентификатор валюты предложения

integer

None.

CurrencyName

Наименование валюты предложения

string

None.

Price

Цена предложения

decimal number

None.

StatusId

Статус предложения (0 - неактивно, 1 - активно, 2 - выбрано)

integer

None.

StatusName

Наименование статуса предложения

string

None.

Description

Текст (описание) предложения

string

None.

Url

Ссылка на страницу с дополнительным описанием по предложению

string

None.

InternalHotelUrl

Ссылка (относительная) на нашу страницу результатами поиска (на конкретный отель) например: /tourclient/spa/#/search/hotel/MOW-to-TR-from-18.06.2018-18.06.2018-for-11-11-nights-2-adults-4,6-kids-BB-meals-PEGAS-suppliers-RUR-currency-nZvJRFe7N9-hotels

string

None.

DateFrom

Дата начала предложения

SerializedDateTime

None.

DateTo

Дата окончания предложения

SerializedDateTime

None.

LeadId

Идентификатор лида предложения

integer

None.

TourData

TourOfferInfo

None.

LeadOfferSource

integer

None.

PartnerId

integer

None.

PartnerName

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "IsEdit": true,
    "CountryId": 1,
    "CountryName": "sample string 2",
    "CityId": 1,
    "CityName": "sample string 3",
    "CurrencyId": 1,
    "CurrencyName": "sample string 4",
    "Price": 1.1,
    "StatusId": 5,
    "StatusName": "sample string 6",
    "Description": "sample string 7",
    "Url": "sample string 8",
    "InternalHotelUrl": "sample string 9",
    "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"
    },
    "LeadId": 1,
    "TourData": {
      "Id": 1,
      "FavouriteSelectionsId": 1,
      "DepartureCityCode": "sample string 2",
      "DepartureCityName": "sample string 3",
      "DepartureDate": "sample string 4",
      "Nights": 5,
      "HotelName": "sample string 6",
      "HotelCode": "sample string 7",
      "MealTypeCode": "sample string 8",
      "MealTypeName": "sample string 9",
      "Accommodation": "sample string 10",
      "Price": 11,
      "CurrencyCode": "sample string 12",
      "Adults": 13,
      "Kids": "sample string 14",
      "ImageId": "sample string 15",
      "SupplierCode": "sample string 16",
      "CountryCode": "sample string 17",
      "CountryName": "sample string 18",
      "CityCode": "sample string 19",
      "CityName": "sample string 20",
      "CategoryCode": "sample string 21",
      "CategoryName": "sample string 22",
      "SupplierName": "sample string 23",
      "Rating": "sample string 24",
      "Hotels": [
        {
          "Nights": 1,
          "HotelName": "sample string 2",
          "HotelCode": "sample string 3",
          "Accommodation": "sample string 4",
          "Adults": 5,
          "Kids": "sample string 6",
          "ImageId": "sample string 7",
          "MealTypeCode": "sample string 8",
          "MealTypeName": "sample string 9",
          "CategoryCode": "sample string 10",
          "CategoryName": "sample string 11",
          "CountryCode": "sample string 12",
          "CountryName": "sample string 13",
          "CityCode": "sample string 14",
          "CityName": "sample string 15",
          "Rating": "sample string 16",
          "HotelDescription": "sample string 17"
        },
        {
          "Nights": 1,
          "HotelName": "sample string 2",
          "HotelCode": "sample string 3",
          "Accommodation": "sample string 4",
          "Adults": 5,
          "Kids": "sample string 6",
          "ImageId": "sample string 7",
          "MealTypeCode": "sample string 8",
          "MealTypeName": "sample string 9",
          "CategoryCode": "sample string 10",
          "CategoryName": "sample string 11",
          "CountryCode": "sample string 12",
          "CountryName": "sample string 13",
          "CityCode": "sample string 14",
          "CityName": "sample string 15",
          "Rating": "sample string 16",
          "HotelDescription": "sample string 17"
        }
      ]
    },
    "LeadOfferSource": 1,
    "PartnerId": 1,
    "PartnerName": "sample string 10"
  },
  {
    "Id": 1,
    "IsEdit": true,
    "CountryId": 1,
    "CountryName": "sample string 2",
    "CityId": 1,
    "CityName": "sample string 3",
    "CurrencyId": 1,
    "CurrencyName": "sample string 4",
    "Price": 1.1,
    "StatusId": 5,
    "StatusName": "sample string 6",
    "Description": "sample string 7",
    "Url": "sample string 8",
    "InternalHotelUrl": "sample string 9",
    "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"
    },
    "LeadId": 1,
    "TourData": {
      "Id": 1,
      "FavouriteSelectionsId": 1,
      "DepartureCityCode": "sample string 2",
      "DepartureCityName": "sample string 3",
      "DepartureDate": "sample string 4",
      "Nights": 5,
      "HotelName": "sample string 6",
      "HotelCode": "sample string 7",
      "MealTypeCode": "sample string 8",
      "MealTypeName": "sample string 9",
      "Accommodation": "sample string 10",
      "Price": 11,
      "CurrencyCode": "sample string 12",
      "Adults": 13,
      "Kids": "sample string 14",
      "ImageId": "sample string 15",
      "SupplierCode": "sample string 16",
      "CountryCode": "sample string 17",
      "CountryName": "sample string 18",
      "CityCode": "sample string 19",
      "CityName": "sample string 20",
      "CategoryCode": "sample string 21",
      "CategoryName": "sample string 22",
      "SupplierName": "sample string 23",
      "Rating": "sample string 24",
      "Hotels": [
        {
          "Nights": 1,
          "HotelName": "sample string 2",
          "HotelCode": "sample string 3",
          "Accommodation": "sample string 4",
          "Adults": 5,
          "Kids": "sample string 6",
          "ImageId": "sample string 7",
          "MealTypeCode": "sample string 8",
          "MealTypeName": "sample string 9",
          "CategoryCode": "sample string 10",
          "CategoryName": "sample string 11",
          "CountryCode": "sample string 12",
          "CountryName": "sample string 13",
          "CityCode": "sample string 14",
          "CityName": "sample string 15",
          "Rating": "sample string 16",
          "HotelDescription": "sample string 17"
        },
        {
          "Nights": 1,
          "HotelName": "sample string 2",
          "HotelCode": "sample string 3",
          "Accommodation": "sample string 4",
          "Adults": 5,
          "Kids": "sample string 6",
          "ImageId": "sample string 7",
          "MealTypeCode": "sample string 8",
          "MealTypeName": "sample string 9",
          "CategoryCode": "sample string 10",
          "CategoryName": "sample string 11",
          "CountryCode": "sample string 12",
          "CountryName": "sample string 13",
          "CityCode": "sample string 14",
          "CityName": "sample string 15",
          "Rating": "sample string 16",
          "HotelDescription": "sample string 17"
        }
      ]
    },
    "LeadOfferSource": 1,
    "PartnerId": 1,
    "PartnerName": "sample string 10"
  }
]

application/xml, text/xml

Sample:
<ArrayOfLeadOfferItemData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.LeadOffer.Contract">
  <LeadOfferItemData>
    <CityId>1</CityId>
    <CityName>sample string 3</CityName>
    <CountryId>1</CountryId>
    <CountryName>sample string 2</CountryName>
    <CurrencyId>1</CurrencyId>
    <CurrencyName>sample string 4</CurrencyName>
    <DateFrom 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>
    </DateFrom>
    <DateTo 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>
    </DateTo>
    <Description>sample string 7</Description>
    <Id>1</Id>
    <InternalHotelUrl>sample string 9</InternalHotelUrl>
    <IsEdit>true</IsEdit>
    <LeadId>1</LeadId>
    <LeadOfferSource>1</LeadOfferSource>
    <PartnerId>1</PartnerId>
    <PartnerName>sample string 10</PartnerName>
    <Price>1.1</Price>
    <StatusId>5</StatusId>
    <StatusName>sample string 6</StatusName>
    <TourData xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.FavouriteTour.Contract">
      <d3p1:Accommodation>sample string 10</d3p1:Accommodation>
      <d3p1:Adults>13</d3p1:Adults>
      <d3p1:CategoryCode>sample string 21</d3p1:CategoryCode>
      <d3p1:CategoryName>sample string 22</d3p1:CategoryName>
      <d3p1:CityCode>sample string 19</d3p1:CityCode>
      <d3p1:CityName>sample string 20</d3p1:CityName>
      <d3p1:CountryCode>sample string 17</d3p1:CountryCode>
      <d3p1:CountryName>sample string 18</d3p1:CountryName>
      <d3p1:CurrencyCode>sample string 12</d3p1:CurrencyCode>
      <d3p1:DepartureCityCode>sample string 2</d3p1:DepartureCityCode>
      <d3p1:DepartureCityName>sample string 3</d3p1:DepartureCityName>
      <d3p1:DepartureDate>sample string 4</d3p1:DepartureDate>
      <d3p1:FavouriteSelectionsId>1</d3p1:FavouriteSelectionsId>
      <d3p1:HotelCode>sample string 7</d3p1:HotelCode>
      <d3p1:HotelName>sample string 6</d3p1:HotelName>
      <d3p1:Hotels>
        <d3p1:TourOfferHotelInfo>
          <d3p1:Accommodation>sample string 4</d3p1:Accommodation>
          <d3p1:Adults>5</d3p1:Adults>
          <d3p1:CategoryCode>sample string 10</d3p1:CategoryCode>
          <d3p1:CategoryName>sample string 11</d3p1:CategoryName>
          <d3p1:CityCode>sample string 14</d3p1:CityCode>
          <d3p1:CityName>sample string 15</d3p1:CityName>
          <d3p1:CountryCode>sample string 12</d3p1:CountryCode>
          <d3p1:CountryName>sample string 13</d3p1:CountryName>
          <d3p1:HotelCode>sample string 3</d3p1:HotelCode>
          <d3p1:HotelDescription>sample string 17</d3p1:HotelDescription>
          <d3p1:HotelName>sample string 2</d3p1:HotelName>
          <d3p1:ImageId>sample string 7</d3p1:ImageId>
          <d3p1:Kids>sample string 6</d3p1:Kids>
          <d3p1:MealTypeCode>sample string 8</d3p1:MealTypeCode>
          <d3p1:MealTypeName>sample string 9</d3p1:MealTypeName>
          <d3p1:Nights>1</d3p1:Nights>
          <d3p1:Rating>sample string 16</d3p1:Rating>
        </d3p1:TourOfferHotelInfo>
        <d3p1:TourOfferHotelInfo>
          <d3p1:Accommodation>sample string 4</d3p1:Accommodation>
          <d3p1:Adults>5</d3p1:Adults>
          <d3p1:CategoryCode>sample string 10</d3p1:CategoryCode>
          <d3p1:CategoryName>sample string 11</d3p1:CategoryName>
          <d3p1:CityCode>sample string 14</d3p1:CityCode>
          <d3p1:CityName>sample string 15</d3p1:CityName>
          <d3p1:CountryCode>sample string 12</d3p1:CountryCode>
          <d3p1:CountryName>sample string 13</d3p1:CountryName>
          <d3p1:HotelCode>sample string 3</d3p1:HotelCode>
          <d3p1:HotelDescription>sample string 17</d3p1:HotelDescription>
          <d3p1:HotelName>sample string 2</d3p1:HotelName>
          <d3p1:ImageId>sample string 7</d3p1:ImageId>
          <d3p1:Kids>sample string 6</d3p1:Kids>
          <d3p1:MealTypeCode>sample string 8</d3p1:MealTypeCode>
          <d3p1:MealTypeName>sample string 9</d3p1:MealTypeName>
          <d3p1:Nights>1</d3p1:Nights>
          <d3p1:Rating>sample string 16</d3p1:Rating>
        </d3p1:TourOfferHotelInfo>
      </d3p1:Hotels>
      <d3p1:Id>1</d3p1:Id>
      <d3p1:ImageId>sample string 15</d3p1:ImageId>
      <d3p1:Kids>sample string 14</d3p1:Kids>
      <d3p1:MealTypeCode>sample string 8</d3p1:MealTypeCode>
      <d3p1:MealTypeName>sample string 9</d3p1:MealTypeName>
      <d3p1:Nights>5</d3p1:Nights>
      <d3p1:Price>11</d3p1:Price>
      <d3p1:Rating>sample string 24</d3p1:Rating>
      <d3p1:SupplierCode>sample string 16</d3p1:SupplierCode>
      <d3p1:SupplierName>sample string 23</d3p1:SupplierName>
    </TourData>
    <Url>sample string 8</Url>
  </LeadOfferItemData>
  <LeadOfferItemData>
    <CityId>1</CityId>
    <CityName>sample string 3</CityName>
    <CountryId>1</CountryId>
    <CountryName>sample string 2</CountryName>
    <CurrencyId>1</CurrencyId>
    <CurrencyName>sample string 4</CurrencyName>
    <DateFrom 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>
    </DateFrom>
    <DateTo 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>
    </DateTo>
    <Description>sample string 7</Description>
    <Id>1</Id>
    <InternalHotelUrl>sample string 9</InternalHotelUrl>
    <IsEdit>true</IsEdit>
    <LeadId>1</LeadId>
    <LeadOfferSource>1</LeadOfferSource>
    <PartnerId>1</PartnerId>
    <PartnerName>sample string 10</PartnerName>
    <Price>1.1</Price>
    <StatusId>5</StatusId>
    <StatusName>sample string 6</StatusName>
    <TourData xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.FavouriteTour.Contract">
      <d3p1:Accommodation>sample string 10</d3p1:Accommodation>
      <d3p1:Adults>13</d3p1:Adults>
      <d3p1:CategoryCode>sample string 21</d3p1:CategoryCode>
      <d3p1:CategoryName>sample string 22</d3p1:CategoryName>
      <d3p1:CityCode>sample string 19</d3p1:CityCode>
      <d3p1:CityName>sample string 20</d3p1:CityName>
      <d3p1:CountryCode>sample string 17</d3p1:CountryCode>
      <d3p1:CountryName>sample string 18</d3p1:CountryName>
      <d3p1:CurrencyCode>sample string 12</d3p1:CurrencyCode>
      <d3p1:DepartureCityCode>sample string 2</d3p1:DepartureCityCode>
      <d3p1:DepartureCityName>sample string 3</d3p1:DepartureCityName>
      <d3p1:DepartureDate>sample string 4</d3p1:DepartureDate>
      <d3p1:FavouriteSelectionsId>1</d3p1:FavouriteSelectionsId>
      <d3p1:HotelCode>sample string 7</d3p1:HotelCode>
      <d3p1:HotelName>sample string 6</d3p1:HotelName>
      <d3p1:Hotels>
        <d3p1:TourOfferHotelInfo>
          <d3p1:Accommodation>sample string 4</d3p1:Accommodation>
          <d3p1:Adults>5</d3p1:Adults>
          <d3p1:CategoryCode>sample string 10</d3p1:CategoryCode>
          <d3p1:CategoryName>sample string 11</d3p1:CategoryName>
          <d3p1:CityCode>sample string 14</d3p1:CityCode>
          <d3p1:CityName>sample string 15</d3p1:CityName>
          <d3p1:CountryCode>sample string 12</d3p1:CountryCode>
          <d3p1:CountryName>sample string 13</d3p1:CountryName>
          <d3p1:HotelCode>sample string 3</d3p1:HotelCode>
          <d3p1:HotelDescription>sample string 17</d3p1:HotelDescription>
          <d3p1:HotelName>sample string 2</d3p1:HotelName>
          <d3p1:ImageId>sample string 7</d3p1:ImageId>
          <d3p1:Kids>sample string 6</d3p1:Kids>
          <d3p1:MealTypeCode>sample string 8</d3p1:MealTypeCode>
          <d3p1:MealTypeName>sample string 9</d3p1:MealTypeName>
          <d3p1:Nights>1</d3p1:Nights>
          <d3p1:Rating>sample string 16</d3p1:Rating>
        </d3p1:TourOfferHotelInfo>
        <d3p1:TourOfferHotelInfo>
          <d3p1:Accommodation>sample string 4</d3p1:Accommodation>
          <d3p1:Adults>5</d3p1:Adults>
          <d3p1:CategoryCode>sample string 10</d3p1:CategoryCode>
          <d3p1:CategoryName>sample string 11</d3p1:CategoryName>
          <d3p1:CityCode>sample string 14</d3p1:CityCode>
          <d3p1:CityName>sample string 15</d3p1:CityName>
          <d3p1:CountryCode>sample string 12</d3p1:CountryCode>
          <d3p1:CountryName>sample string 13</d3p1:CountryName>
          <d3p1:HotelCode>sample string 3</d3p1:HotelCode>
          <d3p1:HotelDescription>sample string 17</d3p1:HotelDescription>
          <d3p1:HotelName>sample string 2</d3p1:HotelName>
          <d3p1:ImageId>sample string 7</d3p1:ImageId>
          <d3p1:Kids>sample string 6</d3p1:Kids>
          <d3p1:MealTypeCode>sample string 8</d3p1:MealTypeCode>
          <d3p1:MealTypeName>sample string 9</d3p1:MealTypeName>
          <d3p1:Nights>1</d3p1:Nights>
          <d3p1:Rating>sample string 16</d3p1:Rating>
        </d3p1:TourOfferHotelInfo>
      </d3p1:Hotels>
      <d3p1:Id>1</d3p1:Id>
      <d3p1:ImageId>sample string 15</d3p1:ImageId>
      <d3p1:Kids>sample string 14</d3p1:Kids>
      <d3p1:MealTypeCode>sample string 8</d3p1:MealTypeCode>
      <d3p1:MealTypeName>sample string 9</d3p1:MealTypeName>
      <d3p1:Nights>5</d3p1:Nights>
      <d3p1:Price>11</d3p1:Price>
      <d3p1:Rating>sample string 24</d3p1:Rating>
      <d3p1:SupplierCode>sample string 16</d3p1:SupplierCode>
      <d3p1:SupplierName>sample string 23</d3p1:SupplierName>
    </TourData>
    <Url>sample string 8</Url>
  </LeadOfferItemData>
</ArrayOfLeadOfferItemData>

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 'List`1'.

Response Information

Resource Description

InsertLeadOfferResponse
NameDescriptionTypeAdditional information
Offers

Collection of LeadOfferItemData

None.

ResultQueryInfo

Сообщения

ResultQueryInfoContainer

None.

Response Formats

application/json, text/json

Sample:
{
  "Offers": [
    {
      "Id": 1,
      "IsEdit": true,
      "CountryId": 1,
      "CountryName": "sample string 2",
      "CityId": 1,
      "CityName": "sample string 3",
      "CurrencyId": 1,
      "CurrencyName": "sample string 4",
      "Price": 1.1,
      "StatusId": 5,
      "StatusName": "sample string 6",
      "Description": "sample string 7",
      "Url": "sample string 8",
      "InternalHotelUrl": "sample string 9",
      "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"
      },
      "LeadId": 1,
      "TourData": {
        "Id": 1,
        "FavouriteSelectionsId": 1,
        "DepartureCityCode": "sample string 2",
        "DepartureCityName": "sample string 3",
        "DepartureDate": "sample string 4",
        "Nights": 5,
        "HotelName": "sample string 6",
        "HotelCode": "sample string 7",
        "MealTypeCode": "sample string 8",
        "MealTypeName": "sample string 9",
        "Accommodation": "sample string 10",
        "Price": 11,
        "CurrencyCode": "sample string 12",
        "Adults": 13,
        "Kids": "sample string 14",
        "ImageId": "sample string 15",
        "SupplierCode": "sample string 16",
        "CountryCode": "sample string 17",
        "CountryName": "sample string 18",
        "CityCode": "sample string 19",
        "CityName": "sample string 20",
        "CategoryCode": "sample string 21",
        "CategoryName": "sample string 22",
        "SupplierName": "sample string 23",
        "Rating": "sample string 24",
        "Hotels": [
          {
            "Nights": 1,
            "HotelName": "sample string 2",
            "HotelCode": "sample string 3",
            "Accommodation": "sample string 4",
            "Adults": 5,
            "Kids": "sample string 6",
            "ImageId": "sample string 7",
            "MealTypeCode": "sample string 8",
            "MealTypeName": "sample string 9",
            "CategoryCode": "sample string 10",
            "CategoryName": "sample string 11",
            "CountryCode": "sample string 12",
            "CountryName": "sample string 13",
            "CityCode": "sample string 14",
            "CityName": "sample string 15",
            "Rating": "sample string 16",
            "HotelDescription": "sample string 17"
          },
          {
            "Nights": 1,
            "HotelName": "sample string 2",
            "HotelCode": "sample string 3",
            "Accommodation": "sample string 4",
            "Adults": 5,
            "Kids": "sample string 6",
            "ImageId": "sample string 7",
            "MealTypeCode": "sample string 8",
            "MealTypeName": "sample string 9",
            "CategoryCode": "sample string 10",
            "CategoryName": "sample string 11",
            "CountryCode": "sample string 12",
            "CountryName": "sample string 13",
            "CityCode": "sample string 14",
            "CityName": "sample string 15",
            "Rating": "sample string 16",
            "HotelDescription": "sample string 17"
          }
        ]
      },
      "LeadOfferSource": 1,
      "PartnerId": 1,
      "PartnerName": "sample string 10"
    },
    {
      "Id": 1,
      "IsEdit": true,
      "CountryId": 1,
      "CountryName": "sample string 2",
      "CityId": 1,
      "CityName": "sample string 3",
      "CurrencyId": 1,
      "CurrencyName": "sample string 4",
      "Price": 1.1,
      "StatusId": 5,
      "StatusName": "sample string 6",
      "Description": "sample string 7",
      "Url": "sample string 8",
      "InternalHotelUrl": "sample string 9",
      "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"
      },
      "LeadId": 1,
      "TourData": {
        "Id": 1,
        "FavouriteSelectionsId": 1,
        "DepartureCityCode": "sample string 2",
        "DepartureCityName": "sample string 3",
        "DepartureDate": "sample string 4",
        "Nights": 5,
        "HotelName": "sample string 6",
        "HotelCode": "sample string 7",
        "MealTypeCode": "sample string 8",
        "MealTypeName": "sample string 9",
        "Accommodation": "sample string 10",
        "Price": 11,
        "CurrencyCode": "sample string 12",
        "Adults": 13,
        "Kids": "sample string 14",
        "ImageId": "sample string 15",
        "SupplierCode": "sample string 16",
        "CountryCode": "sample string 17",
        "CountryName": "sample string 18",
        "CityCode": "sample string 19",
        "CityName": "sample string 20",
        "CategoryCode": "sample string 21",
        "CategoryName": "sample string 22",
        "SupplierName": "sample string 23",
        "Rating": "sample string 24",
        "Hotels": [
          {
            "Nights": 1,
            "HotelName": "sample string 2",
            "HotelCode": "sample string 3",
            "Accommodation": "sample string 4",
            "Adults": 5,
            "Kids": "sample string 6",
            "ImageId": "sample string 7",
            "MealTypeCode": "sample string 8",
            "MealTypeName": "sample string 9",
            "CategoryCode": "sample string 10",
            "CategoryName": "sample string 11",
            "CountryCode": "sample string 12",
            "CountryName": "sample string 13",
            "CityCode": "sample string 14",
            "CityName": "sample string 15",
            "Rating": "sample string 16",
            "HotelDescription": "sample string 17"
          },
          {
            "Nights": 1,
            "HotelName": "sample string 2",
            "HotelCode": "sample string 3",
            "Accommodation": "sample string 4",
            "Adults": 5,
            "Kids": "sample string 6",
            "ImageId": "sample string 7",
            "MealTypeCode": "sample string 8",
            "MealTypeName": "sample string 9",
            "CategoryCode": "sample string 10",
            "CategoryName": "sample string 11",
            "CountryCode": "sample string 12",
            "CountryName": "sample string 13",
            "CityCode": "sample string 14",
            "CityName": "sample string 15",
            "Rating": "sample string 16",
            "HotelDescription": "sample string 17"
          }
        ]
      },
      "LeadOfferSource": 1,
      "PartnerId": 1,
      "PartnerName": "sample string 10"
    }
  ],
  "RedirectUrl": "sample string 1",
  "ResultQueryInfo": {
    "ResultsCount": 1,
    "HasError": false,
    "Info": [],
    "CacheStorageTimeEnd": true,
    "RefreshPeriod": 0,
    "DelFromCacheDateTime": "2024-11-23T17:22:03.1404354+03:00",
    "UserMessages": "",
    "UserMessagesHtml": ""
  }
}

application/xml, text/xml

Sample:
<InsertLeadOfferResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Lead.Contract">
  <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 1</RedirectUrl>
  <ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
    <_x003C_DelFromCacheDateTime_x003E_k__BackingField>2024-11-23T17:22:03.1404354+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField>
    <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField>
    <info />
  </ResultQueryInfo>
  <Offers xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.LeadOffer.Contract">
    <d2p1:LeadOfferItemData>
      <d2p1:CityId>1</d2p1:CityId>
      <d2p1:CityName>sample string 3</d2p1:CityName>
      <d2p1:CountryId>1</d2p1:CountryId>
      <d2p1:CountryName>sample string 2</d2p1:CountryName>
      <d2p1:CurrencyId>1</d2p1:CurrencyId>
      <d2p1:CurrencyName>sample string 4</d2p1:CurrencyName>
      <d2p1:DateFrom xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
        <d4p1:_format>sample string 4</d4p1:_format>
        <d4p1:_serialized>01.01.1970</d4p1:_serialized>
        <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value>
      </d2p1:DateFrom>
      <d2p1:DateTo xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
        <d4p1:_format>sample string 4</d4p1:_format>
        <d4p1:_serialized>01.01.1970</d4p1:_serialized>
        <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value>
      </d2p1:DateTo>
      <d2p1:Description>sample string 7</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:InternalHotelUrl>sample string 9</d2p1:InternalHotelUrl>
      <d2p1:IsEdit>true</d2p1:IsEdit>
      <d2p1:LeadId>1</d2p1:LeadId>
      <d2p1:LeadOfferSource>1</d2p1:LeadOfferSource>
      <d2p1:PartnerId>1</d2p1:PartnerId>
      <d2p1:PartnerName>sample string 10</d2p1:PartnerName>
      <d2p1:Price>1.1</d2p1:Price>
      <d2p1:StatusId>5</d2p1:StatusId>
      <d2p1:StatusName>sample string 6</d2p1:StatusName>
      <d2p1:TourData xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.FavouriteTour.Contract">
        <d4p1:Accommodation>sample string 10</d4p1:Accommodation>
        <d4p1:Adults>13</d4p1:Adults>
        <d4p1:CategoryCode>sample string 21</d4p1:CategoryCode>
        <d4p1:CategoryName>sample string 22</d4p1:CategoryName>
        <d4p1:CityCode>sample string 19</d4p1:CityCode>
        <d4p1:CityName>sample string 20</d4p1:CityName>
        <d4p1:CountryCode>sample string 17</d4p1:CountryCode>
        <d4p1:CountryName>sample string 18</d4p1:CountryName>
        <d4p1:CurrencyCode>sample string 12</d4p1:CurrencyCode>
        <d4p1:DepartureCityCode>sample string 2</d4p1:DepartureCityCode>
        <d4p1:DepartureCityName>sample string 3</d4p1:DepartureCityName>
        <d4p1:DepartureDate>sample string 4</d4p1:DepartureDate>
        <d4p1:FavouriteSelectionsId>1</d4p1:FavouriteSelectionsId>
        <d4p1:HotelCode>sample string 7</d4p1:HotelCode>
        <d4p1:HotelName>sample string 6</d4p1:HotelName>
        <d4p1:Hotels>
          <d4p1:TourOfferHotelInfo>
            <d4p1:Accommodation>sample string 4</d4p1:Accommodation>
            <d4p1:Adults>5</d4p1:Adults>
            <d4p1:CategoryCode>sample string 10</d4p1:CategoryCode>
            <d4p1:CategoryName>sample string 11</d4p1:CategoryName>
            <d4p1:CityCode>sample string 14</d4p1:CityCode>
            <d4p1:CityName>sample string 15</d4p1:CityName>
            <d4p1:CountryCode>sample string 12</d4p1:CountryCode>
            <d4p1:CountryName>sample string 13</d4p1:CountryName>
            <d4p1:HotelCode>sample string 3</d4p1:HotelCode>
            <d4p1:HotelDescription>sample string 17</d4p1:HotelDescription>
            <d4p1:HotelName>sample string 2</d4p1:HotelName>
            <d4p1:ImageId>sample string 7</d4p1:ImageId>
            <d4p1:Kids>sample string 6</d4p1:Kids>
            <d4p1:MealTypeCode>sample string 8</d4p1:MealTypeCode>
            <d4p1:MealTypeName>sample string 9</d4p1:MealTypeName>
            <d4p1:Nights>1</d4p1:Nights>
            <d4p1:Rating>sample string 16</d4p1:Rating>
          </d4p1:TourOfferHotelInfo>
          <d4p1:TourOfferHotelInfo>
            <d4p1:Accommodation>sample string 4</d4p1:Accommodation>
            <d4p1:Adults>5</d4p1:Adults>
            <d4p1:CategoryCode>sample string 10</d4p1:CategoryCode>
            <d4p1:CategoryName>sample string 11</d4p1:CategoryName>
            <d4p1:CityCode>sample string 14</d4p1:CityCode>
            <d4p1:CityName>sample string 15</d4p1:CityName>
            <d4p1:CountryCode>sample string 12</d4p1:CountryCode>
            <d4p1:CountryName>sample string 13</d4p1:CountryName>
            <d4p1:HotelCode>sample string 3</d4p1:HotelCode>
            <d4p1:HotelDescription>sample string 17</d4p1:HotelDescription>
            <d4p1:HotelName>sample string 2</d4p1:HotelName>
            <d4p1:ImageId>sample string 7</d4p1:ImageId>
            <d4p1:Kids>sample string 6</d4p1:Kids>
            <d4p1:MealTypeCode>sample string 8</d4p1:MealTypeCode>
            <d4p1:MealTypeName>sample string 9</d4p1:MealTypeName>
            <d4p1:Nights>1</d4p1:Nights>
            <d4p1:Rating>sample string 16</d4p1:Rating>
          </d4p1:TourOfferHotelInfo>
        </d4p1:Hotels>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:ImageId>sample string 15</d4p1:ImageId>
        <d4p1:Kids>sample string 14</d4p1:Kids>
        <d4p1:MealTypeCode>sample string 8</d4p1:MealTypeCode>
        <d4p1:MealTypeName>sample string 9</d4p1:MealTypeName>
        <d4p1:Nights>5</d4p1:Nights>
        <d4p1:Price>11</d4p1:Price>
        <d4p1:Rating>sample string 24</d4p1:Rating>
        <d4p1:SupplierCode>sample string 16</d4p1:SupplierCode>
        <d4p1:SupplierName>sample string 23</d4p1:SupplierName>
      </d2p1:TourData>
      <d2p1:Url>sample string 8</d2p1:Url>
    </d2p1:LeadOfferItemData>
    <d2p1:LeadOfferItemData>
      <d2p1:CityId>1</d2p1:CityId>
      <d2p1:CityName>sample string 3</d2p1:CityName>
      <d2p1:CountryId>1</d2p1:CountryId>
      <d2p1:CountryName>sample string 2</d2p1:CountryName>
      <d2p1:CurrencyId>1</d2p1:CurrencyId>
      <d2p1:CurrencyName>sample string 4</d2p1:CurrencyName>
      <d2p1:DateFrom xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
        <d4p1:_format>sample string 4</d4p1:_format>
        <d4p1:_serialized>01.01.1970</d4p1:_serialized>
        <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value>
      </d2p1:DateFrom>
      <d2p1:DateTo xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
        <d4p1:_format>sample string 4</d4p1:_format>
        <d4p1:_serialized>01.01.1970</d4p1:_serialized>
        <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value>
      </d2p1:DateTo>
      <d2p1:Description>sample string 7</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:InternalHotelUrl>sample string 9</d2p1:InternalHotelUrl>
      <d2p1:IsEdit>true</d2p1:IsEdit>
      <d2p1:LeadId>1</d2p1:LeadId>
      <d2p1:LeadOfferSource>1</d2p1:LeadOfferSource>
      <d2p1:PartnerId>1</d2p1:PartnerId>
      <d2p1:PartnerName>sample string 10</d2p1:PartnerName>
      <d2p1:Price>1.1</d2p1:Price>
      <d2p1:StatusId>5</d2p1:StatusId>
      <d2p1:StatusName>sample string 6</d2p1:StatusName>
      <d2p1:TourData xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.FavouriteTour.Contract">
        <d4p1:Accommodation>sample string 10</d4p1:Accommodation>
        <d4p1:Adults>13</d4p1:Adults>
        <d4p1:CategoryCode>sample string 21</d4p1:CategoryCode>
        <d4p1:CategoryName>sample string 22</d4p1:CategoryName>
        <d4p1:CityCode>sample string 19</d4p1:CityCode>
        <d4p1:CityName>sample string 20</d4p1:CityName>
        <d4p1:CountryCode>sample string 17</d4p1:CountryCode>
        <d4p1:CountryName>sample string 18</d4p1:CountryName>
        <d4p1:CurrencyCode>sample string 12</d4p1:CurrencyCode>
        <d4p1:DepartureCityCode>sample string 2</d4p1:DepartureCityCode>
        <d4p1:DepartureCityName>sample string 3</d4p1:DepartureCityName>
        <d4p1:DepartureDate>sample string 4</d4p1:DepartureDate>
        <d4p1:FavouriteSelectionsId>1</d4p1:FavouriteSelectionsId>
        <d4p1:HotelCode>sample string 7</d4p1:HotelCode>
        <d4p1:HotelName>sample string 6</d4p1:HotelName>
        <d4p1:Hotels>
          <d4p1:TourOfferHotelInfo>
            <d4p1:Accommodation>sample string 4</d4p1:Accommodation>
            <d4p1:Adults>5</d4p1:Adults>
            <d4p1:CategoryCode>sample string 10</d4p1:CategoryCode>
            <d4p1:CategoryName>sample string 11</d4p1:CategoryName>
            <d4p1:CityCode>sample string 14</d4p1:CityCode>
            <d4p1:CityName>sample string 15</d4p1:CityName>
            <d4p1:CountryCode>sample string 12</d4p1:CountryCode>
            <d4p1:CountryName>sample string 13</d4p1:CountryName>
            <d4p1:HotelCode>sample string 3</d4p1:HotelCode>
            <d4p1:HotelDescription>sample string 17</d4p1:HotelDescription>
            <d4p1:HotelName>sample string 2</d4p1:HotelName>
            <d4p1:ImageId>sample string 7</d4p1:ImageId>
            <d4p1:Kids>sample string 6</d4p1:Kids>
            <d4p1:MealTypeCode>sample string 8</d4p1:MealTypeCode>
            <d4p1:MealTypeName>sample string 9</d4p1:MealTypeName>
            <d4p1:Nights>1</d4p1:Nights>
            <d4p1:Rating>sample string 16</d4p1:Rating>
          </d4p1:TourOfferHotelInfo>
          <d4p1:TourOfferHotelInfo>
            <d4p1:Accommodation>sample string 4</d4p1:Accommodation>
            <d4p1:Adults>5</d4p1:Adults>
            <d4p1:CategoryCode>sample string 10</d4p1:CategoryCode>
            <d4p1:CategoryName>sample string 11</d4p1:CategoryName>
            <d4p1:CityCode>sample string 14</d4p1:CityCode>
            <d4p1:CityName>sample string 15</d4p1:CityName>
            <d4p1:CountryCode>sample string 12</d4p1:CountryCode>
            <d4p1:CountryName>sample string 13</d4p1:CountryName>
            <d4p1:HotelCode>sample string 3</d4p1:HotelCode>
            <d4p1:HotelDescription>sample string 17</d4p1:HotelDescription>
            <d4p1:HotelName>sample string 2</d4p1:HotelName>
            <d4p1:ImageId>sample string 7</d4p1:ImageId>
            <d4p1:Kids>sample string 6</d4p1:Kids>
            <d4p1:MealTypeCode>sample string 8</d4p1:MealTypeCode>
            <d4p1:MealTypeName>sample string 9</d4p1:MealTypeName>
            <d4p1:Nights>1</d4p1:Nights>
            <d4p1:Rating>sample string 16</d4p1:Rating>
          </d4p1:TourOfferHotelInfo>
        </d4p1:Hotels>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:ImageId>sample string 15</d4p1:ImageId>
        <d4p1:Kids>sample string 14</d4p1:Kids>
        <d4p1:MealTypeCode>sample string 8</d4p1:MealTypeCode>
        <d4p1:MealTypeName>sample string 9</d4p1:MealTypeName>
        <d4p1:Nights>5</d4p1:Nights>
        <d4p1:Price>11</d4p1:Price>
        <d4p1:Rating>sample string 24</d4p1:Rating>
        <d4p1:SupplierCode>sample string 16</d4p1:SupplierCode>
        <d4p1:SupplierName>sample string 23</d4p1:SupplierName>
      </d2p1:TourData>
      <d2p1:Url>sample string 8</d2p1:Url>
    </d2p1:LeadOfferItemData>
  </Offers>
</InsertLeadOfferResponse>