Ana içeriğe geç

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
ÖzellikDeğer
URI{BaseURL}/common/common/region-list?countryCode={countryCode}
MethodGET
Content-Typeapplication/json

Yetkilendirme​

Basic Auth zorunludur. MescoMg tarafından sağlanan API kimlik bilgilerini kullanın.

Query Parametreleri​

ParametreTipAçıklama
countryCodestringBö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"
}
]
}