StmtRecon
ISO 20022 return and status reasons

MD06 ISO 20022 reason — Refund requested by end customer

MD06 identifies refund requested by end customer in the return detail of a camt.053 booking. Reopen the collected receivable against the booked refund and retain the customer case reference.

Open this sample in Air-Gapped Converter

Worked bank sample

Synthetic bank data for local reconciliation.

<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.053.001.08"><BkToCstmrStmt>
<GrpHdr><MsgId>STMT-MD06</MsgId><CreDtTm>2026-11-30T17:00:00Z</CreDtTm></GrpHdr>
<Stmt><Id>CLOSE-MD06</Id><CreDtTm>2026-11-30T17:00:00Z</CreDtTm>
<Acct><Id><Othr><Id>EUR-OPERATING</Id></Othr></Id><Ccy>EUR</Ccy></Acct>
<Bal><Tp><CdOrPrtry><Cd>OPBD</Cd></CdOrPrtry></Tp><Amt Ccy="EUR">1000.00</Amt><CdtDbtInd>CRDT</CdtDbtInd><Dt><Dt>2026-11-30</Dt></Dt></Bal>
<Bal><Tp><CdOrPrtry><Cd>CLBD</Cd></CdOrPrtry></Tp><Amt Ccy="EUR">875.00</Amt><CdtDbtInd>CRDT</CdtDbtInd><Dt><Dt>2026-11-30</Dt></Dt></Bal>
<Ntry><NtryRef>RET-MD06</NtryRef><Amt Ccy="EUR">125.00</Amt><CdtDbtInd>DBIT</CdtDbtInd><Sts><Cd>BOOK</Cd></Sts>
<BookgDt><Dt>2026-11-30</Dt></BookgDt><AcctSvcrRef>BANK-MD06-42</AcctSvcrRef><BkTxCd><Prtry><Cd>RETURN</Cd><Issr>REPORTING BANK</Issr></Prtry></BkTxCd>
<NtryDtls><TxDtls><Refs><EndToEndId>REFUND-CASE-18</EndToEndId></Refs>
<Amt Ccy="EUR">125.00</Amt><CdtDbtInd>DBIT</CdtDbtInd><RtrInf><Rsn><Cd>MD06</Cd></Rsn></RtrInf>
</TxDtls></NtryDtls></Ntry></Stmt></BkToCstmrStmt></Document>

The sample starts at EUR 1,000.00. Its debit reduces booked cash to EUR 875.00. Match REFUND-CASE-18 to the original open item and keep RET-MD06 as the new statement entry reference.

Read the reason at transaction level. A camt.054 notification can carry the same return detail under Ntfctn/Ntry. Match its bank reference to the final camt.053 booking before posting cash. In pain.002, StsRsnInf explains processing status and carries no booked cash amount.

Field anatomy

Field or pathMeaning in this fileType or formatERP or Excel import risk
Ntry/NtryDtls/TxDtls/RtrInf/Rsn/CdRefundRequestByEndCustomerExternalReturnReason1CodeA file-wide lookup can assign MD06 to a sibling TxDtls with a different original payment reference.
TxDtls/Refs/EndToEndIdREFUND-CASE-18Max35TextUsing a statement ID as the clearing key matches unrelated items in the same batch.
Ntry/CdtDbtInd and AmtEUR 125.00 leaves the reporting account.DBIT or CRDT and currency amountInferring direction from the reason can reverse the journal sign.

Root cause and ERP fix

  1. Cash application still treats the collection as final. Match the refund debit to the original receipt.
  2. A separate commercial credit note already settled the dispute. Check customer ledger offsets before raising a second receivable.
  3. A refund was reported after period close. Record the actual booking date and document the cross-period adjustment.

Inspect with the MIT parser

Save the sample as iso-20022-reason-md06.xml and the script as inspect.mjs. With @stmtrecon/parser installed, run node inspect.mjs iso-20022-reason-md06.xml.

import { readFile } from 'node:fs/promises';
import { inspect } from '@stmtrecon/parser';
const text = await readFile(process.argv[2], 'utf8');
const report = inspect(text, { transactions: true });
for (const entry of report.transactions) {
  for (const detail of entry.details.filter(d => d.returnReason === 'MD06')) {
    console.log(detail.endToEndId, detail.returnReason, entry.amount);
  }
}
Open this sample in Air-Gapped Converter

Export a multi-sheet Excel workbook with balance checks and batch reconciliation on your device. No Node installation or cloud upload is required.

npm package · SDK source · Format reference

Related ISO 20022 return and status reasons

Export your full workbook

Purchases are currently unavailable. Existing licenses can be activated offline.