Download an invoice PDF
Returns a signed download_url you can hand straight to a browser to download the invoice PDF, so your API key never reaches the client. The link is a same-origin URL on the API host and stays valid for 24 hours, long enough to embed in a page; request a fresh one once it expires. This endpoint authenticates your integration, not your end users: it can reach every invoice in the key’s environment, so check in your own app that the signed-in user may see this invoice before calling it.
download_url to it. The link stays valid for 24 hours, shown in expires_at — long enough to embed in a page your own client opens later. Request a fresh one once it expires rather than storing it indefinitely.
There are two common ways to use it:
- Download invoices to your own systems. Page through the list of invoices, then call this endpoint for each one and save the PDF on your side. This runs server to server, behind your API key.
- Let your users download an invoice. When a user clicks “download” in your app, call this endpoint from your backend and redirect the browser to
download_url. Your API key stays on your server, and the browser only ever sees the short-lived link.
Autorizaciones
API key sent as a bearer token in the Authorization header.
Parámetros de ruta
Opaque invoice identifier — the id from a list row.
Respuesta
A signed link to download the invoice PDF.
A signed link to download an invoice as a PDF.
Signed URL on the API host that returns the invoice PDF. Hand it straight to a browser to download the file. It stays valid for 24 hours, so you can embed it in a page; request a fresh one once it expires.
"https://api.finseed.es/v1/invoices/inv_clx123abc456/file?token=…"
Suggested file name for the downloaded PDF.
"2026-000123.pdf"
When download_url stops working, RFC 3339 in UTC. Request a fresh link after this.
"2026-06-02T08:35:00Z"