What is a postback URL? A plain-English guide for affiliate marketers
What a postback URL is, what each part of it means, how macros get replaced, and the mistakes that stop conversions from being counted.
Updated on 21 Nov 2026
A postback URL is an address that one server calls to tell another server that something happened. In affiliate marketing, it is how an advertiser tells the network "this click turned into a sale", and how the network tells the affiliate "you earned a commission".
It's also called S2S (server-to-server) tracking, because no browser is involved.
The parts of a postback URL
https://track.example.com/postback?token=AB12CD&click_id=01JD3E28JT97&txn_id=ORDER-881&amount=49.90&status=approved
| Part | What it is |
|---|---|
https://track.example.com/postback |
The network's address that receives conversions |
token=AB12CD |
A secret that proves the call comes from this advertiser |
click_id=01JD3E28JT97 |
The click that brought the customer |
txn_id=ORDER-881 |
The advertiser's order or lead ID, to avoid duplicates |
amount=49.90 |
The sale value, for percentage commissions |
status=approved |
Whether the conversion counts, waits or is cancelled |
Macros: the values in braces
You rarely write a postback URL with real values. You write it with macros, placeholders that the sending system replaces for each conversion:
https://track.example.com/postback?token=AB12CD&click_id={clickid}&txn_id={order_id}&amount={total}
The tricky part: each platform has its own macro names. The advertiser uses their placeholders ({order_id}, {total}…), the network uses its own in links ({click_id}). See postback macros.
The full loop
- The affiliate's link sends the visitor through the network, which creates a click ID.
- The network forwards the visitor to the advertiser with the click ID in the URL.
- The advertiser saves the click ID with the sign-up or order.
- On conversion, the advertiser's server calls the network's postback URL with that click ID.
- The network credits the affiliate and, if the affiliate set one up, calls the affiliate's own postback URL.
Mistakes that break postbacks
- The macro was never replaced: the network receives the literal text
{clickid}. Usually the advertiser used the wrong macro name. - The click ID was lost: the landing page didn't keep it until the thank-you page.
- No transaction ID: a second sale from the same click is rejected as a duplicate.
- Called from the browser: the secret token becomes visible to anyone. Postbacks belong on the server.
- Wrong token or tracking domain: copied from another advertiser or an old setup.
Check a postback URL in seconds
Paste it into the free postback URL checker. It flags missing parameters, unreplaced macros and other common errors before you send it to an advertiser.
For the RastroAff setup step by step, see advertiser postback.