Postback URL

A postback is how a network tells TrafficTaps that a sale happened. This page explains every part of the URL.

2 min readUpdated 11 November 2026

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

  1. 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 format
    https://trk.traffictaps.com/api/postback?token=<WORKSPACE_TOKEN>&cid={clickid}&payout=<amount>¤cy=<code>&txid=<unique id>&event=<event key>&status=<status>
  2. 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.

  3. Paste it into the network

    Use the network's postback or S2S setting.

  4. Test

    Send a test postback or make a test sale and check Reports.

Example

ParameterRequired?What it does
tokenYesYour 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.
cidYes, most importantThe click ID of the visit. This is how the sale is matched to the visit.
payoutYes, most importantThe commission you earn for this sale.
currencyRecommendedThe currency code of the payout, such as USD or INR.
txidYes, most importantA unique ID for this sale. TrafficTaps uses it to block duplicates.
eventOptionalThe key of a conversion event, such as purchase or lead. If left out, a default is used.
statusOptionalThe 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.

Example
https://trk.traffictaps.com/api/postback?token=<WORKSPACE_TOKEN>&cid=7f3a9c&payout=23.50¤cy=USD&txid=ABC123&event=purchase&status=approved

Common 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.

Stuck? Write to support@traffictaps.com with your campaign name and a sample click ID.