SEPA XML file format (pain.001)
A pain.001 file is one XML message: a group header, then one or more payment blocks, each with one or more payments. A business sends it to its bank to pay one or more people. The message comes from ISO 20022, and SEPA narrows what it allows: euro only, IBAN accounts only, one charges code.
Open it as a table: SEPA XML to Excel or CSV. Check it: SEPA XML validator.
An example file
Our sample sepa-pain001-sample.xml: three payments in two blocks, pain.001.001.09.
The 62 lines of the sample
<?xml version="1.0" encoding="UTF-8"?> <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.09"> <CstmrCdtTrfInitn> <GrpHdr> <MsgId>MUSTER-20261023-001</MsgId> <CreDtTm>2026-10-23T09:30:00</CreDtTm> <NbOfTxs>3</NbOfTxs> <CtrlSum>5820.50</CtrlSum> <InitgPty><Nm>Muster Handels GmbH</Nm></InitgPty> </GrpHdr> <PmtInf> <PmtInfId>LOHN-2026-10</PmtInfId> <PmtMtd>TRF</PmtMtd> <BtchBookg>true</BtchBookg> <NbOfTxs>2</NbOfTxs> <CtrlSum>4630.50</CtrlSum> <PmtTpInf><SvcLvl><Cd>SEPA</Cd></SvcLvl></PmtTpInf> <ReqdExctnDt><Dt>2026-10-27</Dt></ReqdExctnDt> <Dbtr><Nm>Muster Handels GmbH</Nm></Dbtr> <DbtrAcct><Id><IBAN>DE34000100010000001001</IBAN></Id></DbtrAcct> <DbtrAgt><FinInstnId><BICFI>MUSTDEF0XXX</BICFI></FinInstnId></DbtrAgt> <ChrgBr>SLEV</ChrgBr> <CdtTrfTxInf> <PmtId><InstrId>LOHN-10-01</InstrId><EndToEndId>LOHN-2026-10-EM</EndToEndId></PmtId> <Amt><InstdAmt Ccy="EUR">2450.00</InstdAmt></Amt> <CdtrAgt><FinInstnId><BICFI>PROBDEF0XXX</BICFI></FinInstnId></CdtrAgt> <Cdtr><Nm>Erika Mustermann</Nm></Cdtr> <CdtrAcct><Id><IBAN>DE28000400040000004004</IBAN></Id></CdtrAcct> <RmtInf><Ustrd>Lohn Oktober 2026</Ustrd></RmtInf> </CdtTrfTxInf> <CdtTrfTxInf> <PmtId><InstrId>LOHN-10-02</InstrId><EndToEndId>LOHN-2026-10-MM</EndToEndId></PmtId> <Amt><InstdAmt Ccy="EUR">2180.50</InstdAmt></Amt> <CdtrAgt><FinInstnId><BICFI>MUKADEF0XXX</BICFI></FinInstnId></CdtrAgt> <Cdtr><Nm>Max Mustermann</Nm></Cdtr> <CdtrAcct><Id><IBAN>DE26000500050000005005</IBAN></Id></CdtrAcct> <RmtInf><Ustrd>Lohn Oktober 2026</Ustrd></RmtInf> </CdtTrfTxInf> </PmtInf> <PmtInf> <PmtInfId>RECHNUNGEN-2026-10</PmtInfId> <PmtMtd>TRF</PmtMtd> <BtchBookg>false</BtchBookg> <NbOfTxs>1</NbOfTxs> <CtrlSum>1190.00</CtrlSum> <PmtTpInf><SvcLvl><Cd>SEPA</Cd></SvcLvl></PmtTpInf> <ReqdExctnDt><Dt>2026-10-26</Dt></ReqdExctnDt> <Dbtr><Nm>Muster Handels GmbH</Nm></Dbtr> <DbtrAcct><Id><IBAN>DE34000100010000001001</IBAN></Id></DbtrAcct> <DbtrAgt><FinInstnId><BICFI>MUSTDEF0XXX</BICFI></FinInstnId></DbtrAgt> <ChrgBr>SLEV</ChrgBr> <CdtTrfTxInf> <PmtId><EndToEndId>RE-2026-0931</EndToEndId></PmtId> <Amt><InstdAmt Ccy="EUR">1190.00</InstdAmt></Amt> <CdtrAgt><FinInstnId><BICFI>BSPLDEF0XXX</BICFI></FinInstnId></CdtrAgt> <Cdtr><Nm>Beispiel Buerobedarf KG</Nm></Cdtr> <CdtrAcct><Id><IBAN>DE32000200020000002002</IBAN></Id></CdtrAcct> <RmtInf><Ustrd>Rechnung RE-2026-0931 vom 28.09.2026</Ustrd></RmtInf> </CdtTrfTxInf> </PmtInf> </CstmrCdtTrfInitn> </Document>
Three levels
A file has a Document holding one CstmrCdtTrfInitn. Inside it: one group header, then one or more payment blocks, each with one or more payments. The EPC element numbers in the last column are those of its 2025 guidelines. A number is the element that carries the rule in the guidelines.
Group header (lines 4 to 10)
| Element | Holds | In the sample | EPC no. |
|---|---|---|---|
MsgId | the sender's ID for the message | MUSTER-20261023-001 | 1.1 |
CreDtTm | when the message was made | 2026-10-23T09:30:00 | 1.2 |
NbOfTxs | number of payments in the whole message | 3 | 1.4 |
CtrlSum | the sum of all the amounts | 5820.50 | 1.5 |
InitgPty/ | who sends the message, up to 70 characters | Muster Handels GmbH | 1.7 |
Payment block PmtInf (lines 11 to 39; the second block is lines 40 to 60)
| Element | Holds | In the first block | EPC no. |
|---|---|---|---|
PmtInfId | the sender's ID for the block | LOHN-2026-10 | 2.1 |
PmtMtd | the payment method; only TRF | TRF | 2.2 |
BtchBookg | the batch booking request: true asks the bank for one entry for the block's sum, false for one entry per payment | true | 2.3 |
NbOfTxs | payments in this block | 2 | 2.4 |
CtrlSum | sum of this block | 4630.50 | 2.5 |
PmtTpInf/ | the service level; only SEPA | SEPA | 2.9 |
ReqdExctnDt/ | the requested execution date | 2026-10-27 | 2.17, 2.18 |
Dbtr/ | the payer, up to 70 characters | Muster Handels GmbH | 2.22 |
DbtrAcct/ | the payer's account; IBAN only | <IBAN> | 2.46 |
DbtrAgt/ | the payer's bank; a BICFI, or Othr/Id of NOTPROVIDED | <BICFI> | 2.54, 2.61 |
ChrgBr | how charges are shared; only SLEV, which means the charges follow the rules of the SEPA scheme | SLEV | 2.75 |
BtchBookg is false in the second block.
Payment CdtTrfTxInf (lines 23 to 30, 31 to 38 and 52 to 59)
| Element | Holds | In the first payment | EPC no. |
|---|---|---|---|
PmtId/ | an instruction ID; optional | LOHN-10-01 | 2.80 |
PmtId/ | an end-to-end ID | LOHN-2026-10-EM | 2.81 |
Amt/ | the amount; Ccy="EUR", two decimals, 0.01 or more | 2450.00 | 2.95 |
CdtrAgt | the payee's bank, by BIC only; may be left out | <FinInstnId> | 2.114 |
Cdtr/ | the payee, up to 70 characters | Erika Mustermann | 2.117 |
CdtrAcct/ | the payee's account; IBAN only | <IBAN> | 2.141 |
RmtInf/ | the remittance text; one, up to 140 characters | Lohn Oktober 2026 | 2.165 |
The third payment has no InstrId.
Counts and sums
NbOfTxs and CtrlSum appear twice: for the message and for each block. In the sample 2 + 1 = 3 payments, and 2450.00 + 2180.50 = 4630.50, and 4630.50 + 1190.00 = 5820.50. sepa-pain001-error-control-sum.xml states 5802.50 for the message instead.
Versions .03 and .09 side by side
The EPC's 2025 guidelines are written for pain.001.001.09. This page shows .09 and .03. sepa-pain001-v03-sample.xml is the same payments in pain.001.001.03. The two files differ in three ways, on eight lines:
| pain.001.001.09 | pain.001.001.03 | |
|---|---|---|
| Namespace, line 2 | urn: | urn: |
| Execution date, lines 18 and 47 | <ReqdExctnDt> | <ReqdExctnDt> |
| Bank, lines 21, 26, 34, 50 and 55 | <BICFI> | <BIC> |
TidyImport reads both. For .03 it checks only the counts, the control sums and the IBAN check digits. Which version a bank takes is for the bank to say.
Direct debits
A direct debit file is a different message, pain.008: SEPA direct debit XML format (pain.008).
See the file as a table, or check it
SEPA XML to Excel or CSV lists one payment per row. SEPA XML validator lists what its checks find, with the line and the element number.
ISO 20022 pain.001.001.09 (this is not ISO's site; the sole source of up-to-date ISO 20022 material is iso20022.org); EPC SEPA Credit Transfer guidelines, 2025. Not affiliated with ISO, the EPC or any bank.