addressFields
Get the address field descriptor for a given identifier. The identifier can be an ISO 3166-1 alpha-2 country code (e.g. 'AU', 'GB') or a custom descriptor key configured for the deployment. Returns null if the identifier is not recognised.
Arguments
Address field descriptor identifier. Typically an ISO 3166-1 alpha-2 country code, but may also be a custom descriptor key.
Returns
AddressFieldDescriptorTypeDescribes the structure of an address form for a given country, including all field groups, field configurations, and validation rules.
Possible Errors
Allowed Viewers
Rate Limits
| Key | Steps |
|---|---|
ip |
['10/s'] |
Query Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
query AddressFields($addressFieldDescriptorId: String!) {
addressFields(addressFieldDescriptorId: $addressFieldDescriptorId) {
fieldGroups {
...AddressFieldGroupTypeFragment
}
}
}
Variables
{
"addressFieldDescriptorId": "16027140"
}
Response
{
"data": {
"addressFields": {
"fieldGroups": [AddressFieldGroupType]
}
}
}