Affiliate network API vs postback: which one should report your sales?

November 28, 2026 · Hoplytic team · 5 min read

The short version: this guide in 87 seconds.
Read the video transcript

Network API or postback: which should you use to track affiliate sales? Usually both.

With a postback, the network calls your tracker. With an API sync, your tracker asks the network. A postback arrives seconds after the sale. An API sync arrives on the next run. An API picks up reversals and approvals on the next sync. A postback only does if it fires again. A failed postback is silent. A failed API shows an expired key or permission error.

Choose a postback when you send sales back to ad platforms, when you test offers quickly, or when the network has no publisher API.

Choose the API when the network sends no postbacks, when reversals matter, when you promote many offers, or when you want history.

A postback can fail without anyone noticing. An API sync catches those and updates statuses, while the postback gives you speed. Just match sales by the network's transaction ID, so a sale arriving twice counts once.

Use the least access that works: a read-only key. Check the first sync by comparing last week's sales with the network's report. Watch for expiry, and replace a leaked key at once.

Hoplytic gives you one hosted postback URL, plus API connections that sync hourly. Using a postback and an API on the same network counts each sale once.

The full guide is right below. Hoplytic: ad tracking made simple.

Key points

There are two automatic ways for an affiliate network to tell your tracker about a sale. It can call your tracker (a postback), or your tracker can ask it (an API sync). They are not competitors. Each covers the other's blind spots.

Short answer: use a postback where the network offers one, because it is instant and works per offer. Add an API connection where the network has a publisher reporting API, because it catches missed postbacks and later status changes such as reversals. For networks with neither, upload their report.

How each one works

Postback. You paste your tracker's URL into the network, with the network's tokens in it, for example https://your-tracker.example/pb/KEY?click_id={aff_sub}&payout={payout}&txid={transaction_id}. When a sale happens, the network fills the tokens and calls the URL. Your tracker matches the click ID and records the sale. The full mechanics are in what is a postback URL.

API sync. You give your tracker a read-only API key from your network account. On a schedule, the tracker asks the network's reporting API for new and changed transactions, reads the sub-ID that carries your click ID, and records or updates each sale.

Side by side

PostbackAPI sync
SpeedSeconds after the network records the saleOn the next sync run (hourly, daily)
Who starts itThe networkYour tracker
SetupPer network, sometimes per offerOnce per account, covers every offer
Status changesOnly if the network fires again on approval or reversalPicked up on the next sync
Past salesNever; only sales after setupCan import history (how far back depends on the API)
When it failsSilently: a wrong token, a missing offer, a tracker that was downVisibly: an expired key or permission error, which the tracker can show
AvailabilityCommon on CPA platforms (TUNE, Everflow, CAKE, Affise)Common on big retail networks (Awin, CJ, Impact, Partnerize)

When the postback is the better choice

When the API is the better choice

Why running both is often best

A postback can fail for reasons nobody notices: a new offer without the postback, a token typo, a network outage. An API sync acts as the safety net, and it updates statuses the postback never reports. Meanwhile the postback gives you speed. The only requirement is that your tracker recognizes the same sale arriving twice. That means matching by the network's transaction ID, not by payout or time. See duplicate conversions for why.

Setting up an API connection well

  1. Find the right credentials. Networks usually need two things: an account or publisher ID and a token or key. They're under account settings, API, or developer tools.
  2. Use the least access that works. Your tracker only needs to read transactions. If the network lets you choose permissions, pick reporting or read-only.
  3. Check the first sync against the network. Compare last week's sales count in the tracker with the network's own report. They should match, apart from sales whose sub-ID was empty.
  4. Watch for expiry. Some tokens expire or are revoked when you change your password. A tracker that shows the connection's status saves you from finding out at the end of the month.
  5. Replace a leaked key at once. Create a new one in the network, revoke the old one, and reconnect.

The things an API can't fix

Which networks offer what

As a rough guide: TUNE (HasOffers), Everflow, CAKE, Affise, MaxBounty, Admitad and Digistore24 send postbacks; TUNE, Everflow, CAKE and Affise also have affiliate APIs. Awin, CJ, Impact, Partnerize and ClickBank are typically API or report only. Rakuten, Amazon Associates and many smaller retail networks are mostly report download. Networks change what they offer, so check your network's tools or developer pages. Each network's sub-ID name is in sub-ID parameters by network.

How it works in Hoplytic

You get one hosted postback URL with ready-made lines for TUNE, Everflow, CAKE, Affise, MaxBounty, Admitad, Digistore24 and Takeads. API connections exist for TUNE, Everflow, Awin, Partnerize, ClickBank, Impact, CJ, Affise, CAKE and Takeads: they sync every hour, import the last 90 days when you connect, and show "Needs attention" with the reason when a sync fails. Some connections are marked beta because they haven't been confirmed with a live account yet; report upload always works as a fallback. Using a postback and an API on the same network counts each sale once, matched by the transaction ID.

Pick your network and paste the keys it asks for.

Questions people ask

Is an API connection slower than a postback?

Yes, by design. A postback arrives seconds after the network records the sale; an API sync only sees it on its next run, for example within the hour.

Do I need my affiliate manager to set up an API connection?

Usually not. Most networks let publishers create an API key or token in their own account settings. Some only give reporting access on request.

Will I get double sales if I use both?

Not if your tracker matches by transaction ID. The same sale arriving by postback and by API should be one conversion, with the latest status.

More in Conversion tracking

Also: tracking glossary · ad platform macros · Markdown copy