POST
查询城市列表
使用此接口查询指定地区下的城市或行政区划。
请求
ApiKeyOnerway 分配的发卡 API key 请求 Header。
示例:
replace_with_issuing_api_keyregionCode地区 / 国家代码。
示例:
CNparentCode级联查询的上级行政区划代码。
示例:
GDcurl -X POST 'https://sandbox-api.onerway.com/api/v1/merchant/common/cityList' \
-H 'ApiKey: replace_with_issuing_api_key' \
-H 'Content-Type: application/json' \
--data-raw '{
"parentCode": "GD",
"regionCode": "CN"
}'响应
respCode业务响应码;
20000 表示成功。respMsg响应信息。
data{ regionCode, parentCode, ... }城市或行政区划列表。
{
"respCode": "20000",
"respMsg": "success",
"data": [
{
"regionCode": "CN",
"parentCode": "GD",
"cityCode": "SZ",
"cityName": "Shenzhen"
},
{
"regionCode": "CN",
"parentCode": "GD",
"cityCode": "GZ",
"cityName": "Guangzhou"
}
]
}该接口暂未记录错误响应。