---
id: "pe_ruc"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["finances"]
country: ["PE"]
langs: ["es"]
quality: 100
url: "http://registry.apicrafter.io/datatype/pe_ruc"
---

# Peruvian taxpayer number (RUC) (`pe_ruc`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Registro Único de Contribuyentes, the 11-digit tax number of companies and individuals in Peru. The first two digits give the kind of taxpayer (for example 10 for individuals, followed by their DNI, and 20 for legal entities) and the last digit is a check digit.

- Personal data (PII): yes
- Categories: Finances and banking (finances)
- Countries: Peru (PE)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:10|15|17|20)\d{9}$
```

## Examples

- `20468189446` — Synthetic number with a valid check digit
- `20388002353` — Synthetic number with a valid check digit
- `204681894467` (invalid example) — One character too many

## Mappings

- orgid: `PE-RUC`
- schema_org: `taxID`
- stdnum: `pe.ruc`

## Supported by tools

- `dataprep`
- `nightfall`
- `pythonstdnum`

## Translations

- es: Registro Único de Contribuyentes (RUC)

## Sources

- doc: <https://www.sunat.gob.pe/legislacion/ruc/>
- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.pe.ruc.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_pe_ruc.html>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/pe_ruc.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/PE/finances/pe_ruc.yaml>
