Get voucher image
get_voucher_imageRetrieve a voucher's PDF image using its organization number and voucher ID; set openFile=false to return base64 data for embedded display. Memorial vouchers have no image.
Instructions
Returns the PDF image of a voucher from Easor. The voucherId can be obtained from any Easor response that includes a voucher identifier (for example the voucherId field on general ledger event rows). Memorial vouchers (muistioviennit) never have an image. The organizationNumber must match the organization the voucher belongs to. Set openFile=false to receive only the base64 PDF data without saving to disk or opening a viewer (intended for embedded display in a web page; default true opens the PDF in the system viewer).
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": {
"organizationNumber": "<organizationNumber>",
"voucherId": "<voucherId>"
},
"name": "get_voucher_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| openFile | No | When false, return base64 data only without saving to disk or opening a viewer. Defaults to true. | |
| voucherId | Yes | ||
| organizationNumber | Yes |