Offer Campaign APIs
Click Listing API
The Click Listing API retrieves click listing data or offers linked to leads. This is particularly useful for showcasing available offers or tracking user interactions with campaigns.
GET
cURL
Overview
The Click Listing API retrieves the set of offers (click listings) associated with a consumer’s lead submission. It is called after a lead has been accepted and returns a list of offers the consumer can click on, typically displayed on a results or thank-you page. Each offer includes a click-redirect URL, branding, and call-to-action details. This endpoint powers the offer wall that consumers see after form submission. It can be called directly from JavaScript or consumed server-side to build a custom offer display.Endpoint
| Segment | Description |
|---|---|
{cid} | The campaign unique ID |
{transaction_id} | The transaction ID returned from the lead submission |
Authentication
No token-based authentication is required. Thecid and transaction_id pair authenticates the request by scope.
Request Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
cid | string | Yes | Campaign unique ID |
transaction_id | string | Yes | Transaction ID from the lead submission response |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pid | string | No | Source unique ID for attribution tracking |
device | string | No | Consumer device type: desktop or mobile |
Example Request
Example Response
Response — No Offers Available
Error — Invalid Transaction ID
Click Redirect URL Structure
Each offer’sclickUrl follows this pattern:
Status Codes
| HTTP Code | Description |
|---|---|
| 200 | Offer list returned (may be empty) |
| 400 | Invalid cid or transaction_id |
| 500 | Internal server error |
Tips
- Call after lead submission. The click listing is populated once a lead is accepted. Call this endpoint immediately after receiving a successful submission response.
- Device targeting. Pass the
deviceparameter (desktopormobile) to receive only offers configured for that device type. Offers withdevice: "both"are always included. - Tracking clicks. Each offer’s
clickUrlautomatically records the click and handles the redirect — do not modify or reconstruct this URL. Clicks are tracked per impression and used for revenue reporting. - Iframe alternative. If you prefer a managed display, embed the Click Listing iFrame instead of building a custom offer wall with this API.
- CORS. This endpoint supports cross-origin requests, so it can be called directly from browser JavaScript on your landing page domain.
Path Parameters
Your campaign unique ID
Lead's Transaction ID, Which was generate from click script of Pingtree
cURL