Saltar al contenido principal
GET
/
v1
/
invoices
/
{id}
/
download
Download an invoice PDF
curl --request GET \
  --url https://api.easyverifactu.com/v1/invoices/{id}/download \
  --header 'Authorization: Bearer <token>'
{
  "download_url": "https://files.easyverifactu.com/invoices/2026-000123.pdf?signature=…",
  "filename": "2026-000123.pdf",
  "expires_at": "2026-06-01T09:35:00Z"
}
Every invoice has a PDF. This endpoint returns a short-lived, signed download_url to it. Request the link only when you need it, then follow it to fetch the file. It expires within minutes, shown in expires_at, so do not store it. Request a fresh one each time. 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.
This endpoint authenticates your integration, not your end users: your API key can reach every invoice in its environment. Before you return an invoice to a signed-in user, check in your own application that the invoice belongs to them.

Autorizaciones

Authorization
string
header
requerido

API key sent as a bearer token in the Authorization header.

Parámetros de ruta

id
string
requerido

Opaque invoice identifier — the id from a list row.

Respuesta

A short-lived link to download the invoice PDF.

A short-lived link to download an invoice as a PDF.

download_url
string
requerido

Short-lived, signed URL that returns the invoice PDF. Request it when you need it and redirect the browser to it; do not store it, as it expires within minutes.

Ejemplo:

"https://files.easyverifactu.com/invoices/2026-000123.pdf?signature=…"

filename
string
requerido

Suggested file name for the downloaded PDF.

Ejemplo:

"2026-000123.pdf"

expires_at
string
requerido

When download_url stops working, RFC 3339 in UTC. Request a fresh link after this.

Ejemplo:

"2026-06-01T09:35:00Z"