Skip to content

Free · No sign-up · Nothing leaves the phone

Online SEPA mandate your customer signs on their phone

SEPA mandate

Fill in your business details (the creditor). You get a link to send your customer by WhatsApp or email.

Street, number, postcode, town and country.

Your bank gives it to you when you sign up for direct debits. In Spain: ES + 2 check digits + suffix + tax ID (NIF).

Don't have it to hand? Work it out from your Spanish NIF

Your bank assigns the suffix: type the one it confirmed. ZZZ is what the EPC uses when there is none.

Scheme
Type of payment

Your customer or contract number. Letters, digits and hyphens only; up to 12.

The customer will see it: “Monthly fee”, “Website maintenance”…

Want every signed mandate saved automatically in the customer's record in Holded? We build that connected version as custom work: Holded integrations.

Instead of sending a PDF to fill in and print, send a link. Your customer types their IBAN, which is checked instantly against their bank, adds their name, tax ID and address, signs with a finger and downloads the SEPA direct debit mandate as a PDF, with the mandate reference and every field. Core or B2B, recurrent or one-off.

There is no server: your business details travel inside the link (after the #, which browsers never send) and your customer's IBAN and signature never leave their phone. The PDF is created right there.

How it works

How to use it, step by step

  1. 101

    The business creates the link

    Under “I'm the business”, enter your name, address and SEPA creditor identifier, and choose the scheme (Core or B2B) and whether the payment is recurrent or one-off. You get a link.

  2. 202

    Send it to the customer

    By WhatsApp, email or however you like. Your details travel inside the link itself: nobody has to sign up for anything.

  3. 303

    The customer fills it in and signs

    They open the link on their phone, see who they are authorising, type their IBAN (checked instantly, showing their bank), name, tax ID and address, and sign with a finger.

  4. 404

    Out comes the PDF

    The mandate is created on their phone with a unique reference. They download or share it and send it to you: the creditor is the one who must keep it.

What a SEPA direct debit mandate is

The SEPA mandate is the authorisation an account holder gives a creditor to collect payments in euros from their account. As the SEPA Spain FAQ puts it, it authorises the creditor to initiate collections and the debtor's bank to pay them. The debtor signs it and the creditor keeps it: without it, a collection is treated as unauthorised.

Which fields it contains

These are the fields required by the EPC mandate guide and rulebook, with their attribute codes. All of them go in the PDF:

FieldEPC attributeWho provides it
Unique mandate referenceAT-M001Generated automatically
Creditor nameAT-E001Business
Creditor addressAT-E004Business
Creditor identifierAT-E005Business
Debtor nameAT-P001Customer
Debtor addressAT-P005Customer
Account IBANAT-D001Customer
BICAT-D002Taken from the IBAN if Spanish
Type of payment: recurrent or one-offAT-M006Business
Place and date of signingAT-M008Customer (date is automatic)
SignatureAT-M009Customer
The EPC only requires the debtor's address and the BIC when one of the banks is outside the European Economic Area. Here the address is always asked for and, for Spanish IBANs, the BIC is filled in automatically. The tax ID is not an EPC field, but Spanish templates include it.

The mandate reference

It identifies each mandate and must go with every collection. The rulebook does not set its length, but the bank file field (MndtId) takes at most 35 characters: letters, digits, / - ? : ( ) . , ' + and space, not starting or ending with / and without //. This mini-app builds it as PREFIX-YYYYMMDD-XXXXXXXX: your optional prefix (customer or contract number), the date and 8 random characters, 30 characters at most. The annex to Regulation (EU) 260/2012 lists the mandate reference and the date of signing among the data that travel with every collection.

Core or B2B

SEPA Core vs SEPA B2B

CoreB2B
Who can be the debtorAnyone: consumers and businessesOnly businesses and the self-employed; not consumers
Refund of an authorised collectionYes, within 8 weeks of the debitNo
Unauthorised collectionUp to 13 monthsWhatever they agree with their bank (may be shorter)
Debtor's bankDoes not have to check the mandateMust get the debtor's confirmation before the first debit
Mandatory mandate wordingStates the refund rightStates there is no refund
Sources: EPC SDD B2B rulebook (EPC222-07), mandate guide (EPC392-08) and Spanish Royal Decree-law 19/2018, arts. 34, 43 and 49. The bank confirmation in B2B is described in the Spanish Banking Association (AEB) leaflet on SEPA direct debits.

If your customer signs a B2B mandate, tell them their bank will ask them to confirm it before the first debit; otherwise the collection is returned. The tool itself warns the customer when the mandate is B2B.

Refunds

Refund periods: 8 weeks and 13 months

  • 8 weeks, authorised collection (Core): article 49.1 of Spanish Royal Decree-law 19/2018 gives the payer “eight weeks from the date on which the funds were debited” to ask for a refund of a collection initiated by the payee. It is the period stated in the Core mandate wording.
  • 13 months, unauthorised collection: article 43.1 lets the payer claim an unauthorised or incorrectly executed transaction “within a maximum of thirteen months from the debit date”. A collection without a signed mandate is unauthorised.
  • B2B: article 34.1 allows those refunds to be excluded when the payer is neither a consumer nor a micro-enterprise, and the EPC B2B rulebook does so: no refund of authorised collections, although the debtor can ask their bank not to debit until the due date.

When a mandate expires

If 36 months go by without any collection (counted from the last one, even if it was returned), the creditor must cancel the mandate and get a new one. It is in the EPC B2B rulebook (section 4.2) and the SEPA Spain FAQ says the same for Core. If the customer changes account, the same FAQ treats it as an amendment of the mandate rather than a new one.

Creditor ID

The SEPA creditor identifier

It identifies your business as a creditor in SEPA collections. Your bank gives it to you when you sign up for direct debits. In Spain it has 16 characters: ES + 2 check digits + 3-character suffix + your NIF. For example, ES11ZZZB12345674.

  1. 101

    Drop the suffix

    ES ?? ZZZ B12345674 → B12345674

    The business suffix (positions 5 to 7) is not part of the calculation.

  2. 202

    Add country and 00

    B12345674 + ES00

    Append the country code and two zeros after the tax ID.

  3. 303

    Letters to numbers

    A=10, B=11 … Z=35

    As in the IBAN, each letter becomes two digits.

  4. 404

    Modulo 97

    98 − (number mod 97)

    The result, as two digits, is the check number.

The algorithm for Spain is in the SEPA Spain document on migrating direct debits and the worked example is in the EPC guide “Creditor Identifier Overview”: for Malta, MT50ZZZ670169305T. Our code gives the same 50. The Spanish example on this page (ES11ZZZB12345674) is our own calculation with a made-up NIF: there is no worked Spanish example in an official source.

Your bank assigns the suffix. The EPC uses “ZZZ” when there is none; some Spanish banks use digits inherited from the old Norma 19. Always use the one your bank confirmed: if it does not match, collections are rejected.

Work out the creditor identifier · javascript
// Check digits of a SEPA creditor identifier (ISO 7064 MOD 97-10).
// The suffix (positions 5 to 7) is NOT part of the calculation.
function creditorCheck(country, national) {
  const base = (national + country + "00").toUpperCase();
  let digits = "";
  for (const c of base) {
    const n = c.charCodeAt(0);
    digits += n >= 65 && n <= 90 ? String(n - 55) : c; // A=10 … Z=35
  }
  let rest = 0;
  for (let i = 0; i < digits.length; i += 7) {
    rest = Number(String(rest) + digits.slice(i, i + 7)) % 97;
  }
  return String(98 - rest).padStart(2, "0");
}

function spanishCreditorId(nif, suffix = "ZZZ") {
  return "ES" + creditorCheck("ES", nif) + suffix + nif;
}

creditorCheck("MT", "670169305T"); // "50" (official EPC example)
spanishCreditorId("B12345674");     // "ES11ZZZB12345674"

Signature

Is a finger-drawn signature valid?

Straight answer: we have not found any official source that addresses signatures drawn on a screen, either for or against. This is what is published:

  • The EPC accepts mandates on paper or electronically, as long as they are signed with a “legally binding method of signature”, and leaves the electronic signing procedure to agreement between the parties.
  • The SEPA Spain FAQ says the rules give handwritten signatures the same validity as advanced electronic signatures. A finger-drawn signature is not an advanced electronic signature.
  • The EPC's electronic mandate service (e-Mandate) is offered by banks, not by creditor businesses.

What this mini-app does is keep a record: the signature goes in the PDF together with the date, time and time zone, the place and a SHA-256 fingerprint of all the data, which changes if anything is altered. Even so, ask your bank whether it accepts mandates signed this way before you rely on them. For more certainty, the customer can print the PDF and sign it by hand, or sign it with a digital certificate.

How it's built

No server: how the data travels

  • The link carries your business details in the fragment, the part after the #. Browsers do not send the fragment to the server, so it never reaches our logs. When the link is opened, the page reads it and removes it from the address bar straight away, before any analytics loads.
  • It is neither compressed nor signed, on purpose: it is about 200 bytes, and a signature without a server protects nothing because the key would have to live in the page. What the page does do is re-validate every field on opening, including the creditor identifier check digits, and show them to the customer before they sign.
  • The IBAN is checked on the phone with the standard's algorithm and the Bank of Spain lists of banks and BICs, just like our IBAN validator.
  • The PDF is created in the browser with pdf-lib (MIT licence), which is only downloaded when you press “Sign and create the PDF”. Downloading uses a local (blob:) link and sharing uses the phone's own share sheet.

FAQ

Frequently asked questions about SEPA mandates

Where can I find a SEPA mandate template to fill in?

Right here, and there is no need to print it: you enter your business details, send the link, and your customer completes and signs it on their phone. The PDF contains every field the EPC requires. If you prefer paper, the customer can print the PDF and sign it by hand.

What is a SEPA direct debit mandate?

The signed authorisation with which an account holder allows a business to collect payments and their bank to pay them. The debtor signs it and the creditor keeps it.

How do I create a SEPA mandate?

You need your creditor identifier (from your bank), and to choose Core or B2B and recurrent or one-off. The customer adds their name, address and IBAN and signs. With this mini-app it all happens through a link, and the PDF comes out with a unique reference.

What is the difference between SEPA Core and SEPA B2B?

Core works for any customer, who can ask for a refund of an authorised collection within 8 weeks. B2B is only between businesses and the self-employed: no refund of authorised collections, but the customer's bank must confirm the mandate before the first debit.

How long does the customer have to reverse a direct debit?

Under Core, 8 weeks from the debit for an authorised collection (art. 49.1 of Spanish Royal Decree-law 19/2018) and up to 13 months if it was unauthorised (art. 43.1). Under B2B there is no refund of authorised collections.

Is a finger-drawn signature on a phone valid?

No official source says so either way. The EPC requires a legally binding method of signature and leaves the procedure to the parties. Ask your bank before relying on it; for more certainty, the customer can print the PDF and sign it by hand.

Who has to keep the mandate?

The creditor, i.e. the business collecting the money. It must be able to produce it if the bank asks: without a mandate, the collection is treated as unauthorised. That is why the customer must send you the PDF after signing.

When does a SEPA mandate expire?

When 36 months pass without any collection under it. The creditor must then cancel it and get a new one.

What if my customer changes bank account?

According to the SEPA Spain FAQ, it is an amendment of the mandate: the customer gives you the new account and you use it for the next collection. The easiest way is to send them another link so they sign with the new IBAN and your paperwork stays up to date.

Where do I get a creditor identifier?

Your bank assigns it when you sign up for its direct debit service. It contains your tax ID; the tool can calculate it so you can check it, but the right suffix is the one your bank confirms.

Do you store my IBAN or my signature?

No. There is no server: the IBAN and the signature never leave the phone, the PDF is created there and nothing is stored in the browser. Leaving the page clears what was typed.

About

Who builds it and why

It is built by Black Wings, a software studio in Valencia (Spain). Searching for a SEPA mandate template turns up static PDFs you have to print, fill in by hand and scan. This mini-app does the whole thing on the customer's phone, free and without asking for your email.

If you want every signed mandate saved automatically in the customer's record in Holded, or the bank batch produced for you, we build that connected version as custom work: see our Holded integrations or tell us about it.

This is not legal or banking advice. We explain the rules with their sources, but the terms of each collection are set by your contract with your bank.

Privacy

What happens to the data

  • Business details: they travel inside the link, after the #. The browser does not send them to the server and the page removes them from the address bar on opening. So that a reload does not lose them, they are kept in that tab's memory (sessionStorage), which is cleared when the tab closes.
  • Customer details (IBAN, name, tax ID, address and signature): they never leave the device, are not stored in the browser (no localStorage, no cookies) and are cleared when leaving the page. There is no form that gets sent anywhere.
  • Analytics: the fields are flagged so analytics does not collect them, there is no form submission to measure and the link arrives without its fragment. We checked it: across the whole flow, no network request carries this data.
  • The PDF is created on the customer's phone and they decide who to send it to.

Need it connected to your software?

Saving the signed mandate in the customer's record automatically, producing the bank batch, or keeping everything inside your invoicing: we build that as custom work at Black Wings.