en

KuDE and CDC: what they are and how to read them on an electronic invoice

By Fredy Franco Santacruz · Updated

When you start invoicing electronically, two new acronyms appear: the CDC, which identifies each document, and the KuDE, which is what your customer sees. This guide explains what each one is, how the CDC is built, what the QR code is for and how you can deliver the KuDE, according to Decree 872/2023 and the SIFEN Technical Manual.

Disclosure: This guide was written by us at Cioven, and we develop electronic invoicing software. The information comes from the regulations and the DNIT's official documentation, linked at the end.

What the CDC is

The CDC (control code) is a 44-digit number that uniquely identifies each electronic document (Decree 872/2023, art. 2). You don't choose it: the invoicing system builds it from data in the document itself, and on the KuDE it is shown in 11 groups of 4 digits so it's easy to read.

According to the SIFEN Technical Manual, the CDC is made up as follows:

FieldDigits
Document type2
Issuer's RUC (with leading zeros)8
RUC check digit1
Establishment3
Issuing point3
Document number7
Taxpayer type1
Issue date (YYYYMMDD)8
Issuance type1
Security code9
CDC check digit1

The security code is a random, non-sequential number, and the last digit is calculated with modulo 11 to detect data-entry errors.

What the KuDE is

The KuDE is the graphic representation of the electronic tax document: what gets printed or sent as a PDF (Decree 872/2023, art. 2). The document that counts is the one in SIFEN; if the KuDE and the electronic document don't match, what is recorded in SIFEN prevails (art. 26).

A KuDE shows the issuer's details with its RUC and timbrado, the number, the date and the sale terms, the currency and the exchange rate where applicable, the recipient's details, the items with their VAT (IVA) rate (exempt, 5% or 10%), the totals, the VAT breakdown, the CDC and the QR code.

What the QR code is for

The QR code lets anyone look up the document in SIFEN with their phone camera, without installing anything special. Scanning it shows the approved document, or a notice that the CDC doesn't exist or that the QR code isn't valid. You can also look it up manually on the e-Kuatia query portal using the CDC.

If the KuDE is printed, the QR code must be at least 25 mm and, in multi-page documents, appear at least on the first page.

Can I email the KuDE instead of printing it?

Yes. If your customer isn't an electronic invoicer, you can give them the KuDE printed, send it by email as a PDF or make it available on a portal (Decree 872/2023, art. 25), and the digital KuDE is valid (art. 26). If the buyer asks for the printed version, you have to provide it.

If you print it, the paper must remain legible for at least six months, and the DNIT doesn't accept dot-matrix printers. A recipient who isn't an electronic invoicer must keep the KuDEs they receive, on paper or digitally.

At Cioven: the system builds the CDC, generates the KuDE with its QR code and emails it as a PDF to the customer automatically.

What to check on your KuDEs

  1. The CDC has 44 digits and appears on the document.
  2. The QR code can be scanned and shows the document approved in SIFEN.
  3. Your RUC, your timbrado and its validity start date are shown.
  4. If it's in a foreign currency, the currency and the exchange rate appear.
  5. If you print it, the QR code is at least 25 mm and you don't use a dot-matrix printer.
  6. If the customer asks for the printed KuDE, you give it to them.

Official sources

Related services

Shall we look at it with your operation?

Tell us how you work today and we'll show you how it would look in the system.

Ask on WhatsApp