Country Information
About 219 wordsLess than 1 minute
GET Country API
GET /v1.0/static/country
Request Parameters
None
Request Example
curl --location --request POST '{{domain}}/v1.0/static/country' \
--header 'Authorization: PHT apikey={{api_key}},signature={{signature}},timestamp={{timestamp}}' \
--header 'api_key: {{api_key}}' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Connection: keep-alive' \Response Example
{
"responseStatus": "SUCCESS",
"version": "v1.0",
"countries": [
{
"countryId": 1,
"countryNameEn": "China",
"countryNameCn": "中国",
"countryCode": "CN",
"timeZone": "GMT+8"
},
{
"countryId": 2,
"countryNameEn": "Malaysia",
"countryNameCn": "马来西亚",
"countryCode": "MY",
"timeZone": "GMT+8"
},
{
"countryId": 3,
"countryNameEn": "Singapore",
"countryNameCn": "新加坡",
"countryCode": "SG",
"timeZone": "GMT+8"
},
{
"countryId": 4,
"countryNameEn": "Thailand",
"countryNameCn": "泰国",
"countryCode": "TH",
"timeZone": "GMT+7"
},
{
"countryId": 5,
"countryNameEn": "Albania",
"countryNameCn": "阿尔巴尼亚",
"countryCode": "AL",
"timeZone": "GMT+config.js"
}
],
"remark": ""
}| Field | Type | Required | Description |
|---|---|---|---|
| responseStatus | string | Yes | Response status |
| version | string | Yes | API version |
| remark | string | No | Additional remarks |
| countries | List | Yes | List of countries |
| countryId | string | Yes | Country ID |
| countryNameEn | string | Yes | Country name (English) |
| countryNameCn | string | Yes | Country name (Chinese) |
| countryCode | string | No | Country code (ISO) |
| timeZone | string | No | Time zone |
Status Codes
| Code | Description |
|---|---|
| SUCCESS | Request successful |
| NO_FIND | No data found |
| UNAUTHORIZED | Authentication failed |
| SUPPLIER_SERVER_ERROR | Server or upstream API error |