Content-Type
|
application/x-www-form-urlencoded
|
Content type for the request body
|
Accept
|
application/json / application/xml
|
Use this header to get the response in JSON or XML format.
|
Parameter name
|
Required
|
Data type
|
Description
|
Example
|
---|---|---|---|---|
max_response_time
|
No
|
Integer
|
Pass the maximum time in seconds for receiving response. Note: the bigger timeout value you’re sending, the higher probability of lead sale is
|
90
|
If you want to receive a response immediately after the lead is successfully validated without waiting for lead's sale, add the async_response=true GET parameter to the request URL.
Please note: in this case "AutologinUrl" and "Payout" values will not be sent in the response, since they can only be obtained on the lead's sale.
{
"Result" : "Failed",
"Response_code" : "400",
"Message" : "Required fields missing: [email]"
}
{
"Result" : "Failed",
"Response_code" : "400",
"Message" : "Request validation failed"
}
{
"Result": "Success",
"LeadId": "9f57b396d89c408190ba1ec4cc93a61d68x66",
"AutologinUrl": "https://thisisautologinurlfromtherequest.com",
"Payout": 2.25,
"Message": "Lead accepted"
}
{
"Result" : "Success",
"LeadId" : "414ec616488c4abc9e42e40c24c0c38e",
"Message" : "Lead accepted"
}
{
"Result" : "Success",
"LeadId" : "414ec616488c4abc9e42e40c24c0c38e",
"Message" : "Lead accepted - Delayed lead selling"
}
Field name | Possible values | Mapping |
---|---|---|
homeowner | Yes | |
No | ||
gutter_covers | Yes | |
No | ||
location_type | 1 | Home |
2 | Business | |
authorized_to_make_changes | Yes | |
No | ||
project | 1 | Install |
2 | Repair |