Offer Campaign APIs
Update Lead API
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.
POST
cURL
Overview
The Update Lead API enriches or corrects an existing lead record in a campaign. Use it when additional data becomes available after initial submission — for example, after a secondary form step, a phone verification flow, or a credit check callback. The lead is identified bytransaction_id and the campaign’s offer campaign ID.
Endpoint
{offerCampaignId} with the unique identifier of the offer campaign (available in your posting spec or dashboard).
Authentication
Include the enrichment token in theAuthorization header:
Request Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
offerCampaignId | string | Yes | The unique ID of the offer campaign |
Body Parameters (JSON)
| 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.
Example Request
Example Responses
Success — Lead Updated
Error — Missing Transaction ID
Error — Lead Not Found
Error — Unauthorized
Status Codes
| 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 |
Tips
transaction_idis mandatory. The update endpoint uses it to locate the original lead record. Always store this value from the initial form submission response.- Partial updates are safe. Only send the fields you want to change. Fields not included in the request are left unchanged.
- Re-distribution: Depending on campaign settings, updating a lead may trigger re-distribution to buyers. Check with your campaign manager if re-posting behaviour is required.
- Enrichment token vs form token: These are different credentials. Using the wrong token returns a 401 error.
Path Parameters
Your campaign unique ID
Body
application/json
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
cURL