POST api/lead/LeadMessageInfo

Получение сообщений отправленных лиду

Request Information

URI Parameters

None.

Body Parameters

LeadMessageInfoRequest
NameDescriptionTypeAdditional information
Operator

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

integer

None.

Leads

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

integer

None.

Client

Идентификатор клиента из таблицы client

integer

None.

Subject

Тема сообщения

string

None.

Leadmessage

Идентификатор сообщения лида

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Operator": 1,
  "Leads": 1,
  "Client": 1,
  "Subject": "sample string 1",
  "Leadmessage": 1
}

application/xml, text/xml

Sample:
<LeadMessageInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request">
  <Client>1</Client>
  <Leadmessage>1</Leadmessage>
  <Leads>1</Leads>
  <Operator>1</Operator>
  <Subject>sample string 1</Subject>
</LeadMessageInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LeadMessageInfoResponse
NameDescriptionTypeAdditional information
Leadmessagedata

Данные о сообщениях

Collection of LeadMessageData

None.

ErrorCode

Код ошибки

integer

None.

Message

Сообщение об ошибке

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Leadmessagedata": [
    {
      "Id": 1,
      "Date": "2022-08-14T15:53:51.2370921+03:00",
      "Subject": "sample string 3",
      "Parent": 1,
      "Leadtext": "sample string 4",
      "Usertext": "sample string 5",
      "Status": "sample string 6"
    },
    {
      "Id": 1,
      "Date": "2022-08-14T15:53:51.2370921+03:00",
      "Subject": "sample string 3",
      "Parent": 1,
      "Leadtext": "sample string 4",
      "Usertext": "sample string 5",
      "Status": "sample string 6"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<LeadMessageInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</ErrorCode>
  <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message>
  <Leadmessagedata xmlns:d2p1="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Data">
    <d2p1:LeadMessageData>
      <d2p1:Date>2022-08-14T15:53:51.2370921+03:00</d2p1:Date>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Leadtext>sample string 4</d2p1:Leadtext>
      <d2p1:Parent>1</d2p1:Parent>
      <d2p1:Status>sample string 6</d2p1:Status>
      <d2p1:Subject>sample string 3</d2p1:Subject>
      <d2p1:Usertext>sample string 5</d2p1:Usertext>
    </d2p1:LeadMessageData>
    <d2p1:LeadMessageData>
      <d2p1:Date>2022-08-14T15:53:51.2370921+03:00</d2p1:Date>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Leadtext>sample string 4</d2p1:Leadtext>
      <d2p1:Parent>1</d2p1:Parent>
      <d2p1:Status>sample string 6</d2p1:Status>
      <d2p1:Subject>sample string 3</d2p1:Subject>
      <d2p1:Usertext>sample string 5</d2p1:Usertext>
    </d2p1:LeadMessageData>
  </Leadmessagedata>
</LeadMessageInfoResponse>