Postback URL
A postback is how a network tells TrafficTaps that a sale happened. This page explains every part of the URL.
What it is
A postback (also called an S2S or server-to-server postback) is a web request that a network's server sends to TrafficTaps when a conversion happens. It carries the click ID, so TrafficTaps can attach the sale to the right visit.
Why it matters
Postbacks come from the network's server, not the visitor's browser. That makes them reliable: ad blockers, closed tabs and blocked cookies do not stop them. They are the main way to track affiliate sales.
Step by step
Copy the full URL from the app
Go to Affiliate Networks and open your network. Copy the whole postback URL. The app fills in your own token. This is the format:
Postback URL formathttps://trk.traffictaps.com/api/postback?token=<WORKSPACE_TOKEN>&cid={clickid}&payout=<amount>¤cy=<code>&txid=<unique id>&event=<event key>&status=<status>Replace the placeholders with the network's macros
Each placeholder in angle brackets, such as
<amount>, becomes the macro that your network uses for that value. The network guides list them for ClickBank, Digistore24 and MaxBounty.Paste it into the network
Use the network's postback or S2S setting.
Test
Send a test postback or make a test sale and check Reports.
Example
| Parameter | Required? | What it does |
|---|---|---|
token | Yes | Your workspace token. It is different for every workspace and secret. Anyone who has it can send conversions into your workspace, so never post it publicly. |
cid | Yes, most important | The click ID of the visit. This is how the sale is matched to the visit. |
payout | Yes, most important | The commission you earn for this sale. |
currency | Recommended | The currency code of the payout, such as USD or INR. |
txid | Yes, most important | A unique ID for this sale. TrafficTaps uses it to block duplicates. |
event | Optional | The key of a conversion event, such as purchase or lead. If left out, a default is used. |
status | Optional | The state of the conversion, for example to mark a refund. |
The three that matter most are cid, payout and txid. event and status are optional.
https://trk.traffictaps.com/api/postback?token=<WORKSPACE_TOKEN>&cid=7f3a9c&payout=23.50¤cy=USD&txid=ABC123&event=purchase&status=approvedCommon mistakes
- Typing the URL by hand. Always copy the full URL from the app. The app puts your token in.
- Posting the token in a forum or support chat. It is secret. If it leaks, ask support to rotate it.
- Leaving macros as placeholders. If the network sends
<amount>as text, the payout is wrong. - Missing
txid. The same sale can be counted twice.
Related pages
Stuck? Write to support@traffictaps.com with your campaign name and a sample click ID.