Retrieves state or province information based on the state name or two-letter code entered in the parameters. The response can be used to provide a valid state name or code in Company addresses.
Use the country parameter to specify the country associated with the queried state. If left blank, the endpoint uses the United States by default.
Note that only the countries listed below will return state or province values. When creating or updating addresses in these countries, you must include state information.
Use the searchType parameter to specify whether you are searching by a state’s name or its two-letter ISO code, and then add the appropriate value for the state to the q parameter.
For example requests and more information about authenticating BigCommerce APIs, see Authentication and Example Requests.
For more about BigCommerce OAuth scopes, see our Guide to API Accounts.
For a list of API status codes, see API Status Codes.
Determines whether you are searching by a state or province’s name (0) or its two-letter ISO code (1). This parameter also defines the value type for the country parameter.
The state’s name or its two-letter ISO code, depending on the specified searchType.
Note: The state information entered for the parameter must correspond to the country specified in the country value.
The country’s name or its two-letter ISO code, depending on the specified searchType.