Skip to content

Download an invoice as PDF

GET
/v1/invoices/{id}/pdf
curl --request GET \
--url 'https://api.emite.cr/v1/invoices/example/pdf?disposition=attachment&locale=es' \
--header 'Authorization: Bearer <token>'

Renders the invoice as a PDF with tenant logo, QR (from clave), and CR-style layout. A signed document prints what its signed XML declares — parties, lines, taxes, totals, references and notes as they were when it was signed; a draft, which has no XML yet, prints as a preview with the current data. Logo, colors and format follow the current settings. Locale resolution: ?locale= (es|en) takes precedence; otherwise falls back to the authenticated user's preferredLocale, then to es. Hacienda-specific terminology (condicionVenta, medioPago, IVA tariffs, the MH-DGT-RES-0027-2024 legal footer) stays in Spanish regardless of locale. Each download is recorded in the audit log as invoice.downloaded.

id
required
string

Invoice UUID

disposition
string
Allowed values: attachment inline

Content-Disposition: attachment (default) downloads, inline previews in-browser.

locale
string
Allowed values: es en

Override the PDF rendering locale

The PDF, named after the document's consecutivo (<consecutivo>.pdf); a draft without a number is named after its id.

Media typeapplication/pdf
string format: binary
Content-Disposition
string

attachment (default) or inline, as disposition asks, with the file name.

Invoice not found.