Set up your postback
Have Affilinext notify your own tracker every time you earn a conversion.
A postback (server-to-server or S2S notification) is a URL that Affilinext calls on your server whenever one of your conversions is recorded. It's how your own tracker, ad platform or spreadsheet learns about conversions in real time.
Add a global postback
- Open Postbacks in the left menu.
- On the Global Postbacks tab, paste your postback URL with the macros you need.
- Save. The postback now fires for conversions on every campaign you run.
Example:
https://tracker.example.com/postback?cid={click_id}&txid={transaction_id}&payout={payout}&status={status}Your URL must include at least {click_id} or {conversion_id} so you can tell conversions apart.
Available macros
| Macro | Replaced with |
|---|---|
{click_id} | Unique click identifier |
{campaign_id} | Campaign / offer ID |
{publisher_id} | Your publisher ID |
{payout} | Your payout for this conversion |
{currency} | Currency code, e.g. USD |
{status} | approved, pending or rejected |
{event_name} | Goal or event name |
{conversion_id} | Affilinext conversion ID |
{transaction_id} | The advertiser's transaction ID |
{sub1} – {sub5} | The sub IDs from your tracking link |
{country} | Visitor's country code |
{timestamp} | Conversion time (ISO 8601) |
The full list is always available on the Macro Reference tab.
Delivery and retries
If your server doesn't answer with a success status (2xx or 3xx), or takes too long, Affilinext retries automatically with increasing delays. Every attempt — the exact URL called, your server's response and the retry count — is listed on the Postback Logs tab.
Next: Test your postback.