Region List API
Bu yöntem, belirli bir ülke koduna ait bölgeleri döndürür.
Endpoint
GET {BaseURL}/common/common/region-list?countryCode=TR
| Özellik | Değer |
|---|---|
| URI | {BaseURL}/common/common/region-list?countryCode={countryCode} |
| Method | GET |
| Content-Type | application/json |
Yetkilendirme
Basic Auth zorunludur. MescoMg tarafından sağlanan API kimlik bilgilerini kullanın.
Query Parametreleri
| Parametre | Tip | Açıklama |
|---|---|---|
countryCode | string | Bölgeleri listelemek için ülke kodu |
Request body gerekmez. Ülke kodu tanınmazsa API RegionList yerine genel bir ResultType / ResultMessage yanıtı döndürebilir.
Örnek Response
{
"Status": {
"Code": 200,
"Description": "Success"
},
"RegionList": [
{
"Code": "1",
"Name": "Istanbul"
}
]
}