SEPA Rejects & Returns to Excel: pain.002 Status Reports avatar

SEPA Rejects & Returns to Excel: pain.002 Status Reports

Pricing

$10.00 / 1,000 rejected or returned payments

Go to Apify Store
SEPA Rejects & Returns to Excel: pain.002 Status Reports

SEPA Rejects & Returns to Excel: pain.002 Status Reports

Turn your bank's answers to SEPA payment files into Excel: pain.002 status reports and camt.054 returns. Every rejected or returned payment with name, IBAN, amount and the reason code explained in plain words, with what to do next, in 5 languages. Accepted payments are free.

Pricing

$10.00 / 1,000 rejected or returned payments

Rating

0.0

(0)

Developer

Flavio D'Orio

Flavio D'Orio

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 days ago

Last modified

Features

Limited permissions

Share

Your bank answers every SEPA payment file you upload with a payment status report (ISO 20022 pain.002), and the payments that come back later (returned direct debits, refunds, returned credit transfers) arrive in your camt.054 notifications or camt.053 statements. Both are XML files that nobody can read. This Actor turns them into Excel: every rejected or returned payment with name, IBAN, amount, date, the reason code (AC04, AM04, MD01, MS02...) explained in plain words and what to do next, in English, Italian, German, Spanish or French.

Upload one report, a ZIP with many, or the link from your automation. Put the original pain.001 or pain.008 file next to them and the rows that the bank sends with only a reference are completed with name, IBAN and amount.

What it does

  • Reads payment status reports pain.002 in every version (pain.002.001.03 up to the latest) and pacs.002, as banks send them after a credit transfer file (pain.001) or a direct debit file (pain.008), SEPA Instant included.
  • Reads returned payments in bank statements and notifications: camt.054, camt.053 and camt.052, with the return reason, the original end-to-end ID and mandate, and the fees the bank charged. Normal bookings are skipped: only the payments that came back are listed.
  • Every level of an answer: a whole file rejected (for example FF01, with the number of payments and the total it contained), a batch rejected, single payments rejected, a file accepted only in part (only the rejected payments are problems, the others are accepted). Payments without their own status take the status of their batch.
  • Explains 79 ISO reason codes with what to do next, for example AC04 (account closed: ask for the new account), AM04 (not enough money: try again later), MD01 (no valid mandate: get a new signed mandate first), MD06 (refund asked by the payer), MS02 (refused by the customer), AC01 (wrong IBAN), RR04 (regulatory reason), AM23 (above the instant payment limit). Codes of your own bank are kept with the bank's text, so nothing is lost.
  • Completes the rows from your original files: a pain.002 often contains only the end-to-end ID. If the original pain.001 or pain.008 is in the same upload (in a ZIP or as a link), name, IBAN, amount, date, mandate and remittance information are filled in from it.
  • Many files at once: ZIP archives (also a ZIP inside a ZIP), several links, the same report uploaded twice (duplicates are left out). Files that are not bank reports (PDF, images, invoices) are skipped and cost nothing.
  • Any encoding and namespace: UTF-8, Windows-1252 and UTF-16 files, with or without namespace prefixes.

What you get

  • REPORT.xlsx in the key-value store (Storage tab), with three sheets:
    • Payments: one row per payment with result (rejected, returned, cancelled, blocked, pending, accepted), name, IBAN, amount, currency, date, reason code, reason, what to do, the bank's own text, status, payment type (credit transfer or direct debit), end-to-end ID, mandate, remittance information, fees, batch and original file.
    • Reasons: how many payments and how much money for each reason code, most frequent first.
    • Reports: one row per file read, with its type, date, original message ID, status of the whole file, rows and problems found, or why it was skipped.
  • SUMMARY: the numbers for automations (problems, rejected, returned, accepted, amount with problems per currency, reasons, files skipped, errors, the link to REPORT.xlsx and a one-line message).
  • Dataset: one item per payment, to export as JSON, CSV or Excel or to send to your accounting.
  • Results, reasons, what to do, column titles and sheet names in English, Italian, German, Spanish or French.

The Actor only reads the files you give it. It does not contact your bank and changes nothing there.

How to use it

  1. Download the status report or the camt.054 notification from your online banking or banking software ("status report", "Statusbericht", "esito", "informe de estado", "compte rendu"), or take the link from your automation.
  2. Upload it (or a ZIP with many reports and the original payment files), add links, or paste the XML. The input form is prefilled with an example report with three rejected direct debits: press Start to see the result (the example is free).
  3. Choose the language of the report.
  4. Open the Storage tab and download REPORT.xlsx.

Automation: call the Actor from Make, Zapier, n8n or the Apify API with the links to the new reports, then read problems and reportUrl from SUMMARY: for example, send REPORT.xlsx to your accounting team, or a reminder to each customer whose direct debit came back. Switch on "Only payments with a problem" to get only the rows that need work. Save the input as a task and schedule it if your reports are always at the same address.

Example output

One item of the dataset (shortened):

{
"result": "rejected",
"resultText": "Rejected",
"level": "payment",
"name": "Example Customer GmbH",
"iban": "DE02120300000000202051",
"amount": 450.0,
"currency": "EUR",
"date": "2026-11-20",
"reasonCode": "AC04",
"reason": "The account is closed.",
"advice": "Ask the customer or supplier for their new account, then send the payment again.",
"bankText": "Account closed",
"status": "RJCT",
"paymentType": "direct-debit",
"endToEndId": "INV-2026-0457",
"mandateId": "MANDATE-0001",
"remittance": "Invoice 2026-0457",
"batchId": "SEPA20261113093000-4F2A1C-1",
"originalMessageId": "SEPA20261113093000-4F2A1C",
"reportType": "pain.002.001.03",
"source": "example-report.xml"
}

And the message of the run: "3 payments with a problem (3 rejected) for 1,740.40 EUR, from 1 report. Open REPORT.xlsx in the Storage tab: every payment with the reason and what to do."

Who is it for

  • Associations, clubs, gyms, schools, landlords and subscription businesses that collect by SEPA direct debit: see at once whose payment came back and why (not enough money, account closed, refund asked, no mandate), with the name and the amount, to write the reminder or collect again.
  • Accountants, bookkeepers and payroll offices: check that every supplier payment and every salary of a payment run went through, for every client and every bank.
  • Businesses with many payments: the status reports of your banking software in a readable list, for the whole team.
  • Developers, automations and AI agents: JSON with every ISO 20022 status and reason code already explained, without writing an XML reader for every version.

Pricing

Pay per event: $10 per 1,000 rejected or returned payments ($0.01 for each payment with a problem explained). Free: accepted, pending and received payments, the original payment files, files that are not reports, duplicates and the example report. A whole file or batch rejected without a list of its payments counts as one. Set a maximum cost per run in the run options if you like: when it does not pay for every payment with a problem, the first ones are listed 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: the reports and REPORT.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 your bank. XML files with a DOCTYPE or entities are refused, and files larger than 50 MB are not read. Delete the run, or set a short data retention, when you no longer need the files.

FAQ

What is a pain.002? The answer of the bank to a payment file: for the whole file, for each batch and for each payment, it says accepted, pending or rejected, with an ISO reason code.

Which banks? Banks that send ISO 20022 status reports and camt files, as banks in the SEPA area do through online banking, EBICS or banking software. Some banks use national variants of these files: most keep the same structure and are read too. A file that cannot be read is listed as skipped and costs nothing.

A reason code is not in the list. The row keeps the code and the bank's own text, with the advice to ask your bank.

What does "partly accepted" mean? The bank accepted some payments of the file or batch and rejected others. The rejected ones are listed one by one when the report contains them.

Does it change anything at my bank? No. It only reads the files.

Is a feature missing? Ask in the Issues tab.

Auf Deutsch

Macht aus den Antworten der Bank auf SEPA-Dateien eine Excel-Liste: Statusberichte pain.002 (zum Beispiel per EBICS abgeholt) und Rücklastschriften und Rückläufer aus camt.054, camt.053 und camt.052. Jede abgelehnte oder zurückgegebene Zahlung mit Name, IBAN, Betrag, Datum, Rückgabegrund (AC04, AM04, MD06, MS02...) in einfachen Worten und was zu tun ist. Die Original-Datei (pain.001 oder pain.008) im selben ZIP ergänzt fehlende Namen und Beträge. Ganze abgelehnte Dateien (zum Beispiel FF01) werden mit Anzahl und Summe gezeigt. Texte und Spalten auf Deutsch. Preis: 10 $ pro 1.000 abgelehnte oder zurückgegebene Zahlungen, angenommene Zahlungen sind kostenlos.

In italiano

Trasforma in Excel gli esiti dei file SEPA: i pain.002 che la banca manda dopo una distinta di bonifici (pain.001) o di addebiti diretti SDD (pain.008), e gli insoluti e storni che arrivano nei camt.054, camt.053 e camt.052. Per ogni pagamento rifiutato o tornato indietro: nome, IBAN, importo, data, codice del motivo (AC04, AM04, MD01, MS02...) spiegato in parole semplici e cosa fare. Il file originale messo nello stesso ZIP completa nomi e importi mancanti. Testi e colonne in italiano. Alcune banche usano varianti nazionali di questi file: quasi sempre hanno la stessa struttura e vengono lette; un file che non si legge viene saltato e non si paga. Prezzo: 10 $ ogni 1.000 pagamenti rifiutati o restituiti, quelli accettati sono gratis.

En español

Convierte en Excel las respuestas del banco a los ficheros SEPA: informes de estado pain.002 y devoluciones de recibos y transferencias en camt.054, camt.053 y camt.052. Cada pago rechazado o devuelto con nombre, IBAN, importe, fecha, código del motivo de devolución (AC04, AM04, MD06, MS02...) explicado con palabras sencillas y qué hacer. El fichero original (pain.001 o pain.008) en el mismo ZIP completa nombres e importes. Textos y columnas en español. Precio: 10 $ por cada 1.000 pagos rechazados o devueltos, los pagos aceptados son gratis.

En français

Transforme en Excel les réponses de la banque aux fichiers SEPA : comptes rendus de statut pain.002 et rejets et retours de prélèvements (impayés) et de virements dans les camt.054, camt.053 et camt.052. Chaque paiement rejeté ou retourné avec nom, IBAN, montant, date, code motif (AC04, AM04, MD06, MS02...) expliqué simplement et ce qu'il faut faire. Le fichier d'origine (pain.001 ou pain.008) dans le même ZIP complète les noms et montants. Textes et colonnes en français. Prix : 10 $ pour 1 000 paiements rejetés ou retournés, les paiements acceptés sont gratuits.