Skip to main content
GET
Returns the PDF for one invoice, generated or fetched on demand. Nothing is persisted — every download is produced fresh. Payer accounts (cuentas a convenio) are invoices too: this same endpoint serves their PDF using their own id.

Which PDF each invoice gets

A voided invoice (status: "voided") gets a “VOIDED” stamp on Nevatal-generated PDFs (the official Alegra PDF is delivered untouched) and a -VOIDED suffix on the file name in both cases.

Path Parameters

string
required
The invoice ID (also used for payer accounts)

Response

200 returns the PDF as application/pdf, with Content-Disposition: attachment (file name derived from the invoice’s DIAN number when available, otherwise its internal number) and Content-Length. Every non-2xx response is the standard JSON error envelope, never binary.
boolean
Always false on error
string
Pre-localized message — display as-is
string
Machine-readable error code
string
Include when reporting an issue
string
Present on INVOICE_PDF_NOT_AVAILABLE: one of not_accepted, missing_provider_document, provider_file_not_available

Errors