Address formats
How an address is written in each country: the parts it uses and requires, its regions and its postal code — what an address form is built from. The platform's catalogue, read one country at a time.
Get address format
Reads a country's address format — the form of an address in that country: which parts of it the country uses, in the order it writes them, which of them it requires, its first-level regions with the codes an address's region keeps, its postal code pattern and the kinds of its labels. The code is ISO 3166-1 alpha-2 in any case — br names BR, and the answer is named by the uppercase code; a code that is no country is NOT_FOUND. Every signed-in user may read it, a member of any account or of none.
path Parameters
country_codeThe country, ISO 3166-1 alpha-2 in uppercase — also the format's id, whatever the case the request named it in.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get address format › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
country_codeThe country, ISO 3166-1 alpha-2 in uppercase — also the format's id, whatever the case the request named it in.
fieldsThe parts of an address the country uses, in the order it writes them, each {field, required}: field names a field of an address — recipient_name, organization, address_line1, street_number, address_line2, sublocality, city, region, postal_code. A part that is in no entry is one the country does not use; phone is in none.
regionsThe country's first-level subdivisions, in the order a list shows them, each {code, display_name, latin_name?}: code is what an address's region keeps — not always two letters — display_name the name in the country's language, latin_name its Latin spelling where that differs. Empty where the region is free text.
postal_codeThe country's postal code, {pattern?, example?}: pattern a regular expression a whole code matches, case-sensitive — a hint for a form, which the server never checks — and example a valid code. Either is absent where the country has none.
region_labelWhat the country calls its regions, as a kind for a form to translate: STATE, PROVINCE, COUNTY, PREFECTURE, …
postal_code_labelWhat the country calls its postal code, as a kind for a form to translate: POSTAL, ZIP, PIN, EIRCODE.
locality_labelWhat the country calls the place an address is in, as a kind for a form to translate: CITY, DISTRICT, POST_TOWN, SUBURB.
sublocality_labelWhat the country calls the part of the place an address is in, as a kind for a form to translate: SUBURB, NEIGHBORHOOD, DISTRICT, …