SEPA direct debit XML format (pain.008)
A pain.008 file is a pain.001 file with the parties turned round: the sender is the creditor, the accounts to charge are the debtors'. It is one XML message in which a business or club collects money from several payers' accounts. The group header is the same: see SEPA XML file format (pain.001).
Open it as a table: SEPA XML to Excel or CSV. Check it: SEPA XML validator.
An example file
Our sample sepa-pain008-sample.xml: a club collecting three fees, pain.008.001.08.
The 65 lines of the sample
<?xml version="1.0" encoding="UTF-8"?> <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.08"> <CstmrDrctDbtInitn> <GrpHdr> <MsgId>SVMUSTER-20261023-01</MsgId> <CreDtTm>2026-10-23T10:00:00</CreDtTm> <NbOfTxs>3</NbOfTxs> <CtrlSum>120.00</CtrlSum> <InitgPty><Nm>Sportverein Musterstadt e.V.</Nm></InitgPty> </GrpHdr> <PmtInf> <PmtInfId>BEITRAG-2026-11-FRST</PmtInfId> <PmtMtd>DD</PmtMtd> <NbOfTxs>1</NbOfTxs> <CtrlSum>48.00</CtrlSum> <PmtTpInf><SvcLvl><Cd>SEPA</Cd></SvcLvl><LclInstrm><Cd>CORE</Cd></LclInstrm><SeqTp>FRST</SeqTp></PmtTpInf> <ReqdColltnDt>2026-11-02</ReqdColltnDt> <Cdtr><Nm>Sportverein Musterstadt e.V.</Nm></Cdtr> <CdtrAcct><Id><IBAN>DE34000100010000001001</IBAN></Id></CdtrAcct> <CdtrAgt><FinInstnId><BICFI>MUSTDEF0XXX</BICFI></FinInstnId></CdtrAgt> <ChrgBr>SLEV</ChrgBr> <CdtrSchmeId><Id><PrvtId><Othr><Id>DE98ZZZ09999999999</Id><SchmeNm><Prtry>SEPA</Prtry></SchmeNm></Othr></PrvtId></Id></CdtrSchmeId> <DrctDbtTxInf> <PmtId><EndToEndId>BEITRAG-2026-11-0007</EndToEndId></PmtId> <InstdAmt Ccy="EUR">48.00</InstdAmt> <DrctDbtTx><MndtRltdInf><MndtId>MITGLIED-0007</MndtId><DtOfSgntr>2026-10-02</DtOfSgntr></MndtRltdInf></DrctDbtTx> <DbtrAgt><FinInstnId><BICFI>PROBDEF0XXX</BICFI></FinInstnId></DbtrAgt> <Dbtr><Nm>Erika Mustermann</Nm></Dbtr> <DbtrAcct><Id><IBAN>DE28000400040000004004</IBAN></Id></DbtrAcct> <RmtInf><Ustrd>Mitgliedsbeitrag November 2026</Ustrd></RmtInf> </DrctDbtTxInf> </PmtInf> <PmtInf> <PmtInfId>BEITRAG-2026-11-RCUR</PmtInfId> <PmtMtd>DD</PmtMtd> <NbOfTxs>2</NbOfTxs> <CtrlSum>72.00</CtrlSum> <PmtTpInf><SvcLvl><Cd>SEPA</Cd></SvcLvl><LclInstrm><Cd>CORE</Cd></LclInstrm><SeqTp>RCUR</SeqTp></PmtTpInf> <ReqdColltnDt>2026-11-02</ReqdColltnDt> <Cdtr><Nm>Sportverein Musterstadt e.V.</Nm></Cdtr> <CdtrAcct><Id><IBAN>DE34000100010000001001</IBAN></Id></CdtrAcct> <CdtrAgt><FinInstnId><BICFI>MUSTDEF0XXX</BICFI></FinInstnId></CdtrAgt> <ChrgBr>SLEV</ChrgBr> <CdtrSchmeId><Id><PrvtId><Othr><Id>DE98ZZZ09999999999</Id><SchmeNm><Prtry>SEPA</Prtry></SchmeNm></Othr></PrvtId></Id></CdtrSchmeId> <DrctDbtTxInf> <PmtId><EndToEndId>BEITRAG-2026-11-0001</EndToEndId></PmtId> <InstdAmt Ccy="EUR">48.00</InstdAmt> <DrctDbtTx><MndtRltdInf><MndtId>MITGLIED-0001</MndtId><DtOfSgntr>2024-03-15</DtOfSgntr></MndtRltdInf></DrctDbtTx> <DbtrAgt><FinInstnId><BICFI>MUKADEF0XXX</BICFI></FinInstnId></DbtrAgt> <Dbtr><Nm>Max Mustermann</Nm></Dbtr> <DbtrAcct><Id><IBAN>DE26000500050000005005</IBAN></Id></DbtrAcct> <RmtInf><Ustrd>Mitgliedsbeitrag November 2026</Ustrd></RmtInf> </DrctDbtTxInf> <DrctDbtTxInf> <PmtId><EndToEndId>BEITRAG-2026-11-0002</EndToEndId></PmtId> <InstdAmt Ccy="EUR">24.00</InstdAmt> <DrctDbtTx><MndtRltdInf><MndtId>MITGLIED-0002</MndtId><DtOfSgntr>2025-01-10</DtOfSgntr></MndtRltdInf></DrctDbtTx> <DbtrAgt><FinInstnId><BICFI>SPMUDEF0XXX</BICFI></FinInstnId></DbtrAgt> <Dbtr><Nm>Beispiel Jugendabteilung</Nm></Dbtr> <DbtrAcct><Id><IBAN>DE30000300030000003003</IBAN></Id></DbtrAcct> <RmtInf><Ustrd>Mitgliedsbeitrag November 2026 ermaessigt</Ustrd></RmtInf> </DrctDbtTxInf> </PmtInf> </CstmrDrctDbtInitn> </Document>
What differs from a credit transfer file
| pain.001 sample | pain.008 sample | |
|---|---|---|
| Below Document | CstmrCdtTrfInitn | CstmrDrctDbtInitn |
| PmtMtd | TRF | DD |
| Party in the block | Dbtr, DbtrAcct, DbtrAgt (the payer) | Cdtr, CdtrAcct, CdtrAgt (who collects) |
| Date | ReqdExctnDt | ReqdColltnDt |
| One payment | CdtTrfTxInf | DrctDbtTxInf |
| Amount | Amt/ | InstdAmt |
| Added | LclInstrm, SeqTp, CdtrSchmeId, DrctDbtTx/ |
The new parts, in the sample
Sequence type and local instrument (lines 16 and 38)
LclInstrm/Cd is CORE. All blocks in a message use the same one. SeqTp is FRST in the first block and RCUR in the second. In the sample these sit in separate blocks. FRST marks the first collection in a series, RCUR a later one, FNAL the last, and OOFF a collection that stands alone.
Creditor identifier (lines 22 and 44)
CdtrSchmeId holds the identifier of the collector, here DE98ZZZ09999999999, with the scheme name SEPA.
| Part | In the sample | Holds |
|---|---|---|
| Positions 1 to 2 | DE | country |
| 3 to 4 | 98 | check digits |
| 5 to 7 | ZZZ | a business code; ZZZ when none |
| 8 on | 09999999999 | the national part |
To check the digits: leave out the business code, keep only the letters and digits of the national part, put the country and then the check digits after it, turn letters into numbers (A is 10, Z is 35) and divide by 97. If the digits fit, the remainder is 1. For the sample the string is 09999999999131498.
Mandate (lines 26, 48 and 57)
MndtId is the ID of the payer's mandate and DtOfSgntr the date it was signed. The sample's payers signed on 2026-10-02, 2024-03-15 and 2025-01-10.
Counts and sums
The first block has one payment of 48.00. The second has two: 48.00 and 24.00, together 72.00. The message states 3 payments and 120.00: 1 + 2 and 48.00 + 72.00. The requested collection date, ReqdColltnDt, is 2026-11-02 in both blocks.
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. It reads the B2B direct debit but does not check the rules that apply to B2B only.
ISO 20022 pain.008.001.08 (this is not ISO's site; the sole source of up-to-date ISO 20022 material is iso20022.org); EPC SEPA Direct Debit Core guidelines, 2025. Not affiliated with ISO, the EPC or any bank.