Global Bank Statement Accounting Format Reference & CLI Validator
A clean, zero-dependency Python CLI validator and field-level technical specification covering the trickiest global accounting software import formats across 12 tax regions — plus cross-border wallet reconciliation specs (Wise, PayPal, Revolut, Payoneer, Airwallex):
- QuickBooks Web Connect (
.qbo) & Standard.ofx(US / Canada / Australia MYOB & Xero) - SWIFT MT940 (
.sta/.mt940) (Switzerland Bexio / Abacus, Netherlands Exact Online / Moneybird, Belgium, EU) - German DATEV EXTF (
.csv) (SKR03, German comma decimals,S/HSoll/Haben flags) - Xero Bank Statement CSV (
.csv) (*DateISOYYYY-MM-DD/ regional,*Amount, CWE-1236 formula-injection check) - French Pennylane / FEC Semicolon CSV (
.csv) (UTF-8 BOM,;delimiter, comma decimals) - Japanese Yayoi (弥生会計) / freee CSV (
.csv) (half-width ASCII numerals,YYYY/MM/DD)
Want to validate, repair, or convert accounting files instantly without installing Python? Use our 5 100% Free Browser-Only Zero-Upload Tools (run entirely in local JavaScript — zero server upload, zero signup, also embeddable via 1-line
<iframe>on/partners) plus our free minimal-OAuth Google Sheets Add-On:
- QuickBooks Error Code & Bank Charge Decoder — Instant offline lookup for 40 QuickBooks error codes (
OL-205–OLS-0001,Error 101–9999, duplicate<FITID>) & cryptic bank/Intuit charge descriptors (paste entire error banners)- Accounting File Validator — Check
.qbo,.ofx,MT940,DATEV,Xero,FEC&Yayoierrors locally- CSV to QuickBooks
.QBO/.OFXConverter — Convert any bank CSV (single Amount or Debit/Credit) with guaranteed unique<FITID>s.QBO/.OFXDuplicate<FITID>Fixer — Auto-repair colliding<FITID>tags & inject<INTU.BID>so QuickBooks stops skipping rows- SWIFT MT940 (
.sta) Viewer & Excel CSV — Parse European.sta/.mt940files, prove exact cent balance & export Excel CSVStarting from raw bank, credit card, Wise, PayPal, or Revolut PDFs / scans / photos — or batch travel receipts?
- StmtVerify (stmtverify.com) — Zero-retention volatile-RAM bank & wallet PDF reconciler (
Opening + Credits − Debits = Closingexact cent proof).- ReceiptVerified (stmtverify.com/receipts/) — Zero-retention volatile-RAM batch receipt & invoice photo scanner (
Subtotal + Tax + Tip = Totalverified Excel + 4-Up A4 printable attachment PDF).
Why Bank Statement Imports Fail in Accounting Software (Quick Reference)
| Region & Software | Target Format | #1 Import Failure Pitfall | Required Rule |
|---|---|---|---|
| US — QuickBooks Online / Desktop | .qbo (Web Connect) |
Duplicate <FITID> causes silently skipped rows |
Unique <FITID> per transaction; exact <BALAMT> & <TRNAMT> decimal precision |
| Canada / AU / NZ — Wave, Sage 50, MYOB | .ofx |
Date column ambiguity (MM/DD vs DD/MM) |
ISO-style YYYYMMDD <DTPOSTED> timestamps inside <STMTTRN> |
| UK / NZ / SG / HK — Xero & FreeAgent | Xero .csv |
Missing asterisk headers or US/UK date swaps | Exact *Date (unambiguous ISO YYYY-MM-DD, also accepts DD/MM/YYYY), *Amount (signed decimal), Payee, Description |
| Germany / Austria — DATEV & Lexoffice | DATEV EXTF .csv |
Period decimals broken in German Excel/DATEV | Semicolon ; delimiter, comma decimals (4820,50), explicit S/H column, SKR03 accounts |
| Switzerland — Bexio, Abacus & Crésus | SWIFT MT940 (.sta) |
Apostrophe thousands (CHF 12'450.50) parsed as text |
Strip apostrophes into comma-decimal MT940 :60F: / :61: / :62F: cent-exact balance proof |
| Netherlands / Belgium — Exact & Moneybird | SWIFT MT940 (.sta) |
Af / Bij unsigned columns inverted |
Strict D (Debit / Af) vs C (Credit / Bij) indicators with :60F: → :62F: cent proof |
| France — Pennylane, Indy & FEC | Semicolon .csv |
Broken accents & decimal commas in Excel FR | UTF-8 BOM encoding, ; separator, JJ/MM/AAAA, comma decimal amounts |
| Japan — 弥生会計 (Yayoi) & freee | Accounting .csv |
Full-width numerals (12,450) & Wareki dates |
Normalized half-width ASCII integers (¥), YYYY/MM/DD, UTF-8 BOM safe |
| Cross-Border Wallets (Wise, PayPal, Revolut) | 4-Col Gross / Fee / Net | Net-only import hides deductible processing fees | Split PayPal Gross + Fee = Net into separate revenue + fee ledger rows so running balance reconciles to 0.00 |
Zero-Dependency CLI Validator (validate_statement_export.py)
Requires Python 3.9+ (standard library only — pip install not needed).
Usage
# Auto-detect format (.sta/.mt940, .qbo/.ofx, DATEV EXTF, Xero, French FEC, or Yayoi CSV)
python validate_statement_export.py path/to/export.sta
# Explicitly specify format
python validate_statement_export.py --format mt940 examples/sample_swiss_mt940.sta
python validate_statement_export.py --format ofx examples/sample_us_quickbooks.qbo
python validate_statement_export.py --format datev examples/sample_de_datev_extf.csv
python validate_statement_export.py --format xero examples/sample_uk_xero.csv
python validate_statement_export.py --format fec examples/sample_fr_fec.csv
python validate_statement_export.py --format yayoi examples/sample_jp_yayoi.csv
# Run all 15 unit tests (v1.2.0)
python test_validator.py
What It Checks
- MT940 (
.sta/.mt940): Required SWIFT tags (:20:,:25:,:60F:,:62F:), multi-statement block splitting, and exactDecimalcent-reconciliationOpening (:60F:) + Credits (:61: C) − Debits (:61: D) == Closing (:62F:). - OFX / QuickBooks
.qbo:<OFX>,<STMTTRN>,<TRNAMT>,<DTPOSTED>,<FITID>, duplicate<FITID>collision detection, unescaped&/ control chars (OL-221/OL-222),<=32-char<NAME>limit, and<INTU.BID>checks. - DATEV EXTF (
.csv):EXTFmetadata header, semicolon;column structure, German comma decimals, positiveUmsatz+ strictS/Hmarkers,TTMMBelegdatum, and<=60-charBuchungstext. - Xero Bank CSV (
.csv): Mandatory*Date(ISOYYYY-MM-DD/ regional) and*Amountasterisk headers, numeric validation, and CWE-1236 formula-injection detection. - French FEC / Pennylane CSV (
.csv): Semicolon;structure and French comma-decimal compliance. - Japanese Yayoi / freee CSV (
.csv): Full-width numeral (0-9) rejection,YYYY/MM/DDdates, and numeric validation.
Direct Regional PDF & Cross-Border Wallet Guides
QuickBooks .QBO Troubleshooting, Catch-Up & Mortgage Verification Guides
- QuickBooks
.QBOImport Errors Explained (OL-221,OL-222,OL-301, Missing<INTU.BID>, Duplicate<FITID>) - How to Import More Than 90 Days of Bank Statements into QuickBooks Online (12-Month PDF Catch-Up)
- Mortgage & Lending Bank Statement Continuity & Tamper Verification Spec (Non-QM 12-Month Cash Flow)
If you start from raw bank, credit card, or digital wallet PDFs, encrypted statements, or paper scans:
- Free Browser-Only File Validator (Zero Upload): https://stmtverify.com/tools/accounting-file-validator
- US (Chase, BofA, Wells Fargo, Amex, US Bank, PNC → QuickBooks
.QBO): https://stmtverify.com/ - Cross-Border Wallets — Wise (TransferWise) PDF to Excel & QBO: https://stmtverify.com/lp/wise-statement-pdf-to-excel
- Cross-Border Wallets — PayPal Monthly PDF (Gross/Fee/Net Split): https://stmtverify.com/lp/paypal-statement-pdf-to-excel-qbo
- Cross-Border Wallets — Revolut / Payoneer / Airwallex: https://stmtverify.com/lp/revolut-statement-pdf-to-excel-xero
- UK (Barclays, HSBC, Lloyds, Monzo, Tide → Xero CSV): https://stmtverify.com/lp/uk-xero-bank-pdf
- Germany & Austria (Sparkasse, Volksbank, Commerzbank, Erste Bank → DATEV EXTF): https://stmtverify.com/lp/sparkasse-pdf-in-datev
- Switzerland (UBS, PostFinance, Raiffeisen CHF → Bexio MT940
.sta): https://stmtverify.com/lp/swiss-bexio-mt940-pdf - Netherlands & Belgium (ING, Rabobank, ABN AMRO, KBC → Exact Online MT940): https://stmtverify.com/lp/nl-mt940-exact-bank-pdf
- France (Crédit Agricole, BNP, BoursoBank, Shine → Pennylane / FEC): https://stmtverify.com/lp/credit-agricole-pdf-excel
- Japan (三菱UFJ, 三井住友, 楽天銀行・カード → 弥生会計 / freee CSV): https://stmtverify.com/lp/yayoi-bank-pdf-csv
- Singapore & Hong Kong (HSBC HK, DBS, OCBC → Audit Excel & Xero): https://stmtverify.com/lp/sg-hk-audit-bank-pdf
- Full 96-Bank & Wallet Directory: https://stmtverify.com/directory
License
MIT License — free for personal, bookkeeping firm, and commercial integration use.
Metadata
Release files for bank-statement-spec 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bank_statement_spec-1.3.0.tar.gz | 16.3 kB | Without provenance | Details for bank_statement_spec-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bank_statement_spec-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for bank_statement_spec-1.3.0-py3-none-any.whl |
Total release size: 29.4 kB
Release files / bank_statement_spec-1.3.0.tar.gz
| Download URL | bank_statement_spec-1.3.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5cd51f547d97ba233817c6c8e7e339678b81a2f79197eb4fe8492f629a1f6cf
|
|
BLAKE2b-256 checksum How to use checksums |
d1cfd5a0d1107d80671f4080b2c596342f92d13ad6e45895f1fc8fbda1fc9ba0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / bank_statement_spec-1.3.0-py3-none-any.whl
| Download URL | bank_statement_spec-1.3.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1a1e97de4739a47de1cbd107445bcabae211afebf9cbdce846b865637e1ed23
|
|
BLAKE2b-256 checksum How to use checksums |
a57375c814d6ffb039e7492f04cdd46c4c01613280205ec79fa1e188466f8b1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for bank-statement-spec 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.