Skip to main content
Katuq
Free tool
Updated · October 2026

CUFE Validator (DIAN Electronic Invoices)

Check the CUFE format of a DIAN electronic invoice.

The CUFE (Unique Electronic Invoicing Code) is a 96-character hex SHA-384 hash that the DIAN assigns to each electronic invoice in Colombia. It guarantees authenticity and integrity.

This tool does 3 things: (1) validates the code's format, (2) reads the CUFE from the QR on the printed representation and (3) queries the DIAN portal in real time to check whether the document exists.

The DIAN portal lookup is best-effort (it's not an official API). For tax purposes, always validate manually at catalogo-vpfe.dian.gov.co.

When to use this tool

  • When receiving an electronic invoice from a supplier and checking the CUFE is valid.
  • To reconcile the CUFE against the XML before booking it in your ERP.
  • In bulk audits, processing multiple CUFEs via CSV.
  • When a customer reports a problem with your invoice and you need to confirm the CUFE issued.

How a CUFE is built

  1. 1It's generated with SHA-384 over a string with the invoice number, issuer NIT, recipient NIT, date, time, amounts and VAT.
  2. 2It returns a hexadecimal hash of exactly 96 characters.
  3. 3It's embedded in the QR and in the document's printed representation (PDF).
  4. 4The DIAN signs it with its technical key when accepting the document and publishes it on its portal.

Frequently asked questions

CUFE is for sales invoices, CUDE for credit/debit notes, CUDS for support documents on purchases and CUNE for electronic payroll. All follow the same 96-character SHA-384 structure.

No. The DIAN doesn't expose a public API for looking up CUFEs. This tool makes an HTTP request to the public QR lookup portal and reports whether the portal finds the document. If the DIAN changes the site, the lookup may fail.

Yes, but it requires replicating the DIAN algorithm exactly with the taxpayer's technical key. In practice it's generated by authorized invoicing software.

Yes. If the CUFE doesn't match the invoice data, the DIAN rejects the document and it has no tax validity.

Want to automate your DIAN invoicing?

Connect invoicing, operations and control in one tower to reduce manual reviews and errors.