Ana içeriğe geç

Country List API

Bu yöntem, search ve static-data isteklerinde kullanılabilen ülke kodlarını döndürür.

📍 Endpoint​

GET {BaseURL}/common/common/country-list
ÖzellikDeğer
URI{BaseURL}/common/common/country-list
MethodGET
Content-Typeapplication/json

🔐 Yetkilendirme​

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

Request body veya query parametresi gerekmez.

📥 Örnek Response​

{
"Status": {
"Code": 200,
"Description": "Success"
},
"CountryList": [
{
"CountryID": "257a8765-226b-46c4-959c-51db75904578",
"Code": "TH",
"Name": "Thailand"
},
{
"CountryID": "1c65d999-feb8-456a-ab56-f5cee41c06ac",
"Code": "VN",
"Name": "Vietnam"
},
{
"CountryID": "199cb03a-6e24-4af9-9d49-bcc8aebd485a",
"Code": "MV",
"Name": "Maldives"
}
]
}

CountryID, MescoGo tarafından döndürülen ülke tanımlayıcısıdır. Başka bir endpoint ülke kodu istediğinde Code değerini kullanın.

Kullanılabilir ülke yoksa başarılı yanıt aynı yapıyı boş CountryList dizisiyle korur:

{
"Status": {
"Code": 200,
"Description": "Success"
},
"CountryList": []
}