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:
| Field | Digits |
|---|---|
| Document type | 2 |
| Issuer's RUC (with leading zeros) | 8 |
| RUC check digit | 1 |
| Establishment | 3 |
| Issuing point | 3 |
| Document number | 7 |
| Taxpayer type | 1 |
| Issue date (YYYYMMDD) | 8 |
| Issuance type | 1 |
| Security code | 9 |
| CDC check digit | 1 |
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
- The CDC has 44 digits and appears on the document.
- The QR code can be scanned and shows the document approved in SIFEN.
- Your RUC, your timbrado and its validity start date are shown.
- If it's in a foreign currency, the currency and the exchange rate appear.
- If you print it, the QR code is at least 25 mm and you don't use a dot-matrix printer.
- If the customer asks for the printed KuDE, you give it to them.
Official sources
Related services
Issue SIFEN-valid electronic documents in seconds, fully integrated into your operation.
Point of Sale (POS)A fast POS that charges, invoices and updates stock in a single flow.
Colozus ERPThe ERP for businesses that sell in guaraníes, dollars, reais and pesos: sales, inventory, SIFEN and accounting in one system.
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