GET states
Returns a collection of all available states in Sync.
Request
HTTP request
GET https://api-sync-resser.azurewebsites.net/api/states
Parameters
The following table lists the parameters that this query supports. All of the parameters listed are query parameters.
Filters
| Properties | Type | Description |
|---|---|---|
| countryCode | string | This parameter is used to get the states of a specific country. It is the value of country code in the Country object. |
Request body
This request does not require a request body during its execution, so please refrain from providing one when calling this method.
Response
Upon successful execution, this method returns a collection of all available states in Sync in the response body. If filters are provided, the response will only contain the states that match the filters.
Errors
The following table provides a list of potential error messages that the API may return in response to a call to this method. For more detailed information, please refer to the error message documentation.
| Error type | Error detail | Description |
|---|---|---|
| unauthorize (401) | Unauthorize | The requester is not allowed to use this request. |