---
id: "br_cnpj_root"
kind: "datatype"
status: "draft"
is_pii: false
name: "Brazilian CNPJ root (CNPJ básico)"
regexp: "^\\d{8}$|^\\d{2}\\.\\d{3}\\.\\d{3}$"
categories: ["companies", "finances"]
country: ["BR"]
langs: ["pt"]
quality: 90
url: "https://registry.apicrafter.io/datatype/br_cnpj_root"
---

# Brazilian CNPJ root (CNPJ básico) (`br_cnpj_root`)

> **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.

The first eight digits of a CNPJ, the number of a legal entity in the Brazilian register of companies (cnpj). They are the same for every establishment of the entity; the next four digits number the establishment (0001 for the head office) and the last two are check digits. Tables of the Banco Central do Brasil identify banks and consortium administrators by the root alone (CNPJ IF, CNPJ AC: 23862762), and the ISPB code of a bank in the payment system is its CNPJ root (br_ispb).

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Companies/business/organizations (companies), Finances and banking (finances)
- Countries: Brazil (BR)
- Languages: Portuguese (pt)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\d{8}$|^\d{2}\.\d{3}\.\d{3}$
```

## Examples

- `23862762` — a bank of the complaints ranking of the Banco Central do Brasil, 2017
- `00000000` — Banco do Brasil
- `60.701.190` — Itaú Unibanco, formatted
- `60.701.190/0001-04` (invalid example) — a full CNPJ (cnpj)

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `brcnpjrootbyname` (field, `br/br_codes.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- pt: Raiz do CNPJ (CNPJ básico)
- ru: Корень CNPJ (первые восемь цифр)

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Cadastro_Nacional_da_Pessoa_Jur%C3%ADdica>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/br_cnpj_root.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BR/companies/br_cnpj_root.yaml>
