Page Summary
-
The JSON object represents an address for Address Verification Service (AVS) purposes.
-
It includes fields for address lines, locality (city/town), administrative area (state/province), postal code, and country code.
-
While all fields are optional, providing as much information as possible ensures greater accuracy in address verification.
-
localityNameshould be omitted for regions with less defined localities like Japan and China, usingaddressLineinstead. -
For the US,
administrativeAreaNameshould be the 2-letter state abbreviation.
Contains address fields to be verified by AVS.
| JSON representation |
|---|
{ "addressLine": [ string ], "localityName": string, "administrativeAreaName": string, "postalCodeNumber": string, "countryCode": string } |
| Fields | |
|---|---|
addressLine[] |
OPTIONAL: This holds unstructured Address text. |
localityName |
OPTIONAL: This is something of a fuzzy term, but it generally refers to the city/town portion of an address. In regions of the world where localities are not well defined or do not fit into this structure well (for example, Japan and China), leave localityName empty and use addressLine. Examples: US city, IT comune, UK post town. |
administrativeAreaName |
OPTIONAL: The top-level administrative subdivision of this country for the user's billing address. Examples: US state, IT region, UK constituent nation, JP prefecture When country == US, this is expected to be the 2-character abbreviation for the US State. |
postalCodeNumber |
OPTIONAL: The user's billing postal code. |
countryCode |
OPTIONAL: The country code of the user's billing address in ISO-3166-1 Alpha-2 format. |