# EU SEPA XML (pain.001/008) & ISO 20022 Validator (API & MCP) (`eurocomply_data/eu-sepa-iso20022-validator`) Actor

Validate and parse SEPA Credit Transfer (pain.001) & Direct Debit (pain.008) ISO 20022 XML files before bank upload: checks IBAN Mod-97 checksums, SEPA country scope, BIC format, NbOfTxs & CtrlSum reconciliation, EUR currency, and EPC character rules. Batch, REST API & MCP.

- **URL**: https://apify.com/eurocomply_data/eu-sepa-iso20022-validator.md
- **Developed by:** [Eduardo Pinto](https://apify.com/eurocomply_data) (community)
- **Categories:** Business, Automation, AI
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 sepa xml / iban validations

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/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

## EU SEPA XML (pain.001 / pain.008) & ISO 20022 Validator (API & MCP)

Validate and parse **SEPA Credit Transfer (`pain.001.001.03` / `pain.001.001.09`)** and **SEPA Direct Debit (`pain.008.001.02` / `pain.008.001.08`)** ISO 20022 XML payment files before uploading to European banks.

Available in **three modes**:

1. **Batch Actor** — validate bulk SEPA XML files and export structured JSON/CSV validation reports & parsed transaction tables.
2. **Low-Latency Standby REST API** — integrate into payroll, ERP, treasury, or `n8n` / Make pipelines.
3. **Model Context Protocol (MCP) Server (`/mcp`)** — plug directly into AI agents (Claude, Cursor, Antigravity, LangChain).

### Validations Performed

- **ISO 20022 Schema Detection:** `pain.001` (Credit Transfer) and `pain.008` (Direct Debit) structure checks.
- **Exact Reconciliation:** Verifies `GrpHdr/NbOfTxs`, `GrpHdr/CtrlSum`, and per-batch `PmtInf/NbOfTxs` & `PmtInf/CtrlSum` to the exact cent.
- **IBAN ISO 13616 Mod-97 Checksum & SEPA Membership:** Validates Debtor & Creditor IBANs across all 37 SEPA countries/territories.
- **BIC Format (ISO 9362), Currency (`EUR`), Field Lengths (`MsgId`/`EndToEndId <= 35`), SEPA Mandates (`pain.008`), and EPC Latin Charset warnings.**

***

### Native MCP Server Setup (Claude Desktop, Cursor & VS Code)

Connect this Actor directly to any MCP-compatible AI agent using Streamable HTTP (or use our [1-Click MCP Config Generator](https://epinto1000-a11y.github.io/eurocomply-mcp-suite/#mcp-generator)):

```json
{
  "mcpServers": {
    "eu-sepa-iso20022-validator": {
      "type": "http",
      "url": "https://eurocomply-data--eu-sepa-iso20022-validator.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer apify_api_YOUR_TOKEN"
      }
    }
  }
}
```

- **Official MCP Registry ID:** `io.github.epinto1000-a11y/eu-sepa-iso20022-validator`
- **n8n Templates & Examples:** [eurocomply-mcp-suite on GitHub](https://github.com/epinto1000-a11y/eurocomply-mcp-suite)

***

### FAQ

**Which SEPA XML message types are supported?**
Both **pain.001** (SEPA Credit Transfer) and **pain.008** (SEPA Direct Debit) ISO 20022 XML schemas.

**Does it check EPC 2025/2026 structured address rules?**
Yes. It validates IBAN mod-97 checksums, BIC syntax, EPC 2-decimal precision, the `999999999.99` EUR transaction cap, empty `PmtInf` blocks, and warns on deprecated unstructured `<AdrLine>` addresses.

**Is payment XML stored anywhere?**
No. Validation runs statelessly in memory and returns structured pass/fail diagnostics.

***

### EuroComply Data Suite

Explore all 10 production EU compliance, live verification, and B2B automation Actors by [EuroComply Data](https://apify.com/eurocomply_data):

| Actor | Pricing | Modes |
| :--- | :--- | :--- |
| [EU CBAM 2026 Compliance Calculator](https://apify.com/eurocomply_data/eu-cbam-compliance-calculator) | `$0.005 / cbam-check` | Batch + REST + MCP |
| [EU EUDR GeoJSON Validator & Auto-Fixer](https://apify.com/eurocomply_data/eu-eudr-geojson-validator) | `$0.005 / eudr-plot-check` | Batch + REST + MCP |
| [EU TARIC Customs & Landed Cost Calculator](https://apify.com/eurocomply_data/eu-taric-customs-calculator) | `$0.005 / taric-lookup` | Batch + REST + MCP |
| [EU AI Act Risk Classifier](https://apify.com/eurocomply_data/eu-ai-act-risk-classifier) | `$0.005 / ai-act-check` | Batch + REST + MCP |
| [EU SEPA ISO 20022 XML Validator](https://apify.com/eurocomply_data/eu-sepa-iso20022-validator) | `$0.005 / sepa-validate` | Batch + REST + MCP |
| [EU NIS2 & DORA Compliance Calculator](https://apify.com/eurocomply_data/eu-nis2-dora-compliance-calculator) | `$0.005 / nis2-dora-check` | Batch + REST + MCP |
| [EU EUR-Lex Live Legislation Monitor](https://apify.com/eurocomply_data/eu-eurlex-legislation-monitor) | `$0.005 / eurlex-document` | Batch + REST + MCP |
| [EU KYB Live Company Verifier](https://apify.com/eurocomply_data/eu-kyb-company-verifier) | `$0.005 / kyb-check` | Batch + REST + MCP |
| [Universal E-Commerce Price & Stock Monitor](https://apify.com/eurocomply_data/universal-ecommerce-price-stock-monitor) | `$0.005 / product-check` | Batch + REST + MCP |
| [B2B Buying Intent Signal Finder](https://apify.com/eurocomply_data/b2b-buying-intent-signal-finder) | `$0.005 / intent-lead` | Batch + REST + MCP |

# Actor input Schema

## `xmlFiles` (type: `array`):

Array of objects with `fileName` and raw `xml` string (pain.001 or pain.008 ISO 20022 XML).

## `ibans` (type: `array`):

Optional standalone list of IBANs to validate against ISO 13616 Mod-97 checksum and SEPA country membership.

## Actor input object example

```json
{
  "xmlFiles": [
    {
      "fileName": "payroll_nov_2026.xml",
      "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.09\"><CstmrCdtTrfInitn><GrpHdr><MsgId>MSG-2026-11-001</MsgId><CreDtTm>2026-11-27T10:00:00Z</CreDtTm><NbOfTxs>2</NbOfTxs><CtrlSum>1500.50</CtrlSum><InitgPty><Nm>EuroComply Data Lda</Nm></InitgPty></GrpHdr><PmtInf><PmtInfId>PMT-001</PmtInfId><PmtMtd>TRF</PmtMtd><NbOfTxs>2</NbOfTxs><CtrlSum>1500.50</CtrlSum><ReqdExctnDt><Dt>2026-11-28</Dt></ReqdExctnDt><Dbtr><Nm>EuroComply Data Lda</Nm></Dbtr><DbtrAcct><Id><IBAN>PT50000201231234567890154</IBAN></Id></DbtrAcct><CdtTrfTxInf><PmtId><EndToEndId>INV-2026-01</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">1000.00</InstdAmt></Amt><Cdtr><Nm>Supplier Alpha GmbH</Nm></Cdtr><CdtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></CdtrAcct></CdtTrfTxInf><CdtTrfTxInf><PmtId><EndToEndId>INV-2026-02</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">500.50</InstdAmt></Amt><Cdtr><Nm>Supplier Beta SAS</Nm></Cdtr><CdtrAcct><Id><IBAN>FR7630006000011234567890189</IBAN></Id></CdtrAcct></CdtTrfTxInf></PmtInf></CstmrCdtTrfInitn></Document>"
    }
  ],
  "ibans": []
}
```

# Actor output Schema

## `results` (type: `string`):

Bank-readiness status, errors, warnings, IBAN/CtrlSum reconciliation, and parsed transaction objects.

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

Aggregated counts of valid/invalid SEPA files, total transactions, and total EUR volume.

# 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 = {
    "xmlFiles": [
        {
            "fileName": "payroll_nov_2026.xml",
            "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.09\"><CstmrCdtTrfInitn><GrpHdr><MsgId>MSG-2026-11-001</MsgId><CreDtTm>2026-11-27T10:00:00Z</CreDtTm><NbOfTxs>2</NbOfTxs><CtrlSum>1500.50</CtrlSum><InitgPty><Nm>EuroComply Data Lda</Nm></InitgPty></GrpHdr><PmtInf><PmtInfId>PMT-001</PmtInfId><PmtMtd>TRF</PmtMtd><NbOfTxs>2</NbOfTxs><CtrlSum>1500.50</CtrlSum><ReqdExctnDt><Dt>2026-11-28</Dt></ReqdExctnDt><Dbtr><Nm>EuroComply Data Lda</Nm></Dbtr><DbtrAcct><Id><IBAN>PT50000201231234567890154</IBAN></Id></DbtrAcct><CdtTrfTxInf><PmtId><EndToEndId>INV-2026-01</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">1000.00</InstdAmt></Amt><Cdtr><Nm>Supplier Alpha GmbH</Nm></Cdtr><CdtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></CdtrAcct></CdtTrfTxInf><CdtTrfTxInf><PmtId><EndToEndId>INV-2026-02</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">500.50</InstdAmt></Amt><Cdtr><Nm>Supplier Beta SAS</Nm></Cdtr><CdtrAcct><Id><IBAN>FR7630006000011234567890189</IBAN></Id></CdtrAcct></CdtTrfTxInf></PmtInf></CstmrCdtTrfInitn></Document>"
        }
    ],
    "ibans": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("eurocomply_data/eu-sepa-iso20022-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 = {
    "xmlFiles": [{
            "fileName": "payroll_nov_2026.xml",
            "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.09\"><CstmrCdtTrfInitn><GrpHdr><MsgId>MSG-2026-11-001</MsgId><CreDtTm>2026-11-27T10:00:00Z</CreDtTm><NbOfTxs>2</NbOfTxs><CtrlSum>1500.50</CtrlSum><InitgPty><Nm>EuroComply Data Lda</Nm></InitgPty></GrpHdr><PmtInf><PmtInfId>PMT-001</PmtInfId><PmtMtd>TRF</PmtMtd><NbOfTxs>2</NbOfTxs><CtrlSum>1500.50</CtrlSum><ReqdExctnDt><Dt>2026-11-28</Dt></ReqdExctnDt><Dbtr><Nm>EuroComply Data Lda</Nm></Dbtr><DbtrAcct><Id><IBAN>PT50000201231234567890154</IBAN></Id></DbtrAcct><CdtTrfTxInf><PmtId><EndToEndId>INV-2026-01</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">1000.00</InstdAmt></Amt><Cdtr><Nm>Supplier Alpha GmbH</Nm></Cdtr><CdtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></CdtrAcct></CdtTrfTxInf><CdtTrfTxInf><PmtId><EndToEndId>INV-2026-02</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">500.50</InstdAmt></Amt><Cdtr><Nm>Supplier Beta SAS</Nm></Cdtr><CdtrAcct><Id><IBAN>FR7630006000011234567890189</IBAN></Id></CdtrAcct></CdtTrfTxInf></PmtInf></CstmrCdtTrfInitn></Document>",
        }],
    "ibans": [],
}

# Run the Actor and wait for it to finish
run = client.actor("eurocomply_data/eu-sepa-iso20022-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 '{
  "xmlFiles": [
    {
      "fileName": "payroll_nov_2026.xml",
      "xml": "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?><Document xmlns=\\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.09\\"><CstmrCdtTrfInitn><GrpHdr><MsgId>MSG-2026-11-001</MsgId><CreDtTm>2026-11-27T10:00:00Z</CreDtTm><NbOfTxs>2</NbOfTxs><CtrlSum>1500.50</CtrlSum><InitgPty><Nm>EuroComply Data Lda</Nm></InitgPty></GrpHdr><PmtInf><PmtInfId>PMT-001</PmtInfId><PmtMtd>TRF</PmtMtd><NbOfTxs>2</NbOfTxs><CtrlSum>1500.50</CtrlSum><ReqdExctnDt><Dt>2026-11-28</Dt></ReqdExctnDt><Dbtr><Nm>EuroComply Data Lda</Nm></Dbtr><DbtrAcct><Id><IBAN>PT50000201231234567890154</IBAN></Id></DbtrAcct><CdtTrfTxInf><PmtId><EndToEndId>INV-2026-01</EndToEndId></PmtId><Amt><InstdAmt Ccy=\\"EUR\\">1000.00</InstdAmt></Amt><Cdtr><Nm>Supplier Alpha GmbH</Nm></Cdtr><CdtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></CdtrAcct></CdtTrfTxInf><CdtTrfTxInf><PmtId><EndToEndId>INV-2026-02</EndToEndId></PmtId><Amt><InstdAmt Ccy=\\"EUR\\">500.50</InstdAmt></Amt><Cdtr><Nm>Supplier Beta SAS</Nm></Cdtr><CdtrAcct><Id><IBAN>FR7630006000011234567890189</IBAN></Id></CdtrAcct></CdtTrfTxInf></PmtInf></CstmrCdtTrfInitn></Document>"
    }
  ],
  "ibans": []
}' |
apify call eurocomply_data/eu-sepa-iso20022-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,eurocomply_data/eu-sepa-iso20022-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/qHtQVGg7waxawtEhw/builds/SAdhmshWFHXrZk9xa/openapi.json
