客户接口/客户基础信息

首次设置登录密码

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.bindLoginPwd 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
pwdstringRequired

密码,MD5加密

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.bindLoginPwd
POST /api/global/customer.app.CustomerWebApiService.bindLoginPwd HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 34

{
  "pwd": "text",
  "googleCode": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

更换邮箱

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.changeEmail 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
verifyCodestringRequired

新验证码

emailstring · max: 50Required

新邮箱

sendTokenstringRequired

新验证码发送票据

emailAreastring · max: 15Required

新邮箱区号

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.changeEmail
POST /api/global/customer.app.CustomerWebApiService.changeEmail HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 74

{
  "verifyCode": "text",
  "email": "text",
  "sendToken": "text",
  "emailArea": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}
Deprecated

更换邮箱(MFA)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.changeEmailV1v1v2 登录之后可以访问

如果客户开启谷歌验证码(MFA),则入参中的谷歌验证码(googleCode)必填, 同时,用户不用输入旧邮箱

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
verifyCodestringRequired

新验证码

emailstringRequired

新邮箱

sendTokenstringRequired

新验证码发送票据

emailAreastringRequired

新邮箱区号

verifyCodeOldstringRequired

原邮箱验证码

sendTokenOldstringRequired

原邮箱验证码发送票据

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.changeEmailV1v1v2
POST /api/global/customer.app.CustomerWebApiService.changeEmailV1v1v2 HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 139

{
  "verifyCode": "text",
  "email": "text",
  "sendToken": "text",
  "emailArea": "text",
  "verifyCodeOld": "text",
  "sendTokenOld": "text",
  "googleCode": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

更换手机号码

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.changePhone 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
phoneAreastring · max: 15Required

新手机区号

phonestring · max: 50Required

新手机号码

verifyCodestringRequired

验证码

sendTokenstringRequired

验证码发送票据

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.changePhone
POST /api/global/customer.app.CustomerWebApiService.changePhone HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 74

{
  "phoneArea": "text",
  "phone": "text",
  "verifyCode": "text",
  "sendToken": "text"
}
200Success
{
  "msg": "Verification code is not correct",
  "fail": true,
  "trace": "x-42hi-b8f2ag18-x89u-k23y1r1b-1677738250",
  "code": "CUSTOMER_API_0000511",
  "data": "customer.app.CustomerWebApiService.changePhone",
  "bizCode": "US",
  "tm": 15861690,
  "msgParams": null,
  "ok": false
}
Deprecated

更换手机号码(MFA)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.changePhoneV1v1v2 登录之后可以访问

如果客户开启谷歌验证码(MFA),则入参中的谷歌验证码(googleCode)必填, 同时,用户不用输入旧手机号码

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
phoneAreastringRequired

新手机号码

phonestringRequired

新手机号码

verifyCodestringRequired

新验证码

sendTokenstringRequired

新验证码发送票据

verifyCodeOldstringRequired

旧手机验证码

sendTokenOldstringRequired

旧验证码发送票据

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.changePhoneV1v1v2
POST /api/global/customer.app.CustomerWebApiService.changePhoneV1v1v2 HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 139

{
  "phoneArea": "text",
  "phone": "text",
  "verifyCode": "text",
  "sendToken": "text",
  "verifyCodeOld": "text",
  "sendTokenOld": "text",
  "googleCode": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

检测客户信息是否存在

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.checkCustomerExist 游客可访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
loginNamestringRequired

账号:邮箱/手机号码

typeinteger · int32 · min: 1 · max: 3Required

类型:1邮箱,2手机号码

emailAreastringOptional

邮箱区号,区号默认为+86

phoneAreastringOptional

手机区号,区号默认为+86

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.checkCustomerExist
POST /api/global/customer.app.CustomerWebApiService.checkCustomerExist HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "loginName": "text",
  "type": 1,
  "emailArea": "text",
  "phoneArea": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": 1,
  "ok": true,
  "fail": true
}

客户销户

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.destroy 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
remarkstringOptional

销户备注

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.destroy
POST /api/global/customer.app.CustomerWebApiService.destroy HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 17

{
  "remark": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

谷歌验证码绑定与解除

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.enableOrForbidMFA 登录之后可以访问 用户如果绑定了手机号就验证手机号、如果绑定了邮箱就验证邮箱、如果手机号邮箱都绑定了那就得手机号邮箱都验证

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
langstringOptional

语言信息

customerNostringOptional

客户编号

idinteger · int64Optional

客户Id

verifyCodeSMSstringOptional

邮箱验证码

sendTokenSMSstringOptional

邮箱验证码发送票据

verifyCodeEmailstringOptional

手机验证码

sendTokenEmailstringOptional

手机验证码发送票据

googleCodestringOptional

谷歌验证码

typeinteger · int32 · min: 1 · max: 2Required

类型,1启用 2禁用

googleIdinteger · int64 · min: 1Required

谷歌Id

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.enableOrForbidMFA
POST /api/global/customer.app.CustomerWebApiService.enableOrForbidMFA HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 178

{
  "lang": "text",
  "customerNo": "text",
  "id": 1,
  "verifyCodeSMS": "text",
  "sendTokenSMS": "text",
  "verifyCodeEmail": "text",
  "sendTokenEmail": "text",
  "googleCode": "text",
  "type": 1,
  "googleId": 1
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

查询客户信息

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.findCustomerInfo 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
objectOptional
Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.findCustomerInfo
POST /api/global/customer.app.CustomerWebApiService.findCustomerInfo HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "id": 1,
    "companyId": 1,
    "customerGroupId": 1,
    "customerNo": "text",
    "kycAuditStatus": 1,
    "kycAuditRemark": "text",
    "kycStatus": 1,
    "kycRemark": "text",
    "accountList": {},
    "accountRemark": "text",
    "loginPassStatus": "text",
    "payPassStatus": "text",
    "email": "text",
    "phone": "text",
    "phoneArea": "text",
    "name": "text",
    "country": "text",
    "type": 1,
    "deposit": 1,
    "withdraw": 1,
    "optional": 1,
    "activateStatus": 1,
    "activateTime": 1,
    "companyKycStatus": 1,
    "status": 1,
    "thirdServerCode": "text",
    "source": "text",
    "thirdLoginSource": "text",
    "thirdUserId": "text",
    "idCard": "text",
    "idCardType": "text",
    "thirdIntactMsg": "text",
    "firstName": "text",
    "lastName": "text",
    "isFund": 1,
    "assertPassStatus": "text",
    "googleId": 1,
    "openAccountType": 1,
    "loginTime": 1,
    "createTime": 1,
    "relationCustomerId": 1,
    "companyType": "text",
    "registerSource": 1,
    "associationCompanyId": 1,
    "registerTime": 1,
    "utmSource": "text",
    "forceLevel": {},
    "earlyWarningLevel": {},
    "withdrawLevel": {},
    "postalCode": "text",
    "customerAgentMark": "text",
    "apiCheckSwitch": true,
    "apiCheckRule": "text"
  },
  "ok": true,
  "fail": true
}

忘记资金密码

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.forgetAssertsPwd 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
phoneAreastringOptional

手机区号;“type类型为2:手机号码”时该字段必填;不传默认取+86

loginNamestringRequired

账号:邮箱/手机号码

typeinteger · int32 · min: 1 · max: 3Required

类型:1邮箱,2手机号码

newPwdstring · min: 6 · max: 50Required

新密码,MD5加密

verifyCodestringRequired

验证码

sendTokenstringRequired

发送票据

verifyCodeTokenstringRequired

验证票据;验证验证码接口返回token,优先校验该字段如果校验通过则发送验证码接口返回sendToken跳过验证,该字段如果校验不通则校验发送验证码接口返回sendToken

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.forgetAssertsPwd
POST /api/global/customer.app.CustomerWebApiService.forgetAssertsPwd HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 171

{
  "newPwd": "Aa123456@",
  "type": 1,
  "loginName": "[email protected]",
  "verifyCode": "232123",
  "sendToken": "asdsadasdasdsadsadsadsadad",
  "verifyCodeToken": "adczczxczczczxczczxczxczxc"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

忘记资金密码(MFA)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.forgetAssertsPwdV1v1v2 登录之后可以访问

如果客户开启谷歌验证码(MFA),则入参中的谷歌验证码(googleCode)必填, 同时,用户不用输入旧手机号码或旧邮箱

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
newPwdstring · min: 5 · max: 50Required

新密码,MD5加密

verifyCodestringRequired

验证码

sendTokenstringRequired

发送票据

typeinteger · int32 · min: 1 · max: 3Required

类型:1邮箱,2手机号码

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.forgetAssertsPwdV1v1v2
POST /api/global/customer.app.CustomerWebApiService.forgetAssertsPwdV1v1v2 HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 85

{
  "newPwd": "text",
  "verifyCode": "text",
  "sendToken": "text",
  "type": 1,
  "googleCode": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

忘记登录密码

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.forgetLoginPwd 游客可访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
loginNamestringRequired

账号:邮箱/手机号码

phoneAreastringOptional

手机区号,区号默认为+86

typeinteger · int32 · min: 1 · max: 3Required

类型:1邮箱,2手机号码

newPwdstringRequired

新密码,MD5加密

verifyCodestringRequired

验证码

sendTokenstringRequired

发送票据

verifyCodeTokenstringRequired

验证票据

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.forgetLoginPwd
POST /api/global/customer.app.CustomerWebApiService.forgetLoginPwd HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 148

{
  "loginName": "text",
  "phoneArea": "text",
  "type": 1,
  "newPwd": "text",
  "verifyCode": "text",
  "sendToken": "text",
  "verifyCodeToken": "text",
  "googleCode": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

首次设置资金密码

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.bindAssertsPwd 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
pwdstringRequired

密码,MD5加密

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.bindAssertsPwd
POST /api/global/customer.app.CustomerWebApiService.bindAssertsPwd HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 32

{
  "pwd": "sunt",
  "googleCode": "44"
}
200Success
{
  "msg": "Fund password has been set",
  "fail": true,
  "trace": "x-kwm21-v8951-5vor62ft-006o-1677737070",
  "code": "CUSTOMER_API_0000133",
  "data": "customer.app.CustomerWebApiService.bindAssertsPwd",
  "bizCode": "US",
  "tm": 3851542,
  "msgParams": null,
  "ok": false
}

绑定邮箱

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.bindEmail 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
verifyCodestringRequired

验证码

emailstring · max: 50Required

邮箱

sendTokenstringRequired

验证码发送票据

emailAreastring · max: 15Required

邮箱区号

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.bindEmail
POST /api/global/customer.app.CustomerWebApiService.bindEmail HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 94

{
  "verifyCode": "text",
  "email": "text",
  "sendToken": "text",
  "emailArea": "text",
  "googleCode": "text"
}
200Success
{
  "msg": "Verification code is not correct",
  "fail": true,
  "trace": "x-i2ps6-ol1gv4l4-17tc48-f72xfee-1677737300",
  "code": "CUSTOMER_API_0000511",
  "data": "customer.app.CustomerWebApiService.bindEmail",
  "bizCode": "US",
  "tm": 19770126,
  "msgParams": null,
  "ok": false
}

绑定手机号码

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.bindPhone 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
verifyCodestringRequired

验证码

sendTokenstringRequired

验证码发送票据

googleCodestringOptional

谷歌验证码

phonestring · max: 50Required

手机号码

phoneAreastring · max: 15Required

手机区号

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.bindPhone
POST /api/global/customer.app.CustomerWebApiService.bindPhone HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 94

{
  "verifyCode": "text",
  "sendToken": "text",
  "googleCode": "text",
  "phone": "text",
  "phoneArea": "text"
}
200Success
{
  "msg": "Verification code is not correct",
  "fail": true,
  "trace": "x-g82wr3b-3o3236-576oa-1er5di6-1677737445",
  "code": "CUSTOMER_API_0000511",
  "data": "customer.app.CustomerWebApiService.bindPhone",
  "bizCode": "US",
  "tm": 15425229,
  "msgParams": null,
  "ok": false
}

切换语言

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.changeLang 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
newLangstringRequired

语言信息

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.changeLang
POST /api/global/customer.app.CustomerWebApiService.changeLang HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "newLang": "text"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-k5l8-b16p6c93-d2glxw5-6z178usp-1677738101",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 3818289,
  "msgParams": null,
  "ok": true
}

检测客户是否开启GoogleMFA

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.checkGoogleMFAStatus 游客可访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
loginNamestringOptional

账号:邮箱/手机号码

phoneAreastringRequired

机区号,区号默认为+86

typeinteger · int32 · min: 1 · max: 3Required

类型:1邮箱,2手机号码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.checkGoogleMFAStatus
POST /api/global/customer.app.CustomerWebApiService.checkGoogleMFAStatus HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 48

{
  "loginName": "text",
  "phoneArea": "text",
  "type": 1
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-b4ypj54-y9t32s7-5757xb-v60725g8-1677740298",
  "code": "0",
  "data": -1,
  "bizCode": "",
  "tm": 19151998,
  "msgParams": null,
  "ok": true
}

检查客户状态

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.checkStatus 判断客户状态:1已存在,2不存在,-1客户被禁用 此接口需登录

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
loginNamestringOptional

账号:邮箱/手机号码

typeinteger · int32 · min: 1 · max: 3Required

类型:1邮箱,2手机号码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.checkStatus
POST /api/global/customer.app.CustomerWebApiService.checkStatus HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 29

{
  "loginName": "text",
  "type": 1
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-774phjw-g77e96y-7ogx9r8a-z7831eh-1677740174",
  "code": "0",
  "data": {
    "country": "CN",
    "phoneArea": "+86",
    "status": 1
  },
  "bizCode": "",
  "tm": 17093534,
  "msgParams": null,
  "ok": true
}

查询账户资产信息(杠杆)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.queryAccountAssetsInfo 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
tradeTypeinteger · int64 · min: 1Required

玩法Id,3-CROSS;5-MATCH;

accountIdinteger · int64Optional

账户Id,与accountCurrency必须至少有一个存在

accountCurrencystringOptional

账户币种与accountCurrency必须至少有一个存在

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.queryAccountAssetsInfo
POST /api/global/customer.app.CustomerWebApiService.queryAccountAssetsInfo HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 54

{
  "tradeType": 1,
  "accountId": 1,
  "accountCurrency": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

实时账户资金信息

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.queryAccountById 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
tradeTypeinteger · int64 · min: 1Required

玩法Id,1-CFD_MM;2-CFD_WBW;3-CROSS;5-MATCH;

accountIdinteger · int64Optional

账户Id,与currency必须至少有一个存在

currencystringOptional

开户币种,与accountId必须至少有一个存在

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.queryAccountById
POST /api/global/customer.app.CustomerWebApiService.queryAccountById HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "tradeType": 1,
  "accountId": 1,
  "currency": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "companyId": 1,
    "tradeType": 1,
    "customerId": 1,
    "customerNo": "text",
    "accountId": 1,
    "type": 1,
    "status": 1,
    "activateStatus": 1,
    "activateTime": 1,
    "remark": "text",
    "currency": "text",
    "digits": 1,
    "withdrawAmount": "text",
    "createTime": 1,
    "firstDepositTime": 1,
    "firstWithdrawTime": 1,
    "assetsId": 1,
    "balance": "text",
    "available": "text",
    "equity": "text",
    "lockAmount": "text",
    "profit": "text",
    "margin": "text",
    "notWithdrawAmount": "text",
    "freeMargin": "text",
    "lockMargin": "text",
    "liabilities": "text",
    "liabilitiesPrincipal": "text",
    "interest": "text",
    "netAssets": "text",
    "frozen": "text",
    "collateralFrozen": "text",
    "availableLoan": "text",
    "interestProportion": "text",
    "marginRadio": "text",
    "wholeWarehouseBalance": "text",
    "wholeWarehouseRate": "text",
    "openAccountStatus": true
  },
  "ok": true,
  "fail": true
}

查询客户资产

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.queryCustomerAssets 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
tradeTypeinteger · int64Optional

玩法Id

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.queryCustomerAssets
POST /api/global/customer.app.CustomerWebApiService.queryCustomerAssets HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "tradeType": 1
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-9q2v3u1-9c89e2-4epa-1w3zd-1677741772",
  "code": "0",
  "data": {
    "balance": "109849160.9462",
    "currency": "USDT",
    "digits": 4,
    "assetsId": 13
  },
  "bizCode": "C",
  "tm": 209517656,
  "msgParams": null,
  "ok": true
}

客户总资产信息(不支持合约玩法)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.queryCustomerAssetsInfo 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
tradeTypeinteger · int64 · min: 1Required

玩法Id,3-CROSS;5-MATCH;8-WALLET;(不支持合约玩法)

accountCurrencystringOptional

账户币种,多个资产间以“,”分割。如:USD,CNY。不传默认返回全部

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.queryCustomerAssetsInfo
POST /api/global/customer.app.CustomerWebApiService.queryCustomerAssetsInfo HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 40

{
  "tradeType": 1,
  "accountCurrency": "text"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-syhv7-d3a53n34-z4k54-458414-1677741850",
  "code": "0",
  "data": {
    "totalAvailable": "348191.9105",
    "closeProportion": "26.61%",
    "riskLevel": 2,
    "totalBalance": "348191.9105",
    "totalLiabilities": "1308283.6711",
    "companyId": null,
    "totalNetAssets": "-960091.7606",
    "currency": "USDT",
    "digits": 4,
    "totalInterest": "1068275.4978",
    "tradeType": 3,
    "customerNo": null,
    "totalLiabilitiesPrincipal": "240008.1733",
    "accountInfoMap": {
      "SAND": {
        "netAssets": "0.000000",
        "lastOrderId": "0",
        "available": "0.000000",
        "remark": null,
        "type": 1,
        "equity": "0.000000",
        "firstDepositTime": null,
        "lockMargin": "0.000000",
        "balance": "0.000000",
        "interest": "0.000000",
        "customerId": 1176,
        "liabilities": "0.000000",
        "currency": "SAND",
        "activateStatus": 2,
        "withdrawAmount": "0.000000",
        "profit": "0",
        "tradeType": 3,
        "wholeWarehouseBalance": null,
        "freeMargin": "0",
        "margin": "0",
        "firstWithdrawTime": null,
        "activateTime": 1648792208194,
        "weight": null,
        "frozen": "0.000000",
        "wholeWarehouseRate": null,
        "accountId": 1031752,
        "companyId": 360,
        "liabilitiesPrincipal": "0.000000",
        "interestProportion": "0",
        "createTime": 1648777706190,
        "lockAmount": "0.000000",
        "notWithdrawAmount": "0.000000",
        "digits": 6,
        "customerNo": "86001175",
        "status": 2,
        "assetsId": 29
      }
    }
  },
  "bizCode": "C",
  "tm": 171612280,
  "msgParams": null,
  "ok": true
}

借还款流水列表(杠杆)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.queryLiabilitiesWaterByPage 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
sizeinteger · int64Optional

每页条数

currentinteger · int64Optional

当前页

tradeTypeinteger · int64 · min: 1Required

玩法Id

liabilitiesTypeinteger · int32Optional

1-借款;2-还款

startTimeinteger · int64Optional

开始时间

endTimeinteger · int64Optional

结束时间

accountIdinteger · int64Optional

账户Id

assetsIdinteger · int64Optional

资产Id

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.queryLiabilitiesWaterByPage
POST /api/global/customer.app.CustomerWebApiService.queryLiabilitiesWaterByPage HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 109

{
  "size": 1,
  "current": 1,
  "tradeType": 1,
  "liabilitiesType": 1,
  "startTime": 1,
  "endTime": 1,
  "accountId": 1,
  "assetsId": 1
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "total": 1,
    "size": 1,
    "current": 1,
    "records": {
      "id": 1,
      "accountId": 1,
      "remark": "text",
      "createdBy": 1,
      "createTime": 1,
      "updateBy": 1,
      "updateTime": 1,
      "businessType": 1,
      "businessType1": 1,
      "customerNo": "text",
      "digits": 1,
      "liabilitiesPrincipal": "text",
      "interest": "text",
      "interestUpdateTime": 1,
      "currency": "text",
      "liabilities": "text"
    }
  },
  "ok": true,
  "fail": true
}

修改资金密码

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.updateAssertsPwd 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
oldPwdstringRequired

旧密码,MD5加密

newPwdstringRequired

新密码,MD5加密

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.updateAssertsPwd
POST /api/global/customer.app.CustomerWebApiService.updateAssertsPwd HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 53

{
  "oldPwd": "text",
  "newPwd": "text",
  "googleCode": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

修改资金密码(MFA)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.updateAssertsPwdMFA 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
oldPwdstring · min: 6 · max: 50Required

旧密码,MD5加密

newPwdstring · min: 6 · max: 50Required

新密码,MD5加密

googleCodestringOptional

谷歌验证码

verifyCodestringRequired

验证码,发送验证码接口bizType=EMAIL_LOGINED_VERIFICATION_CODE(邮箱),SMS_LOGINED_VERIFICATION_CODE(手机)

sendTokenstringRequired

发送票据

typeinteger · int32 · min: 1 · max: 2Required

类型:1邮箱,2手机号码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.updateAssertsPwdMFA
POST /api/global/customer.app.CustomerWebApiService.updateAssertsPwdMFA HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 101

{
  "oldPwd": "text",
  "newPwd": "text",
  "googleCode": "text",
  "verifyCode": "text",
  "sendToken": "text",
  "type": 1
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

修改登录密码

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.updateLoginPwd 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
oldPwdstringRequired

旧密码,MD5加密

newPwdstringRequired

新密码,MD5加密

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.updateLoginPwd
POST /api/global/customer.app.CustomerWebApiService.updateLoginPwd HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 53

{
  "oldPwd": "text",
  "newPwd": "text",
  "googleCode": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

修改登录密码(MFA)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.updateLoginPwdMFA 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
oldPwdstring · min: 6 · max: 50Required

旧密码,MD5加密

newPwdstring · min: 6 · max: 50Required

新密码,MD5加密

googleCodestringOptional

谷歌验证码

verifyCodestringRequired

验证码,发送验证码接口bizType=EMAIL_LOGINED_VERIFICATION_CODE(邮箱),SMS_LOGINED_VERIFICATION_CODE(手机)

sendTokenstringRequired

发送票据

typeinteger · int32 · min: 1 · max: 2Required

类型:1邮箱,2手机号码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.updateLoginPwdMFA
POST /api/global/customer.app.CustomerWebApiService.updateLoginPwdMFA HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 101

{
  "oldPwd": "text",
  "newPwd": "text",
  "googleCode": "text",
  "verifyCode": "text",
  "sendToken": "text",
  "type": 1
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-h8hndw-rps6j-bl9q63-7yf0eh5-1679385371",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 29515800,
  "msgParams": null,
  "ok": true
}

查询客户组列表

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.groupList 游客可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
objectOptional
Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.groupList
POST /api/global/customer.app.CustomerWebApiService.groupList HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "id": 1,
    "name": "text",
    "openAccountType": 1,
    "type": 1
  },
  "ok": true,
  "fail": true
}

修改邮箱(MFA)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.changeEmailMFA 登录之后可以访问 本接口:可自主选择旧凭证验证方式 更换邮箱(MFA):只能使用旧邮箱验证

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
emailstring · max: 50Required

新邮箱

verifyCodeNewstringRequired

新验证码,发送验证码bizType=EMAIL_COMMON_VERIFICATION_CODE

sendTokenNewstringRequired

新验证码发送票据

typeinteger · int32 · min: 1 · max: 2Required

类型:1邮箱,2手机号码

verifyCodeOldstringRequired

原验证码,与type配合使用,当type=1,发送验证码bizType只能为EMAIL_LOGINED_VERIFICATION_CODE,type=2,bizType=SMS_LOGINED_VERIFICATION_CODE

sendTokenOldstringRequired

原验证码发送票据,与type配合使用,当type=1,发送验证码bizType只能为EMAIL_LOGINED_VERIFICATION_CODE,type=2,bizType=SMS_LOGINED_VERIFICATION_CODE

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.changeEmailMFA
POST /api/global/customer.app.CustomerWebApiService.changeEmailMFA HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 159

{
  "verifyCodeNew": "57",
  "email": "[email protected]",
  "sendTokenNew": "non",
  "verifyCodeOld": "72",
  "sendTokenOld": "velit ut officia minim non",
  "type": 1,
  "googleCode": "64"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-h8hndw-rps6j-bl9q63-7yf0eh5-1679385371",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 29515800,
  "msgParams": null,
  "ok": true
}

修改手机(MFA)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.changePhoneMFA 登录之后可以访问 本接口:可自主选择旧凭证验证方式 更换手机(MFA):只能使用旧手机验证

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
phoneAreastring · max: 15Required

手机区号

phonestring · max: 50Required

手机

verifyCodeNewstringRequired

新验证码,发送验证码bizType=SMS_COMMON_VERIFICATION_CODE

sendTokenNewstringRequired

新验证码发送票据

typeinteger · int32 · min: 1 · max: 2Required

类型:1邮箱,2手机号码

verifyCodeOldstringRequired

原验证码,与type配合使用,当type=1,发送验证码bizType只能为EMAIL_LOGINED_VERIFICATION_CODE,type=2,bizType=SMS_LOGINED_VERIFICATION_CODE

sendTokenOldstringRequired

原验证码发送票据,与type配合使用,当type=1,发送验证码bizType只能为EMAIL_LOGINED_VERIFICATION_CODE,type=2,bizType=SMS_LOGINED_VERIFICATION_CODE

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.changePhoneMFA
POST /api/global/customer.app.CustomerWebApiService.changePhoneMFA HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 185

{
  "verifyCodeNew": "12",
  "phoneArea": "19845120732",
  "sendTokenNew": "laborum Ut",
  "verifyCodeOld": "18",
  "sendTokenOld": "enim aute dolor culpa",
  "type": 1,
  "phone": "18639656874",
  "googleCode": "97"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-h8hndw-rps6j-bl9q63-7yf0eh5-1679385371",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 29515800,
  "msgParams": null,
  "ok": true
}

修改国家

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.changeCountry 登录之后可以访问, 如果客户有已经审批通过的KYC,则拒绝修改国家, 修改成功后,客户修改前所在国家的待审核KYC,全部拒绝

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
newCountrystring · max: 15Required

国家code

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.changeCountry
POST /api/global/customer.app.CustomerWebApiService.changeCountry HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "newCountry": "text"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-h8hndw-rps6j-bl9q63-7yf0eh5-1679385371",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 29515800,
  "msgParams": null,
  "ok": true
}

设置资金密码(MFA)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.bindAssertsPwdMFA 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
newPwdstring · min: 6 · max: 50Required

密码,MD5加密

verifyCodestringRequired

验证码,发送验证码接口bizType=EMAIL_LOGINED_VERIFICATION_CODE(邮箱),SMS_LOGINED_VERIFICATION_CODE(手机)

sendToken6stringRequired

发送票据

typeinteger · int32 · min: 1 · max: 3Required

类型:1邮箱,2手机号码

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.bindAssertsPwdMFA
POST /api/global/customer.app.CustomerWebApiService.bindAssertsPwdMFA HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 82

{
  "newPwd": "eu Ut sint",
  "type": 1,
  "verifyCode": "712311",
  "sendToken": "{{sendToken}}"
}
200Success
{
  "msg": "Fund password has been set",
  "fail": true,
  "trace": "x-kwm21-v8951-5vor62ft-006o-1677737070",
  "code": "CUSTOMER_API_0000133",
  "data": "customer.app.CustomerWebApiService.bindAssertsPwd",
  "bizCode": "US",
  "tm": 3851542,
  "msgParams": null,
  "ok": false
}

重置资金密码(MFA)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.forgetAssertsPwdMFA 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
newPwdstring · min: 6 · max: 50Required

密码,MD5加密

verifyCodestringRequired

验证码,发送验证码接口bizType=EMAIL_LOGINED_VERIFICATION_CODE(邮箱),SMS_LOGINED_VERIFICATION_CODE(手机)

sendTokenstringRequired

发送票据

typeinteger · int32 · min: 1 · max: 3Required

类型:1邮箱,2手机号码

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.forgetAssertsPwdMFA
POST /api/global/customer.app.CustomerWebApiService.forgetAssertsPwdMFA HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 82

{
  "newPwd": "eu Ut sint",
  "type": 1,
  "verifyCode": "712311",
  "sendToken": "{{sendToken}}"
}
200Success
{
  "msg": "Fund password has been set",
  "fail": true,
  "trace": "x-kwm21-v8951-5vor62ft-006o-1677737070",
  "code": "CUSTOMER_API_0000133",
  "data": "customer.app.CustomerWebApiService.bindAssertsPwd",
  "bizCode": "US",
  "tm": 3851542,
  "msgParams": null,
  "ok": false
}

绑定三方账户信息

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.bindThirdAccount 登录之后可以访问

Header parameters
versionstringOptionalExample: 0.0.1
companyIdstringOptionalExample: {{company}}
tracestringOptionalExample: {{mock_trace}}
langstringOptionalExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
thirdLoginSourcestring · max: 10Required

三方来源,telegram

thirdUserIdstring · max: 45Required

三方userId

thirdIntactMsgstringOptional

第三方获取的完整用户信息,必须为json格式

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.bindThirdAccount
POST /api/global/customer.app.CustomerWebApiService.bindThirdAccount HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 72

{
  "thirdLoginSource": "text",
  "thirdUserId": "text",
  "thirdIntactMsg": "text"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-w67a-m983h6dw-30535g-x321-1677575540",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 46426649,
  "msgParams": null,
  "ok": true
}

查询客户语言

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.findCustomerLang 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
objectOptional
Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.findCustomerLang
POST /api/global/customer.app.CustomerWebApiService.findCustomerLang HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-k5l8-b16p6c93-d2glxw5-6z178usp-1677738101",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 3818289,
  "msgParams": null,
  "ok": true
}

首次设置手机号码(TG)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.firstSetPhone 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
phoneAreastring · max: 15Required

手机区号

phonestring · max: 50Required

手机

verifyCodestringRequired

手机验证码,发送验证码bizType=SMS_COMMON_VERIFICATION_CODE

sendTokenstringRequired

手机验证码发送票据

thirdSourcestringRequired

三方来源:telegram

verifyCodeThirdTypestringRequired

三方验证码,与thirdSource配合使用,当thirdSource=telegram,发送验证码bizType只能为SMS_TELEGRAM_VERIFICATION_CODE

sendTokenThirdTypestringRequired

三方验证码发送票据,与thirdSource配合使用,当thirdSource=telegram,发送验证码bizType只能为SMS_TELEGRAM_VERIFICATION_CODE

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.firstSetPhone
POST /api/global/customer.app.CustomerWebApiService.firstSetPhone HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 214

{
  "verifyCode": "57",
  "phoneArea": "18127152839",
  "sendToken": "occaecat exercitation",
  "verifyCodeThirdType": "21",
  "sendTokenThirdType": "ad pariatur ut",
  "thirdSource": "occaecat voluptate sit tempor",
  "phone": "18190281711"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-k5l8-b16p6c93-d2glxw5-6z178usp-1677738101",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 3818289,
  "msgParams": null,
  "ok": true
}

查询客户3方绑定信息

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.findThirdAccountInfo 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
objectOptional
Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.findThirdAccountInfo
POST /api/global/customer.app.CustomerWebApiService.findThirdAccountInfo HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-k5l8-b16p6c93-d2glxw5-6z178usp-1677738101",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 3818289,
  "msgParams": null,
  "ok": true
}

首次设置登录密码(TG)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.firstTimeSettingLoginPassword 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
newPwdstring · min: 32 · max: 32Required

密码,MD5加密

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.firstTimeSettingLoginPassword
POST /api/global/customer.app.CustomerWebApiService.firstTimeSettingLoginPassword HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 22

{
  "newPwd": "Aa123456@"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-k5l8-b16p6c93-d2glxw5-6z178usp-1677738101",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 3818289,
  "msgParams": null,
  "ok": true
}

首次设置邮箱(TG)

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.firstSetEmail 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
emailstring · max: 50Required

邮箱

verifyCodestringRequired

邮箱验证码,发送验证码bizType=SMS_COMMON_VERIFICATION_CODE

sendTokenstringRequired

邮箱验证码发送票据

thirdSourcestringRequired

三方来源:telegram

verifyCodeThirdTypestringRequired

三方验证码,与thirdSource配合使用,当thirdSource=telegram,发送验证码bizType只能为SMS_TELEGRAM_VERIFICATION_CODE

sendTokenThirdTypestringRequired

三方验证码发送票据,与thirdSource配合使用,当thirdSource=telegram,发送验证码bizType只能为SMS_TELEGRAM_VERIFICATION_CODE

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.firstSetEmail
POST /api/global/customer.app.CustomerWebApiService.firstSetEmail HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 195

{
  "verifyCode": "57",
  "sendToken": "occaecat exercitation",
  "verifyCodeThirdType": "21",
  "sendTokenThirdType": "ad pariatur ut",
  "thirdSource": "occaecat voluptate sit tempor",
  "email": "[email protected]"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-k5l8-b16p6c93-d2glxw5-6z178usp-1677738101",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 3818289,
  "msgParams": null,
  "ok": true
}

修改客户通讯地址及邮编

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.changeCustomerAddressAndPostalCode 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
addressstringRequired

通讯地址

postalCodestringRequired

邮政编码

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.changeCustomerAddressAndPostalCode
POST /api/global/customer.app.CustomerWebApiService.changeCustomerAddressAndPostalCode HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 68

{
  "postalCode": "90210",
  "address": "中國湖北省武汉市大东门"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-k5l8-b16p6c93-d2glxw5-6z178usp-1677738101",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 3818289,
  "msgParams": null,
  "ok": true
}

查询3方系统账户余额

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.queryLatestBalanceOfUserAccountInExternalSystem 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
Body
objectOptional
Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.queryLatestBalanceOfUserAccountInExternalSystem
POST /api/global/customer.app.CustomerWebApiService.queryLatestBalanceOfUserAccountInExternalSystem HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "amount": "text",
    "currency": "text",
    "amountDigits": "text"
  },
  "ok": true,
  "fail": true
}

查询客户手机邮箱

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.findPhoneAndEmail 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
Body
objectOptional
Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.findPhoneAndEmail
POST /api/global/customer.app.CustomerWebApiService.findPhoneAndEmail HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "customerNo": "text",
    "email": "text",
    "phone": "text",
    "phoneArea": "text"
  },
  "ok": true,
  "fail": true
}

Last updated