Reprocess leads via REST API
This article goes over how you can Reprocess leads via REST API - this can allow you to automate your processes if you flow requires the lead to go through the distribution again following the first round of distribution. Allowing the lead to attempt delivery on the remaining deliveries that are unsold to.
Getting Started
In order to Reprocess via the REST API, you'll need a REST API key with the correct permissions.
Head to the Admin tab > Tech Hub > REST API to get started:
1) Create yourself an Administrator Key
2) Ensure the Administrator Key has the Leads > Reprocess permission
3) Activate your Administrator Key
Request
The instructions for your request will be generated at the bottom of the REST API key settings page
You are also provided with two example requests:
The endpoint to use can be found on the REST API key page on your LeadByte account, after select the relevant permission and scrolling down the page - Leads -> Reprocess
1. Reprocess a single lead:
{
"leadId": LeadID here
}
Headers:
X_KEY: API KEY HEREExample Response
{
"status": "Success",
"message": "",
"details": {
"8419715": "Queued for reprocessing"
}
}2. Reprocess multiple leads:
{
"leadIds": [
LeadID here,
LeadID here
]
}
Headers:
X_KEY: API KEY HEREExample Response
{
"status": "Success",
"message": "",
"details": {
"8419714": "Queued for reprocessing",
"8419715": "Queued for reprocessing"
}
}
Please note - when reprocessing leads, if a delivery has already successfully taken the lead and that delivery has a buyer assigned to it, the already delivered to delivery will be skipped over when reprocessing. If the delivery does not have a buyer assigned to it, the already delivered to delivery will attempt delivery again instead of it being skipped over.
FAQ
I want to reprocess a lead that has already been successfully delivered to all deliveries in my distribution, is this possible?
No this is not possible if all your deliveries have buyers assigned to them - you will not be able to reprocess them again. If you have any deliveries without buyers assigned to them, the reprocess action will work, reprocessing against those specific deliveries.
If you have any questions regarding the above, please raise a Support ticket.
Comments