A dark card with 2x, the revenue inflation a duplicated postback causes
Technology

Why a Sale Shows Up Twice: Postback Dedupe, Click IDs and Refunds

30 November 2026 · 7 min read · VOXA editorial

A postback is the one number in affiliate marketing that nobody can argue with: the network tells your tracker that a sale happened, and the tracker adds it to revenue. The trouble starts when the same sale is announced twice, or when a refund arrives as a new sale. Both are normal, and both quietly break the only arithmetic that decides whether a campaign is worth running.

The short answer: a postback arrives as a URL with a click id, a payout, an offer name, a transaction id and a status. The transaction id is what makes a sale unique, so it is the field to deduplicate on. Without it, a retried postback doubles your revenue, a refund counts as a second sale, and the ROI you read at the end of the week is wrong in the one direction that costs money.

What a postback actually is

Two systems talking to each other with no browser involved. Someone clicks your ad, the network stores a click id against that visit, and when the sale is confirmed the network calls a URL on your server with the details in the query string. Our own endpoint looks like this:

/pb?w=workspace&t=token&cid={clickid}&payout={payout}&offer={offer}&txid={transaction_id}&status=sale

Every curly brace is a field the network fills in. The click id ties the sale to the ad that produced it. The payout is what you get paid. The offer tells you which product sold. The transaction id is the network's own reference for that order. The status says whether this is a sale, a refund or a reversal.

That is the whole protocol. Which also means every bug in it comes from one of five fields, and the field that matters most is the one most people never look at.

Why the same sale shows up twice

Three causes, in the order we see them in support threads.

1. The network retried because your endpoint was slow

Postbacks are machine-to-machine calls with a timeout. If your endpoint takes longer than the network is willing to wait, the network assumes the call failed and sends it again. The sale is real. It is also now sitting in your tracker twice, and both copies have the same transaction id.

2. The status changed and arrived as a new event

A sale can be approved hours later, held for review, or reversed. Some networks send a second postback with the new status instead of updating the first one. If your tracker treats every call as a fresh conversion, a held sale becomes two sales and a reversal becomes a third.

3. The pixel and the postback both fired

If you run a browser pixel on the thank you page and a server postback from the network, you are counting the same purchase twice by design. The duplicate is not a bug in either system. It is a bug in how the two are joined.

The field that fixes all three

The transaction id. Two postbacks with the same transaction id are the same sale, no matter how many times they arrive or what their status says. So the rule is simple: store the transaction id as a unique key, and let a repeat call update the existing row instead of adding a new one.

Our own ledger does exactly that. The second call for the same transaction updates the payout and the status. A refund with the same transaction id flips the row to refunded and takes the money back out of revenue. Nothing is counted twice, and the conversion count does not move.

If a network does not send a transaction id, the fallback is the click id plus the payout plus the offer. It is weaker, because a customer who buys twice from the same click within a minute will collide. But it is better than nothing, and most networks do send the transaction id once you ask for it in the postback template.

What a duplicate costs you

Take a campaign doing ten sales a day at $40 each, with $250 of spend. Real revenue is $400 and the ROI is 60%. Now let three of those ten days produce a duplicate: the tracker reads $520 of revenue on that day and the ROI looks like 108%. You raise the budget on the strength of a number that does not exist.

The reverse is worse. A refund that arrives as a sale shows revenue that is still climbing while the bank balance is flat. Both errors have the same cause: an event was treated as a new fact when it was a repeat of an old one.

How to test your own setup in ten minutes

  1. Send a test sale. Any decent tracker or the checker will let you fire one postback with a payout you choose. Confirm the number moves by exactly that amount.
  2. Fire it again with the same transaction id. Revenue should stay the same and the conversion count should not move. If it doubles, you have found the bug.
  3. Send a refund for the same transaction. Revenue should drop by the payout and the row should read refunded. If a new sale appears instead, the status field is being ignored.
  4. Check the timezone. Postbacks are usually stamped in UTC. If your reports are grouped in local time, look for a sale that lands on the wrong day rather than assuming it was lost.
  5. Read the network's own template. Confirm which field you are mapping to the transaction id. A template that maps a payout to the transaction id, or leaves it empty, cannot deduplicate anything.

What this changes about your reporting

Once dedupe works, three numbers become trustworthy and they tell you different things. Revenue tells you what the offer earns. Spend tells you what you paid. Net profit is the difference, and ROI is that difference divided by spend. Before dedupe, all four are guesses made from a stream of events that may or may not be unique.

That is also why a tracker that only shows conversions is not enough. You need the row level view: one line per transaction, with its payout, its status and its date, so a refund is visibly the same order and not a new one.

The one rule worth keeping

Treat every postback as a claim about a sale, not as the sale itself. The transaction id is the claim number, and a claim can only be counted once. Everything else in the setup exists to make that possible: the click id ties it to the ad, the status tells you whether it survived, and the payout tells you what it was worth when it did.

Questions people ask

Do all affiliate networks send a transaction id?

Most do, but the field has different names: transaction_id, order_id or a conversion id. Check the postback template and map whichever one is unique per order.

Should I use a pixel or a postback?

A postback, when the network supports it. It does not depend on the buyer's browser, it survives an ad blocker, and it usually carries a transaction id you can deduplicate on.

How long should I keep the transaction id?

Long enough to cover a refund window, which in most offers is longer than the reporting month. A year of transaction ids costs almost nothing and saves you from a refund that looks like a new sale.

Why is my revenue lower after switching to a server tracker?

Because the old number was counting the pixel and the postback, and the same sale arrived twice. The lower number is the real one.

Related: what a banned account costs, why one rejected line becomes nine ads, and the postback ledger.