POST private-location/GetCountryStatesDetails
Retrieves country and state data based on the provided filters.
Remarks
You can filter the results by specifying a country and/or state in the request body.If no filters are provided, the method will return all available countries and states.
Request example and description
curl --request POST "https://api-asm1.apica.io/v3/private-location/GetCountryStatesDetails?auth_ticket=C471ADC4-19B4-4219-BBF4-671A97EC653E" --header "Content-Type: application/json" --data-raw "{ "country": "Sweden", "state": "NA" }"
Response body model example and description
[
{
"Name": "Sweden",
"CountryCode": "se",
"RegionName": "Northern Europe",
"ContinentName": "Europe",
"States": [
{
"StateName": "NA",
"StateCode": "NA"
},
{
"StateName": "NA",
"StateCode": "NA"
},
{
"StateName": "NA",
"StateCode": "NA"
}
]
},
{
"Name": "Sweden",
"CountryCode": "se",
"RegionName": "Northern Europe",
"ContinentName": "Europe",
"States": [
{
"StateName": "NA",
"StateCode": "NA"
},
{
"StateName": "NA",
"StateCode": "NA"
},
{
"StateName": "NA",
"StateCode": "NA"
}
]
},
{
"Name": "Sweden",
"CountryCode": "se",
"RegionName": "Northern Europe",
"ContinentName": "Europe",
"States": [
{
"StateName": "NA",
"StateCode": "NA"
},
{
"StateName": "NA",
"StateCode": "NA"
},
{
"StateName": "NA",
"StateCode": "NA"
}
]
}
]
| Name | Type | Description |
|---|---|---|
| Name | String | The name of the country. |
| CountryCode | String | The ISO code of the country. |
| RegionName | String | The name of the region the country belongs to. |
| ContinentName | String | The name of the continent the country belongs to. |
| States | Object | The list of states in the country. |
| StateName | String | The name of the state. |
| StateCode | String | The code of the state. |