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": "524b09e5-b0c9-49bf-ae3d-20989f40cf5f", "Name": "sample string 3" }, "Note": "sample string 5", "Source": { "Code": "sample string 1", "ID": 1, "Guid": "524b09e5-b0c9-49bf-ae3d-20989f40cf5f", "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 xmlns:d2p1="http://schemas.datacontract.org/2004/07/Apec.WebApi.Models"> <d2p1:Guid>524b09e5-b0c9-49bf-ae3d-20989f40cf5f</d2p1:Guid> <d2p1:ID>1</d2p1:ID> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Code>sample string 1</d2p1:Code> </LeadType> <Name>sample string 1</Name> <Note>sample string 5</Note> <Phone>sample string 4</Phone> <Source xmlns:d2p1="http://schemas.datacontract.org/2004/07/Apec.WebApi.Models"> <d2p1:Guid>524b09e5-b0c9-49bf-ae3d-20989f40cf5f</d2p1:Guid> <d2p1:ID>1</d2p1:ID> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Code>sample string 1</d2p1: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.Models"> <ID>1</ID> </DataResponse>