CUDE & CDC SIFEN e-Invoice Generator (Paraguay)
Generate 44-digit CDC control codes with Mod 11 check digit and SHA-256 CUDE hashes for Paraguay SIFEN / DNIT.
Waiting for generation...
About CDC and CUDE in Paraguay (SIFEN / DNIT)
The 44-digit CDC (Código Digital de Control) is the mandatory unique access key regulated by DNIT for Paraguay's SIFEN electronic invoicing system.
The 44th digit is the Check Digit calculated using the Modulo 11 algorithm with weights 2 to 11 applied from right to left across the 43 base digits.
Anatomy & Structure of SIFEN CDC / CUDE (Paraguay)
The 44-digit CDC key is the official electronic document identifier for electronic tax invoices in Paraguay:
| Position | Field | Length | Regulatory Meaning in SIFEN | Example |
|---|---|---|---|---|
| 1 & 2 | DTE Type | 2 digits | 01=Factura Electrónica, 04=Autofactura, 05=Credit Note, 06=Debit Note. | 01 |
| 3 to 10 | Issuer RUC | 8 digits | Tax identification number of the issuing company. | 80012345 |
| 11 | RUC Check Digit | 1 digit | Check digit of issuer's RUC. | 6 |
| 12 to 14 | Establishment | 3 digits | Issuing branch or headquarters code (e.g. 001). | 001 |
| 15 to 17 | Expedition Point | 3 digits | Terminal or point-of-sale code (e.g. 001). | 001 |
| 18 to 24 | Document Serial | 7 digits | Sequential invoice number. | 0012345 |
| 25 | Taxpayer Type | 1 digit | 1=Individual, 2=Legal Entity. | 2 |
| 26 to 33 | Issue Date | 8 digits | Date in YYYYMMDD format. | 20260826 |
| 34 | Emission Type | 1 digit | 1=Standard live, 2=Contingency. | 1 |
| 35 to 43 | Security Code | 9 digits | Pseudo-random numeric security code. | 123456789 |
| 44 | CDC Check Digit | 1 digit | Modulo 11 check digit using cyclic weights from 2 to 11. | 8 |
CDC Check Digit Calculation Algorithm (SIFEN Modulo 11)
The 44th digit is computed via Modulo 11 per SET/DNIT official guidelines:
CheckDigit = 11 - (Σ (d[i] × Weight[i]) % 11) (Remainders 0 and 1 result in 0)
- 1. Cyclic Weights: from right to left over the first 43 digits, apply weights [2, 3, 4, 5, 6, 7, 8, 9, 10, 11] cyclically.
- 2. Sum and Remainder: calculate the sum of all 43 products and divide by 11 to obtain the remainder.
- 3. SIFEN Rule: if remainder is 0 or 1, check digit is 0. If remainder > 1, check digit is 11 minus remainder (11 - remainder).