Skip to main content

Arguments

addressFieldDescriptorId : String! required

Address field descriptor identifier. Typically an ISO 3166-1 alpha-2 country code, but may also be a custom descriptor key.

fieldName : String! required

Machine identifier of the field to autocomplete, e.g. 'administrative_area'.

query : String

The user-supplied type-ahead query. An empty string matches every option, subject to the cap.

Returns

[AddressFieldOptionType!]!

A single selectable option for a SELECT address field.

Allowed Viewers

Customer Partner User Third party

Rate Limits

Key Steps
ip ['10/s']

Query Complexity

1

Examples

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

query AutocompleteAddressFieldOptions( $addressFieldDescriptorId: String!, $fieldName: String!, $query: String ) { autocompleteAddressFieldOptions( addressFieldDescriptorId: $addressFieldDescriptorId, fieldName: $fieldName, query: $query ) { label value } }

Variables

{ "addressFieldDescriptorId": "46360026", "fieldName": "situation-nothing-why-ground-listen", "query": "recently-until-perform-black-weight" }

Response

{ "data": { "autocompleteAddressFieldOptions": [ { "label": "the-bring-American-region-institution", "value": "road-effect-personal-together-trouble" } ] } }