upload_file
Uploads a receipt file from a local path or allowed URL and creates an unchecked bookkeeping voucher, supporting PDF, JPEG, PNG, and XML files up to 5 MiB.
Instructions
Upload a receipt, which also creates a bookkeeping voucher for it.
Writes real accounting data, and the API cannot take it back:
the answer carries a voucherId as well as a file id, and no call
here deletes a voucher. Correcting one is a job for the web app.
Confirm the organization with get_profile first. One API call,
never retried.
Takes PDF, JPEG, PNG or XML, at most 5 MiB, from a path or a URL. An
XML file is treated as an XRechnung. The voucher starts unchecked:
update_voucher fills it in, and its finalize books it.
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": {
"source": "<source>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | The file: a path on this machine, or a URL to fetch it from. A URL works only for addresses the account owner allowed. |