国家信息
约 270 字小于 1 分钟
GET 国家查询接口
GET /v1.0/static/country
请求参数
无
请求示例
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' \返回示例
{
"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": ""
}| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
| responseStatus | string | 必填 | 状态 |
| version | string | 必填 | 版本号 |
| remark | string | 非必填 | 备注 |
| countries | List | 必填 | 纷客行订单编号 |
| countryId | string | 必填 | 国家编号 |
| countryNameEn | string | 必填 | 国家英文名称 |
| countryNameCn | string | 必填 | 国家中文名称 |
| countryCode | string | 非必填 | 国家代码 |
| timeZone | string | 非必填 | 时区 |
状态码
| 编码 | 说明 |
|---|---|
| SUCCESS | 成功 |
| NO_FIND | 无数据 |
| UNAUTHORIZED | 认证校验失败 |
| SUPPLIER_SERVER_ERROR | 系统或接口异常 |