bokio_download_invoice
Download a published Bokio invoice as a PDF to a specified save path, returning the written path and byte count. Use it when you need the invoice file rather than invoice data.
Instructions
Download a published invoice as a PDF file to savePath. Returns the written path and byte count; bokio_get_invoice returns the invoice data instead.
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": {
"invoiceId": "<invoiceId>",
"savePath": "<savePath>"
},
"name": "bokio_download_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| savePath | Yes | File path inside BOKIO_DOWNLOAD_DIR, else the working directory; an existing file is never overwritten, so pick a new name. | |
| companyId | No | Bokio company id. Defaults to BOKIO_COMPANY_ID if omitted. | |
| invoiceId | Yes | Id from bokio_list_invoices; an unknown id returns a not-found error. |