Skip to main content
Version: 3.x

AddressValidationData

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

Fields

AddressValidationData.countryCode ● String! non-null scalar

The country code of the address validation rule.

AddressValidationData.countryName ● String! non-null scalar

The country name of the address validation rule.

AddressValidationData.addressFormat ● String! non-null scalar

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: Organisation
  • 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.

AddressValidationData.addressLatinFormat ● String! non-null scalar

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: Organisation
  • 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.

AddressValidationData.allowedFields ● [String!]! non-null scalar

The allowed fields to use in address.

AddressValidationData.requiredFields ● [String!]! non-null scalar

The required fields to create a valid address.

AddressValidationData.upperFields ● [String!]! non-null scalar

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

AddressValidationData.countryAreaType ● String! non-null scalar

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

AddressValidationData.countryAreaChoices ● [ChoiceValue!]! non-null object

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

AddressValidationData.cityType ● String! non-null scalar

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

AddressValidationData.cityChoices ● [ChoiceValue!]! non-null object

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

AddressValidationData.cityAreaType ● String! non-null scalar

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

AddressValidationData.cityAreaChoices ● [ChoiceValue!]! non-null object

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

AddressValidationData.postalCodeType ● String! non-null scalar

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

AddressValidationData.postalCodeMatchers ● [String!]! non-null scalar

The regular expression for postal code validation.

AddressValidationData.postalCodeExamples ● [String!]! non-null scalar

The example postal code of the address validation rule.

AddressValidationData.postalCodePrefix ● String! non-null scalar

The postal code prefix of the address validation rule.

Returned by

addressValidationRules query


Was this page helpful?