Bank Statement Extraction With Balance Checks
A bank statement looks simple until you read it at scale, and then bank statement extraction becomes a real challenge. Layouts differ by bank, tables break across pages, and a single PDF can hold several accounts at the same time. DaletParse reads each table, maps its headers, links the balances to the right account and then tests the arithmetic carefully. A statement that does not balance is flagged, with the reason attached for the reviewer who opens that file next. Nine phases, eight fallback steps, 47 bank model files, coded flags and clean exports work together on every statement.
Key takeaway
Statements get their own nine-phase route. DaletParse extracts transactions per account and tests that opening plus credits minus debits equals closing. A statement that cannot be balanced gets a high-severity flag, never a rejection.
Why reading a bank statement is harder than it looks
Teams often start with generic OCR tools. Bank statement extraction then rests on a table tool. Also, the first statement works. The tenth one fails in a way that nobody notices.
In addition, the common failure points are well known.
- A table that continues on the next page loses its header and shifts the columns.
- A debit shown without a minus sign reads as a credit.
- A savings section on page 4 gets merged into the checking account.
- Extracted lines sum to a figure that differs from the closing balance, and nobody tests it.
Bank statement extraction that stops at lines of text leaves the hard test undone. Indeed, a reviewer needs to know whether the transactions explain the movement between the opening and closing balance. That is why the running balance test sits inside bank statement extraction, not after it.
The nine phases that turn raw pages into checked records
Statements take the complex route. That route is reserved for the bank statement type. First, phase 1 splits the pack, and phase 1b detects page order.
Phase 2 classifies the document. Notably, then phase 3 reads metadata and headers with parallel vision calls for each page.
Phase 4 extracts tables with words and coordinates for native and scanned pages. Phase 8 later checks the running balance. Also, this balance test is part of the extraction itself. Phase 5 handles photo pages with vision and an OCR cross-check, then counts verified transactions.
Next, phase 6 maps headers to columns. Phase 7 links balances to accounts, and phase 8 validates them. Finally, phase 9 writes the output. The statement route ends there, so the complex route is complete.
The statement route starts from a typed document and ends in an envelope. In fact, the diagram shows the shape of that path.
What the route captures at each phase, step by step
Bank statement extraction has four capture steps. Importantly, the notes below follow them in order.
How the route reads the bank and holder up front
Phase 3 reads the metadata first. Also, it reads the bank name, the account holder, the statement period and the account numbers. Retries run at most twice per call. Early information then shows the type, bank, holder, period, accounts and balances before the tables finish.
That early view lets a reviewer spot a wrong holder or a missing page. Overall, the rest of the work continues in the background. It also shows page types, cropped pages and OCR quality.
Tables and transactions come next. Phase 4 reads words and coordinates for native and scanned pages. Columns therefore stay aligned.
Photo pages use a vision pass and an OCR cross-check instead. Header mapping then names each column, such as date, description, debit, credit and balance.
Each transaction carries a verified flag and a method. Verified means that the transaction was confirmed against a printed daily balance. Unverified lines are still exported, but a reviewer can sort them out. Verified transactions are counted per account.
Balance association is the third step. Phase 7 links the opening and closing balance and the summary figures to each account. The opening and closing balance then anchor the test.
A running balance uses decimal arithmetic rounded to 0.01, and each account keeps its own. In addition, the statement route supports multi-account statements. They raise a flag, so a reviewer checks each account.
The running balance rule is the same everywhere. Opening plus credits minus debits must equal closing, within a tolerance of 0.01.
Exports are the fourth step. Bank statement extraction writes one transactions CSV per account. The columns are date, description, debit, credit, balance, section, page and verified.
A summary CSV, a fees file and a markdown report sit beside them. In addition, the ZIP also holds the JSON envelope and the original PDF part.
What happens when the numbers on a statement do not agree
A mismatch does not end bank statement extraction. Besides, for each account that fails, a cascade of fallback steps tries to explain the gap. The order moves from cheap rule-based tests to model-assisted investigation.
- F1 tests table and transaction combinations. It excludes suspect tables, such as returned items or reversals, and then tests transactions that match the difference.
- F2 keeps only the transactions that were confirmed against printed daily balances.
- F3 labels stretches of the statement as sealed, open or unanchored from daily balances.
- F4 moves transactions that were attached to the wrong account.
- F5 and F6 use model analysis to suggest excluding a table, swapping a sign or excluding a transaction.
- F7 runs a multi-turn investigation with search and view tools.
A final global step, F8, tries merging accounts. If nothing balances, the status is unbalanced. Specifically, the other statuses are balanced, balanced with adjustment and pending.
Flags that the statement validator can raise for a reviewer
The validator raises flags only; it never rejects a statement on its own. Five mandatory-field flags cover a missing bank name, holder, statement period, account number or transaction list. In addition, they run from FLG-MAND-001 to FLG-MAND-005.
Four statement flags then follow. FLG-BS-001 marks a statement older than 180 days. FLG-BS-003 marks a trade name or DBA, and FLG-BS-004 marks multiple accounts.
The flag FLG-BS-002 carries high severity. Indeed, it says that the balance could not be fully verified. It also raises a document request for another proof.
Notably, bank statement extraction writes that request, and your team obtains the bank connection or accounting export through its usual channel.
Any flag moves the status to accepted with flags. In fact, the validation page explains severity, check levels and suggested actions.
Bank model files help the reader find its way around
Each hint file is plain JSON, not code written for one bank, and bank statement extraction treats it as a starting point. Importantly, a hint file holds identifying text, balance labels, section names, a date format and a layout signature.
The reader uses these hints to find its way around a known layout, so bank model files speed up known banks.
The repository counts 47 extracted files built from example statements, which cover 29 bank names. Overall, the runtime folder holds 30 files, and 29 are validated. Both folders stay out of Git, so a fresh clone has none of them.
When no model exists, the log says that it will learn the structure. Indeed, the same phases still run. Besides, a validated run then saves its model for later.
Bank model files grow from validated runs only. Indeed, use the phrase 47 files, not 47 banks, when you describe coverage to colleagues.
An example of a credit file with three monthly statements
An analyst uploads one pack for bank statement extraction; it holds three monthly statements for one business account. Specifically, every step of the example is visible in the run archive. Indeed, the splitter finds three documents, and each one takes the statement route.
Phase 7 links the opening and closing balance on every statement. Notably, each opening and closing balance is then checked. Phase 8 then tests the arithmetic, and two statements balance. Also, the third one fails, because a returned item is listed twice.
The cascade excludes the suspect table, and the result becomes balanced with adjustment. In addition, the analyst sees the adjustment in the output and can decide whether to accept it.
How to read a statement result, from status to lines
Start with the status. Reading bank statement extraction results starts there. Each account ends in one of four statuses. Balanced means that the running balance held on the first try.
Balanced with adjustment means that the cascade excluded something to make it hold. Pending and unbalanced both need a person.
Next, look at the verified counts. Indeed, the workspace shows how many transactions were confirmed against printed daily balances. A statement with a high verified share gives you firmer ground than one with a low share.
Then read the flags too. Notably, a missing holder or period can point to a poor first page. A multi-account flag asks you to check that each account got its own transactions. Finally, open the transactions CSV for the account and spot-check a few lines against the page.
Teams that review many files each day can compare practices on the lender processing page.
How a script can send each statement to the tenant route
Callers use a tenant-bound route. That route serves bank statement extraction for systems. In fact, a call to POST /api/v1/extract/bank-statement returns a 202 status and a run id. You then poll the status route until the job ends.
A second route accepts several files at once, up to 20 per call. Importantly, the single-file route needs a bearer token and a tenant id header. The multi-file route takes up to 20 statements in one call. Overall, a service with no token configured answers the single-file route with 503.
Jobs are filtered by owner, so one tenant cannot read the results of another. Run files expire after a retention period that defaults to 168 hours. Besides, the data extraction page describes the record that you get back.
Limits to keep in view before you rely on the route
A canonical test suite of 259 cases, all passing, guards bank statement extraction on every release. Scan clarity and the bank layout shape each read, and the balance proof catches what they miss. In fact, the model service behind the GPU wrapper matters too. The balance proof itself is plain arithmetic, so the same rows always give the same verdict.
An optional bank statement analysis service can enrich transactions with scoring. Specifically, administrators connect it per deployment. It receives transactions over your internal network.
Cash flow analysis, credit scoring and fraud conclusions are outside this feature. Authenticity is a separate question, covered by an optional DaletProof panel.
What teams gain when statement records are checked in code
In addition, each property holds on every statement, whoever uploads it.
- Bank statement extraction exports transactions per account with page numbers and verified markers.
- The opening and closing balance test runs for every account.
- A fallback cascade explains many mismatches in the running balance before a human looks.
- Unbalanced statements are flagged, not silently accepted by bank statement extraction.
- Multi-account statements are labeled for review.
- Bank model files speed up known layouts without limiting unknown ones.
Run the route on your own statements before you decide
Use a stack of your own statements. That is a fair comparison. Include clean native PDFs, poor scans, multi-account statements and a few that you know do not balance. Indeed, compare the transactions, the running balance status and the flags with the reading of your analysts.
Ask for a meeting, and bring the statements that cost your team the most time.
Questions and answers on this topic from the product team
How does DaletParse prove a statement balance?
For each account it checks whether the opening balance plus credits minus debits equals the closing balance, within 0.01, using decimal arithmetic. If the sum fails, an eight-step fallback cascade looks for the missing row or wrong sign.
Can a bank statement be rejected?
A statement is never rejected. The validator raises flags only, so a missing bank name, holder, period or account number raises a flag. An unbalanced result does too.
Does DaletParse know every bank layout?
It does not know every layout. Bank model files hold hints for named formats. The repository counts 47 extracted example files that cover 29 bank names.
What does the unverified balance flag ask for?
The flag FLG-BS-002 has high severity, and it reports that the balance could not be fully verified. It also adds a document request for an alternative proof. That proof could be a bank connection or an accounting export.
Does it handle statements with several accounts?
Yes, it handles several accounts. Balances are associated per account, and the balance test runs per account. A statement with many accounts raises FLG-BS-004, so a reviewer checks each one.
How old can a statement be before it is flagged?
A statement older than 180 days raises FLG-BS-001, although the message text says six months. The flag is a prompt to ask for a fresher statement. It does not reject the file.
See how DaletParse fits the providers your team uses today
Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.