Panama Identity Card Validator (CIP)
Validate the registry structure of Panama Cédula de Identidad Personal (CIP) numbers.
How does Panama CIP validation work?
Validation checks if the document adheres to the official [Prefix]-[Volume]-[Entry] structure with valid provinces (1-13) or special designations.
It verifies that volume and entry contain positive numerical values.
Registry Structure of the CIP
Normative parts of the Panama CIP:
| Position | Field | Length | Meaning | Example |
|---|---|---|---|---|
| 1 | Prefix | 1-2 chars | Province or special status | 8 |
| 2 | Volume | 1-4 digits | Registry volume | 765 |
| 3 | Entry | 1-5 digits | Registry entry | 4321 |
Structural Verification Algorithm
Integrity checks:
Regex and Registry Validation
- 1. Split into 3 hyphen-delimited segments.
- 2. Validate prefix against authorized provinces (1-13) and special codes (PE, N, E, AV).
- 3. Reject zeroed or invalid volume and entry numbers.