客户注册
公司默认客户组资产列表示例:*通过前端H5/PCUI数据提供*
"tradeTypeCurrencyList":
[
{
"allCurrency":"USDT",
"tradeType":"1",
"isWallet":"",
"alias":"",
"id":"1",
"name":"合约全仓"
},
{
"allCurrency":"USDT",
"tradeType":"2",
"isWallet":"",
"alias":"",
"id":"2",
"name":"合约逐仓"
},
{
"allCurrency":"USDT,USD,BTC,SAND,LINK,AAVE,DOGE,BCH,ETH,BNB,SOL,AVAX,SHIB,UNI,DOT,XRP,ADA,FIL,V10",
"tradeType":"3",
"isWallet":"",
"alias":"",
"id":"3",
"name":"杠杆"
},
{
"allCurrency":
"USDT,BTC,LINK,ETH,SAND,USD,REEF,ADA,AAVE,DOT,ARX4,BNB,DOGE,ARX10,V10,qa001,qa002,M10,XRP,SHIB,EOS,XEC,FIL,FFT,NFT,QA003,QA004,QA005,QA006,QA007,QA008",
"tradeType":"5",
"isWallet":"",
"alias":"",
"id":"5",
"name":"现货"
}
]
邮箱注册示例:*登录密码(pwd)MD5加密*
{
"email":"[email protected]",
"emailArea":"+86",
"pwd":"dc483e80a7a0bd9ef71d8cf973673924",
"country":"CN",
"customerGroupId":1,
"registerSource":1,
"tradeTypeCurrencyList":[...]
}
手机注册示例:*登录密码(pwd)MD5加密*
{
"phone":"15167651757",
"country":"CN",
"customerGroupId":1,
"registerSource":1,
"tradeTypeCurrencyList":[...],
"phoneArea":"+86",
"pwd":"dc483e80a7a0bd9ef71d8cf973673924"
}
Header parameters
tracestringRequiredExample:
全局链路唯一标志
{{mock_trace}}
tokenstringRequiredExample:
鉴权码
{{auto_token}}
versionstringRequiredExample:
接口版本号
0.0.1
companyIdstringRequiredExample:
公司ID
{{company}}
Body
phonestringRequired
账号:手机号码
emailstringOptional
账号:邮箱
phoneAreastringOptional
手机区号,区号默认为+86
emailAreastringOptional
邮箱区号,区号默认为+86
pwdstringRequired
登录密码,MD5加密、a123456
countrystringRequired
国家:CN=中国
registerSourceintegerRequired
注册来源:1=移动端web:H5,2=pcweb:PC_Web,3=系统&后台平仓:System,4=安卓原生app:Android,5=苹果原生app:iOS,6=鸿蒙OS:HOS,7=pc windows客户端:PC_Win,8=pc mac客户端:PC_Mac,9=不属于以上的:其他
customerGroupIdnumberRequired
客户组ID:1=默认客户组; customerFroupId与tradeTypeCurrencyList相互对应
remarkstringOptional
备注
registerDevicestringOptional
注册的设备型号
utmSourcestringOptional
广告来源(开户链接参数source)
utmMediumstringOptional
广告媒介(开户链接参数medium)
utmCampaignstringOptional
广告系列(开户链接参数campaign)
utmContentstringOptional
广告组(开户链接参数content)
utmTermstringOptional
关键词(开户链接参数term)
Responses
200
成功
application/json
post
POST /openapi-b/global/customer.admin.WhiteCustomerAdminApiService.addCusAndOpenAccountAndKyc HTTP/1.1
Host: pre-api-test.cmfbl.com
trace: text
token: text
version: text
companyId: text
Content-Type: application/json
Accept: */*
Content-Length: 219
{
"phone": "{{mock_phone}}",
"pwd": "dc483e80a7a0bd9ef71d8cf973673924",
"country": "{{national_code}}",
"registerSource": 1,
"customerGroupId": 1,
"tradeTypeCurrencyList": [
{
"allCurrency": "USDT",
"tradeType": "1"
}
],
"phoneArea": "+86"
}
200
成功
{
"msg": "Success",
"fail": false,
"trace": "t-h2jv9x-4to64-9mp4wd7-793nv-1661227305",
"code": "0",
"data": "86021976",
"bizCode": "",
"tm": 236026513,
"msgParams": null,
"ok": true
}
Last updated