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.
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. |