Unique identifier
Every e-invoice has a one-of-a-kind CUFE.
cufe dian
The Unique Electronic Invoice Code explained in plain language, with the exact steps to verify any invoice with the DIAN.
CUFE stands for Código Único de Factura Electrónica (Unique Electronic Invoice Code): it identifies each electronic sales invoice in Colombia. The DIAN lets you use this code to look up the document and its validation status. You'll find it in the PDF, next to the QR code, or in the XML; you can paste it into catalogo-vpfe.dian.gov.co or scan the QR code to run the lookup.
✓ Free plan with 15 orders a month · ✓ No credit card · ✓ Support over WhatsApp
Every e-invoice has a one-of-a-kind CUFE.
It lets you verify that the invoice was validated by the DIAN.
Anyone can verify a CUFE on the DIAN portal.
It appears in the graphic representation and as a QR code.
Any change to the data produces a different CUFE.
Check a CUFE with our tool, no sign-up.
If you'd like to first check that the code is complete and correctly written, use our free CUFE validator, no sign-up.
The CUFE (Código Único de Factura Electrónica, or Unique Electronic Invoice Code) is an alphanumeric digital fingerprint that identifies each electronic sales invoice in Colombia. It guarantees that the document is unique and that it wasn't altered after validation.
It's calculated with the SHA-384 algorithm over invoice data: number, date and time, amounts, taxes, the NIT of the issuer and the buyer, and the technical key, among others. The result is 96 characters. Any tiny change to that data produces a different CUFE.
You can also scan the QR code on the graphic representation, which leads to the same lookup.
If you issued an invoice that was rejected, correct the data and issue a new one. If you received it from a supplier and it doesn't show up, ask them to review it before you record it in your accounting.
With Katuq's e-invoicing, each invoice is sent to the DIAN from the order, and the CUFE and QR code appear on the graphic representation your customer receives.
You'll find it in three places, and it's best to copy it from the one that allows the fewest errors:
| Code | Document |
|---|---|
| CUFE | Electronic sales invoice. |
| CUDE | Other electronic documents, such as credit and debit notes and the electronic equivalent document (for example, the electronic POS ticket). |
| CUDS | Support document for purchases from parties not required to invoice. |
| CUNE | Electronic payroll payment support document. |
All of them are looked up in the same DIAN document search. If you have a code and don't know which document it belongs to, search it anyway: the lookup shows the document type.
When you search the code in the DIAN electronic document lookup you'll see, depending on the case, the issuer and the recipient, the date, the amount and the document's validation status. Invoices also show the events recorded by the buyer, such as acknowledgment of receipt, receipt of the goods or service, and acceptance or claim. Those events matter when the invoice is used as a negotiable instrument.
If it still doesn't show up, ask the issuer for the XML and the DIAN validation response. An invoice that wasn't validated has no effect as an e-invoice.
Verifying the CUFE before paying or booking the expense keeps you from recording documents the DIAN didn't validate. If you receive many invoices, review them with your accountant or in your accounting software, which usually includes e-invoice reception. For a single invoice, use the CUFE validator or the DIAN lookup.
The CUFE is generated by your invoicing software from the invoice data; it isn't typed by hand. What does depend on you is choosing e-invoicing software that validates each document with the DIAN and lets you find each invoice's XML, PDF and status later. See how to choose e-invoicing software and how much e-invoicing costs.
No credit card and no lock-in. Guided implementation by our team and support over WhatsApp.