A refund is a new, independent transaction: the transaction-type digits of the DE3 processing code are 20 (refund / credit). It has its own message, its own amount and its own clearing record, and it moves money the other way.
A reversal cancels a message that was already sent (0400/0420). DE90 (original data elements) is a fixed 42-character block carrying the original message's MTI, STAN, transmission time and institution IDs — the reversal states which message it cancels. A chargeback is a third path, initiated by the issuer, carried on Mastercard as 1442.
A refund message carries no such field; at the message level it is just another ordinary transaction. Landing it on the right purchase takes a field that both messages carry with the same value.
| Key | Generated by | What the rules guarantee | When it fails to match |
|---|---|---|---|
| DE38 Approval code |
Issuer, returned in the authorization response | an 6. Mastercard's public rules require that for a transaction authorized on its network, DE38 of the First Presentment/1240 carries the same value as DE38 of the related 0110 response |
Six alphanumeric characters, generated by each issuer itself and reused after a while; the rules give no cross-issuer, cross-time uniqueness guarantee. Some refunds go straight to clearing without being authorized at all — those carry no approval code, so there is nothing to compare |
| DE37 Retrieval reference number |
Assigned by the acquirer | an 12. Used to trace one transaction across systems; stays consistent across request, response and reversal |
Numbering schemes are the acquirer's own, so uniqueness is not guaranteed across institutions; a refund is a new transaction and gets its own RRN, different from the purchase's |
| DE31 Acquirer reference data (ARD/ARN) |
Acquirer | The clearing-side trace number; used to find the transaction when there is a dispute or someone requests the receipt | A refund carries its own ARD. Note also that DE31 in an authorization message means acquirer settlement fee — a completely different thing from acquirer reference data in a clearing file. Same field number, but the two sides cannot be read the same way |
| TID Visa Transaction Identifier |
Visa, returned in the authorization response | Visa permits a merchant to send the original purchase's TID in the refund's authorization request; Visa returns the same TID in the response, and the merchant submits that value in settlement | Relies on the merchant or payment service provider putting it on the refund; if they do not, the two records have nothing in common. Only Visa has this field |
| TLID Mastercard Transaction Link Identifier |
Mastercard, issued with the authorization response | 22 alphanumeric characters. Every lifecycle event of the same transaction shares one value — authorization, capture, refund, chargeback | A newer mechanism — acquirers and payment service providers only started using it around 2026, so older data has no such field. Only Mastercard has it |
DE38 and DE37 keep the same field number and the same meaning on both the authorization and clearing sides, so they read straight off. STAN vs RRN covers why RRN travels across systems better than STAN, and the way STAN wraps around.
Visa's TID is 15 digits and sits in TCR5, positions 4–19 of a BASE II / CTF record — not in TCR0. Both the purchase (TC05) and the credit (TC06) carry it; whether those two TCR5s hold the same value is exactly what determines if the chain is intact.
Mastercard's TLID is issued on the 0110/0210 response and lands in DE105 of the First Presentment/1240. DE105 is reserved for ISO in the 1987 standard with no assigned meaning; the scheme has taken the position over — see the DE105 example in the field reference, and Mastercard authorization vs clearing for fields that move between message families.