convert_statement
Paid ($0.005): Parses a statement and exports it as normalized CSV, an hledger journal, a SIE4 file (experimental) or JSON. The converted file is returned as a string in the content field. JSON body up to 1000 KB. Failed calls (4xx/5xx) are not settled. Without a payment header the result is the x402 payment requirements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format. | |
| format | No | Skip auto-detection. | |
| columns | No | CSV: map field names (date, amount, description, ...) to exact header names. | |
| company | No | Company name for the SIE4 header. | |
| content | Yes | The statement file as text (UTF-8). PDF and scanned images are not supported. | |
| decimal | No | CSV decimal separator override. | |
| currency | No | Fallback ISO 4217 currency when the file has none, e.g. SEK. | |
| delimiter | No | CSV delimiter override: comma, semicolon, tab or pipe. | |
| dateFormat | No | CSV date order override for ambiguous dates. | |
| includeRaw | No | Add the raw source fields to every transaction. | |
| bankAccount | No | Bank account number (SIE4, e.g. 1930) or ledger account (hledger). | |
| assetAccount | No | hledger asset account name. | |
| incomeAccount | No | Counter account for incoming money. | |
| expenseAccount | No | Counter account for outgoing money. |