US BAI2 Multi-Account Statement Splitter
Parse a multi-account US BAI2 cash-management file and route every account block to its matching Odoo bank journal - automatically.
US banks deliver consolidated cash-management statements in the BAI2 format (BAI Cash Management Balance Reporting Specification, Version 2). A single file routinely carries dozens of accounts for a corporate relationship. This app reads that file once, splits it into clean per-account records, reconciles each account's control total, and routes every account to the correct Odoo bank journal so the transactions land where they belong.
Built for the real BAI2 record structure
Full record coverage
- 01 File Header - sender, receiver, creation date/time, file ID
- 02 Group Header - as-of date, as-of time, currency
- 03 Account Identifier - account number plus opening/closing ledger and available balances
- 16 Transaction Detail - type code, amount, funds type, bank & customer references, free-text narrative
- 49 / 98 / 99 Account, Group and File trailers with control totals
- 88 Continuation records re-joined onto their parent transaction
Correct sign handling
BAI2 amounts carry no sign - direction comes from the three-digit type code. The app applies the published BAI2 range rules (100-399 credit, 400-699 debit, 001-099 balance/status, 700-799 loan) and ships a named lookup for the most-transmitted codes (lockbox, ACH, wire, check paid, service charge and more), so every line shows a human-readable label and the right plus/minus amount.
Multi-account routing
Automatic journal matching
Each account block is matched to a bank journal by its account number, using a normalised key that ignores leading zeros, spaces and dashes. Set an explicit BAI2 Account Number on a journal when the bank sends a number that differs from the one stored in Odoo.
Control-total reconciliation
Every account's Type 49 control total is reconciled against the sum of its signed transactions. Mismatches are surfaced in the parse log and flagged on the account, so a truncated or corrupted file never posts silently.
One-click import
Push the routed transactions into Odoo bank statement lines on each matched journal, ready for the standard reconciliation widget. Balance and status codes are skipped by default; unmatched accounts are listed rather than silently dropped.
Feature summary
| Capability | What it does |
|---|---|
| BAI2 v2 parser | Full 01/02/03/16/49/88/98/99 record support with continuation re-joining |
| Multi-account split | One file becomes one record per bank account, each with its own balances and transactions |
| Type-code engine | Published BAI2 range rules + named lookup for credit/debit/balance/loan codes |
| Journal routing | Normalised account-number matching, with per-journal override field |
| Reconciliation check | Type 49 control total vs summed signed transactions, per account |
| Statement import | Creates standard bank statement lines on each matched journal |
| Audit trail | Chatter log of parse, routing and import steps on every file |
Pure import - no transmission
This is a pure format parser. It reads BAI2 files you already download from your bank's cash-management portal; it never connects to any external service and transmits nothing. Your statement data never leaves your Odoo database.
Compatible with Odoo 18 and Odoo 19, Community and Enterprise. Depends only on the community Accounting base.
Keywords: BAI2, BAI, bank statement import, US bank cash management, multi-account statement, balance reporting, prior-day statement, bank journal routing, lockbox, ACH, wire.
Screenshots
Accounts
Statement Files
Transactions
Update date: 2026-07-02