Documents and Office

How to Read a Colombian E-Invoice XML and Find the CUFE

Open a DIAN electronic invoice XML or AttachedDocument to read parties, items, taxes, totals and the CUFE, check it at DIAN and log it for accounting.

Saizul Amin
Saizul Amin3 Nov 2026 · 4 min read
How to Read a Colombian E-Invoice XML and Find the CUFE

How to Read a Colombian E-Invoice XML and Find the CUFE

The XML file that comes with a Colombian electronic invoice is the legal document, but it is hard to read. The Colombia Electronic Invoice XML and CUFE Viewer opens it in your browser and shows it as a clear invoice.

Why the XML matters

Colombian electronic invoices are XML documents in the UBL 2.1 standard defined by DIAN's technical annex. When a supplier sends an invoice by e-mail, it attaches a ZIP with a PDF and an AttachedDocument: an XML wrapper that contains the original invoice and DIAN's validation response. The PDF is only a representation; the XML is what counts.

Where to find the XML

Unzip the attachment of the invoice e-mail and you will find it. You can also download it from your supplier's e-invoicing platform or from DIAN's portal for received documents.

What the viewer reads

Load one or several files, whether they are plain invoices, credit notes, debit notes or AttachedDocuments. The viewer finds the embedded invoice and reads these elements:

UBL elementShown as
cbc:IDInvoice number
cbc:UUIDCUFE (CUDE for notes)
cbc:IssueDate, cbc:DueDateDates
AccountingSupplierParty / CustomerPartySeller and buyer with NIT
InvoiceLineItems
TaxTotalTaxes and rates
LegalMonetaryTotalSubtotal and payable amount

It also shows the currency, each line's description, quantity, price and amount, and taxes such as IVA and INC with their rates.

What the CUFE is

The CUFE is the unique code DIAN assigns to each electronic invoice, a 96-character hash. A link in the viewer opens DIAN's public document lookup for that CUFE, so you can confirm the invoice was validated. The viewer itself does not validate digital signatures; DIAN's lookup is what confirms validation, and it opens only if you click it.

A worked example

Open the AttachedDocument XML from a supplier's e-mail. The viewer finds the invoice inside, for example invoice SETP990000002 from a seller with NIT 900123456, with two lines of services totalling $1,000,000 plus IVA at 19% of $190,000, for a payable amount of $1,190,000. It shows the 96-character CUFE with a button to check it at DIAN, and you can print a clean one-page copy for your files.

A monthly routine for small businesses

Collect all supplier XML files of the month in a folder and open them together. Every invoice you open goes to a log with a note field, where you can add details such as the cost centre, and the log exports to CSV for your spreadsheet or accounting software. The CUFE in the log lets you find each invoice again and prevents loading the same one twice.

Credit and debit notes

Credit notes reference the original invoice. Open both to see the full history of a purchase, including any returns or corrections.

Limits

Unusual extensions or customised UBL may show fewer details. The viewer is a reading and logging aid, not an accounting system, and it is not legal or tax advice.

Work in small, saved steps

Every tool in this series keeps your work as a project in your own browser. Make a change, check the preview, and use undo (Ctrl+Z) or redo (Ctrl+Y) freely; nothing is lost while you experiment. Before a big change, save a named copy from the Projects menu, so you can return to it later or compare two versions side by side. Export the project file when you want to move it to another computer or keep a backup, and import it again whenever you need it.

Privacy by design

The processing happens in the page itself. Files you open are read by code running on your device, results are calculated locally, and nothing is sent to a server or stored in a cloud account. That makes the tool suitable for customer lists, financial data and other material you would not upload to an unknown website. If a component such as a file reader or a map outline is downloaded from a public CDN, only that open-source code or public data is fetched, never your own content.

Share the result clearly

When you pass the output to colleagues, say where the data came from, when it was exported, and which settings you used, so that someone else can repeat the work and get the same answer. Keep the original file unchanged and store the cleaned or calculated version separately. A short note with the assumptions, filters and date saves a lot of questions later and makes the result easier to trust.

Privacy

The tool runs entirely in your browser. Your data stays on your device and is never uploaded.

Save your work

Projects are saved automatically in this browser. Export them as a file to keep a copy, or print a report.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages