> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/users/llms.txt)
> Source: https://docs.saleor.io/api-reference/users/objects/address-validation-data

# AddressValidationData Object

Represents address validation rules for a country.

```graphql
type AddressValidationData {
  countryCode: String!
  countryName: String!
  addressFormat: String!
  addressLatinFormat: String!
  allowedFields: [String!]!
  requiredFields: [String!]!
  upperFields: [String!]!
  countryAreaType: String!
  countryAreaChoices: [ChoiceValue!]!
  cityType: String!
  cityChoices: [ChoiceValue!]!
  cityAreaType: String!
  cityAreaChoices: [ChoiceValue!]!
  postalCodeType: String!
  postalCodeMatchers: [String!]!
  postalCodeExamples: [String!]!
  postalCodePrefix: String!
}
```

<a id="fields"></a>

### Fields

<a id="country-code"></a>

#### [`countryCode`](#country-code) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The country code of the address validation rule.

<a id="country-name"></a>

#### [`countryName`](#country-name) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The country name of the address validation rule.

<a id="address-format"></a>

#### [`addressFormat`](#address-format) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The address format of the address validation rule.

Many fields in the JSON refer to address fields by one-letter abbreviations. These are defined as follows:

-   `N`: Name
-   `O`: Organization
-   `A`: Street Address Line(s)
-   `D`: Dependent locality (may be an inner-city district or a suburb)
-   `C`: City or Locality
-   `S`: Administrative area such as a state, province, island etc
-   `Z`: Zip or postal code
-   `X`: Sorting code

[Click here for more information.](https://github.com/google/libaddressinput/wiki/AddressValidationMetadata)

<a id="address-latin-format"></a>

#### [`addressLatinFormat`](#address-latin-format) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The latin address format of the address validation rule.

Many fields in the JSON refer to address fields by one-letter abbreviations. These are defined as follows:

-   `N`: Name
-   `O`: Organization
-   `A`: Street Address Line(s)
-   `D`: Dependent locality (may be an inner-city district or a suburb)
-   `C`: City or Locality
-   `S`: Administrative area such as a state, province, island etc
-   `Z`: Zip or postal code
-   `X`: Sorting code

[Click here for more information.](https://github.com/google/libaddressinput/wiki/AddressValidationMetadata)

<a id="allowed-fields"></a>

#### [`allowedFields`](#allowed-fields) ● [`[String!]!`](/api-reference/miscellaneous/scalars/string.md)

The allowed fields to use in address.

<a id="required-fields"></a>

#### [`requiredFields`](#required-fields) ● [`[String!]!`](/api-reference/miscellaneous/scalars/string.md)

The required fields to create a valid address.

<a id="upper-fields"></a>

#### [`upperFields`](#upper-fields) ● [`[String!]!`](/api-reference/miscellaneous/scalars/string.md)

The list of fields that should be in upper case for address validation rule.

<a id="country-area-type"></a>

#### [`countryAreaType`](#country-area-type) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The formal name of the county area of the address validation rule.

<a id="country-area-choices"></a>

#### [`countryAreaChoices`](#country-area-choices) ● [`[ChoiceValue!]!`](/api-reference/miscellaneous/objects/choice-value.md)

The available choices for the country area of the address validation rule.

<a id="city-type"></a>

#### [`cityType`](#city-type) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The formal name of the city of the address validation rule.

<a id="city-choices"></a>

#### [`cityChoices`](#city-choices) ● [`[ChoiceValue!]!`](/api-reference/miscellaneous/objects/choice-value.md)

The available choices for the city of the address validation rule.

<a id="city-area-type"></a>

#### [`cityAreaType`](#city-area-type) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The formal name of the city area of the address validation rule.

<a id="city-area-choices"></a>

#### [`cityAreaChoices`](#city-area-choices) ● [`[ChoiceValue!]!`](/api-reference/miscellaneous/objects/choice-value.md)

The available choices for the city area of the address validation rule.

<a id="postal-code-type"></a>

#### [`postalCodeType`](#postal-code-type) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The formal name of the postal code of the address validation rule.

<a id="postal-code-matchers"></a>

#### [`postalCodeMatchers`](#postal-code-matchers) ● [`[String!]!`](/api-reference/miscellaneous/scalars/string.md)

The regular expression for postal code validation.

<a id="postal-code-examples"></a>

#### [`postalCodeExamples`](#postal-code-examples) ● [`[String!]!`](/api-reference/miscellaneous/scalars/string.md)

The example postal code of the address validation rule.

<a id="postal-code-prefix"></a>

#### [`postalCodePrefix`](#postal-code-prefix) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The postal code prefix of the address validation rule.

<a id="returned-by"></a>

### Returned By

[`addressValidationRules`](/api-reference/users/queries/address-validation-rules.md) query
