POST v1/irebdm/lead

Request Information

URI Parameters

None.

Body Parameters

Lead
NameDescriptionTypeAdditional information
key

string

None.

accountName

string

None.

referrer

LeadReferrer

None.

property

LeadProperty

None.

contact

LeadContact

None.

statusName

string

None.

sourceName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "key": "sample string 1",
  "accountName": "sample string 2",
  "referrer": {
    "firstName": "sample string 1",
    "lastName": "sample string 2",
    "phone": "sample string 3",
    "email": "sample string 4",
    "mobile": "sample string 5",
    "comments": "sample string 6",
    "companyName": "sample string 7"
  },
  "property": {
    "streetNo": "sample string 1",
    "street": "sample string 2",
    "suburb": "sample string 3",
    "state": "sample string 4",
    "postcode": "sample string 5",
    "bedrooms": 6,
    "bathrooms": 7,
    "garages": 8,
    "carports": 9,
    "description": "sample string 10",
    "buildingName": "sample string 11"
  },
  "contact": {
    "firstName": "sample string 1",
    "lastName": "sample string 2",
    "phone": "sample string 3",
    "email": "sample string 4",
    "mobile": "sample string 5",
    "comments": "sample string 6",
    "residentialAddress": {
      "streetNo": "sample string 1",
      "street": "sample string 2",
      "suburb": "sample string 3",
      "postcode": "sample string 4",
      "state": "sample string 5"
    }
  },
  "statusName": "sample string 3",
  "sourceName": "sample string 4"
}

application/xml, text/xml

Sample:
<Lead xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IRE.API.Models">
  <accountName>sample string 2</accountName>
  <contact>
    <comments>sample string 6</comments>
    <email>sample string 4</email>
    <firstName>sample string 1</firstName>
    <lastName>sample string 2</lastName>
    <mobile>sample string 5</mobile>
    <phone>sample string 3</phone>
    <residentialAddress>
      <postcode>sample string 4</postcode>
      <state>sample string 5</state>
      <street>sample string 2</street>
      <streetNo>sample string 1</streetNo>
      <suburb>sample string 3</suburb>
    </residentialAddress>
  </contact>
  <key>sample string 1</key>
  <property>
    <bathrooms>7</bathrooms>
    <bedrooms>6</bedrooms>
    <buildingName>sample string 11</buildingName>
    <carports>9</carports>
    <description>sample string 10</description>
    <garages>8</garages>
    <postcode>sample string 5</postcode>
    <state>sample string 4</state>
    <street>sample string 2</street>
    <streetNo>sample string 1</streetNo>
    <suburb>sample string 3</suburb>
  </property>
  <referrer>
    <comments>sample string 6</comments>
    <companyName>sample string 7</companyName>
    <email>sample string 4</email>
    <firstName>sample string 1</firstName>
    <lastName>sample string 2</lastName>
    <mobile>sample string 5</mobile>
    <phone>sample string 3</phone>
  </referrer>
  <sourceName>sample string 4</sourceName>
  <statusName>sample string 3</statusName>
</Lead>

multipart/form-data

Sample:
<Lead xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IRE.API.Models"><accountName>sample string 2</accountName><contact><comments>sample string 6</comments><email>sample string 4</email><firstName>sample string 1</firstName><lastName>sample string 2</lastName><mobile>sample string 5</mobile><phone>sample string 3</phone><residentialAddress><postcode>sample string 4</postcode><state>sample string 5</state><street>sample string 2</street><streetNo>sample string 1</streetNo><suburb>sample string 3</suburb></residentialAddress></contact><key>sample string 1</key><property><bathrooms>7</bathrooms><bedrooms>6</bedrooms><buildingName>sample string 11</buildingName><carports>9</carports><description>sample string 10</description><garages>8</garages><postcode>sample string 5</postcode><state>sample string 4</state><street>sample string 2</street><streetNo>sample string 1</streetNo><suburb>sample string 3</suburb></property><referrer><comments>sample string 6</comments><companyName>sample string 7</companyName><email>sample string 4</email><firstName>sample string 1</firstName><lastName>sample string 2</lastName><mobile>sample string 5</mobile><phone>sample string 3</phone></referrer><sourceName>sample string 4</sourceName><statusName>sample string 3</statusName></Lead>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.