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)

ElementHoldsIn the sampleEPC no.
MsgIdthe sender's ID for the messageMUSTER-20261023-0011.1
CreDtTmwhen the message was made2026-10-23T09:30:001.2
NbOfTxsnumber of payments in the whole message31.4
CtrlSumthe sum of all the amounts5820.501.5
InitgPty/Nmwho sends the message, up to 70 charactersMuster Handels GmbH1.7

Payment block PmtInf (lines 11 to 39; the second block is lines 40 to 60)

ElementHoldsIn the first blockEPC no.
PmtInfIdthe sender's ID for the blockLOHN-2026-102.1
PmtMtdthe payment method; only TRFTRF2.2
BtchBookgthe batch booking request: true asks the bank for one entry for the block's sum, false for one entry per paymenttrue2.3
NbOfTxspayments in this block22.4
CtrlSumsum of this block4630.502.5
PmtTpInf/SvcLvl/Cdthe service level; only SEPASEPA2.9
ReqdExctnDt/Dtthe requested execution date2026-10-272.17, 2.18
Dbtr/Nmthe payer, up to 70 charactersMuster Handels GmbH2.22
DbtrAcct/Idthe payer's account; IBAN only<IBAN>DE34000100010000001001</IBAN>2.46
DbtrAgt/FinInstnIdthe payer's bank; a BICFI, or Othr/Id of NOTPROVIDED<BICFI>MUSTDEF0XXX</BICFI>2.54, 2.61
ChrgBrhow charges are shared; only SLEV, which means the charges follow the rules of the SEPA schemeSLEV2.75

BtchBookg is false in the second block.

Payment CdtTrfTxInf (lines 23 to 30, 31 to 38 and 52 to 59)

ElementHoldsIn the first paymentEPC no.
PmtId/InstrIdan instruction ID; optionalLOHN-10-012.80
PmtId/EndToEndIdan end-to-end IDLOHN-2026-10-EM2.81
Amt/InstdAmtthe amount; Ccy="EUR", two decimals, 0.01 or more2450.002.95
CdtrAgtthe payee's bank, by BIC only; may be left out<FinInstnId><BICFI>PROBDEF0XXX</BICFI></FinInstnId>2.114
Cdtr/Nmthe payee, up to 70 charactersErika Mustermann2.117
CdtrAcct/Idthe payee's account; IBAN only<IBAN>DE28000400040000004004</IBAN>2.141
RmtInf/Ustrdthe remittance text; one, up to 140 charactersLohn Oktober 20262.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.09pain.001.001.03
Namespace, line 2urn:iso:std:iso:20022:tech:xsd:pain.001.001.09urn:iso:std:iso:20022:tech:xsd:pain.001.001.03
Execution date, lines 18 and 47<ReqdExctnDt><Dt>2026-10-27</Dt></ReqdExctnDt><ReqdExctnDt>2026-10-27</ReqdExctnDt>
Bank, lines 21, 26, 34, 50 and 55<BICFI>MUSTDEF0XXX</BICFI><BIC>MUSTDEF0XXX</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.