get_document_pdf
Retrieve the PDF of a Holded document by document type and ID as base64-encoded binary, including content type, filename, and byte size.
Instructions
Get the PDF of a document as base64-encoded binary (Holded API v2). Returns { contentType, base64, bytes, filename }. Supported docTypes: invoice, salesreceipt, creditnote, receiptnote, estimate, proform, salesorder, waybill, purchaseorder. purchase is NOT supported — GET /purchases/{id}/pdf returns 404 for all purchases. purchaserefund has no CRUD support in v2.
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": {
"docType": "<docType>",
"documentId": "<documentId>"
},
"name": "get_document_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docType | Yes | Type of document (purchase is not supported — PDF endpoint returns 404) | |
| documentId | Yes | Document ID |