Panama RUC Validator (DGI)
Validate Panama Tax Identification Numbers (RUC) and the official 2-digit DV checksum.
How does Panama RUC validation work?
It verifies the presence of the 2-digit 'DV' suffix and recalculates both check digits using the official DGI rotating Modulo 11 algorithm.
Any alteration in the base or check digits leads to immediate invalidation.
RUC Structure
Components of the tax number:
| Position | Field | Length | Meaning | Example |
|---|---|---|---|---|
| 1 | Base | 8-15 digits | Entity registry identifier | 1556824-1-857412 |
| 2 | DV | 2 digits | DGI check digits | 60 |
DGI Checksum Verification
Modulo 11 verification steps:
Iterative Modulo 11
- 1. Extract base and provided DV.
- 2. Compute expected DV using DGI rotating weights 2..9.
- 3. Strict equality comparison between expected and provided DV.