Global Event Postback API
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.
Documentation Index
Fetch the complete documentation index at: https://docs.pingtree.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Global Event Postback API fires a conversion or tracking event across all campaigns within an organization using a single endpoint. It is designed for buyers and third-party systems that receive leads from multiple campaigns but want to post conversion data back using one consistent URL — without needing a different endpoint per campaign. Pingtree resolves the campaign and lead from thetransaction_id automatically. No cid is required in the request body.
Endpoint
{org-id} with your organization’s unique ID (available in your Pingtree dashboard under account settings).
Authentication
No token-based authentication header is required. Theorg-id path parameter scopes the request to your organization.
Request Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org-id | string | Yes | Organization unique ID |
Body Parameters (JSON)
| Parameter | Type | Required | Description |
|---|---|---|---|
event_id | string | Yes | Unique event identifier as configured in the campaign event settings |
transaction_id | string | Yes | Transaction ID of the lead record to fire the event against |
revenue | number | Conditional | Revenue amount for conversion events |
pid | string | No | Source unique ID (defaults to organic if omitted) |
Example Request
Non-Conversion Event
Example Responses
Success — Conversion Event Fired
Success — Tracking Event Fired
Error — Missing Event ID
Error — Missing Transaction ID
Error — Lead Not Found
Error — Invalid Event ID
Error — Duplicate Event
Status Codes
| HTTP Code | Description |
|---|---|
| 200 | Event fired successfully |
| 400 | Missing or invalid event_id, transaction_id, or revenue |
| 403 | Source inactive or concurrent event lock in progress |
| 500 | Internal server error |
Comparison with Campaign-Specific Event Postback
| Feature | Global Event Postback | Campaign Event Postback |
|---|---|---|
| Endpoint | /api/event/global/{org-id} | /api/event/trigger |
Requires cid | No | Yes |
| Scope | All campaigns in the organization | Single campaign |
| Ideal for | Buyers posting back across multiple campaigns | Campaign-specific event tracking |
| Authentication | org-id in path | cid in request body |
Tips
- Preferred endpoint for buyers. If you are a buyer receiving leads from multiple campaigns within the same organization, use this global endpoint to avoid managing per-campaign event URLs.
- Event ID must exist in the matched campaign. Even though you do not pass a
cid, Pingtree resolves the campaign from thetransaction_id. Theevent_idmust be configured in that campaign’s event settings. - Revenue is required for conversion events. If the matched event is a conversion type, omitting
revenuereturns a 400 error. - Deduplication. If the campaign event has duplicate conversion disabled, sending the same
event_id+transaction_ida second time returns a 400 duplicate error. - Postback URL format. When configuring this as a server-to-server postback URL in a third-party platform, use a template like:
https://api.pingtree.com/api/event/global/org_5f1a2b3c?event_id=sale_completed&transaction_id={transaction_id}&revenue={payout}
Path Parameters
Your organization ID
Body
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.