Get Country and Phone Code List
API Description
- Path:
/client/common/countries - Method:
GET - Description: Get the list of countries and corresponding phone codes (
DDI) supported by the system. Used for front-end rendering of country and area code drop-down boxes. No verification parameters are required.
Request Parameters
None
Request Example
GET /client/common/countries
Return Parameters
| Parameter Name | Type | Description |
|---|---|---|
code | Number | Status code, 0 means success |
msg | String | Prompt message |
data | Array | Contains country list data |
data[i].countryCode | String | Country code (e.g., CN, US, MY) |
data[i].currencySymbol | String | Currency symbol used by the country (e.g., ¥, $, RM) |
data[i].phoneCode | String | Country phone code (e.g., +86, +1, +60) |
data[i].sort | Number | Sort value |
Return Example
json
{
"code": 0,
"msg": "Success",
"data": [
{
"countryCode": "CN",
"currencySymbol": "¥",
"phoneCode": "+86",
"sort": 100
},
{
"countryCode": "MY",
"currencySymbol": "RM",
"phoneCode": "+60",
"sort": 90
}
]
}