Postback URL vs webhook: the difference, examples, and how to make one
Updated November 29, 2026 · Hoplytic team · 2 min read
Read the video transcript
What's the difference between a postback URL and a webhook?
A postback is a lightweight webhook for conversions. Networks almost all speak postback; shops more often send webhooks.
A postback is usually a GET with values in the address. A webhook is usually a POST with a JSON body. A postback uses a secret key in the URL; a webhook often uses a signature header.
Before the question mark is your tracker's address and private key. Then the network's macros map to your tracker's fields, starting with the click ID. Then the payout and the transaction ID.
The common mistake is a macro in the wrong case, so the network sends literal text. A generator picks the right names.
Hoplytic gives you a private postback URL, with ready-made lines for TUNE, Everflow, CAKE and Affise. It accepts GET, form POST or JSON, so webhook-style senders work too.
The full guide is right below. Hoplytic: ad tracking made simple.
If you've set up affiliate tracking you've met both words. They describe almost the same thing, and the difference matters mostly when you're choosing how a network or shop will report sales to you.
Short answer: a postback URL is a lightweight webhook for conversions. The network calls a URL you give it, usually a GET with the click ID and payout filled into the address. A "webhook" usually means a POST with a JSON body. Affiliate networks almost all speak postback; shops and custom systems more often send webhooks. A good tracker accepts both.
Side by side
| Postback URL | Webhook | |
|---|---|---|
| Typical request | GET, values in the URL | POST, JSON body |
| Values | Network macros like {aff_sub}, {payout} | A JSON document defined by the sender |
| Security | A secret key in the URL | Often a signature header |
| Who uses it | Affiliate networks (TUNE, Everflow, CAKE, Affise, MaxBounty…) | Shops, payment systems, custom apps |
| Setup | Paste one line into the network | Usually code on one side |
Postback URL examples
The part before ? is your tracker's address with your private key. The rest maps the network's macros to the tracker's fields.
TUNE / HasOffers https://go.yoursite.com/pb/KEY?click_id={aff_sub}&payout={payout}&txid={transaction_id}
Everflow https://go.yoursite.com/pb/KEY?click_id={sub1}&payout={payout_amount}&txid={conversion_id}
CAKE https://go.yoursite.com/pb/KEY?click_id=#s1#&payout=#price#&txid=#leadid#
Affise https://go.yoursite.com/pb/KEY?click_id={sub1}&payout={sum}&status={status}&txid={transactionid}
Admitad https://go.yoursite.com/pb/KEY?click_id=[[[subid]]]&payout=[[[payment_sum]]]&status=[[[payment_status]]]&txid=[[[action_id]]]
Macro names depend on which sub-ID field you used for the click ID, and networks change them now and then, so check the network's postback documentation. More on each part in the postback URL guide.
Using a postback URL generator
A generator builds the line for you: pick the network, and it inserts the right macro names for the sub-ID that holds your click ID, the payout and the status. That avoids the most common mistake, a macro in the wrong case or for the wrong field, which makes the network send the literal text {aff_sub} instead of a value. See postback not working if sales still don't arrive.
When a webhook is the better fit
- You run your own shop or SaaS and want to report sales from your backend.
- You need to send many fields (order items, customer type) or batches.
- The sender only supports JSON (some newer networks do, Takeads for example).
For those, an API endpoint that accepts JSON is cleaner than building a GET URL.
On Hoplytic
Every account gets a private postback URL, hosted for you, with ready-made lines for TUNE, Everflow, CAKE, Affise, MaxBounty, Admitad and Digistore24 under Postback. It accepts GET, form POST or JSON, so webhook-style senders work too. A repeated transaction ID updates the sale (pending → approved) instead of counting it twice. For your own system, the sales API takes up to 500 sales per request with an API key.
Questions people ask
Is a postback the same as a webhook?
A postback is a kind of webhook. Both are a server calling a URL when something happens. In affiliate marketing, a postback is usually a simple GET request with values in the URL (click ID, payout), while 'webhook' usually means a POST with a JSON body and often a signature.
What is an example of a postback URL?
https://go.yoursite.com/pb/YOUR_KEY?click_id={aff_sub}&payout={payout}&status={status}. The network replaces {aff_sub} with the click ID it received and {payout} with the commission when it calls the URL.
How do I generate a postback URL?
Your tracker gives you a base URL with your private key; you add the network's macros for click ID, payout and status. A postback URL generator does that for you per network, so the macro names are right.
More in Conversion tracking
Also: tracking glossary · ad platform macros · Markdown copy