Preview file
get_previewA preview of the output. In a job without an API key it is free and covers an unpaid file's first 5 pages with bookings or first 125 bookings (all bookings of a smaller file; PDF bookings without a page are left out). Its file name marks it as not for bookkeeping; it serves only to check the result. With an API key it runs the export: the first export of a final file uses up the plan's units. Returns a download link valid for 1 hour, at most until the job ends.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_token": "<job_token>"
},
"name": "get_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datev | No | DATEV header data from the user's tax office. Required for DATEV files of anonymous jobs: berater_nummer (4-7 digits) and mandanten_nummer (1-5 digits). Optional fiscal_year_start (YYYY-MM-DD, first day of a month; default 1 January of the first booking's year). | |
| format | No | Output format; default: the job's target_format. | |
| file_id | No | A file_id from get_job_status; optional when the job has one file. | |
| language | No | Language of messages (default de). | |
| job_token | Yes | The job_token returned by upload_statements. | |
| account_iban | No | MT940 only: IBAN of the statement's account. | |
| closing_balance | No | MT940 only: balance after the last booking; with opening_balance KP checks a statement without balances for completeness. | |
| opening_balance | No | MT940 only: balance before the first booking, e.g. 1234.56; omit when the statement shows it. |