How to issue an electronic invoice (DIAN)

On this page
A video walkthrough of this guide. Narrated in Spanish, with subtitles.

The electronic invoice validates the document with the DIAN and returns a CUFE. DeusRex issues it through its authorized provider, so you don’t have to set up credentials yourself.

Steps

  1. Verify that your organization has electronic invoicing enabled and the NIT configured in Finance → Payment Settings.
  2. Create the invoice with the service, the patient, and their affiliation.
  3. Click Issue / Validate with DIAN.
  4. Once accepted, the invoice displays its CUFE and is ready to download or send.

Where to find the documents

The DIAN documents are not in Finance → Invoices. That screen shows the general DeusRex invoice, which is the same in every country.

The Colombian documents live on the patient: Patient → Billing → Electronic documents, on the invoice’s row, next to the DIAN status.

Factura DIAN : The representación gráfica — the printed document, showing your practice as the seller, with the NIT, the resolución and the QR code.

XML : The legal document. It is the signed file DIAN keeps; the representación gráfica is only its readable form.

⚠️ While the DIAN connection is in testing, the representación gráfica carries a notice saying the document has no legal validity. That is correct: test documents are filed to the habilitación environment, not to DIAN itself.

Giving the invoice to the patient

Not every patient asks for the electronic invoice. Your organization must always issue it, but you only need to hand it over to those who ask. When they do, press Enviar on that row: the patient receives the representación gráfica and the signed XML by email. You can also download and print them.

⚠️ You are asked to confirm the address first. This is a legal document, and a stale email on the record would deliver it to the wrong person.

Tip

Services must have a CUPS code and the patient must have their health plan/coverage type up to date: both are required for the DIAN to accept the invoice.