POST
/
api
/
lead
/
{cid}
curl --request POST \
  --url https://api.pingtree.com/api/lead/{cid} \
  --header 'Content-Type: application/json' \
  --data '{
  "transaction_id": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "<string>",
  "mobile": "<string>",
  "address": "<string>",
  "state": "<string>",
  "city": "<string>",
  "zip_code": "<string>",
  "date_of_birth": "<string>"
}'
{
  "status": "<string>",
  "type": "<string>",
  "message": "<string>",
  "isDeDupe": "<string>",
  "lead_status": "<string>",
  "redirect_url": "<string>",
  "buyer_type": "<string>",
  "buyer_name": "<string>",
  "buyer_response": "<string>"
}

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

201
application/json
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

isDeDupe
string

Flag for dedup which confirms that lead is duplicate or not

lead_status
string

Current status of lead which can be sold or unsold or new

redirect_url
string

Response Redirect URL of API response

buyer_type
string

Buyer response type for lead sold

buyer_name
string

Current buyer name for lead sold

buyer_response
string

Entire buyer response which we get from buyer's endpoint