---
id: "ps_postcode"
kind: "datatype"
status: "draft"
is_pii: false
name: "Palestinian postal code"
regexp: "^P\\d{3} ?\\d{4}$"
categories: ["geo"]
country: ["PS"]
langs: ["en", "ar"]
quality: 90
url: "https://registry.apicrafter.io/datatype/ps_postcode"
---

# Palestinian postal code (`ps_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 of Palestine Post, introduced in 2021: the letter P and seven digits, written together or as P999 9999, such as P6100154 in Ramallah.

- Parent datatype: [`postindex`](https://registry.apicrafter.io/datatype/postindex.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Palestine (PS)
- Languages: English (en), Arabic (ar)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^P\d{3} ?\d{4}$
```

## Examples

- `P6100154` — Address in Ramallah, the sample of the UPU
- `P392 0463` — Written with a space
- `6100154` (invalid example) — Without the letter P
- `P610015` (invalid example) — Six digits

## Metacrafter rules

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

- `pspostcodebyname` (field, `ps/ps_geo.yaml`)
- `pspostcodevalue` (data, `ps/ps_geo.yaml`)

## Supported by tools

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

## Translations

- ru: Почтовый индекс Палестины

## Sources

- doc: <https://www.upu.int/UPU/media/upu/PostalEntitiesFiles/addressingUnit/PSEEn.pdf>

## Quality

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

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