BAI2 400 — Total Debits
BAI2 type 400 reports total debits in record 03 as an account summary. Compare the reported debit total with the magnitude of outgoing detail before signing the ledger movement.
Open this sample in Air-Gapped ConverterWorked bank sample
Synthetic bank data for local reconciliation.
01,REPORTING,TREASURY,261130,1700,1,,,2/
02,TREASURY,REPORTING,1,261130,1700,USD,2/
03,OPERATING,USD,010,100000,,,015,97500,,,400,2500,1,/
16,495,2500,0,BANK-400,000400,Debit-side control for the reporting account
88, Settlement reference CASE-400
49,202500,4/
98,202500,1,6/
99,202500,1,8/Read 000400 as a text reference. The one USD 25.00 debit takes booked cash from 1,000.00 to 975.00. Record 49 reports 202500 in minor units because the transmission control includes both account observations and detail amounts.
This example places all four-field balance and summary groups on one 03 line, with an empty funds type. The 88 record extends the example movement. For other layouts, reassemble 03 continuations and consume any distribution fields before advancing to the next type.
Field anatomy
| Field or path | Meaning in this file | Type or format | ERP or Excel import risk |
|---|---|---|---|
| 03 · repeated type | Account-level total debits | Three-character summary code | A numeric type lookup can confuse the total debits with a transaction or omit it from account controls. |
| 03 · amount after 400 | Reported total debits for OPERATING | USD implied cents | Including summary and individual postings duplicates turnover. |
| 03 · item count and funds type | Next two fields in this account group | Optional fields, comma-delimited | Dropping empty fields moves the next type into the amount column. |
Root cause and ERP fix
- A staging query compares a positive summary with negative journal debits. Compare magnitudes at the control step.
- A summary was posted beside the detailed disbursements. Exclude type 400 from the transaction import.
- A debit category was filtered out of the cash journal. Reconcile the debit detail population by bank type.
Inspect with the MIT parser
Save the sample as bai2-code-400.bai2 and the script as inspect.mjs. With @stmtrecon/parser installed, run node inspect.mjs bai2-code-400.bai2.
import { readFile } from 'node:fs/promises';
import { inspect } from '@stmtrecon/parser';
const text = await readFile(process.argv[2], 'utf8');
const report = inspect(text);
const account = text.split(/\r?\n/).find(line => line.startsWith('03,'));
const groups = account.slice(0, -1).split(',').slice(3);
for (let i = 0; i < groups.length; i += 4) {
if (groups[i] === '400') console.log(report.currency, groups[i + 1], 'minor units');
}Open this sample in Air-Gapped ConverterExport a multi-sheet Excel workbook with balance checks and batch reconciliation on your device. No Node installation or cloud upload is required.
npm package · SDK source · Format reference