Download estimate PDF
get_estimate_pdfFetch the PDF of an issued proforma estimate, returned as a file path or base64 bytes.
Instructions
Fetch the PDF of an already-issued proforma, for when the user wants the document itself. Read-only.
Returns either a path on the server's filesystem or base64 bytes, depending on how the server is running; force one with as. To send the proforma to the client by email, use send_document_email instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | How to return the PDF: 'file' writes it to the server's download directory and returns the path; 'base64' returns the bytes inline. Defaults to whichever suits the transport in use. | |
| number | Yes | Estimate number, without the series prefix. | |
| seriesName | No | Estimate series. Falls back to the configured default. | |
| companyVatCode | No | Issuing company CIF. Falls back to SMARTBILL_VAT_CODE. |