# SEPA Mandate Generator: Direct Debit Mandate Forms to PDF (`hardreset83/sepa-mandate-generator`) Actor

Create SEPA direct debit mandate forms (PDF) for your members or customers from Excel, CSV or JSON: the standard mandate wording in English, German, Italian, Spanish or French, a unique mandate reference for each, prefilled names and IBANs, and a list for your direct debit file.

- **URL**: https://apify.com/hardreset83/sepa-mandate-generator.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

$10.00 / 1,000 mandate form createds

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 Mandate Generator: Direct Debit Mandate Forms to PDF

Before you can collect money by **SEPA direct debit**, every member or customer has to sign a **mandate**. This Actor
makes the forms for you: give it your list of members or customers in **Excel**, **CSV** or **JSON** and get one
**PDF mandate form** for each, with the **standard wording of the SEPA Core mandate** in **English, German, Italian,
Spanish or French**, your creditor identifier, a **unique mandate reference** for each person and the name, address
and IBAN already filled in. Print them, hand them out or send each member their own PDF to sign.

You also get **MANDATES.xlsx**, the list of all mandate references with names and IBANs: add the date of signature
when the forms come back and it is ready for your direct debit file.

### What it does

- **One A4 page per mandate**: your name, address and SEPA creditor identifier, the mandate reference, recurrent or
  one-off payment ticked, the standard authorisation text with the refund rights, then the debtor's name, address,
  IBAN and BIC, and room for place, date and signature.
- **The standard wording in 5 languages**: the text that banks and the national payment communities publish for the
  SEPA Core mandate (in German "Ich ermächtige...", the "SEPA-Lastschriftmandat"), with your name in it. A
  **Language** column in the list chooses the language row by row, and "Add the English text" prints the English
  version under it for members from other countries.
- **Unique mandate references**: references already in your list are kept as they are. New ones are your prefix with
  the member or customer number (MANDATE-1001), or with a running number (MANDATE-0001, MANDATE-0002...). Every
  reference is checked: at most 35 characters, only the characters banks allow, never used twice. The run tells you
  the number to start from next time, so that new members never get a reference that is already taken.
- **Checks every row**: IBAN check digits and length, countries outside SEPA, BIC, missing names, double references.
  Accounts in Switzerland, the United Kingdom and the other SEPA countries outside the EEA need the debtor's address
  for a direct debit: you get a warning when it is missing. Rows with errors are listed with the reason, in your
  language, and cost nothing.
- **Without an IBAN** the form has empty boxes, so the member writes it in by hand. Or ask for **blank forms**: empty
  mandates with their own reference, for new members to fill in.
- **Your list as it is**: titles in English, German, Italian, Spanish, French or Dutch are found by themselves
  ("Kontoinhaber", "Mitgliedsnummer", "Cognome", "IBAN", "Ort"...), first and last name in two columns, a title row
  above the table, any separator, UTF-8 or Windows files. When the account holder is not the member (a parent pays
  for a child), the form shows both.
- **Your own data checked first**: the creditor identifier is checked with its check digits before any form is made,
  so a typo never ends up on hundreds of printed forms.

### What you get

- **MANDATES.pdf** in the key-value store (Storage tab): all the forms, one page each, ready to print.
- **One PDF per mandate** if you switch on "One PDF file per mandate", with its link in the dataset: to send each
  member their own form by email or through your e-signature tool.
- **MANDATES.xlsx** with two sheets:
  - **Mandates**: mandate reference, name (account holder), IBAN, BIC, date of signature (empty, to fill in), amount,
    purpose, street, post code, town, country, member, language, link to the PDF and warnings. The titles are the ones
    the **SEPA XML Generator** reads, so the list becomes your direct debit file.
  - **Rows not created**: every row that did not become a form (an error, or left out by your maximum cost),
    with the reason.
- **SUMMARY**: the numbers for automations (forms created, without IBAN, errors, left out, blank forms, the number to
  start from next time, the links to MANDATES.pdf and MANDATES.xlsx, the mandate references and a one-line message).
- **Dataset**: one item per row, to export as JSON, CSV or Excel or to send to your member software.

The Actor only reads the list you give it. It does not contact any bank and does not collect any money.

### How to use it

1. Fill in your name, address and **SEPA creditor identifier** (in Germany from the Bundesbank, in France the ICS,
   elsewhere usually from your bank). The input form is prefilled with an example club and an example list of three
   members: press **Start** to see the forms (the example is free and marked EXAMPLE).
2. Upload your list (Excel, CSV or JSON), add a link to it, or paste the rows. Or ask for a number of blank forms.
3. Choose the language, recurrent or one-off payments, and if you like a purpose ("Membership fee") and the prefix of
   the references.
4. Open the **Storage** tab and download **MANDATES.pdf** and **MANDATES.xlsx**.

**Automation**: when a new member signs up, call the Actor from Make, Zapier, n8n or the Apify API with the member as
JSON and "One PDF file per mandate" on, then send the `pdfUrl` of the dataset item to the member for signature. Use
the member number as reference (it stays the same in every run), or start the running numbers from
`nextReferenceStart` of the last SUMMARY.

### Example output

One item of the dataset (shortened):

```json
{
  "status": "created",
  "statusText": "Formular erstellt",
  "mandateId": "BV-1002",
  "name": "Erika Muster",
  "member": "Max Muster",
  "street": "Musterstraße 12a",
  "postCode": "50667",
  "town": "Köln",
  "country": "DE",
  "iban": "DE89370400440532013000",
  "bic": "COBADEFFXXX",
  "amount": 60,
  "purpose": "Mitgliedsbeitrag",
  "language": "de",
  "paymentType": "recurrent",
  "pdfUrl": "https://api.apify.com/v2/key-value-stores/.../records/MANDATE-BV-1002.pdf",
  "errors": [],
  "warnings": [],
  "source": "mitglieder.xlsx",
  "row": 5
}
```

And the message of the run: "7 mandate forms created (2 without IBAN: the debtor writes it in). Print MANDATES.pdf
from the Storage tab or send it for signature; MANDATES.xlsx lists the mandate references for your direct debit file.
4 rows with errors left out (free): see «Rows not created» in MANDATES.xlsx."

### Who is it for

- **Clubs and associations, sports clubs, music schools, kindergartens and schools** that move their members to
  direct debit: all the mandates of the year in one run, with the right references.
- **Gyms, landlords, subscription and service businesses** that collect every month and need a signed mandate from
  every new customer.
- **Accountants and bookkeepers** who set up direct debits for their clients.
- **Developers, automations and AI agents**: a correct mandate form as PDF from one API call, without writing a PDF
  layout or looking for the official wording in five languages.

### Pricing

**Pay per event: $10 per 1,000 mandate forms** ($0.01 for each form created, blank forms included). Free: rows with
errors, rows of lists that cannot be read and the example of the input form. Set a maximum cost per run in the run
options if you like: when it does not pay for every form, the first ones are created and charged, the others are left
out and the message tells you how many.

### Privacy and security

The Actor runs in your own Apify account: your list, the PDF files and MANDATES.xlsx 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. Lists larger
than 50 MB or with more than 5,000 rows are not read: split them. Delete the run, or set a short data retention, when
you no longer need the files.

### FAQ

**Is the form valid for my bank?** The forms contain what the SEPA Core rulebook asks of a mandate: the title, your
name, address and creditor identifier, the unique mandate reference, the type of payment, the standard text with the
refund rights, the debtor's name, account, place, date and signature. If your bank has its own template, the scheme
asks the same content of both.

**What is the creditor identifier?** Your number as a creditor of SEPA direct debits, like DE98ZZZ09999999999. You
need it for every direct debit file, and you get it once (in Germany from the Bundesbank, elsewhere through your
bank).

**SEPA B2B mandates?** Not yet: the forms are for the SEPA Core scheme, for consumers and businesses.

**Can members sign electronically?** Switch on "One PDF file per mandate" and send each PDF through your e-signature
tool, if your bank accepts electronically signed mandates. Otherwise print, sign and keep the paper.

**My columns have other titles.** Write them in "Column titles", for example {"name": "Teilnehmer", "iban":
"Bankverbindung"}.

**I run it again next year for new members.** Use member numbers in the list, or set "First running number" to the
number the last run told you, so that no reference is used twice.

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

### Auf Deutsch

Erstellt **SEPA-Lastschriftmandate als PDF** aus Ihrer Mitglieder- oder Kundenliste (Excel, CSV oder JSON): eine Seite
pro Mitglied mit dem üblichen Mandatstext ("Ich ermächtige..." mit dem Hinweis zur Erstattung innerhalb von acht
Wochen), Ihrer **Gläubiger-Identifikationsnummer**, einer eindeutigen **Mandatsreferenz** (aus der Mitgliedsnummer
oder fortlaufend) und den schon eingetragenen Namen, Anschriften und IBANs. Ohne IBAN bleiben Kästchen zum Ausfüllen,
auf Wunsch auch leere Formulare. Wiederkehrende oder einmalige Zahlung, auf Wunsch mit englischem Text darunter. Dazu
die Liste der Mandate für die Lastschriftdatei. Preis: 10 $ pro 1.000 Formulare, Zeilen mit Fehlern sind kostenlos.

### In italiano

Crea i **moduli del mandato per l'addebito diretto SEPA (SDD)** in PDF dall'elenco dei soci o dei clienti (Excel, CSV o
JSON): una pagina per ognuno con il testo standard del mandato SEPA Core, il **codice identificativo del creditore**,
un **riferimento del mandato** unico (dal numero di socio o progressivo) e nome, indirizzo e IBAN già scritti. Senza
IBAN restano le caselle da compilare a mano, e si possono chiedere anche moduli vuoti. Pagamento ricorrente o singolo,
e se serve il testo inglese sotto. In più l'elenco dei mandati pronto per la distinta degli addebiti. Prezzo: 10 $
ogni 1.000 moduli, le righe con errori sono gratis.

### En español

Crea las **órdenes de domiciliación de adeudo directo SEPA** en PDF a partir de su lista de socios o clientes (Excel,
CSV o JSON): una página para cada uno con el texto estándar de la orden SEPA Core, su **identificador del acreedor**,
una **referencia de la orden** única (del número de socio o correlativa) y el nombre, la dirección y el IBAN ya
escritos. Sin IBAN quedan las casillas para rellenar a mano, y también puede pedir formularios en blanco. Pago
recurrente o único, y si quiere el texto en inglés debajo. Además la lista de las órdenes para el fichero de adeudos.
Precio: 10 $ por cada 1.000 formularios, las filas con errores son gratis.

### En français

Crée les **mandats de prélèvement SEPA** en PDF à partir de votre liste d'adhérents ou de clients (Excel, CSV ou JSON) :
une page pour chacun avec le texte standard du mandat SEPA Core, votre **identifiant créancier SEPA (ICS)**, une
**référence unique du mandat (RUM)** tirée du numéro d'adhérent ou numérotée, et le nom, l'adresse et l'IBAN déjà
écrits. Sans IBAN, des cases restent à remplir à la main, et vous pouvez aussi demander des mandats vierges. Paiement
récurrent ou ponctuel, avec si vous voulez le texte anglais en dessous. En plus, la liste des mandats pour votre
fichier de prélèvements. Prix : 10 $ pour 1 000 formulaires, les lignes avec des erreurs sont gratuites.

# Actor input Schema

## `creditorName` (type: `string`):

Your name or the name of your club, school or company, as your customers know it.

## `creditorAddress` (type: `string`):

Street, post code and town, country: one per line.

## `creditorId` (type: `string`):

Like DE98ZZZ09999999999 (country, check digits, business code, national number). It is checked before the forms are made.

## `debtorsFile` (type: `string`):

Excel (.xlsx), CSV or JSON with one row per member or customer: name (or first and last name), and if you have them address, IBAN, BIC, member number, mandate reference, amount, language. Columns are found by their titles in English, German, Italian, Spanish, French or Dutch. Without an IBAN the form has empty boxes for it.

## `debtorsUrls` (type: `array`):

Direct links (https) to lists, for example an export of your member software or a file from Make, Zapier, n8n or a cloud folder.

## `debtorsContent` (type: `string`):

Rows copied from Excel or a CSV. Prefilled with an example list of three members so you can try the Actor in one click: the example is free, and it is left out when you upload a list or add links.

## `debtors` (type: `array`):

For the API and automations: \[{"name": "...", "street": "...", "postCode": "...", "town": "...", "country": "DE", "iban": "..."}].

## `blankForms` (type: `integer`):

Also make this many empty forms, each with its own mandate reference, for new members to fill in by hand.

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

The standard wording of the SEPA Core mandate in this language. A column «Language» in the list (en, de, it, es, fr) chooses it row by row.

## `englishToo` (type: `boolean`):

On: titles and the mandate text also in English, under the chosen language (for members from other countries).

## `paymentType` (type: `string`):

Ticked on every form.

## `purpose` (type: `string`):

Printed on every form, for example «Membership fee». A column «Purpose» in the list wins.

## `referencePrefix` (type: `string`):

New references are this prefix with the member number of the list, or with a running number (MANDATE-0001, MANDATE-0002...). References already in the list are kept as they are. Letters, digits and / - ? : ( ) . , ' + only.

## `referenceStart` (type: `integer`):

Start from the number after the last mandate you made, so that every reference stays unique.

## `oneFilePerMandate` (type: `boolean`):

On: besides MANDATES.pdf, every mandate gets its own PDF file with a link in the dataset (for sending each member their form, or for e-signature). Up to 1,000 per run.

## `columns` (type: `object`):

Only if a column is not found by its title, for example {"name": "Mitglied", "iban": "Bankverbindung"}. Fields: name, holder, firstName, lastName, number, iban, bic, mandateId, street, buildingNumber, postCode, town, country, amount, purpose, language.

## Actor input object example

```json
{
  "creditorName": "Example Sports Club",
  "creditorAddress": "Example Street 1\n10115 Berlin\nGermany",
  "creditorId": "DE98ZZZ09999999999",
  "debtorsUrls": [],
  "debtorsContent": "Name;Street;Post code;Town;Country;IBAN\nExample Member One;Example Road 2;10117;Berlin;DE;DE02120300000000202051\nExample Member Two;Example Lane 5;80331;Munich;DE;\nExample Member Three;Example Square 3;1010;Vienna;AT;AT611904300234573201",
  "blankForms": 0,
  "language": "en",
  "englishToo": false,
  "paymentType": "recurrent",
  "referencePrefix": "MANDATE-",
  "referenceStart": 1,
  "oneFilePerMandate": false
}
```

# Actor output Schema

## `mandates` (type: `string`):

Every mandate of your list with its status and problems.

## `pdf` (type: `string`):

MANDATES.pdf: the mandate forms ready to sign.

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

MANDATES.xlsx: the mandates and the rows not created.

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

Every file of this run in the key-value store, with its link.

## `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 = {
    "creditorName": "Example Sports Club",
    "creditorAddress": `Example Street 1
10115 Berlin
Germany`,
    "creditorId": "DE98ZZZ09999999999",
    "debtorsUrls": [],
    "debtorsContent": `Name;Street;Post code;Town;Country;IBAN
Example Member One;Example Road 2;10117;Berlin;DE;DE02120300000000202051
Example Member Two;Example Lane 5;80331;Munich;DE;
Example Member Three;Example Square 3;1010;Vienna;AT;AT611904300234573201`
};

// Run the Actor and wait for it to finish
const run = await client.actor("hardreset83/sepa-mandate-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 = {
    "creditorName": "Example Sports Club",
    "creditorAddress": """Example Street 1
10115 Berlin
Germany""",
    "creditorId": "DE98ZZZ09999999999",
    "debtorsUrls": [],
    "debtorsContent": """Name;Street;Post code;Town;Country;IBAN
Example Member One;Example Road 2;10117;Berlin;DE;DE02120300000000202051
Example Member Two;Example Lane 5;80331;Munich;DE;
Example Member Three;Example Square 3;1010;Vienna;AT;AT611904300234573201""",
}

# Run the Actor and wait for it to finish
run = client.actor("hardreset83/sepa-mandate-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 '{
  "creditorName": "Example Sports Club",
  "creditorAddress": "Example Street 1\\n10115 Berlin\\nGermany",
  "creditorId": "DE98ZZZ09999999999",
  "debtorsUrls": [],
  "debtorsContent": "Name;Street;Post code;Town;Country;IBAN\\nExample Member One;Example Road 2;10117;Berlin;DE;DE02120300000000202051\\nExample Member Two;Example Lane 5;80331;Munich;DE;\\nExample Member Three;Example Square 3;1010;Vienna;AT;AT611904300234573201"
}' |
apify call hardreset83/sepa-mandate-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hardreset83/sepa-mandate-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/RKrNxc3D1jcbO1XU9/builds/velLdRXBxYfmRFrIw/openapi.json
