GET api/SearchEntities

Request Information

URI Parameters

None.

Body Parameters

SearchEntitiesRequest
NameDescriptionTypeAdditional information
SearchTerm

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SearchTerm": "sample string 1"
}

application/xml, text/xml

Sample:
<SearchEntitiesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.SearchEntities">
  <SearchTerm>sample string 1</SearchTerm>
</SearchEntitiesRequest>

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 'SearchEntitiesRequest'.

Response Information

Resource Description

EntitiesSearchResponse
NameDescriptionTypeAdditional information
Entities

Collection of SearchEntity

None.

ResultQueryInfo

Сообщения

ResultQueryInfoContainer

None.

Response Formats

application/json, text/json

Sample:
{
  "Entities": [
    {
      "Id": 1,
      "DateCreate": {
        "Serialized": "01.01.1970",
        "HasValue": true,
        "Milliseconds": 3,
        "Format": "sample string 4"
      },
      "Type": 1,
      "Text": "sample string 2",
      "AgreementData": {
        "Code": "sample string 1",
        "ReservationCenterLegalEntityId": 1,
        "ReservationCenterLegalEntity": "sample string 2",
        "SubAgentLegalEntityId": 1,
        "SubAgentLegalEntity": "sample string 3",
        "OwnerLegalEntityId": 1,
        "OwnerLegalEntity": "sample string 4",
        "ManagerId": 5,
        "ManagerName": "sample string 6",
        "DepartmentId": 1,
        "DepartmentName": "sample string 7",
        "CityId": 8,
        "City": "sample string 9",
        "CountryId": 10,
        "Country": "sample string 11",
        "DateBegin": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "Days": 12,
        "Adults": 13,
        "Children": 14,
        "ClientId": 15,
        "ClientName": "sample string 16",
        "StatusId": 17,
        "Status": "sample string 18",
        "OperatorId": 19,
        "Operator": "sample string 20",
        "OperatorCode": "sample string 21",
        "CurrencyId": 22,
        "CurrencyName": "sample string 23",
        "CurrencyCode": "sample string 24",
        "ClientPrice": 1.1,
        "OperatorPrice": 1.1,
        "ReservationCenterPrice": 1.1
      },
      "LeadData": {
        "Name": "sample string 1",
        "StatusId": 2,
        "Status": "sample string 3",
        "ManagerId": 1,
        "ManagerName": "sample string 4",
        "DepartmentId": 1,
        "DepartmentName": "sample string 5",
        "CountryId": 1,
        "Country": "sample string 6",
        "ClientId": 7,
        "ClientName": "sample string 8"
      },
      "ClientData": {
        "ClientName": "sample string 1",
        "Phone": "sample string 2",
        "Email": "sample string 3",
        "PassportSeries": "sample string 4",
        "PassportNumber": "sample string 5",
        "PassportRusSeries": "sample string 6",
        "PassportRusNumber": "sample string 7"
      },
      "PaymentData": {
        "DocumentNumber": "sample string 1",
        "InOut": 2,
        "Sum": 3.1,
        "CurrencyId": 1,
        "CurrencyName": "sample string 4",
        "CurrencyCode": "sample string 5",
        "AgreementCode": "sample string 6"
      },
      "PartnerData": {
        "Name": "sample string 1",
        "LegalEntityId": 2,
        "LegalEntityName": "sample string 3"
      },
      "GiftCertificate": {
        "ClientId": 1,
        "ClientName": "sample string 1",
        "Sum": 2.1,
        "CurrencyId": 3,
        "CurrencyName": "sample string 4",
        "CurrencyCode": "sample string 5"
      },
      "TaskData": {
        "Name": "sample string 1",
        "StartDate": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "EndDate": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "StatusId": 2,
        "CreatorId": 1,
        "CreatorName": "sample string 3",
        "AssigneeId": 1,
        "AssigneeName": "sample string 4"
      }
    },
    {
      "Id": 1,
      "DateCreate": {
        "Serialized": "01.01.1970",
        "HasValue": true,
        "Milliseconds": 3,
        "Format": "sample string 4"
      },
      "Type": 1,
      "Text": "sample string 2",
      "AgreementData": {
        "Code": "sample string 1",
        "ReservationCenterLegalEntityId": 1,
        "ReservationCenterLegalEntity": "sample string 2",
        "SubAgentLegalEntityId": 1,
        "SubAgentLegalEntity": "sample string 3",
        "OwnerLegalEntityId": 1,
        "OwnerLegalEntity": "sample string 4",
        "ManagerId": 5,
        "ManagerName": "sample string 6",
        "DepartmentId": 1,
        "DepartmentName": "sample string 7",
        "CityId": 8,
        "City": "sample string 9",
        "CountryId": 10,
        "Country": "sample string 11",
        "DateBegin": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "Days": 12,
        "Adults": 13,
        "Children": 14,
        "ClientId": 15,
        "ClientName": "sample string 16",
        "StatusId": 17,
        "Status": "sample string 18",
        "OperatorId": 19,
        "Operator": "sample string 20",
        "OperatorCode": "sample string 21",
        "CurrencyId": 22,
        "CurrencyName": "sample string 23",
        "CurrencyCode": "sample string 24",
        "ClientPrice": 1.1,
        "OperatorPrice": 1.1,
        "ReservationCenterPrice": 1.1
      },
      "LeadData": {
        "Name": "sample string 1",
        "StatusId": 2,
        "Status": "sample string 3",
        "ManagerId": 1,
        "ManagerName": "sample string 4",
        "DepartmentId": 1,
        "DepartmentName": "sample string 5",
        "CountryId": 1,
        "Country": "sample string 6",
        "ClientId": 7,
        "ClientName": "sample string 8"
      },
      "ClientData": {
        "ClientName": "sample string 1",
        "Phone": "sample string 2",
        "Email": "sample string 3",
        "PassportSeries": "sample string 4",
        "PassportNumber": "sample string 5",
        "PassportRusSeries": "sample string 6",
        "PassportRusNumber": "sample string 7"
      },
      "PaymentData": {
        "DocumentNumber": "sample string 1",
        "InOut": 2,
        "Sum": 3.1,
        "CurrencyId": 1,
        "CurrencyName": "sample string 4",
        "CurrencyCode": "sample string 5",
        "AgreementCode": "sample string 6"
      },
      "PartnerData": {
        "Name": "sample string 1",
        "LegalEntityId": 2,
        "LegalEntityName": "sample string 3"
      },
      "GiftCertificate": {
        "ClientId": 1,
        "ClientName": "sample string 1",
        "Sum": 2.1,
        "CurrencyId": 3,
        "CurrencyName": "sample string 4",
        "CurrencyCode": "sample string 5"
      },
      "TaskData": {
        "Name": "sample string 1",
        "StartDate": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "EndDate": {
          "Serialized": "01.01.1970",
          "HasValue": true,
          "Milliseconds": 3,
          "Format": "sample string 4"
        },
        "StatusId": 2,
        "CreatorId": 1,
        "CreatorName": "sample string 3",
        "AssigneeId": 1,
        "AssigneeName": "sample string 4"
      }
    }
  ],
  "RedirectUrl": "sample string 1",
  "ResultQueryInfo": {
    "ResultsCount": 1,
    "HasError": false,
    "Info": [],
    "CacheStorageTimeEnd": true,
    "RefreshPeriod": 0,
    "DelFromCacheDateTime": "2024-11-23T17:08:29.7059652+03:00",
    "UserMessages": "",
    "UserMessagesHtml": ""
  }
}

application/xml, text/xml

Sample:
<EntitiesSearchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.SearchEntities">
  <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:08:29.7059652+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField>
    <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField>
    <info />
  </ResultQueryInfo>
  <Entities>
    <SearchEntity>
      <AgreementData>
        <Adults>13</Adults>
        <Children>14</Children>
        <City>sample string 9</City>
        <CityId>8</CityId>
        <ClientId>15</ClientId>
        <ClientName>sample string 16</ClientName>
        <ClientPrice>1.1</ClientPrice>
        <Code>sample string 1</Code>
        <Country>sample string 11</Country>
        <CountryId>10</CountryId>
        <CurrencyCode>sample string 24</CurrencyCode>
        <CurrencyId>22</CurrencyId>
        <CurrencyName>sample string 23</CurrencyName>
        <DateBegin 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>
        </DateBegin>
        <Days>12</Days>
        <DepartmentId>1</DepartmentId>
        <DepartmentName>sample string 7</DepartmentName>
        <ManagerId>5</ManagerId>
        <ManagerName>sample string 6</ManagerName>
        <Operator>sample string 20</Operator>
        <OperatorCode>sample string 21</OperatorCode>
        <OperatorId>19</OperatorId>
        <OperatorPrice>1.1</OperatorPrice>
        <OwnerLegalEntity>sample string 4</OwnerLegalEntity>
        <OwnerLegalEntityId>1</OwnerLegalEntityId>
        <ReservationCenterLegalEntity>sample string 2</ReservationCenterLegalEntity>
        <ReservationCenterLegalEntityId>1</ReservationCenterLegalEntityId>
        <ReservationCenterPrice>1.1</ReservationCenterPrice>
        <Status>sample string 18</Status>
        <StatusId>17</StatusId>
        <SubAgentLegalEntity>sample string 3</SubAgentLegalEntity>
        <SubAgentLegalEntityId>1</SubAgentLegalEntityId>
      </AgreementData>
      <ClientData>
        <ClientName>sample string 1</ClientName>
        <Email>sample string 3</Email>
        <PassportNumber>sample string 5</PassportNumber>
        <PassportRusNumber>sample string 7</PassportRusNumber>
        <PassportRusSeries>sample string 6</PassportRusSeries>
        <PassportSeries>sample string 4</PassportSeries>
        <Phone>sample string 2</Phone>
      </ClientData>
      <DateCreate 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>
      </DateCreate>
      <GiftCertificate>
        <ClientId>1</ClientId>
        <ClientName>sample string 1</ClientName>
        <CurrencyCode>sample string 5</CurrencyCode>
        <CurrencyId>3</CurrencyId>
        <CurrencyName>sample string 4</CurrencyName>
        <Sum>2.1</Sum>
      </GiftCertificate>
      <Id>1</Id>
      <LeadData>
        <ClientId>7</ClientId>
        <ClientName>sample string 8</ClientName>
        <Country>sample string 6</Country>
        <CountryId>1</CountryId>
        <DepartmentId>1</DepartmentId>
        <DepartmentName>sample string 5</DepartmentName>
        <ManagerId>1</ManagerId>
        <ManagerName>sample string 4</ManagerName>
        <Name>sample string 1</Name>
        <Status>sample string 3</Status>
        <StatusId>2</StatusId>
      </LeadData>
      <PartnerData>
        <LegalEntityId>2</LegalEntityId>
        <LegalEntityName>sample string 3</LegalEntityName>
        <Name>sample string 1</Name>
      </PartnerData>
      <PaymentData>
        <AgreementCode>sample string 6</AgreementCode>
        <CurrencyCode>sample string 5</CurrencyCode>
        <CurrencyId>1</CurrencyId>
        <CurrencyName>sample string 4</CurrencyName>
        <DocumentNumber>sample string 1</DocumentNumber>
        <InOut>2</InOut>
        <Sum>3.1</Sum>
      </PaymentData>
      <TaskData>
        <AssigneeId>1</AssigneeId>
        <AssigneeName>sample string 4</AssigneeName>
        <CreatorId>1</CreatorId>
        <CreatorName>sample string 3</CreatorName>
        <EndDate 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>
        </EndDate>
        <Name>sample string 1</Name>
        <StartDate 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>
        </StartDate>
        <StatusId>2</StatusId>
      </TaskData>
      <Text>sample string 2</Text>
      <Type>Agreement</Type>
    </SearchEntity>
    <SearchEntity>
      <AgreementData>
        <Adults>13</Adults>
        <Children>14</Children>
        <City>sample string 9</City>
        <CityId>8</CityId>
        <ClientId>15</ClientId>
        <ClientName>sample string 16</ClientName>
        <ClientPrice>1.1</ClientPrice>
        <Code>sample string 1</Code>
        <Country>sample string 11</Country>
        <CountryId>10</CountryId>
        <CurrencyCode>sample string 24</CurrencyCode>
        <CurrencyId>22</CurrencyId>
        <CurrencyName>sample string 23</CurrencyName>
        <DateBegin 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>
        </DateBegin>
        <Days>12</Days>
        <DepartmentId>1</DepartmentId>
        <DepartmentName>sample string 7</DepartmentName>
        <ManagerId>5</ManagerId>
        <ManagerName>sample string 6</ManagerName>
        <Operator>sample string 20</Operator>
        <OperatorCode>sample string 21</OperatorCode>
        <OperatorId>19</OperatorId>
        <OperatorPrice>1.1</OperatorPrice>
        <OwnerLegalEntity>sample string 4</OwnerLegalEntity>
        <OwnerLegalEntityId>1</OwnerLegalEntityId>
        <ReservationCenterLegalEntity>sample string 2</ReservationCenterLegalEntity>
        <ReservationCenterLegalEntityId>1</ReservationCenterLegalEntityId>
        <ReservationCenterPrice>1.1</ReservationCenterPrice>
        <Status>sample string 18</Status>
        <StatusId>17</StatusId>
        <SubAgentLegalEntity>sample string 3</SubAgentLegalEntity>
        <SubAgentLegalEntityId>1</SubAgentLegalEntityId>
      </AgreementData>
      <ClientData>
        <ClientName>sample string 1</ClientName>
        <Email>sample string 3</Email>
        <PassportNumber>sample string 5</PassportNumber>
        <PassportRusNumber>sample string 7</PassportRusNumber>
        <PassportRusSeries>sample string 6</PassportRusSeries>
        <PassportSeries>sample string 4</PassportSeries>
        <Phone>sample string 2</Phone>
      </ClientData>
      <DateCreate 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>
      </DateCreate>
      <GiftCertificate>
        <ClientId>1</ClientId>
        <ClientName>sample string 1</ClientName>
        <CurrencyCode>sample string 5</CurrencyCode>
        <CurrencyId>3</CurrencyId>
        <CurrencyName>sample string 4</CurrencyName>
        <Sum>2.1</Sum>
      </GiftCertificate>
      <Id>1</Id>
      <LeadData>
        <ClientId>7</ClientId>
        <ClientName>sample string 8</ClientName>
        <Country>sample string 6</Country>
        <CountryId>1</CountryId>
        <DepartmentId>1</DepartmentId>
        <DepartmentName>sample string 5</DepartmentName>
        <ManagerId>1</ManagerId>
        <ManagerName>sample string 4</ManagerName>
        <Name>sample string 1</Name>
        <Status>sample string 3</Status>
        <StatusId>2</StatusId>
      </LeadData>
      <PartnerData>
        <LegalEntityId>2</LegalEntityId>
        <LegalEntityName>sample string 3</LegalEntityName>
        <Name>sample string 1</Name>
      </PartnerData>
      <PaymentData>
        <AgreementCode>sample string 6</AgreementCode>
        <CurrencyCode>sample string 5</CurrencyCode>
        <CurrencyId>1</CurrencyId>
        <CurrencyName>sample string 4</CurrencyName>
        <DocumentNumber>sample string 1</DocumentNumber>
        <InOut>2</InOut>
        <Sum>3.1</Sum>
      </PaymentData>
      <TaskData>
        <AssigneeId>1</AssigneeId>
        <AssigneeName>sample string 4</AssigneeName>
        <CreatorId>1</CreatorId>
        <CreatorName>sample string 3</CreatorName>
        <EndDate 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>
        </EndDate>
        <Name>sample string 1</Name>
        <StartDate 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>
        </StartDate>
        <StatusId>2</StatusId>
      </TaskData>
      <Text>sample string 2</Text>
      <Type>Agreement</Type>
    </SearchEntity>
  </Entities>
</EntitiesSearchResponse>