Appearance
5.3 查询省市区3级地址信息
接口说明:
| Method | URL | ContentType |
|---|---|---|
| GET | /api/v1/delivery-address/area/list | application/json |
请求参数说明:
| 参数 | 类型说明 | 是否必填 | 描述 |
|---|---|---|---|
| provinceCode | string | 否 | 省份编码 |
| cityCode | string | 否 | 城市编码 |
| districtCode | string | 否 | 区县编码 |
返回结果说明:
| 参数 | 类型说明 | 描述 |
|---|---|---|
| result | List | 区域信息列表 |
| success | boolean | 请求是否成功 |
| errormsg | string | 错误信息 |
| errorcode | string | 错误码 |
| requestId | string | 请求ID |
请求参数示例:
GET /api/v1/delivery-address/area/list?provinceCode=110000返回数据示例:
json
{
"result": [
{
"areaCode": "110000",
"areaName": "北京市",
"parentCode": "0",
"areaLevel": 1,
"matchDivisionId": 110000,
"areaFullName": "北京市",
"enable": true
},
{
"areaCode": "110100",
"areaName": "北京市",
"parentCode": "110000",
"areaLevel": 2,
"matchDivisionId": 110100,
"areaFullName": "北京市.北京市",
"enable": true
},
{
"areaCode": "110112",
"areaName": "通州区",
"parentCode": "110100",
"areaLevel": 3,
"matchDivisionId": 110300,
"areaFullName": "北京市.北京市.通州区",
"enable": true
}
],
"success": true,
"errormsg": "",
"errorcode": "0",
"requestId": "fb1411daf4f5413abe93d5c29e416331"
}