ISO 8583 Parser
Free · Daily basics · 3 min · Updated 2026-08-07

STAN vs RRN: What's the Difference?

Both are "transaction numbers" and beginners mix them up. In short: STAN is a short-term, same-day trace number; RRN is a long-term, cross-system tracking reference.

Side by side

STAN (DE11)RRN (DE37)
Full nameSystem Trace Audit NumberRetrieval Reference Number
Length6 digits12 characters
Set bythe originator — whoever sends the request (terminal/acquirer)the acquirer, and carried unchanged end to end
Unique forone day, per acquirer/hostthe life of the transaction, across systems
Main usematching a response or reversal to its request in flightrefunds, disputes, reconciliation — quoting a transaction to a counterparty

The trap: STAN wraps around

Six digits means 1,000,000 values, and it resets daily. A busy acquirer can wrap within a single day — and at midnight the numbers start again regardless. So a STAN on its own is not a key. Match on STAN combined with the acquirer ID (DE32) and the transmission date (DE7); anything less will eventually pair a response with the wrong request, and the symptom (one customer's approval landing on another's order) is ugly and hard to reproduce.

This is also why a reversal carries DE90 with the original STAN, the original date and the original acquirer ID packed together: any one of them alone would be ambiguous.

Which one to quote

When you contact a scheme, an acquirer or an issuer about one specific transaction, give them the RRN. It is the identifier that survives the whole lifecycle — authorization, clearing, settlement, chargeback — and it is what their systems index on. Quoting a STAN will usually get you asked for the RRN anyway.

Some networks encode structure into the RRN (for instance a year digit, day-of-year, and a terminal or trace component), but never parse it for meaning: the layout is scheme-specific and not guaranteed. Treat it as an opaque string.

Remember: STAN is like "today's queue number" (valid for the day, matches responses/reversals); RRN is like a "tracking number" (used long-term to retrieve the transaction across systems).

👉 Related: ISO 8583 field reference (DE11 / DE37).

Read next