Follow

How are responses handled in the LeadConduit Standard outbound integration?

Outbound

Responses to the "LeadConduit Standard" outbound must be XML or JSON, as in the examples below.

Data in the response will be automatically appended to the lead. Other than including data for the special keys outcome and reason, there is not currently a way to set those values.

XML

The response Content-Type must be either application/xml or text/xml.

<result>
  <outcome>success</outcome>
  <reason/>
  <lead>
    <id>1234</id>
    <last_name>Smith</last_name>
    <email>jsmith@test.com</email>
    <phone_1>5125551234</phone_1>
  </lead>
</result>

All data under the top level (<result>, in this example) will be appended to the lead. For example, if the recipient name is "My CRM", the lead will include appended data for "My CRM Lead Last Name" (aka my_crm.lead.last_name) of "Smith".

JSON

The response Content-Type must be application/json.

{
  "outcome": "success",
  "reason": "",
  "lead": {
    "id": "1234",
    "last_name": "Smith",
    "email": "jsmith@test.com",
    "phone_1": "5125551234",
  }
}

As above, all data will be appended to the lead. For example, if the recipient name is "My CRM", the lead will include appended data for "My CRM Lead Last Name" (aka my_crm.lead.last_name) of "Smith".

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

You must be logged in to comment.