POST api/Special/InsertLead
Вставка лидов
Request Information
URI Parameters
None.
Body Parameters
DefaultLeadRequestName | Description | Type | Additional information |
---|---|---|---|
Name |
ФИО клиента |
string |
None. |
Company |
Компания |
string |
None. |
|
string |
None. |
|
Phone |
Телефон |
string |
None. |
LeadType |
Тип лида |
RefRequest |
None. |
Note |
Текст запроса |
string |
None. |
Source |
Источник |
RefRequest |
None. |
Extra |
Доп. параметры: utm метки, roistat id, ... |
Dictionary of string [key] and Object [value] |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{ "Name": "sample string 1", "Company": "sample string 2", "Email": "sample string 3", "Phone": "sample string 4", "LeadType": { "Code": "sample string 1", "ID": 1, "Guid": "39bd57f9-3033-42f6-bf5f-317e7dc079f3", "Name": "sample string 3" }, "Note": "sample string 5", "Source": { "Code": "sample string 1", "ID": 1, "Guid": "39bd57f9-3033-42f6-bf5f-317e7dc079f3", "Name": "sample string 3" }, "Extra": { "sample string 1": {}, "sample string 3": {} } }
application/xml, text/xml
Sample:
<LeadHelper.LeadRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apec.WebApi.Classes"> <Company>sample string 2</Company> <Email>sample string 3</Email> <Extra xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringanyType> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> <d2p1:KeyValueOfstringanyType> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> </Extra> <LeadType> <Guid>39bd57f9-3033-42f6-bf5f-317e7dc079f3</Guid> <ID>1</ID> <Name>sample string 3</Name> <Code>sample string 1</Code> </LeadType> <Name>sample string 1</Name> <Note>sample string 5</Note> <Phone>sample string 4</Phone> <Source> <Guid>39bd57f9-3033-42f6-bf5f-317e7dc079f3</Guid> <ID>1</ID> <Name>sample string 3</Name> <Code>sample string 1</Code> </Source> </LeadHelper.LeadRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
DataResponseName | Description | Type | Additional information |
---|---|---|---|
ID |
ID записи |
integer |
None. |
Response Formats
application/json, text/json, text/html
Sample:
{ "ID": 1 }
application/xml, text/xml
Sample:
<DataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apec.WebApi.Classes"> <ID>1</ID> </DataResponse>