获取国家省份地市选项代码
POST
https://open.fxiaoke.com/cgi/crm/countryAreaOptions/get
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.fxiaoke.com/cgi/crm/countryAreaOptions/get' \
--header 'Content-Type: application/json' \
--data-raw '{
"corpAccessToken": "CORP_ACCESS_TOKEN",
"corpId": "CORP_ID",
"currentOpenUserId": "FSUID_CB185C9B12F5403218CBABB2EFBB524A",
"isIncludeDeleted":true
}'
响应示例响应示例
{
"countryAreaOptions": {
"country": {
"type": "country",
"define_type": "package",
"is_index": false,
"is_need_convert": false,
"is_required": false,
"is_unique": false,
"options": [
{
"label": "中国",
"value": "248",
"resource_bundle_key": "",
"child_options": [
{
"province": [
"249",
"250",
"251",
"252",
"253",
"254",
"255",
"256",
"257",
"258",
"259",
"260",
"261",
"262",
"263",
"264",
"265",
"266",
"267",
"268",
"269",
"270",
"271",
"272",
"273",
"274",
"275",
"276",
"277",
"278",
"279",
"280",
"281",
"282"
]
}
]
},
{
"label": "赞比亚",
"value": "242",
"resource_bundle_key": ""
},
{
"label": "根西岛",
"value": "3630",
"resource_bundle_key": ""
}
],
"api_name": "country",
"status": "released",
"label": "国家"
},
"province": {
"type": "province",
"define_type": "package",
"is_index": false,
"is_need_convert": false,
"is_required": false,
"is_unique": false,
"options": [
{
"label": "北京市",
"value": "249",
"resource_bundle_key": "",
"child_options": [
{
"city": [
"283"
]
}
]
},
{
"label": "天津市",
"value": "250",
"resource_bundle_key": "",
"child_options": [
{
"city": [
"284",
"3505"
]
}
]
},
{
"label": "河北省",
"value": "251",
"resource_bundle_key": "",
"child_options": [
{
"city": [
"285",
"286",
"287",
"288",
"289",
"290",
"291",
"292",
"293",
"294",
"295"
]
}
]
},
{
"label": "上海市",
"value": "257",
"resource_bundle_key": "",
"child_options": [
{
"city": [
"355",
"3568"
]
}
]
},
{
"label": "广东省",
"value": "267",
"resource_bundle_key": "",
"child_options": [
{
"city": [
"479",
"480",
"481",
"482",
"483",
"484",
"485",
"486",
"487",
"488",
"489",
"490",
"491",
"492",
"493",
"494",
"495",
"496",
"497",
"498",
"499"
]
}
]
}
],
"api_name": "province",
"cascade_parent_api_name": "country",
"status": "released",
"label": "省"
},
"city": {
"type": "city",
"define_type": "package",
"is_index": false,
"is_need_convert": false,
"is_required": false,
"is_unique": false,
"options": [
{
"label": "北京市",
"value": "283",
"resource_bundle_key": "",
"child_options": [
{
"district": [
"628",
"629",
"630",
"631",
"632",
"633",
"634",
"635",
"636",
"637",
"638",
"639",
"640",
"641",
"642",
"643",
"644",
"645"
]
}
]
},
{
"label": "天津市",
"value": "284",
"resource_bundle_key": "",
"child_options": [
{
"district": [
"3525",
"646",
"647",
"648",
"649",
"650",
"651",
"652",
"653",
"654",
"655",
"656",
"657",
"658",
"659",
"660",
"661",
"662",
"663"
]
}
]
},
{
"label": "天津市郊县",
"value": "3505",
"resource_bundle_key": ""
},
{
"label": "澳门特别行政区",
"value": "626",
"resource_bundle_key": ""
}
],
"api_name": "city",
"cascade_parent_api_name": "province",
"status": "released",
"label": "市"
},
"district": {
"type": "district",
"define_type": "package",
"is_index": false,
"is_need_convert": false,
"is_required": false,
"is_unique": false,
"options": [
{
"label": "东城区",
"value": "628",
"resource_bundle_key": "",
"child_options": []
},
{
"label": "吉木乃县",
"value": "3488",
"resource_bundle_key": "",
"child_options": []
}
],
"api_name": "district",
"cascade_parent_api_name": "city",
"status": "released",
"label": "区"
}
},
"errorCode": 0,
"errorMessage": "success"
}
请求参数
Body 参数application/json