GET api/lead/offers?LeadId={LeadId}&ClientId={ClientId}

Получение предложений по фильтру

Request Information

URI Parameters

NameDescriptionTypeAdditional information
LeadId

ID лида

integer

None.

ClientId

ID клиента

integer

None.

Body Parameters

None.

Response Information

Resource Description

Объект с коллекцией предложений

GetLeadOffersResponse
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:25:29.6085776+03:00",
    "UserMessages": "",
    "UserMessagesHtml": ""
  }
}

application/xml, text/xml

Sample:
<GetLeadOffersResponse 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:25:29.6085776+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>
</GetLeadOffersResponse>