beel_get_invoice_pdf
Obtain a temporary pre-signed URL to download an invoice PDF. The endpoint handles pending PDF generation and returns a clear error for draft invoices that lack a fiscal PDF.
Instructions
Returns a temporary pre-signed URL to download the invoice PDF.
URL: expires in five minutes and only allows
GET.202: the PDF is still being generated and no body is returned; poll this endpoint until it answers200.Drafts: a draft has no fiscal PDF and answers
400 INVOICE_NOT_ISSUED_NO_PDF. Issue it, or render it withGET …/{invoice_id}/pdf/preview.
Endpoint: GET /v1/companies/{company_id}/invoices/{invoice_id}/pdf
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | Unique identifier (UUID) of the company the operation acts on — its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed. | |
| invoice_id | Yes | Invoice ID |