通用接口
国家/地区列表
POST /merchant/core/mcb/common/region
请求
响应
code
String
是
国家/地区代码 ISO 3166-1 alpha-2
standardCode
String
是
国家/地区代码 ISO 3166-1 alpha-3
name
String
是
国家/地区名称
响应示例
{
"success": true,
"code": 200,
"msg": "Success",
"data":
[
{
"code": "AU",
"standardCode": "AUS",
"name": "Australia"
},
{
"code": "BD",
"standardCode": "BGD",
"name": "Bangladesh"
}
]
}
城市列表
POST /merchant/core/mcb/common/city
请求
regionCode
String
false
国家/地区代码 ISO 3166-1 alpha-2
响应
code
String
是
城市代码
name
String
是
城市名称
country
String
是
国家/地区代码 ISO 3166-1 alpha-2
countryStandardCode
String
是
国家/地区代码 ISO 3166-1 alpha-3
响应示例
{
"success": true,
"code": 200,
"msg": "Success",
"data":
[
{
"code": "AUK",
"name": "test",
"country": "AU",
"countryStandardCode": "AUB",
}
]
}
城市列表-v2
包含了省份/州/地区、城市两个层级。
POST /merchant/core/mcb/common/v2/city
请求
regionCode
String
false
国家/地区代码 ISO 3166-1 alpha-2
响应
code
String
是
城市代码
name
String
是
城市名称
country
String
是
国家/地区代码 ISO 3166-1 alpha-2
countryStandardCode
String
是
国家/地区代码 ISO 3166-1 alpha-3
parentCode
String
是
父级code。0是最高层级;代表省份/州/地区
children
List
是
子城市列表
children[0].code
String
是
城市代码
children[0].name
String
是
城市名称
children[0].country
String
是
国家/地区代码 ISO 3166-1 alpha-2
children[0].countryStandardCode
String
是
国家/地区代码 ISO 3166-1 alpha-3
children[0].parentCode
String
是
父级code。0是最高层级;代表省份/州/地区
children[0].children
List
是
子城市列表
响应示例
{
"success": true,
"code": 200,
"msg": "Success",
"data":
[
{
"code": "AU-ACT",
"name": "澳大利亚首都特区",
"parentCode": "0",
"country": "AU",
"countryStandardCode": "AUS",
"children":
[
{
"code": "AU-ACT-80100",
"name": "堪培拉",
"parentCode": "AU-ACT",
"country": "AU",
"countryStandardCode": "AUS",
"children":
[]
}
]
}
]
}
手机区号列表
POST /merchant/core/mcb/common/mobileAreaCode
请求
响应
code
String
是
电话区号
name
String
是
所属地区名称
areaCode
String
是
所属地区代码 ISO 3166-1 alpha-2
language
String
是
地区语言
响应示例
{
"success": true,
"code": 200,
"msg": "Success",
"data":
[
{
"code": "+1",
"name": "Canada",
"areaCode": "CA",
"language": "en_US"
}
]
}
上传文件
POST /merchant/core/mcb/common/file/upload
请求
category
String
是
请使用默认值:card
file
File
是
文件
响应
fileId
String
是
文件ID
响应示例
{
"success": true,
"code": 200,
"msg": "Success",
"data":
{
"fileId": "c7bf3c1b-25d1-4b75-b519-1e6bf383d0a7"
}
}
Last updated