DocFig

v0.2.0
com.docfig/docfig Checked 1 day ago Published 1 month ago

Bank statement PDFs to checked transactions, plus a free offline check for transaction tables.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_transactions Check a transactions table

Check 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`.

ParameterTypeDescription
closing_balancestringClosing balance, to check the totals.
csv_textstringThe table as CSV or TSV text, header row first.
date_formatstringHow to read dates like 01/02/2026 (default: detected).
delimiterstringCSV delimiter (default: detected).
filenamestringOptional name shown in the report.
opening_balancestringOpening balance, to check the totals.
rowsarrayThe 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.
statement_typestringcard: the balance is the amount owed.

convert_statement Convert a bank statement

Convert 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_path, 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.

ParameterTypeDescription
file_base64stringThe file's bytes, base64-encoded (up to 20 MB decoded).
file_pathstringPath of a statement file on this computer.
file_urlstringDirect https download link to the statement (PDF, JPG, PNG or HEIC, up to 20 MB). Must be publicly reachable.
filenamestringOptional file name, e.g. march.pdf.
max_transactionsintegerHow many transactions to include (the rest are in the downloads). Default 25.
passwordstringPassword for a locked PDF. Used once in memory, never stored or logged.
save_tostringOptional: a folder, or a path ending in .xlsx, .csv or .json, to save the result on this computer.
statement_idstringInstead of a file: the statement_id of an earlier call that was still converting, to fetch its result.
wait_secondsintegerHow long to wait for the result before returning the statement_id to check again. Default 45.

combine_statements Combine several statements

Convert several statements (or reuse statement_ids from the last hour) and combine them into one set of accounts: finds missing months (gaps), overlapping periods, duplicated transactions (kept once) and balances that do not carry over. Returns the accounts, problems, counts and links to one combined Excel or CSV file (valid one hour). Uses the user's DocFig API key.

ParameterTypeDescription
filesarrayStatements to convert and combine, each with file_path, file_url or file_base64.
save_tostringOptional: a folder, or a path ending in .xlsx or .csv, to save the combined workbook.
statement_idsarraystatement_id values of statements converted in the last hour (from convert_statement or an earlier combine_statements call).
wait_secondsintegerHow long to wait for all conversions. Default 90.

usage Pages left this month

Pages used and left this month for the DocFig API key, and when they reset.