v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Retrieve the list of all states of a country

This API retrieves the list of all states of the specified country.

You must specify appropriate details for the country_id parameter in the API request.

get/v1/countries/{country_id}/states

Path parameters

country_idinteger required

Mandatory Unique identifier of the required country for which you want to retrieve the list of states.

Query parameters

add_defaults_for_dropdownboolean

Optional Indicates whether default state selections for the country are to be displayed in the Countries list. Default value: false.

Response

200