POST api/WebsiteLeads

Request Information

URI Parameters

None.

Body Parameters

websitesync
NameDescriptionTypeAdditional information
FullName

string

None.

Telephone

string

None.

Email

string

None.

City

string

None.

Consent

string

None.

Language

string

None.

ModelOfInterest

string

None.

Source

string

None.

SecondarySource

string

None.

UNIQUE_REF_NO

string

None.

Preferred_Date

string

None.

Preferred_DayPart

string

None.

Message

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FullName": "sample string 1",
  "Telephone": "sample string 2",
  "Email": "sample string 3",
  "City": "sample string 4",
  "Consent": "sample string 5",
  "Language": "sample string 6",
  "ModelOfInterest": "sample string 7",
  "Source": "sample string 8",
  "SecondarySource": "sample string 9",
  "UNIQUE_REF_NO": "sample string 10",
  "Preferred_Date": "sample string 11",
  "Preferred_DayPart": "sample string 12",
  "Message": "sample string 13"
}

application/xml, text/xml

Sample:
<websitesync xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NIO_WEBSITELEADS_SYNC.Models">
  <City>sample string 4</City>
  <Consent>sample string 5</Consent>
  <Email>sample string 3</Email>
  <FullName>sample string 1</FullName>
  <Language>sample string 6</Language>
  <Message>sample string 13</Message>
  <ModelOfInterest>sample string 7</ModelOfInterest>
  <Preferred_Date>sample string 11</Preferred_Date>
  <Preferred_DayPart>sample string 12</Preferred_DayPart>
  <SecondarySource>sample string 9</SecondarySource>
  <Source>sample string 8</Source>
  <Telephone>sample string 2</Telephone>
  <UNIQUE_REF_NO>sample string 10</UNIQUE_REF_NO>
</websitesync>

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

Response Information

Resource Description

leadresp
NameDescriptionTypeAdditional information
RESPONSECODE

string

None.

RESPONSEMESSAGE

string

None.

ERRORS

Collection of string

None.

UNIQUE_REF_NO

string

None.

DATA_RECEIVED

string

None.

Response Formats

application/json, text/json

Sample:
{
  "RESPONSECODE": "sample string 1",
  "RESPONSEMESSAGE": "sample string 2",
  "ERRORS": [
    "sample string 1",
    "sample string 2"
  ],
  "UNIQUE_REF_NO": "sample string 3",
  "DATA_RECEIVED": "sample string 4"
}

application/xml, text/xml

Sample:
<leadresp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NIO_WEBSITELEADS_SYNC.Models">
  <DATA_RECEIVED>sample string 4</DATA_RECEIVED>
  <ERRORS xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ERRORS>
  <RESPONSECODE>sample string 1</RESPONSECODE>
  <RESPONSEMESSAGE>sample string 2</RESPONSEMESSAGE>
  <UNIQUE_REF_NO>sample string 3</UNIQUE_REF_NO>
</leadresp>