Skip to main content

AddressValidationData Object

Represents address validation rules for a country.

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!
}

Fields

countryCode ● String!

The country code of the address validation rule.

countryName ● String!

The country name of the address validation rule.

addressFormat ● String!

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.

addressLatinFormat ● String!

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.

allowedFields ● [String!]!

The allowed fields to use in address.

requiredFields ● [String!]!

The required fields to create a valid address.

upperFields ● [String!]!

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

countryAreaType ● String!

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

countryAreaChoices ● [ChoiceValue!]!

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

cityType ● String!

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

cityChoices ● [ChoiceValue!]!

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

cityAreaType ● String!

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

cityAreaChoices ● [ChoiceValue!]!

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

postalCodeType ● String!

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

postalCodeMatchers ● [String!]!

The regular expression for postal code validation.

postalCodeExamples ● [String!]!

The example postal code of the address validation rule.

postalCodePrefix ● String!

The postal code prefix of the address validation rule.

Returned By

addressValidationRules query