Assign delivery response to a lead field

Follow

This feature allows you to store a section of a buyers delivery response against a lead field. 

This could be an Identifier they return when accepting a lead, or a unique URL you need to redirect your leads to following a successful sale.

 

Find this function by editing your Delivery > Remote System Responses > Advanced Settings.

 

8b8d305b-ed5f-44e6-9d51-ca0d025538e5.png

 

We allow you to extract data from your buyer responses using JSON Path and XPATH.

 

JSON Path

JSON Path is used to save values from a response returned in JSON.

The JSON path MUST start with a $ and then instruct LeadByte what value you want to store from the response.

 

Example JSON response 1 - 

{
"status": "Success",
"ID": "ac1e02ae-520cdd21-6228b6fa-fd5f-3bbba28a"
}

In order to store the ID we would use the JSON Path below

$.ID

 

Example JSON response 2 - 

{
"status": "Sold",
"ID": "12345",
"price": 5,
"details": {
"URL": "www.a-lovely-website.com",
"redirect": true
}
}

In order to store the URL we would use the JSON Path below:

$.details.URL

 

XPATH

XPATH is used to save values from a response returned in XML.

The XPATH MUST start with // and then instruct LeadByte what value you want to store from the response.

 

Example XML response 1 - 

<response>
<status>Sold</status>
<ID>ac1e02ae-520cdd21-6228b6fa</ID>
</response>

In order to store the ID we would use the XPATH below:

//ID

 

Example XML response 2 - 

<response>
<status>Sold</status>
<ID>12345</ID>
<price>5</price>
<details>
<URL>www.a-lovely-website.com</URL>
<redirect>true</redirect>
</details>
</response>

In order to store the ID we would use the XPATH below:

//response/details/URL

 

Useful Tools

https://jsonpath.com/ - Assists you in building your JSON path

http://xpather.com/ - Assist you in building your XPATH

 

If you are struggling with more complicated JSON and XPATH queries, please raise a support ticket. Ensure you include an example of your response and your JSON path/XPATH attempt in the ticket details.

Was this article helpful?
0 out of 0 found this helpful

Comments