Country List API
This method returns the country codes available for use in search and static-data requests.
π Endpointβ
GET {BaseURL}/common/common/country-list
| Property | Value |
|---|---|
| URI | {BaseURL}/common/common/country-list |
| Method | GET |
| Content-Type | application/json |
π Authorizationβ
Basic Auth is required. Use the API credentials provided by MescoMg.
No request body or query parameter is required.
π₯ Example 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 is the country identifier returned by MescoGo. Use Code when a country code is requested by another endpoint.
When no countries are available, the successful response keeps the same shape with an empty CountryList array:
{
"Status": {
"Code": 200,
"Description": "Success"
},
"CountryList": []
}