One city, with postal codes
GET/v1/geo/cities/{id}
scope catalog.read
The postal codes are SUGGESTIONS for autofill. A code missing from this list is not invalid — roughly 7.5% of real codes are absent from our source, so never reject on absence.
Response#
| Field | Type | Description |
|---|---|---|
id | integer | The city id. |
name | string | Name in local script. |
county | object | The county it sits in. |
county. | integer | County id, for the county_id field on an address. |
county. | string | County name. |
county. | string | County code. |
country | object | The country it sits in. |
country. | string | ISO-2. |
country. | string | Country name. |
postal_codes | string[] | Known postal codes for this city, as a CONVENIENCE for autocomplete. Not supported Not a list to validate against. Roughly one code in thirteen that real users enter is missing from this data, so treating absence as invalid rejects correct addresses. Validate the FORMAT — |
Example
{
"id": 1,
"name": "Craiova",
"county": {
"id": 1,
"name": "Dolj",
"code": "DJ"
},
"country": {
"code": "RO",
"name": "Romania"
},
"postal_codes": [
"200008",
"200009",
"200010"
]
}