---
id: "sm_postcode"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["geo", "pii", "common"]
country: ["SM"]
langs: ["it"]
quality: 75
url: "http://registry.apicrafter.io/datatype/sm_postcode"
---

# San Marino postal code (`sm_postcode`)

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

Postal code in San Marino: five digits from 47890 to 47899. San Marino is part of the Italian postal code system.

- Pattern of: `postindex`
- Personal data (PII): yes
- Categories: Geographic identifiers (geo), Personally identifiable information (pii), Common (common)
- Countries: San Marino (SM)
- Languages: Italian (it)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^4789\d$
```

## Examples

- `47890`
- `47891`
- `47895`
- `47899`
- `4789` (invalid example) — too short

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Codice_di_avviamento_postale>
- other: <https://chromium-i18n.appspot.com/ssl-address/data/SM>

## Quality

Score 75/100. Missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage.

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