Lead Submission Responses

The default response format is based upon the format of the data submitted.  For instance, if you post via query string or form post, a redirect URL will be returned.  If a lead is submitted via XML, an XML response is returned and likewise if a lead is submitted via JSON, a JSON response is returned.  

However, the response format can be specified by appending one of the following parameters to the Post URL: ResponseFormat=redirect, ResponseFormat=xml, and ResponseFormat=json.

By posting the desired name value pairs to your post, you will receive the appropriate response back.  The list of error codes and error messages you may receive back are located at the bottom of this page.

Example: http://leadgendomain/Lead/123456/SimplePost?ResponseFormat=xml or
http://leadgendomain/Lead/123456/SimplePost?ResponseFormat=json

XML Response:

Successful Lead

<response>
     <status>Accepted</status>
     <leadId>L0461-95</leadId>
     <commissionStatus>Not Approved</commissionStatus>
     <commission/>
     <successUrl>/Lead/276253/Success</successUrl>
</response>

Rejected Lead

<response>
     <status>Rejected</status>
     <responseCode>1200)</responseCode>
     <message>Fname is required.</message>
     <failedDataField>Fname</failedDataField>
     <failureUrl>
     /Lead/276253/Failure/Fields?EC=1200&EM=Fname+is+required.
     </failureUrl>
</response>

JSON Response:

Successful Lead

"{ "status": "Accepted", "leadId": "L0272-4B879", "commissionStatus": "Not Approved", "commission": null, "successUrl": "/Lead/305768/Success" }"

Rejected Lead

"{\r\n  \"status\": \"Rejected\",\r\n  \"responseCode\": 1200,\r\n  \"message\": \"Fname is required.\",\r\n  \"failedDataField\": \"Fname\",\r\n  \"failureUrl\": \"/Lead/276253/Failure/Fields?EC=1200\u0026EM=Fname+is+required.\"\r\n}"

"{ "status": "Rejected", "responseCode": 2004, "message": "Unable to accept lead.", "failedDataField": null, "failureUrl": "/Lead/305768/Failure/Rejected?EC=2004&EM=Unable+to+accept+lead." }"

HTML Response

Successful Lead

Success

Lead was successfully submitted

Rejected due to Data Field Validation

Failure

Data field validation failed

Rejected due to Rule Validation

Failure

Rule validation failed

No Channels Accepted the Lead

Failure

Lead rejected by all buyers

Response Codes

Invalid Campaign Codes

Error Codes

Internal Reason

Returned Error Message

1000

Campaign status is dead

Campaign is dead and not accepting leads.

1001

Campaign is expired

Campaign is expired and not accepting leads.

1002

Campaign is paused

Campaign is not accepting leads.

Invalid Affiliate Codes

Error Code

Internal Reason

Returned Error Message

1100

Click ID invalid

Click ID is invalid.

1101

Affiliate ID invalid

Affiliate ID is invalid.

1102

Simple post not allowed

Simple post is not allowed.

1103

Affiliate suspended

Affiliate is suspended and not authorized to post leads.

1104

Affiliate blocked

Affiliate is blocked and not authorized to post leads.

1105

Affiliate not authorized for campaign

Affiliate is not authorized to post leads.

1106

Sub ID blocked for affiliate

Sub ID is blocked and not authorized to post leads.

1107

Cap has been met

Cap has been met.

Data Field Validation Codes

Error Code

Internal Reason

Returned Error Message

1200

Required field missing

(Name of Field) is required.

1201

Calculated field evaluation error

(Name of Field) could not be calculated.

1202

Posted IP invalid

Posted IP address is not valid.

1203

Decimal point not allowed

(Name of Field) can only contain whole numbers. No decimal points allowed.

1204

Not a valid number

(Name of Field) must be a valid number.

1205

Less than min

(Name of Field) is less than the allowed minimum value.

1206

Greater than max

(Name of Field) is greater than the allowed maximum value.

1207

Not a valid date

(Name of Field) must be a valid date.

1208

Less than minimum length

(Name of Field) is less than the allowed minimum length.

1209

Greater than maximum length

(Name of Field) is greater than the allowed maximum length.

1210

Does not match regular expression

(Name of Field) does not match the required format.

1211

Not in pick list

(Name of Field) does not contain one of the allowed values from list.

1212

Invalid Regular Expression (the configured reg ex is invalid)

(Name of Field) format can not be evaluated.

1213

On field black list

(Name of Field) contains a value which is not allowed.

1214

Calculated field parse error

(Name of Field) contains an invalid formula.

1215

Calculated field contains an unknown data field

(Name of Field) contains an unknown data field in the formula.

1216

Exception occurs while validating data field

(Name of Field) could not be validated due to an unexpected problem.

Rule Validation Codes

Error Code

Internal Reason

Returned Error Message

1300

Rule failed

Unable to accept lead.

1301

Rule failed due to exception

Unable to accept lead.

Data Distribution Codes

Error Code

Internal Reason

Returned Error Message

2001

No Tiers Exist

Unable to accept lead.

2002

No Tiers Accepted the lead (failed all tier rules)

Unable to accept lead.

2003

All Channel rules failed

Unable to accept lead.

2004

No channels accepted the lead

Unable to accept lead.

Other Codes

Error Code

Internal Reason

Returned Error Message

3000

Unexpected Exception

An unexpected error occurred.

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

0 Comments

Please sign in to leave a comment.