The Event Postback API is designed to trigger events that track and update lead data. It also supports converting leads into successful conversions, ensuring real-time data synchronization and improved campaign insights.
revenue value can be passed to trigger payout processing and buyer postbacks.
The endpoint is typically called from your webflow or landing page JavaScript using the Pingtree SDK, but it can also be called server-side.
cid field in the request body.
| Parameter | Type | Required | Description |
|---|---|---|---|
cid | string | Yes | Campaign unique ID |
event_id | string | Yes | Unique event identifier configured in the campaign event settings |
transaction_id | string | Yes | Transaction ID of the lead this event belongs to |
pid | string | No | Source unique ID. Defaults to organic if omitted |
revenue | number | Conditional | Revenue amount for conversion events (required when the event is a conversion type) |
| HTTP Code | Description |
|---|---|
| 200 | Event fired successfully |
| 400 | Missing or invalid event_id, transaction_id, cid, or revenue |
| 403 | Source is inactive or concurrent event in progress |
| 500 | Internal server error |
event_id value must match an event defined in the campaign’s event settings. Contact your campaign manager to confirm available event IDs.revenue. If the event is marked as a conversion type in the campaign settings, omitting revenue returns a 400 error.event_id + transaction_id combination a second time returns a 400 duplicate error. Enable isDuplicate in event settings to allow repeated firing.transaction_id + event_id pair to prevent race conditions from duplicate HTTP requests. Retries within this window return a 403.Your campaign ID
Lead details to add to the campaign
Lead's Transaction ID, Which was generate from click script of Pingtree
Event ID which you want to fire for the lead
clid of the offer
Amount is conversion amount for lead
PID is partner ID
conversion_date should be as following, 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS'
conversion_timezone should be as following, 'PST'(For Pacific Stand Time (UTC-8)), 'EST'(For Eastern Standard Time (UTC-5)), 'CST'(For Central Standard Time (UTC-6)), 'MST'(For Mountain Standard Time (UTC-7)), 'AKST'(For laska Standard Time (UTC-9)), 'SST'(For Samoa Standard Time (UTC-11)), 'HST'(For Hawaii-Aleutian Time (UTC-10)), 'AST'(For Atlantic Standard Time (UTC−4)
Sub ID 1 of lead's partner tracking URL
Sub ID 2 of lead's partner tracking URL
Sub ID 3 of lead's partner tracking URL
Sub ID 4 of lead's partner tracking URL
Sub ID 5 of lead's partner tracking URL
Adv ID 1 of lead's partner tracking URL
Adv ID 2 of lead's partner tracking URL
Adv ID 3 of lead's partner tracking URL
Adv ID 4 of lead's partner tracking URL
Adv ID 5 of lead's partner tracking URL
UTM Source of lead's partner tracking URL
UTM Medium of lead's partner tracking URL
UTM Campaign of lead's partner tracking URL
UTM AdGroup of lead's partner tracking URL
UTM MatchType of lead's partner tracking URL
UTM Term of lead's partner tracking URL
UTM Content of lead's partner tracking URL
External Click ID of lead's partner tracking URL
UTM Creative of lead's partner tracking URL
UTM Placement of lead's partner tracking URL
TCPA Consent Date in YYYY-MM-DD format
TCPA consent field as 0 or 1
Cost of the lead
Cose Operation for of the lead's cost. Possible values are 'add', 'substract', and 'override'.
Adspend of the lead
Send minimum buying price to buyer, if buyer is ready to buy lead at min price or greater, then only we will sell lead
You can send any other lead details like first_name, last_name, address, etc. You can find all lead fields in the 'Field Management' Page inside your Pingree account.