Convert bank statement
convert_bank_statementUse this when the user attaches a bank or credit card statement (text PDF, or the bank's CSV/Excel export) and wants it converted to Excel or CSV: "convert bank statement to excel", "bank statement pdf to csv", "import my statement into QuickBooks", "does my statement balance". Extracts each transaction (date, description, signed amount, running balance), reconciles opening + transactions = closing to the cent, points to missing or duplicated rows, suggests categories, and returns Excel, CSV and QuickBooks CSV downloads. Does not read scanned images (needs OCR first), does not connect to bank accounts, and is not for non-financial PDFs or general PDF editing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The statement to convert: a text PDF downloaded from the bank or card website, or the bank's CSV or Excel (.xlsx) transaction export, e.g. september-statement.pdf. | |
| date_order | No | Order of numeric dates in a CSV/Excel export: MDY (US, 09/02/2026, default) or DMY (02/09/2026). Detected automatically when a day is above 12. | |
| flip_signs | No | Only for CSV/Excel exports that list purchases as positive and payments as negative (common in credit card exports): true flips each amount so money out is negative. Default false. | |
| account_type | No | auto (default): a PDF is classified from its text; pasted rows and CSV/Excel exports count as bank unless the balances or the sign pattern show a credit card (the result says so). bank: checking or savings. credit_card: charges are money out and the statement shows a previous and new balance owed. Example: credit_card. | |
| statement_year | No | Closing year of the statement, used for dates printed without a year when the period is not on the file, e.g. 2026 (a December-January statement uses the January year). | |
| closing_balance | No | Closing (ending or new) balance in dollars, e.g. 5034.47. Used with opening_balance to prove the total to the cent. | |
| opening_balance | No | Opening (beginning or previous) balance in dollars, e.g. 4123.55. Only needed when the file has none, such as a CSV export without a balance column, or to override. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| months | Yes | ||
| period | Yes | ||
| source | Yes | ||
| account | Yes | ||
| preview | Yes | ||
| warnings | Yes | ||
| downloads | Yes | ||
| categories | Yes | Suggested categories from keyword rules; review before filing. | |
| transactions | Yes | ||
| reconciliation | Yes |