Region List API
This method returns the regions for a specific country code.
Endpointβ
GET {BaseURL}/common/common/region-list?countryCode=TR
| Property | Value |
|---|---|
| URI | {BaseURL}/common/common/region-list?countryCode={countryCode} |
| Method | GET |
| Content-Type | application/json |
Authorizationβ
Basic Auth is required. Use the API credentials provided by MescoMg.
Query Parametersβ
| Parameter | Type | Description |
|---|---|---|
countryCode | string | Country code to list regions |
No request body is required. If the country code is not recognized, the API can return a generic ResultType / ResultMessage response instead of RegionList.
Example Responseβ
{
"Status": {
"Code": 200,
"Description": "Success"
},
"RegionList": [
{
"Code": "1",
"Name": "Istanbul"
}
]
}