get_document_pdf_url
Get a signed, shareable URL to download a PDF of a finalized document or receipt. The URL expires after a few hours and requires no authentication to open.
Instructions
Get a signed, shareable URL to a PDF render of a document or receipt.
Returns a short-lived URL on app14.toconline.pt (or equivalent for
your tenant) that serves the rendered PDF. The URL is signed and does
not require authentication to open — give it to a user and they can
download the PDF in their browser. It typically expires after a few
hours.
Only finalized documents have a PDF. A draft (status 0) returns a "not ready for print" error — finalize it first.
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": {
"id": "<id>"
},
"name": "get_document_pdf_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id (sales doc, sales receipt, or purchase doc). | |
| document_kind | No | `Document` for sales documents, `Receipt` for sales receipts, `PurchasesDocument` for purchase documents. | Document |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||