Export document pdf
export_document_pdfSave a document (invoice, quote, credit note or any other kind) as a PDF in the business's Files, drawn as the customer sees it. Answers the new file's id and name: cite it as a file tag so the user can open and download it. Each call saves a new copy, so call it once per request. The file is kept, not imported into the books. A missing or another business's id is refused with reason document-not-found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The invoice, quote, credit note or other document to save as a PDF, from list_invoices or get_document. |