Import a bank CSV
statement_importCall this tool to read a bank CSV into the local ledger. Columns detected from headers (date, description, amount, currency, balance); amounts use the file's locale; stored lines skipped. Returns detected/stored/skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | No | Bank profile. Default "auto": the headers decide. "generic" skips profile detection and uses the header heuristics alone | |
| path | Yes | Name of a statement uploaded with bank_upload | |
| account | No | Name for this account, e.g. "business EUR". Default: the file name without its extension. Later imports of the same account are deduplicated against it | |
| currency | No | Currency for rows where the file names none. Defaults to the shared business profile's default_currency, else EUR; the response says which it used | |
| overwrite | No | Delete every transaction already stored for this account before importing, instead of merging. Use it when the bank reissued a corrected export |