document_render_stored
Render a stored document to PDF or Factur-X PDF and return a time-limited signed download URL. Use it when the document is already stored; choose another tool for documents you supply directly.
Instructions
Render a stored document to a PDF.
Use this when the document lives here. To render one you hold yourself,
without storing it, use render_document.
The response carries a signed download_url that needs no API key, valid
until expires_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | `facturx_pdf` embeds the EN 16931 CII XML in a PDF/A-3, which is what a French or German counterparty means by Factur-X or ZUGFeRD. | |
| page_size | No | LETTER | |
| expires_in | No | How long the render stays downloadable, in seconds (1 minute to 7 days). It is also the lifetime of the signature in `download_url`, which is why it is bounded: an unbounded value meant an unbounded grant. A value below the floor used to be accepted and produced a render that had already expired. | |
| document_id | Yes | ||
| template_id | No | tpl_modern | |
| Idempotency-Key | No | ||
| template_version | No | Render the config this version of the template recorded, instead of the config it holds now. Only a custom (`ctpl_`) template has versions. |