POST Api/CreateLPGLead
Request Information
URI Parameters
None.
Body Parameters
ParamLPGLead| Name | Description | Type | Additional information |
|---|---|---|---|
| LeadID | integer |
None. |
|
| FirstName | string |
None. |
|
| SurName | string |
None. |
|
| string |
None. |
||
| HomePhone | string |
None. |
|
| MobilePhone | string |
None. |
|
| Address | string |
None. |
|
| Unit | string |
None. |
|
| IsFlat | boolean |
None. |
|
| StreetNumber | string |
None. |
|
| StreetName | string |
None. |
|
| StreetTypeID | integer |
None. |
|
| PostCode | string |
None. |
|
| Suburb | string |
None. |
|
| AgentID | integer |
None. |
|
| SaleCRN | string |
None. |
|
| CustomerType | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"LeadID": 1,
"FirstName": "sample string 1",
"SurName": "sample string 2",
"Email": "sample string 3",
"HomePhone": "sample string 4",
"MobilePhone": "sample string 5",
"Address": "sample string 6",
"Unit": "sample string 7",
"IsFlat": true,
"StreetNumber": "sample string 8",
"StreetName": "sample string 9",
"StreetTypeID": 1,
"PostCode": "sample string 10",
"Suburb": "sample string 11",
"AgentID": 12,
"SaleCRN": "sample string 13",
"CustomerType": "sample string 14"
}
application/xml, text/xml
Sample:
<ParamLPGLead xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoSwitch.CustomerTools.Models.Master.Parameters"> <Address>sample string 6</Address> <AgentID>12</AgentID> <CustomerType>sample string 14</CustomerType> <Email>sample string 3</Email> <FirstName>sample string 1</FirstName> <HomePhone>sample string 4</HomePhone> <IsFlat>true</IsFlat> <LeadID>1</LeadID> <MobilePhone>sample string 5</MobilePhone> <PostCode>sample string 10</PostCode> <SaleCRN>sample string 13</SaleCRN> <StreetName>sample string 9</StreetName> <StreetNumber>sample string 8</StreetNumber> <StreetTypeID>1</StreetTypeID> <Suburb>sample string 11</Suburb> <SurName>sample string 2</SurName> <Unit>sample string 7</Unit> </ParamLPGLead>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| ErrorMessage | Collection of string |
None. |
|
| Value | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Message": "sample string 2",
"ErrorMessage": [
"sample string 1",
"sample string 2"
],
"Value": true
}
application/xml, text/xml
Sample:
<ResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoSwitch.CustomerTools.Models.Common.Returns">
<ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ErrorMessage>
<Message>sample string 2</Message>
<Success>true</Success>
<Value>true</Value>
</ResultOfboolean>