POST sales/CreatePreLead

Request Information

URI Parameters

None.

Body Parameters

WebPreLead
NameDescriptionTypeAdditional information
RxCustId

integer

None.

PreleadId

integer

None.

FirstName

string

None.

Surname

string

None.

Cell

string

Max length: 11

PremisesPh

string

Max length: 11

PhysicalAddress

string

Max length: 200

Email

string

None.

SourceId

integer

None.

SourceSystem

string

None.

LeadId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RxCustId": 1,
  "PreleadId": 1,
  "FirstName": "sample string 2",
  "Surname": "sample string 3",
  "Cell": "sample string 4",
  "PremisesPh": "sample string 5",
  "PhysicalAddress": "sample string 6",
  "Email": "sample string 7",
  "SourceId": 1,
  "SourceSystem": "sample string 8",
  "LeadId": 1
}

text/html

Sample:
{"RxCustId":1,"PreleadId":1,"FirstName":"sample string 2","Surname":"sample string 3","Cell":"sample string 4","PremisesPh":"sample string 5","PhysicalAddress":"sample string 6","Email":"sample string 7","SourceId":1,"SourceSystem":"sample string 8","LeadId":1}

application/xml, text/xml

Sample:
<WebPreLead xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListenerOnline.Xyro.Models.PreLead">
  <Cell>sample string 4</Cell>
  <Email>sample string 7</Email>
  <FirstName>sample string 2</FirstName>
  <LeadId>1</LeadId>
  <PhysicalAddress>sample string 6</PhysicalAddress>
  <PreleadId>1</PreleadId>
  <PremisesPh>sample string 5</PremisesPh>
  <SourceId>1</SourceId>
  <SourceSystem>sample string 8</SourceSystem>
  <Surname>sample string 3</Surname>
  <RxCustId>1</RxCustId>
</WebPreLead>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.