Get invoice PDF or e-invoice
get_invoice_pdfReturns a download link for an invoice, not the file itself: as a PDF (the default), as a ZUGFeRD PDF with the e-invoice data embedded, or as XRechnung XML. Use it when the user wants to see or save the document, for example to check a draft before finalizing, or needs an e-invoice for a business customer. The link works for 15 minutes without signing in: whoever has the link can download the document until it expires. Read-only: nothing is stored or sent. A draft PDF is watermarked DRAFT, and an imported invoice gives the PDF that was uploaded. The e-invoice formats exist for finalized invoices only and need the fields the standard requires; when one is missing the tool returns an error naming it instead of a link. Recipient fields and the buyer reference can still be changed on a finalized invoice, while sender details are fixed when an invoice is created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice ID | |
| format | No | pdf (default), zugferd (PDF with the e-invoice data embedded) or xrechnung (e-invoice XML). The e-invoice formats need a finalized invoice. |