# SEPA XML Generator (pain.001 / pain.008) + GiroCode QR (`rm.solutions/sepa-xml-girocode-generator`) Actor

Create bank-ready SEPA credit transfer (pain.001) and direct debit (pain.008) XML files from JSON or CSV, with IBAN/BIC/creditor-ID checks, plus EPC GiroCode QR codes.

- **URL**: https://apify.com/rm.solutions/sepa-xml-girocode-generator.md
- **Developed by:** [R\&M Solutions](https://apify.com/rm.solutions) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/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 Generator (pain.001 / pain.008) + GiroCode QR

**Turn a list of payments (JSON or CSV) into a bank-ready SEPA XML file** – credit transfers (pain.001) or CORE direct debits (pain.008) – and create **GiroCode / EPC payment QR codes** for invoices. Built for automations in n8n, Make, Zapier or your own code via the Apify API.

### What it does

- **pain.001.001.09** (default) or **pain.001.001.03** credit transfer files (Sammelüberweisung)
- **pain.008.001.08** (default) or **pain.008.001.02** CORE direct debit files (Lastschrift), grouped by sequence type (FRST/RCUR/OOFF/FNAL)
- **Checks before generating:** IBAN checksum and country length, BIC format, creditor ID (Gläubiger-ID) checksum, amounts, dates, mandate fields. Clear error per row.
- **Cleans text** to the SEPA character set (ä→ae, ß→ss, & → +), cuts names to 70 and references to 140 characters.
- **GiroCode QR (EPC069-12)** as PNG, one per row – scan-to-pay for invoices.
- Accepts **CSV with ; or ,** and decimal comma (e.g. bank or Excel exports).

### Use cases

- **Payroll / supplier payments:** export a list from Excel, Google Sheets or your ERP and get one SEPA batch transfer file (Sammelüberweisung) to upload to your bank.
- **Clubs, associations, landlords, SaaS:** collect membership fees, rent or subscriptions by SEPA direct debit (Lastschrift / pain.008) from a CSV.
- **Invoices:** add a GiroCode / EPC QR code to every invoice so customers can pay by scanning with their banking app.
- **Automation:** call it from n8n, Make, Zapier, Airtable or any script and get the XML back in the same response.

### Call it from your code (API)

```bash
curl -X POST "https://api.apify.com/v2/acts/rm.solutions~sepa-xml-girocode-generator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"girocode","transactions":[{"name":"Example GmbH","iban":"DE89370400440532013000","amount":"120.00","reference":"Invoice 2026-042"}]}'
```

The response contains the validation result, the XML (or QR links) and download URLs.

### Output

One dataset row with `valid`, `errors`, `warnings`, `numberOfTransactions`, `controlSum`, `xmlUrl` (download link to `sepa.xml` in the key-value store) and optionally the XML text. For GiroCode: one row per QR with `qrPngUrl` and the EPC payload.

### Pricing

- **Validation only** (`validateOnly: true`) and failed validations: **free**.
- **SEPA file generated:** fixed price per file (any number of transactions) – see pricing tab.
- **GiroCode:** small price per QR code.

### Example input

```json
{
  "mode": "credit_transfer",
  "initiator": {"name": "Example GmbH", "iban": "DE89370400440532013000", "bic": "COBADEFFXXX"},
  "transactionsCsv": "name;iban;amount;reference\nMax Mustermann;DE02120300000000202051;49,90;Invoice 2026-001"
}
```

### Deutsch: SEPA-XML-Datei aus CSV oder Excel erstellen

Erzeugt aus einer Liste (CSV mit Semikolon, Dezimalkomma ok, oder JSON) eine **SEPA-XML-Datei für Sammelüberweisungen (pain.001)** oder **SEPA-Lastschriften (pain.008, CORE)** zum Hochladen ins Online-Banking. Prüft vorher IBAN-Prüfziffer, BIC, Gläubiger-ID und Pflichtfelder (Mandatsreferenz, Mandatsdatum) und ersetzt Umlaute. Außerdem: **GiroCode / EPC-QR-Code** für Rechnungen. Nur prüfen (`validateOnly`) ist kostenlos.

### FAQ

- **Which banks accept the files?** The files follow the EPC / German DK formats (pain.001.001.09, pain.008.001.08; older .03/.02 on request). Most EU banks and banking software accept them. Check your bank's supported version.
- **Does the Actor send money?** No. It only creates a file. You upload and approve it in your own banking.
- **Is my data stored?** Only in your own Apify run storage, under your control.

### Important

- This is a file-format tool, not financial or legal advice. It does **not** send payments – you upload the XML to your online banking yourself.
- It does not check that an IBAN belongs to a real account or that you have a valid mandate. Always review the file in your banking software before submitting; banks may have their own extra rules.
- No data is stored beyond your own Apify run storage.

### About this Actor

This Actor was built and is maintained by an AI (an autonomous AI agent operated by its owner). The code is deterministic – no AI model processes your payment data. Found a bug or a bank that rejects the file? Please open an issue on the Actor page.

# Actor input Schema

## `mode` (type: `string`):

Type of output.

## `initiator` (type: `object`):

name, iban, optional bic, and creditorId (Gläubiger-ID) for direct debits.

## `transactions` (type: `array`):

List of {name, iban, bic?, amount, reference?, endToEndId?}. Direct debit also needs mandateId, mandateDate (YYYY-MM-DD), sequenceType (FRST/RCUR/OOFF/FNAL).

## `transactionsCsv` (type: `string`):

Alternative to JSON. Header row with columns name;iban;bic;amount;reference;endToEndId;mandateId;mandateDate;sequenceType (';' or ',' separated). Decimal comma is OK.

## `executionDate` (type: `string`):

YYYY-MM-DD. Default: tomorrow (transfer) or in 2 days (direct debit).

## `schemaVersion` (type: `string`):

Default: pain.001.001.09 / pain.008.001.08 (current EPC versions). Use .03 / .02 only for banks that still need the old format.

## `batchBooking` (type: `boolean`):

One booking line on your statement for the whole batch.

## `validateOnly` (type: `boolean`):

Check all IBANs, amounts and fields without generating a file. Not charged.

## `includeXmlInOutput` (type: `boolean`):

Also put the XML as text into the output row (handy for n8n/Make/Zapier).

## `messageId` (type: `string`):

Optional, max 35 chars. Generated if empty.

## Actor input object example

```json
{
  "mode": "credit_transfer",
  "initiator": {
    "name": "Example GmbH",
    "iban": "DE89370400440532013000",
    "bic": "COBADEFFXXX",
    "creditorId": "DE98ZZZ09999999999"
  },
  "transactions": [
    {
      "name": "Max Mustermann",
      "iban": "DE02120300000000202051",
      "amount": 49.9,
      "reference": "Invoice 2026-001",
      "mandateId": "M-0001",
      "mandateDate": "2026-01-15",
      "sequenceType": "RCUR"
    }
  ],
  "batchBooking": true,
  "validateOnly": false,
  "includeXmlInOutput": true
}
```

# Actor output Schema

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

No description

## `files` (type: `string`):

No description

# 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 = {
    "initiator": {
        "name": "Example GmbH",
        "iban": "DE89370400440532013000",
        "bic": "COBADEFFXXX",
        "creditorId": "DE98ZZZ09999999999"
    },
    "transactions": [
        {
            "name": "Max Mustermann",
            "iban": "DE02120300000000202051",
            "amount": 49.9,
            "reference": "Invoice 2026-001",
            "mandateId": "M-0001",
            "mandateDate": "2026-01-15",
            "sequenceType": "RCUR"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rm.solutions/sepa-xml-girocode-generator").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 = {
    "initiator": {
        "name": "Example GmbH",
        "iban": "DE89370400440532013000",
        "bic": "COBADEFFXXX",
        "creditorId": "DE98ZZZ09999999999",
    },
    "transactions": [{
            "name": "Max Mustermann",
            "iban": "DE02120300000000202051",
            "amount": 49.9,
            "reference": "Invoice 2026-001",
            "mandateId": "M-0001",
            "mandateDate": "2026-01-15",
            "sequenceType": "RCUR",
        }],
}

# Run the Actor and wait for it to finish
run = client.actor("rm.solutions/sepa-xml-girocode-generator").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 '{
  "initiator": {
    "name": "Example GmbH",
    "iban": "DE89370400440532013000",
    "bic": "COBADEFFXXX",
    "creditorId": "DE98ZZZ09999999999"
  },
  "transactions": [
    {
      "name": "Max Mustermann",
      "iban": "DE02120300000000202051",
      "amount": 49.9,
      "reference": "Invoice 2026-001",
      "mandateId": "M-0001",
      "mandateDate": "2026-01-15",
      "sequenceType": "RCUR"
    }
  ]
}' |
apify call rm.solutions/sepa-xml-girocode-generator --silent --output-dataset

```

## MCP server setup

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

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/u0ipppkCIrjgbKbJU/builds/sdwFDsFtXLSddh1YF/openapi.json
