Check a transactions table
check_transactionsCheck a bank or credit card statement's transactions table for errors. Free and offline: no API key, nothing is uploaded. Walks the running balance row by row and reports rows where the balance does not follow, swapped debit and credit columns, sign errors, duplicated or missing rows, dates out of order, and totals that miss the opening or closing balance, each with a likely fix. Give the table as csv_text (CSV or TSV with a header row) or as rows (first row is the header). Same result as docfig check --json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | The table as rows of cells, first row is the header, e.g. [["Date","Description","Amount","Balance"], ...]. Cells are text; numbers and null are accepted too. | |
| csv_text | No | The table as CSV or TSV text, header row first. | |
| filename | No | Optional name shown in the report. | |
| delimiter | No | CSV delimiter (default: detected). | |
| date_format | No | How to read dates like 01/02/2026 (default: detected). | |
| statement_type | No | card: the balance is the amount owed. | bank |
| closing_balance | No | Closing balance, to check the totals. | |
| opening_balance | No | Opening balance, to check the totals. |