Common API
Country/Region List
POST /merchant/core/mcb/common/region
Request
Response
code
String
true
Country/Region code ISO 3166-1 alpha-2
standardCode
String
true
Country/Region code ISO 3166-1 alpha-3
name
String
true
Country/Region name
Example Response
{
"success": true,
"code": 200,
"msg": "Success",
"data":
[
{
"code": "AU",
"standardCode": "AUS",
"name": "Australia"
},
{
"code": "BD",
"standardCode": "BGD",
"name": "Bangladesh"
}
]
}
City List
POST /merchant/core/mcb/common/city
Request
regionCode
String
false
Country/Region code ISO 3166-1 alpha-2
Response
code
String
true
city code
name
String
true
city name
country
String
true
Country/Region code ISO 3166-1 alpha-2
countryStandardCode
String
true
Country/Region code ISO 3166-1 alpha-3
Example Response
{
"success": true,
"code": 200,
"msg": "Success",
"data":
[
{
"code": "AU_01",
"name": "test",
"country": "AU",
"countryStandardCode": "AUS"
}
]
}
City List-v2
It includes two levels: province/state/region and city.
POST /merchant/core/mcb/common/v2/city
Request
regionCode
String
false
Country/Region code ISO 3166-1 alpha-2
Response
code
String
true
city code
name
String
true
city name
country
String
true
Country/Region code ISO 3166-1 alpha-2
countryStandardCode
String
true
Country/Region code ISO 3166-1 alpha-3
parentCode
String
true
Parent code
children
List
true
children city list
children[0].code
String
true
city code
children[0].name
String
true
city name
children[0].country
String
true
Country/Region code ISO 3166-1 alpha-2
children[0].countryStandardCode
String
true
Country/Region code ISO 3166-1 alpha-3
children[0].parentCode
String
true
Parent code
children[0].children
String
true
children city list
Example Response
{
"success": true,
"code": 200,
"msg": "Success",
"data":
[
{
"code": "AU-ACT",
"name": "Australian Capital Territory",
"parentCode": "0",
"country": "AU",
"countryStandardCode": "AUS",
"children":
[
{
"code": "AU-ACT-80100",
"name": "Australian Capital Territory (Canberra)",
"parentCode": "AU-ACT",
"country": "AU",
"countryStandardCode": "AUS",
"children":
[]
}
]
}
]
}
Mobile Code List
POST /merchant/core/mcb/common/mobileAreaCode
Request
Response
code
String
true
Mobile code. eg: +1
name
String
true
Region Name
areaCode
String
true
Region Code ISO 3166-1 alpha-2
language
String
true
Region Lanuage
enableGlobalTransfer
Boolean
true
Is Global Transfer Available
Example Response
{
"success": true,
"code": 200,
"msg": "Success",
"data":
[
{
"code": "+1",
"name": "Canada",
"areaCode": "CA",
"language": "en_US",
"enableGlobalTransfer": true
}
]
}
Upload File
POST /merchant/core/mcb/common/file/upload
Request
category
String
true
Please use the value: card
file
File
true
File
Response
fileId
String
true
File Id
Example Response
{
"success": true,
"code": 200,
"msg": "Success",
"data":
{
"fileId": "c7bf3c1b-25d1-4b75-b519-1e6bf383d0a7"
}
}
Last updated