beel_get_invoice_pdf
Retrieve a temporary pre-signed URL to download an invoice PDF. If a 202 is returned, poll until 200; drafts without a PDF return 400.
Instructions
Returns a temporary pre-signed URL to download the invoice PDF. The URL expires in five
minutes and only allows GET.
A 202 with no body means the PDF is still being generated; poll this endpoint until it
answers 200. A draft has no fiscal PDF and answers 400 INVOICE_NOT_ISSUED_NO_PDF: issue
it, or use …/pdf/preview.
Endpoint: GET /v1/companies/{company_id}/invoices/{invoice_id}/pdf
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | NIF (company) the operation acts on. 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 NIF you do not reach answers `403`, and so does a NIF that does not exist, so the existence of a NIF in another account is never disclosed. | |
| invoice_id | Yes | Invoice ID |