PropertyRichAddressType
Fields
Top-level administrative subdivision, e.g. US state, AU state/territory, NZ, region, IT region, JP prefecture.
AU: Australia
This must be one of NSW, VIC, QLD, TAS, ACT, SA,
NT, WA. For addresses not within these locations, use
the value that Australia Post uses, e.g. ACT for the
Jervis Bay Territory or WA for Christmas Island.
The entire formatted address represented as a single string, as it would be written on an envelope.
The formatting of this field may vary according to the country of the address (which may not match this Kraken installation's home country). It may also change if we update our address-formatting code or if our understanding of the correct formatting for a given country changes. Avoid parsing individual components of an address out of this field's value; use the other fields on this type instead.
Arguments
Whether to include the country. The country will be spelled out in all-caps on the last line, as per Universal Postal Union standards.
Whether to include the name attached to this address.
Whether to include the postal code attached to this address.
ISO 3166-1 alpha-2 code of the country this address belongs
to, e.g. AU, GB, NZ.
Identifier used by the local postal service for this address, e.g. AU DPID, GB postcode + Delivery Point Suffix, US Zip-9 + Delivery Point.
This is the value that gets encoded in the barcode printed on the envelope by large-volume bulk mail providers.
UK dependent localities, or neighbourhoods or boroughs in some other locations.
City or town portion of an address, e.g. US city, AU suburb/town, NZ suburb and city/town, IT comune, UK post town.
A personal name.
The name of a business or organisation.
Postal code (ZIP code in the US).
Sorting code, e.g. FR CEDEX code. This field is not used in many countries.
The 'street address' component.
This value can (and often will) contain newline characters when appropriate.
In some cases, data may appear in this field instead of the
below fields; e.g. a UK post town name may appear here
instead of in the dependent_locality field. This happens
when data has been migrated from a legacy format, and that
format had insufficient metadata to determine the
appropriate field.
If structured_street_address is also set, the value of
this field will be a string generated from that value.
The 'street address' component, in a structured format.
This field stores the same value as street_address, but
with more detail; for instance, instead of 123 Example
Street it might be {'street_number': '123',
'street_name': 'Example', 'street_type': 'Street'}. In
many cases this will be blank; we only use this field for
Krakens where we need to supply this level of granularity
to some third-party service, like a bulk mail provider.
The exact structure of this value depends on the country of the address, which is not necessarily the same as the country this Kraken is configured to serve. For addresses outside of the countries listed below, this field will be left blank.
AU: Australia
The following keys may be present; all are optional. All keys have string values, and their meaning is the same as their aseXML counterparts. (Note that, unlike aseXML, all keys are provided at the top level, rather than being nested.)
flat_or_unit_typeflat_or_unit_numberfloor_or_level_typefloor_or_level_numberbuilding_or_property_namelocation_descriptorlot_numberhouse_number_1house_number_suffix_1house_number_2house_number_suffix_2street_namestreet_typestreet_suffixpostal_delivery_typepostal_delivery_number_prefixpostal_delivery_number_valuepostal_delivery_number_suffix
JP: Japan
The following keys may be present; all are optional. If keys are empty, they may be omitted from the response entirely.
chomebanchigoedabankana_building_namekanji_building_namebuilding_numberroom_numberaddress_codephysical_location_identifierkana_company_namekanji_company_name
NZ: New Zealand
The following keys may be present; all are optional. If keys are empty, they may be omitted from the response entirely.
flat_or_unit_typeflat_or_unit_numberfloor_or_level_typefloor_or_level_numberproperty_namebuilding_namehouse_number_1house_number_suffix_1house_number_2house_number_suffix_2street_prefixstreet_namestreet_typestreet_suffixrural_delivery_numbermailtownpostal_delivery_typepostal_delivery_locationpostal_delivery_number_prefixpostal_delivery_number_valuepostal_delivery_number_suffix
Example
{
"administrativeArea": "quickly-event-middle-focus-we",
"asString": "good-sound-political-successful-paper",
"country": "that-if-quickly-per-month",
"deliveryPointIdentifier": "85757851",
"dependentLocality": "industry-value-feeling-detail-few",
"locality": "card-outside-body-drive-today",
"name": "ever-after-much-war-energy",
"organization": "call-remember-seat-attorney-within",
"postalCode": "guy-new-source-medical-oil",
"sortingCode": "people-knowledge-car-avoid-often",
"streetAddress": "put-step-machine-song-should",
"structuredStreetAddress": "abc123" | 1 | 1.0 | true | ["abc123"] | AccountType
}