November 2026

Reversing 10,000 instant payments, back to the cent

On FedNow and RTP, a credit is final once the receiving bank accepts it. There's no chargeback and no recall that undoes it automatically. So what does "reversing" a payment even mean?

Inside the receiving bank, it means something very concrete. Suppose a batch of incoming payments was posted, and then something turns out to be wrong: a bad file, a duplicate run, a configuration mistake. The bank has to take back every posting, restore every balance, tell the downstream systems, and record that the money has to be returned to the sender. And it has to do that without making the books worse than they were.

What a reversal actually touches

For a single incoming payment, undoing it means walking back each step that ran:

Forward stepReverse step
Debit the bank's settlement (prefunded) positionCredit it back and correct the day's totals
Credit the customer's accountDebit it back
Send the acceptance (pacs.002) to the networkIt's already final, so flag the payment for a return (pacs.004)
Notify the core or customer (camt.054 credit)Cancel it if unsent, otherwise send a matching debit notice
Write the audit trailAdd a reversal entry; never delete the original

The order matters. Steps are undone newest first, each in its own transaction, and each reversal writes its own settlement record, so the log always nets to zero per payment.

The test

I ran this on my own engine: send 10,000 payments, let them complete, then reverse all of them from the operator screen. The bar was simple. Every balance had to come back to exactly where it started, to the cent.

  • All 10,000 payments reversed in 84 seconds on a single node, about 119 per second.
  • All of them came from just two sending banks, so thousands of payments were competing for the same two accounts. That's close to the worst case for locking.
  • Running the same reversal a second time changed nothing: every payment was skipped because it was already reversed.
  • The same result held on both rails, FedNow and RTP.

The bug the test found

The first runs were not clean. Reversing and then reprocessing the same payments worked once, but the second reversal took back twice the money, and the third took back three times as much.

The cause was small. When a payment was reprocessed, the step that reads the incoming message ran again and stored a second copy of its details. Forward processing only looked at the new copy, so everything looked fine. The next reversal added up every copy.

The fix was to make that step do nothing if the payment had already been read. The lesson is broader:

Any step that can run again has to be safe to run again. A reversal tests that harder than anything else, because it's the only time the system looks back at everything it has done.

Why this matters for a bank

Nobody plans to reverse 10,000 payments. But when something does go wrong in a 24/7 system, the question isn't whether you can fix it, it's whether you can fix it quickly, completely and with a clean audit trail. That's worth testing before go-live, not during an incident.

Measured on development hardware, not a production environment. More notes →