# SEPA XML Validator: Check pain.001 & pain.008 Files, to Excel (`hardreset83/sepa-xml-validator`) Actor

Check SEPA XML files before you upload them to your bank: credit transfers (pain.001) and direct debits (pain.008), every version. Official ISO 20022 schema, totals, IBAN, BIC, dates, mandates, creditor ID, characters and the new address rules: every problem with its line, in Excel.

- **URL**: https://apify.com/hardreset83/sepa-xml-validator.md
- **Developed by:** [Flavio D'Orio](https://apify.com/hardreset83) (community)
- **Categories:** Business, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 payment checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SEPA XML Validator: Check pain.001 and pain.008 Files Before Your Bank

Your bank refused a SEPA file, or accepted it and rejected single payments days later? Check the file first. This
Actor reads SEPA **credit transfer files (pain.001)** and **direct debit files (pain.008)** of every version, validates
them against the **official ISO 20022 schema** and checks the **SEPA rules that the schema does not check**: number of
payments and control sums, IBAN check digits, BIC, execution and collection dates on the bank calendar, mandates,
creditor identifier, sequence types, remittance information, characters and duplicates. Every problem comes with the
**line in the file** and a plain explanation in English, German, Italian, Spanish or French, in **Excel** and as JSON.

**New rule from 22 November 2026**: SEPA payments allow only structured or hybrid addresses. An address written only in
free lines (AdrLine) is no longer accepted: every address needs at least the town and the country in their own fields
(TwnNm, Ctry). The Actor shows you which files and which payments are not ready, today and from that day.

### What it checks

- **The official schema** of pain.001.001.03 and .09 and pain.008.001.02 and .08 (ISO 20022), with the line of every
  error. Other versions and the variants of German, Austrian and Swiss banks are read and checked with all the other
  rules.
- **Numbers**: number of payments (NbOfTxs) and control sum (CtrlSum) of the file and of every batch, amounts above zero
  with at most two decimals, euro.
- **Accounts**: IBAN check digits and length for every country, IBANs of countries outside SEPA, BIC format and
  country.
- **Dates**: execution dates in the past, collection dates that are too close (the bank must receive a direct debit at
  least one business day before: a file sent on Saturday for Monday is too late), dates on a weekend or a TARGET
  holiday (with the next business day), mandates signed after today. 1999-01-01 («as soon as possible») is accepted
  for credit transfers.
- **Direct debits**: CORE or B2B (COR1 no longer exists), sequence type FRST, RCUR, OOFF or FNAL, mandate reference and
  date of signature, amended mandates without the changes, creditor identifier with its check digits.
- **IDs and texts**: message ID, batch ID and end-to-end ID (allowed characters, 35 at most, the same ID twice), names
  of 70 characters at most, remittance information (one free text of 140 characters or one structured reference, never
  both), RF creditor references and Belgian structured communications with their check digits, purpose codes.
- **Characters**: only the basic Latin characters of the SEPA rules, or those of the German banks (also umlauts, ß and
  & \* $ %), or no check. Files must be in UTF-8: files in ISO 8859-1 or Windows-1252 are found.
- **Addresses**: the rule of 22 November 2026, and the address of the payer that is required for payments with an
  account in Switzerland, the United Kingdom, Monaco, San Marino or another SEPA country outside the EEA.
- **Many files at once**: a ZIP of many files (also ZIP in ZIP), the same file twice (checked once, free), the same
  message ID in two files (a bank refuses the second one), the same payment in two files (paid twice?).
- Status reports (pain.002), bank statements (camt.05x) and other files are skipped for free.

**Error** means that the bank refuses the file or the payment. **Warning** means that the bank may accept it, but you
should check it (for example a date on a holiday, which most banks move to the next business day).

### What you get

- **CHECK.xlsx** in the key-value store (Storage tab), with three sheets:
  - **Payments**: one row per payment with its status, its problems, name, IBAN, amount, date, end-to-end ID,
    remittance information, mandate, sequence, batch and the line in the file.
  - **Problems**: one row per problem with error or warning, the text, the line in the file, the batch and the payment.
  - **Files**: one row per file, «Ready for the bank», «Check the warnings» or «Fix the errors», with the errors,
    warnings, payments, total, format and the result of the official schema.
- **Dataset**: one item per payment with `status` (ok, warning or error), the problems as text and all its fields, for
  Make, Zapier, n8n, your ERP or your own code.
- **SUMMARY**: the numbers for automations (files ready, to check and to fix, payments with errors, amounts per
  currency), every file with its result and the link to CHECK.xlsx.

The Actor only reads the files you give it. It never changes them and never contacts a bank.

### How to use it

1. Press **Start**: the input form is prefilled with an example file of four direct debits, three of them with a
   problem, so you see the result at once (the example is free).
2. Upload your file or a ZIP, add links to files, or paste the XML.
3. If you like, choose the day you will upload the file (empty: today), the characters your bank accepts and the
   language of the report.
4. Open **CHECK.xlsx** in the Storage tab, fix the problems in the program that made the file and check it again.

**Automation**: before every upload, call the Actor from your ERP, Make, Zapier, n8n or the Apify API with the link to
the new file, and send the file to the bank only when `filesToFix` in SUMMARY is 0.

### Example output

The message of the example file:

```
Checked 1 file with 4 payments (395.80 EUR): 1 to fix. 3 errors and 1 warning (3 payments with errors).
```

One item of the dataset (shortened):

```json
{
  "status": "error",
  "statusText": "Fix before sending",
  "problems": ["The IBAN DE02120300000000202052 is not valid (check digits)."],
  "paymentType": "direct-debit",
  "date": "2026-11-20",
  "name": "Ben Example",
  "iban": "DE02120300000000202052",
  "amount": 75.8,
  "currency": "EUR",
  "endToEndId": "MEMBER-0002-2026-11",
  "remittance": "Membership fee November 2026",
  "mandateId": "MEMBER-0002",
  "mandateDate": "2025-03-01",
  "sequenceType": "RCUR",
  "creditorId": "DE98ZZZ09999999999",
  "batchId": "DEMO-SDD-2026-1116-1",
  "position": 2,
  "line": 36,
  "source": "example-direct-debits.xml"
}
```

### Who is it for

- **Companies, associations, clubs and freelancers** who make SEPA files in their accounting, ERP, payroll or
  membership software and upload them in online banking.
- **Accountants, payroll offices and treasury teams** who send payment files for many clients or companies.
- **Developers of ERP, payroll and payment software**: test the files your code writes, before every release or in
  your tests.
- **Automations and AI agents**: a clear answer before a file goes to the bank, from one API call.

### Pricing

**Pay per event: $0.002 per payment checked** ($2 per 1,000 payments). Free: the example of the input form, files that
are not payment files, files that cannot be read and duplicates. Every payment of a file is counted, also when you
choose to see only the payments with a problem. Set a maximum cost per run in the run options if you like: whole files
are checked while the limit pays for them, the others are left out and the message tells you how many.

### Privacy and security

The Actor runs in your own Apify account: your files, CHECK.xlsx and the dataset stay in the storage of your run, and
it sends nothing anywhere else (it only downloads the links you give it). It never contacts a bank and never sends a
payment. XML files with DOCTYPE or entity declarations are refused, ZIP files are opened with limits against archive
bombs. Payment files contain names and IBANs: delete the run, or set a short data retention, when you no longer need
them.

### FAQ

**Will a file without errors always go through?** It passes the official schema and the SEPA rules that a file can
show. Your bank can still refuse a payment for reasons that are not in the file (a closed account, a mandate it does not
know, your limits or its cut-off time), and some banks have extra rules: read the warnings too.

**My bank accepts umlauts.** Choose «German banks» in «Characters your bank accepts».

**Why does a payment show the problems of its batch or of the file?** When a batch or a file is wrong, the bank refuses
all of its payments, so each payment shows them. The Problems sheet lists every problem once.

**I upload the file tomorrow.** Write tomorrow's date in «Check the dates as on»: the dates are checked as on that day.

**Can it fix the file?** No: it only reads and checks, it never changes your file. To make a correct SEPA file from an
Excel or CSV list, use a SEPA XML generator.

**Is a feature missing?** Ask in the Issues tab.

### Auf Deutsch

Prüft **SEPA-Dateien vor dem Hochladen zur Bank**: Überweisungen (**pain.001**) und Lastschriften (**pain.008**) jeder
Version, auch im Format der deutschen, österreichischen und Schweizer Banken. Gegen das **offizielle ISO-20022-Schema**
und die SEPA-Regeln: Anzahl und Kontrollsummen, IBAN-Prüfziffern, BIC, Ausführungs- und Fälligkeitsdatum mit dem
TARGET-Kalender (Lastschriften mindestens einen Bankarbeitstag vorher), Mandatsreferenz und Unterschriftsdatum,
Gläubiger-ID, Sequenz (FRST, RCUR, OOFF, FNAL), CORE oder B2B, Verwendungszweck, erlaubte Zeichen (auch Umlaute der
deutschen Banken) und die neue Regel ab dem 22. November 2026: nur noch strukturierte oder hybride Adressen, mit Ort und
Land in eigenen Feldern. Jeder Fehler mit der Zeile in der Datei, in CHECK.xlsx und als JSON, auch für ganze
ZIP-Archive. Preis: 0,002 $ pro geprüfter Zahlung; das Beispiel, andere Dateien und Dubletten sind kostenlos.

### In italiano

Controlla i **file SEPA prima di caricarli in banca**: bonifici (**pain.001**) e addebiti diretti (**pain.008**) di ogni
versione. Schema ufficiale ISO 20022 e regole SEPA: numero di pagamenti e somme di controllo, cifre di controllo
dell'IBAN, BIC, date di esecuzione e di addebito sul calendario TARGET (gli addebiti almeno un giorno lavorativo
prima), mandati, codice del creditore, sequenza, causale, caratteri ammessi, e la nuova regola dal 22 novembre 2026:
solo indirizzi strutturati o ibridi, con città e paese nei loro campi. Ogni errore con la riga del file, in Excel e in
JSON, anche per uno ZIP intero. Prezzo: 0,002 $ a pagamento controllato; l'esempio, gli altri file e i doppioni sono
gratis.

### En español

Comprueba los **ficheros SEPA antes de subirlos al banco**: transferencias (**pain.001**) y adeudos directos
(**pain.008**) de cualquier versión. Esquema oficial ISO 20022 y reglas SEPA: número de pagos y sumas de control,
dígitos de control del IBAN, BIC, fechas de ejecución y de cobro según el calendario TARGET (los adeudos al menos un día
hábil antes), mandatos, identificador del acreedor, secuencia, concepto, caracteres admitidos y la nueva regla del
22 de noviembre de 2026: solo direcciones estructuradas o híbridas, con ciudad y país en sus campos. Cada error con su
línea del fichero, en Excel y en JSON, también para un ZIP entero. Precio: 0,002 $ por pago comprobado; el ejemplo,
los otros ficheros y los duplicados son gratis.

### En français

Vérifie les **fichiers SEPA avant de les envoyer à la banque** : virements (**pain.001**) et prélèvements
(**pain.008**) de toutes les versions. Schéma officiel ISO 20022 et règles SEPA : nombre de paiements et sommes de
contrôle, clés de l'IBAN, BIC, dates d'exécution et d'échéance selon le calendrier TARGET (les prélèvements au moins un
jour ouvré avant), mandats (RUM), identifiant créancier (ICS), séquence, libellé, caractères admis et la nouvelle règle
du 22 novembre 2026 : seulement des adresses structurées ou hybrides, avec la ville et le pays dans leurs champs. Chaque
erreur avec sa ligne dans le fichier, en Excel et en JSON, aussi pour un ZIP entier. Prix : 0,002 $ par paiement
vérifié ; l'exemple, les autres fichiers et les doublons sont gratuits.

# Actor input Schema

## `paymentFile` (type: `string`):

The XML file you want to send to your bank: credit transfers (pain.001, any version, also the German, Austrian, Swiss and Italian variants) or direct debits (pain.008), or a ZIP archive with many of them. Other files are skipped for free.

## `paymentUrls` (type: `array`):

Direct links (https) to SEPA files or ZIP archives, for example from your ERP, Make, Zapier, n8n or a cloud folder.

## `paymentContent` (type: `string`):

Paste the content of one XML file. Prefilled with an example file (four direct debits, three of them with a problem) so you can try the Actor in one click: the example is free, and it is left out when you upload files or add links.

## `checkDate` (type: `string`):

The day you will upload the file to your bank: execution and collection dates in the past, today or on a bank holiday are checked against this day. Empty: today (time of Frankfurt).

## `characters` (type: `string`):

The SEPA rules allow only basic Latin letters, digits and / - ? : ( ) . , ' + and space in names and texts: other characters are changed or refused by many banks. German banks also accept umlauts, ß and & \* $ %.

## `onlyProblems` (type: `boolean`):

On: the dataset and the Payments sheet list only the payments with an error or a warning. Every payment is still checked and counted.

## `language` (type: `string`):

Problems, column titles and sheet names in the dataset and in CHECK.xlsx.

## Actor input object example

```json
{
  "paymentUrls": [],
  "paymentContent": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.008.001.08\">\n  <CstmrDrctDbtInitn>\n    <GrpHdr>\n      <MsgId>DEMO-SDD-2026-1116</MsgId>\n      <CreDtTm>2026-11-16T09:30:00</CreDtTm>\n      <NbOfTxs>4</NbOfTxs>\n      <CtrlSum>395.80</CtrlSum>\n      <InitgPty><Nm>Example Sports Club</Nm></InitgPty>\n    </GrpHdr>\n    <PmtInf>\n      <PmtInfId>DEMO-SDD-2026-1116-1</PmtInfId>\n      <PmtMtd>DD</PmtMtd>\n      <NbOfTxs>4</NbOfTxs>\n      <CtrlSum>395.80</CtrlSum>\n      <PmtTpInf>\n        <SvcLvl><Cd>SEPA</Cd></SvcLvl>\n        <LclInstrm><Cd>CORE</Cd></LclInstrm>\n        <SeqTp>RCUR</SeqTp>\n      </PmtTpInf>\n      <ReqdColltnDt>2026-11-20</ReqdColltnDt>\n      <Cdtr><Nm>Example Sports Club</Nm></Cdtr>\n      <CdtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></CdtrAcct>\n      <CdtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></CdtrAgt>\n      <ChrgBr>SLEV</ChrgBr>\n      <CdtrSchmeId><Id><PrvtId><Othr><Id>DE98ZZZ09999999999</Id><SchmeNm><Prtry>SEPA</Prtry></SchmeNm></Othr></PrvtId></Id></CdtrSchmeId>\n      <DrctDbtTxInf>\n        <PmtId><EndToEndId>MEMBER-0001-2026-11</EndToEndId></PmtId>\n        <InstdAmt Ccy=\"EUR\">120.00</InstdAmt>\n        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0001</MndtId><DtOfSgntr>2024-01-15</DtOfSgntr></MndtRltdInf></DrctDbtTx>\n        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>\n        <Dbtr><Nm>Anna Example</Nm></Dbtr>\n        <DbtrAcct><Id><IBAN>DE02120300000000202051</IBAN></Id></DbtrAcct>\n        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>\n      </DrctDbtTxInf>\n      <DrctDbtTxInf>\n        <PmtId><EndToEndId>MEMBER-0002-2026-11</EndToEndId></PmtId>\n        <InstdAmt Ccy=\"EUR\">75.80</InstdAmt>\n        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0002</MndtId><DtOfSgntr>2025-03-01</DtOfSgntr></MndtRltdInf></DrctDbtTx>\n        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>\n        <Dbtr><Nm>Ben Example</Nm></Dbtr>\n        <DbtrAcct><Id><IBAN>DE02120300000000202052</IBAN></Id></DbtrAcct>\n        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>\n      </DrctDbtTxInf>\n      <DrctDbtTxInf>\n        <PmtId><EndToEndId>MEMBER-0003-2026-11</EndToEndId></PmtId>\n        <InstdAmt Ccy=\"EUR\">60.00</InstdAmt>\n        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0003</MndtId><DtOfSgntr>2026-12-01</DtOfSgntr></MndtRltdInf></DrctDbtTx>\n        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>\n        <Dbtr><Nm>Clara Example</Nm></Dbtr>\n        <DbtrAcct><Id><IBAN>AT611904300234573201</IBAN></Id></DbtrAcct>\n        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>\n      </DrctDbtTxInf>\n      <DrctDbtTxInf>\n        <PmtId><EndToEndId>MEMBER-0004-2026-11</EndToEndId></PmtId>\n        <InstdAmt Ccy=\"EUR\">140.00</InstdAmt>\n        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0004</MndtId><DtOfSgntr>2025-09-10</DtOfSgntr></MndtRltdInf></DrctDbtTx>\n        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>\n        <Dbtr><Nm>Müller &amp; Partner AG</Nm></Dbtr>\n        <DbtrAcct><Id><IBAN>CH9300762011623852957</IBAN></Id></DbtrAcct>\n        <RmtInf><Ustrd>Membership fee November 2026, team</Ustrd></RmtInf>\n      </DrctDbtTxInf>\n    </PmtInf>\n  </CstmrDrctDbtInitn>\n</Document>\n",
  "characters": "epc",
  "onlyProblems": false,
  "language": "en"
}
```

# Actor output Schema

## `payments` (type: `string`):

Every payment of your SEPA files with its problems.

## `report` (type: `string`):

CHECK.xlsx: payments, problems and files.

## `summary` (type: `string`):

The result of the run in short: counts, totals, problems and the links to the files.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "paymentUrls": [],
    "paymentContent": `<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.08">
  <CstmrDrctDbtInitn>
    <GrpHdr>
      <MsgId>DEMO-SDD-2026-1116</MsgId>
      <CreDtTm>2026-11-16T09:30:00</CreDtTm>
      <NbOfTxs>4</NbOfTxs>
      <CtrlSum>395.80</CtrlSum>
      <InitgPty><Nm>Example Sports Club</Nm></InitgPty>
    </GrpHdr>
    <PmtInf>
      <PmtInfId>DEMO-SDD-2026-1116-1</PmtInfId>
      <PmtMtd>DD</PmtMtd>
      <NbOfTxs>4</NbOfTxs>
      <CtrlSum>395.80</CtrlSum>
      <PmtTpInf>
        <SvcLvl><Cd>SEPA</Cd></SvcLvl>
        <LclInstrm><Cd>CORE</Cd></LclInstrm>
        <SeqTp>RCUR</SeqTp>
      </PmtTpInf>
      <ReqdColltnDt>2026-11-20</ReqdColltnDt>
      <Cdtr><Nm>Example Sports Club</Nm></Cdtr>
      <CdtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></CdtrAcct>
      <CdtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></CdtrAgt>
      <ChrgBr>SLEV</ChrgBr>
      <CdtrSchmeId><Id><PrvtId><Othr><Id>DE98ZZZ09999999999</Id><SchmeNm><Prtry>SEPA</Prtry></SchmeNm></Othr></PrvtId></Id></CdtrSchmeId>
      <DrctDbtTxInf>
        <PmtId><EndToEndId>MEMBER-0001-2026-11</EndToEndId></PmtId>
        <InstdAmt Ccy="EUR">120.00</InstdAmt>
        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0001</MndtId><DtOfSgntr>2024-01-15</DtOfSgntr></MndtRltdInf></DrctDbtTx>
        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>
        <Dbtr><Nm>Anna Example</Nm></Dbtr>
        <DbtrAcct><Id><IBAN>DE02120300000000202051</IBAN></Id></DbtrAcct>
        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>
      </DrctDbtTxInf>
      <DrctDbtTxInf>
        <PmtId><EndToEndId>MEMBER-0002-2026-11</EndToEndId></PmtId>
        <InstdAmt Ccy="EUR">75.80</InstdAmt>
        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0002</MndtId><DtOfSgntr>2025-03-01</DtOfSgntr></MndtRltdInf></DrctDbtTx>
        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>
        <Dbtr><Nm>Ben Example</Nm></Dbtr>
        <DbtrAcct><Id><IBAN>DE02120300000000202052</IBAN></Id></DbtrAcct>
        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>
      </DrctDbtTxInf>
      <DrctDbtTxInf>
        <PmtId><EndToEndId>MEMBER-0003-2026-11</EndToEndId></PmtId>
        <InstdAmt Ccy="EUR">60.00</InstdAmt>
        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0003</MndtId><DtOfSgntr>2026-12-01</DtOfSgntr></MndtRltdInf></DrctDbtTx>
        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>
        <Dbtr><Nm>Clara Example</Nm></Dbtr>
        <DbtrAcct><Id><IBAN>AT611904300234573201</IBAN></Id></DbtrAcct>
        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>
      </DrctDbtTxInf>
      <DrctDbtTxInf>
        <PmtId><EndToEndId>MEMBER-0004-2026-11</EndToEndId></PmtId>
        <InstdAmt Ccy="EUR">140.00</InstdAmt>
        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0004</MndtId><DtOfSgntr>2025-09-10</DtOfSgntr></MndtRltdInf></DrctDbtTx>
        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>
        <Dbtr><Nm>Müller &amp; Partner AG</Nm></Dbtr>
        <DbtrAcct><Id><IBAN>CH9300762011623852957</IBAN></Id></DbtrAcct>
        <RmtInf><Ustrd>Membership fee November 2026, team</Ustrd></RmtInf>
      </DrctDbtTxInf>
    </PmtInf>
  </CstmrDrctDbtInitn>
</Document>`
};

// Run the Actor and wait for it to finish
const run = await client.actor("hardreset83/sepa-xml-validator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "paymentUrls": [],
    "paymentContent": """<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.008.001.08\">
  <CstmrDrctDbtInitn>
    <GrpHdr>
      <MsgId>DEMO-SDD-2026-1116</MsgId>
      <CreDtTm>2026-11-16T09:30:00</CreDtTm>
      <NbOfTxs>4</NbOfTxs>
      <CtrlSum>395.80</CtrlSum>
      <InitgPty><Nm>Example Sports Club</Nm></InitgPty>
    </GrpHdr>
    <PmtInf>
      <PmtInfId>DEMO-SDD-2026-1116-1</PmtInfId>
      <PmtMtd>DD</PmtMtd>
      <NbOfTxs>4</NbOfTxs>
      <CtrlSum>395.80</CtrlSum>
      <PmtTpInf>
        <SvcLvl><Cd>SEPA</Cd></SvcLvl>
        <LclInstrm><Cd>CORE</Cd></LclInstrm>
        <SeqTp>RCUR</SeqTp>
      </PmtTpInf>
      <ReqdColltnDt>2026-11-20</ReqdColltnDt>
      <Cdtr><Nm>Example Sports Club</Nm></Cdtr>
      <CdtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></CdtrAcct>
      <CdtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></CdtrAgt>
      <ChrgBr>SLEV</ChrgBr>
      <CdtrSchmeId><Id><PrvtId><Othr><Id>DE98ZZZ09999999999</Id><SchmeNm><Prtry>SEPA</Prtry></SchmeNm></Othr></PrvtId></Id></CdtrSchmeId>
      <DrctDbtTxInf>
        <PmtId><EndToEndId>MEMBER-0001-2026-11</EndToEndId></PmtId>
        <InstdAmt Ccy=\"EUR\">120.00</InstdAmt>
        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0001</MndtId><DtOfSgntr>2024-01-15</DtOfSgntr></MndtRltdInf></DrctDbtTx>
        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>
        <Dbtr><Nm>Anna Example</Nm></Dbtr>
        <DbtrAcct><Id><IBAN>DE02120300000000202051</IBAN></Id></DbtrAcct>
        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>
      </DrctDbtTxInf>
      <DrctDbtTxInf>
        <PmtId><EndToEndId>MEMBER-0002-2026-11</EndToEndId></PmtId>
        <InstdAmt Ccy=\"EUR\">75.80</InstdAmt>
        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0002</MndtId><DtOfSgntr>2025-03-01</DtOfSgntr></MndtRltdInf></DrctDbtTx>
        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>
        <Dbtr><Nm>Ben Example</Nm></Dbtr>
        <DbtrAcct><Id><IBAN>DE02120300000000202052</IBAN></Id></DbtrAcct>
        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>
      </DrctDbtTxInf>
      <DrctDbtTxInf>
        <PmtId><EndToEndId>MEMBER-0003-2026-11</EndToEndId></PmtId>
        <InstdAmt Ccy=\"EUR\">60.00</InstdAmt>
        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0003</MndtId><DtOfSgntr>2026-12-01</DtOfSgntr></MndtRltdInf></DrctDbtTx>
        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>
        <Dbtr><Nm>Clara Example</Nm></Dbtr>
        <DbtrAcct><Id><IBAN>AT611904300234573201</IBAN></Id></DbtrAcct>
        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>
      </DrctDbtTxInf>
      <DrctDbtTxInf>
        <PmtId><EndToEndId>MEMBER-0004-2026-11</EndToEndId></PmtId>
        <InstdAmt Ccy=\"EUR\">140.00</InstdAmt>
        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0004</MndtId><DtOfSgntr>2025-09-10</DtOfSgntr></MndtRltdInf></DrctDbtTx>
        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>
        <Dbtr><Nm>Müller &amp; Partner AG</Nm></Dbtr>
        <DbtrAcct><Id><IBAN>CH9300762011623852957</IBAN></Id></DbtrAcct>
        <RmtInf><Ustrd>Membership fee November 2026, team</Ustrd></RmtInf>
      </DrctDbtTxInf>
    </PmtInf>
  </CstmrDrctDbtInitn>
</Document>
""",
}

# Run the Actor and wait for it to finish
run = client.actor("hardreset83/sepa-xml-validator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "paymentUrls": [],
  "paymentContent": "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<Document xmlns=\\"urn:iso:std:iso:20022:tech:xsd:pain.008.001.08\\">\\n  <CstmrDrctDbtInitn>\\n    <GrpHdr>\\n      <MsgId>DEMO-SDD-2026-1116</MsgId>\\n      <CreDtTm>2026-11-16T09:30:00</CreDtTm>\\n      <NbOfTxs>4</NbOfTxs>\\n      <CtrlSum>395.80</CtrlSum>\\n      <InitgPty><Nm>Example Sports Club</Nm></InitgPty>\\n    </GrpHdr>\\n    <PmtInf>\\n      <PmtInfId>DEMO-SDD-2026-1116-1</PmtInfId>\\n      <PmtMtd>DD</PmtMtd>\\n      <NbOfTxs>4</NbOfTxs>\\n      <CtrlSum>395.80</CtrlSum>\\n      <PmtTpInf>\\n        <SvcLvl><Cd>SEPA</Cd></SvcLvl>\\n        <LclInstrm><Cd>CORE</Cd></LclInstrm>\\n        <SeqTp>RCUR</SeqTp>\\n      </PmtTpInf>\\n      <ReqdColltnDt>2026-11-20</ReqdColltnDt>\\n      <Cdtr><Nm>Example Sports Club</Nm></Cdtr>\\n      <CdtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></CdtrAcct>\\n      <CdtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></CdtrAgt>\\n      <ChrgBr>SLEV</ChrgBr>\\n      <CdtrSchmeId><Id><PrvtId><Othr><Id>DE98ZZZ09999999999</Id><SchmeNm><Prtry>SEPA</Prtry></SchmeNm></Othr></PrvtId></Id></CdtrSchmeId>\\n      <DrctDbtTxInf>\\n        <PmtId><EndToEndId>MEMBER-0001-2026-11</EndToEndId></PmtId>\\n        <InstdAmt Ccy=\\"EUR\\">120.00</InstdAmt>\\n        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0001</MndtId><DtOfSgntr>2024-01-15</DtOfSgntr></MndtRltdInf></DrctDbtTx>\\n        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>\\n        <Dbtr><Nm>Anna Example</Nm></Dbtr>\\n        <DbtrAcct><Id><IBAN>DE02120300000000202051</IBAN></Id></DbtrAcct>\\n        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>\\n      </DrctDbtTxInf>\\n      <DrctDbtTxInf>\\n        <PmtId><EndToEndId>MEMBER-0002-2026-11</EndToEndId></PmtId>\\n        <InstdAmt Ccy=\\"EUR\\">75.80</InstdAmt>\\n        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0002</MndtId><DtOfSgntr>2025-03-01</DtOfSgntr></MndtRltdInf></DrctDbtTx>\\n        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>\\n        <Dbtr><Nm>Ben Example</Nm></Dbtr>\\n        <DbtrAcct><Id><IBAN>DE02120300000000202052</IBAN></Id></DbtrAcct>\\n        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>\\n      </DrctDbtTxInf>\\n      <DrctDbtTxInf>\\n        <PmtId><EndToEndId>MEMBER-0003-2026-11</EndToEndId></PmtId>\\n        <InstdAmt Ccy=\\"EUR\\">60.00</InstdAmt>\\n        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0003</MndtId><DtOfSgntr>2026-12-01</DtOfSgntr></MndtRltdInf></DrctDbtTx>\\n        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>\\n        <Dbtr><Nm>Clara Example</Nm></Dbtr>\\n        <DbtrAcct><Id><IBAN>AT611904300234573201</IBAN></Id></DbtrAcct>\\n        <RmtInf><Ustrd>Membership fee November 2026</Ustrd></RmtInf>\\n      </DrctDbtTxInf>\\n      <DrctDbtTxInf>\\n        <PmtId><EndToEndId>MEMBER-0004-2026-11</EndToEndId></PmtId>\\n        <InstdAmt Ccy=\\"EUR\\">140.00</InstdAmt>\\n        <DrctDbtTx><MndtRltdInf><MndtId>MEMBER-0004</MndtId><DtOfSgntr>2025-09-10</DtOfSgntr></MndtRltdInf></DrctDbtTx>\\n        <DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>\\n        <Dbtr><Nm>Müller &amp; Partner AG</Nm></Dbtr>\\n        <DbtrAcct><Id><IBAN>CH9300762011623852957</IBAN></Id></DbtrAcct>\\n        <RmtInf><Ustrd>Membership fee November 2026, team</Ustrd></RmtInf>\\n      </DrctDbtTxInf>\\n    </PmtInf>\\n  </CstmrDrctDbtInitn>\\n</Document>\\n"
}' |
apify call hardreset83/sepa-xml-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hardreset83/sepa-xml-validator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/cgLzPTNuqTThRbu0u/builds/TR62B53i83B7hbBLl/openapi.json
