Bewijsstuk bewaren
attach_receiptStore the original receipt or purchase invoice for an expense from a file, path, URL, or base64 content; the document is archived and the database keeps only a SHA-256 hash.
Instructions
Store the original receipt or purchase invoice of an expense (JPG, PNG, WEBP, HEIC or PDF, max 10 MB). Pass exactly one source: file when the app hands you an uploaded file object, file_path when Bookiz runs on the same computer as you, url for an https download link, or content_base64. The file is e-mailed to the owner’s archive mailbox or written to the data folder; the database keeps only a SHA-256 hash. If you cannot pass the file, give the owner the upload link from record_expense.
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": {
"ref": "<ref>"
},
"name": "attach_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Expense reference, e.g. K2026-001 | |
| url | No | ||
| file | No | ||
| file_path | No | ||
| content_base64 | No |