Everything on this page is verified against the shipped code of pain001 v0.0.90 and its companions, held to the same discipline as the technical reference. If a cell says no, that is a statement, not an omission.
01. Message definitions#
| Message definition | Generate | XSD-validate | Migrate to/from | Notes |
|---|---|---|---|---|
| pain.001.001.03 | Yes | Yes | Yes | SEPA/CGI workhorse; <BIC> element naming |
| pain.001.001.04 – .08 | Yes | Yes | Yes | Channel-specific maintenance versions |
| pain.001.001.09 | Yes | Yes | Yes | CBPR+ version; MT101-relay successor; <BICFI> |
| pain.001.001.10 – .12 | Yes | Yes | Yes | Post-2019 refinements |
| pain.001.001.13 | Yes | Yes | Yes | Published by ISO 19 Mar 2026. Adds optional UnqTxIdr (UETR) and DbtCdtRptgInd. Generated and XSD-validated; no bank channel we track accepts it yet |
| pain.008.001.02 | Yes | Yes | n/a | The 2009 direct debit version many SEPA channels still take |
| pain.008.001.08 | Yes | Yes | n/a | The 2019 version the EPC 2025 SEPA Direct Debit rulebooks and CBPR+ carry |
| pain.002 (responses) | Test reports only | n/a | n/a | Parsed for status and reason extraction; the generator builds reports for testing your own handling, since a real pain.002 comes from the bank |
| camt.053 (statements) | No | n/a | n/a | Parsed for reconciliation |
02. Input formats#
| Format | Support | Gate |
|---|---|---|
| CSV | Built-in | Field-alias normalisation, JSON Schema per record |
| JSON / JSONL | Built-in | Same pipeline |
SQLite (.db/.sqlite) | Built-in | Table pain001 by default |
| Parquet | pain001[parquet] extra | PyArrow |
PGP-encrypted (.gpg/.asc) | pain001[gpg] extra | Decrypted in-process |
Excel .xlsx/.xlsm | pain001-loader-xlsx | IBAN safety guard; formulas resolve, macros never execute; .xls (legacy BIFF) not supported |
| SWIFT MT101 | pain001-loader-mt101 | Sequence A/B field map published; out-of-scope tags refuse rather than guess |
03. Scheme rulebooks#
SEPA (sepa-sct, sepa-inst, sepa-sdd, sepa-b2b), Swift CBPR+ (cbpr-cross-border), generic cross-border (xborder-ct), national rails (UK Faster Payments, CHAPS and Bacs; US ACH, RTP and wires; Swiss, German, Swedish, Hong Kong, Singapore, Malaysian, Qatari and UAE rails), purpose-code mandates and cross-record duplicate detection (anti-duplicate). pain001 plugins list names every rulebook the installed build carries, with its source. Each supports --explain, which prints a remediation hint for every violation. These are public rail rules; a profile derived from your own bank's guideline is not shipped.
04. Outputs beyond the XML file#
| Output | Support | Notes |
|---|---|---|
| Business Application Header envelope | --envelop-bah | head.001.001.03 header with head.003.001.01 BizData |
| XML Digital Signature | --xml-sign-key, pain001 verify-signature | RSA-SHA256, RSA-PSS and ECDSA (P-256, P-384) XML-DSig; verified against the signer's certificate; pain001[sign] extra |
| Faces (JSON projections) | pain001 face | UK Open Banking v4.0.1 domestic payment, Berlin Group NextGenPSD2 v1.3.16, ISO 20022 element names; refuses rather than invents a missing required element |
| SFTP delivery | pain001 upload | pain001[upload] extra; host key trusted explicitly, atomic rename on the server |
| Schematron business rules | --schematron | sepa, fednow and cbpr presets, or your own .sch file |
05. Address models#
Structured and hybrid postal address elements are generated today, meeting the CBPR+ structured-address requirement, whose November 2026 date Swift has deferred. Unstructured AdrLine output remains available for channels that still accept it.
06. Known limitations#
- No bank connectivity beyond SFTP delivery:
pain001 uploaddelivers a file to an SFTP server you have trusted; EBICS, FileAct and bank portals are your channel (by design, as explained under scope). - pain.008 is two versions:
.001.02and.001.08. - MT101 loader excludes
:23E:,:25:,:28D:,:33B:,:36:,:21F:,:56a:,:51A:,:77B:,:25A:, because instruction codes and FX routing need human judgement. - Streaming semantics:
--streamingemits one independently valid file per chunk with recomputed totals, not a single monolithic document. - Python 3.11 or later: CI tests 3.11 through 3.14.
- The browser demo implements the fail-fast layer plus the official XSD gate for v09; the full JSON-Schema/rulebook pipeline is CLI-side.
Corrections are welcome. This page follows the corrections policy.
