---
id: "sm_coe"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["finances", "companies"]
country: ["SM"]
langs: ["it"]
quality: 88
url: "https://registry.apicrafter.io/datatype/sm_coe"
---

# San Marino economic operator code (COE) (`sm_coe`)

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

Codice operatore economico (COE), the tax identification number of businesses in San Marino. It has up to five digits, and leading zeros are usually dropped. The regexp accepts any number of one to five digits, so it is useful only together with a column name or other context.

- Personal data (PII): no
- Categories: Finances and banking (finances), Companies/business/organizations (companies)
- Countries: San Marino (SM)
- Languages: Italian (it)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[0-9]{1,5}$
```

## Examples

- `24165` — Example from the python-stdnum documentation
- `2416A` (invalid example) — Letter instead of a digit

## Mappings

- stdnum: `sm.coe`

## Supported by tools

- `pythonstdnum`
- `validatorjs`

## Sources

- doc: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.sm.coe.html>

## Quality

Score 88/100. Missing: second example, translation.

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