Skip to main content
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 by transaction_id and the campaign’s offer campaign ID.

Endpoint

Replace {offerCampaignId} with the unique identifier of the offer campaign (available in your posting spec or dashboard).

Authentication

Include the enrichment token in the Authorization header:
The enrichment token is distinct from the standard form API token and is listed separately in your posting specification.

Request Parameters

Path Parameters

Body Parameters (JSON)

Any campaign-specific custom fields (e.g. 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

Tips

  • 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.
  • 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

cid
string
required

Your campaign unique ID

Body

application/json

Lead details to add to the campaign

transaction_id
string
required

Lead's Transaction ID, Which was generate from click script of Pingtree

first_name
string

First name of the lead

last_name
string

Last name of the lead

email
string

Email of the lead

mobile
string

Mobile of the lead

address
string

Address of the lead

state
string

State of the lead

city
string

City of the lead

zip_code
string

Zip Code of the lead

date_of_birth
string

Date of Birth of the lead

Response

Lead successfully updated

status
string

Status code of API response

type
string

Type of API response which can be success or error

message
string

Message of API response