Convert a bank statement
convert_statementConvert a bank or credit card statement (PDF, scanned PDF, or a JPG, PNG or HEIC photo) into transactions, with every row checked against the balances. Give file_url or file_base64. Returns the bank, period, totals, check status, flagged rows, the first transactions and Excel and CSV download links that work for one hour. Uses the user's DocFig API key and their monthly pages (free key: 100 pages a month at https://docfig.com/api). Account numbers are masked; nothing is stored, results are deleted after one hour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_url | No | Direct https download link to the statement (PDF, JPG, PNG or HEIC, up to 20 MB). Must be publicly reachable. | |
| filename | No | Optional file name, e.g. march.pdf. | |
| password | No | Password for a locked PDF. Used once in memory, never stored or logged. | |
| file_base64 | No | The file's bytes, base64-encoded (up to 20 MB decoded). | |
| statement_id | No | Instead of a file: the statement_id of an earlier call that was still converting, to fetch its result. | |
| wait_seconds | No | How long to wait for the result before returning the statement_id to check again. Default 45. | |
| max_transactions | No | How many transactions to include (the rest are in the downloads). Default 25. |