---
id: "br_compe_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "COMPE bank number (Brazil)"
regexp: "^\\d{3}$"
categories: ["finances"]
country: ["BR"]
langs: ["pt"]
quality: 90
url: "https://registry.apicrafter.io/datatype/br_compe_code"
---

# COMPE bank number (Brazil) (`br_compe_code`)

> **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 three-digit number of a bank in COMPE, the Brazilian clearing house of cheques and bank slips, printed on cheques and used in transfers to name the bank (001 Banco do Brasil, 033 Santander, 104 Caixa, 237 Bradesco, 341 Itaú). The list of participants of the STR of the Banco Central do Brasil gives it as Número_Código, n/a for participants that are not banks.

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

## Detection

Regular expression (Python `re`):

```
^\d{3}$
```

## Examples

- `001` — Banco do Brasil
- `237` — Banco Bradesco
- `070` — BRB - Banco de Brasília
- `00000208` (invalid example) — an ISPB code (br_ispb)

## Metacrafter rules

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

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

## Supported by tools

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

## Translations

- pt: Código COMPE do banco
- ru: Номер банка в COMPE (Бразилия)

## Sources

- doc: <https://www.bcb.gov.br/estabilidadefinanceira/participantesstr>
- wikipedia: <https://pt.wikipedia.org/wiki/Compensa%C3%A7%C3%A3o_banc%C3%A1ria>

## Quality

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

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