The Update Form API is used to modify existing lead form data within a campaign. This API is especially useful when updating incorrect details, adding new information, or making adjustments to previously submitted leads to ensure accurate campaign records.
transaction_id and the campaign’s offer campaign ID.
{offerCampaignId} with the unique identifier of the offer campaign (available in your posting spec or dashboard).
Authorization header:
| Parameter | Type | Required | Description |
|---|---|---|---|
offerCampaignId | string | Yes | The unique ID of the offer campaign |
| Parameter | Type | Required | Description |
|---|---|---|---|
transaction_id | string | Yes | The transaction ID returned by the original lead submission |
first_name | string | No | Updated first name |
last_name | string | No | Updated last name |
email | string | No | Updated email address |
mobile | string | No | Updated 10-digit mobile number |
address | string | No | Updated street address |
city | string | No | Updated city |
state | string | No | Updated state abbreviation |
zip_code | string | No | Updated ZIP code |
date_of_birth | string | No | Updated date of birth (YYYY-MM-DD) |
sub1 – sub5 | string | No | Updated publisher sub-parameters |
adv1 – adv5 | string | No | Updated advertiser sub-parameters |
loan_amount, credit_score) can also be included in the body. Only fields present in the request body are updated; existing field values are not overwritten if omitted.
| HTTP Code | Lead Status | Description |
|---|---|---|
| 201 | accepted | Lead was updated and re-evaluated successfully |
| 201 | unsold | Lead was updated but not re-distributed |
| 400 | missingField | transaction_id or another required enrichment field is missing |
| 400 | invalidField | A field failed format validation |
| 400 | rejected | The lead record was not found or the update was rejected |
| 401 | rejected | Invalid or missing enrichment token |
| 405 | rejected | HTTP method not allowed |
| 500 | rejected | Internal server error |
transaction_id is mandatory. The update endpoint uses it to locate the original lead record. Always store this value from the initial form submission response.Your campaign unique ID
Lead details to add to the campaign
Lead's Transaction ID, Which was generate from click script of Pingtree
First name of the lead
Last name of the lead
Email of the lead
Mobile of the lead
Address of the lead
State of the lead
City of the lead
Zip Code of the lead
Date of Birth of the lead