客户接口/登录授权

登录

post

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

Header parameters
versionstringRequired

版本号

Example: 0.0.1
companyIdstringRequired

公司ID,通过环境变量获取

Example: {{company}}
tracestringRequired

随机跟踪码UUID

Example: {{mock_trace}}
langstringRequired

语言

Example: zh-CN
Body
typeintegerRequired

注册登录方式:1邮箱,2手机号码,3客户账号

phoneAreastringOptional

手机区号;类型为2:手机号码时该字段必填

loginNamestringRequired

账号:邮箱/手机号码

deviceintegerRequired

登录设备: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=不属于以上的:其他

isThirdbooleanRequired

是否第三方

verifyCodestringOptional

验证码

sendTokenstringOptional

验证码发送票据

loginPwdstringOptional

登录密码

bindThirdUserIdstringOptional

绑定第三方userId

thirdSourcestringOptional

第三方源 google,facebook,twitter…

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/login/customer.app.CustomerWebApiService.login
POST /api/login/customer.app.CustomerWebApiService.login HTTP/1.1
Host: prewppc-3.cmfbl.com
version: text
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 147

{
  "type": 2,
  "device": 1,
  "loginName": "13429837442",
  "isThird": false,
  "thirdSource": "",
  "bindThirdUserId": "",
  "loginPwd": "dc483e80a7a0bd9ef71d8cf973673924"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-31z6g86n-kr01ct-4g1u-ci45-1678377046",
  "code": "0",
  "data": {
    "customerGroupId": 1,
    "thirdUserId": null,
    "googleId": -1,
    "lastName": null,
    "country": "CN",
    "kycStatus": 1,
    "companyKycStatus": 2,
    "assertPassStatus": "2",
    "idCard": null,
    "thirdLoginSource": null,
    "payPassStatus": "2",
    "kycAuditRemark": "公司未开启KYC认证,直接通过",
    "source": "H5",
    "type": 0,
    "registerSource": 1,
    "loginPassStatus": "2",
    "idCardType": null,
    "loginTime": 1678360534200,
    "kycRemark": "未验证",
    "associationCompanyId": null,
    "id": 1176,
    "activateStatus": null,
    "email": "22**@qq.com",
    "openAccountType": 0,
    "accountRemark": null,
    "companyType": "real",
    "registerTime": 1648777706117,
    "activateTime": null,
    "kycAuditStatus": 2,
    "optional": 1,
    "isFund": 0,
    "token": "a541f9d5-2507-42b3-b790-59e1f755c380app",
    "firstName": null,
    "companyId": 360,
    "thirdIntactMsg": null,
    "createTime": 1648777706117,
    "phone": "135******9561",
    "relationCustomerId": 0,
    "accountList": [
      {
        "netAssets": "2904318.4696",
        "available": "2904318.4696",
        "remark": null,
        "type": 1,
        "equity": "2904318.4696",
        "firstDepositTime": 1648785031654,
        "lockMargin": "0.0000",
        "balance": "2904321.4696",
        "interest": "0.0000",
        "customerId": 1176,
        "liabilities": "0.0000",
        "currency": "USDT",
        "activateStatus": 2,
        "withdrawAmount": "2904318.4696",
        "profit": "0",
        "tradeType": 5,
        "wholeWarehouseBalance": null,
        "collateralFrozen": "0.0000",
        "freeMargin": "0",
        "margin": "0",
        "firstWithdrawTime": 1648792333492,
        "activateTime": 1648792208194,
        "frozen": "3.0000",
        "wholeWarehouseRate": null,
        "accountId": 1031717,
        "openAccountStatus": true,
        "companyId": 360,
        "liabilitiesPrincipal": "0.0000",
        "interestProportion": null,
        "createTime": 1648777706190,
        "lockAmount": "3.0000",
        "marginRadio": null,
        "notWithdrawAmount": "0.0000",
        "availableLoan": null,
        "digits": 4,
        "customerNo": "86001175",
        "status": 2,
        "assetsId": 13
      },
      {
        "netAssets": "0.05384909",
        "available": "0.05384909",
        "remark": null,
        "type": 1,
        "equity": "0.05384909",
        "firstDepositTime": null,
        "lockMargin": "0.00000000",
        "balance": "0.05384909",
        "interest": "0.00000000",
        "customerId": 1176,
        "liabilities": "0.00000000",
        "currency": "BTC",
        "activateStatus": 2,
        "withdrawAmount": "0.05384909",
        "profit": "0",
        "tradeType": 5,
        "wholeWarehouseBalance": null,
        "collateralFrozen": "0.00000000",
        "freeMargin": "0",
        "margin": "0",
        "firstWithdrawTime": null,
        "activateTime": 1648792208194,
        "frozen": "0.00000000",
        "wholeWarehouseRate": null,
        "accountId": 1031718,
        "openAccountStatus": true,
        "companyId": 360,
        "liabilitiesPrincipal": "0.00000000",
        "interestProportion": null,
        "createTime": 1648777706190,
        "lockAmount": "0.00000000",
        "marginRadio": null,
        "notWithdrawAmount": "0.00000000",
        "availableLoan": null,
        "digits": 8,
        "customerNo": "86001175",
        "status": 2,
        "assetsId": 16
      }
    ],
    "name": null,
    "phoneArea": "+86",
    "deposit": 1,
    "rToken": "291e08e4e0af86b3d8af85f2947a02125a1c1746db58b303b06cc1aba389f4cd",
    "thirdServerCode": "",
    "customerNo": "86001175",
    "status": 6,
    "withdraw": 1
  },
  "bizCode": "",
  "tm": 82650853,
  "msgParams": null,
  "ok": true
}

客户注册

post

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

Header parameters
versionstringRequired

版本号

Example: 0.0.1
companyIdstringRequired

公司ID,通过环境变量获取

Example: {{company}}
tracestringRequired

随机跟踪码UUID

Example: {{mock_trace}}
langstringRequired

语言

Example: zh-CN
X-Forwarded-ForstringRequired
Body
countrystringRequired

国家

langstringOptional

语言信息,默认en-US

loginNamestringRequired

账号:邮箱/手机号码,与type配合使用

phoneAreastringOptional

手机区号,与注册方式配合使用,默认+86

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

注册方式:1邮箱,2手机号码

registerDevicestringOptional

注册的设备型号

verifyCodestringRequired

验证码

sendTokenstringRequired

验证码发送票据

registerSourceinteger · int32 · min: 1Required

注册来源: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=不属于以上的:其他

utmSourcestringOptional

广告来源(开户链接参数source)

utmMediumstringOptional

广告媒介(开户链接参数medium)

utmCampaignstringOptional

广告系列(开户链接参数campaign)

utmContentstringOptional

广告组(开户链接参数content)

utmTermstringOptional

关键词(开户链接参数term)

customerGroupIdinteger · int64Optional

客户组ID

openAccountTypeinteger · int32Optional

开户类型:0.个人 1.企业 ,默认个人

pwdstringOptional

密码,MD5加密

thirdServerCodestringOptional

第三方系统唯一编号

thirdServerSourcestringOptional

第三方系统来源,如:代理=agent

Responses
200Success
application/json
post
/register/customer.app.CustomerWebApiService.register
POST /api/register/customer.app.CustomerWebApiService.register HTTP/1.1
Host: prewppc-3.cmfbl.com
version: text
companyId: text
trace: text
lang: text
X-Forwarded-For: text
Content-Type: application/json
Accept: */*
Content-Length: 430

{
  "country": "text",
  "lang": "text",
  "loginName": "text",
  "phoneArea": "text",
  "type": 1,
  "registerDevice": "text",
  "verifyCode": "text",
  "sendToken": "text",
  "registerSource": 1,
  "utmSource": "text",
  "utmMedium": "text",
  "utmCampaign": "text",
  "utmContent": "text",
  "utmTerm": "text",
  "customerGroupId": 1,
  "tradeTypeCurrencyList": [
    {
      "allCurrency": "text",
      "tradeType": "text"
    }
  ],
  "openAccountType": 1,
  "pwd": "text",
  "thirdServerCode": "text",
  "thirdServerSource": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "customerNo": "text",
    "list": [
      {
        "levelCode": "text",
        "openAccountType": 1,
        "levelName": "text",
        "pathName": "text",
        "pathCode": "text",
        "elementList": [
          {
            "elementCode": "text",
            "elementName": "text",
            "showType": "text",
            "extend": "text",
            "elementValue": "text",
            "elementValueInputGroup": "text",
            "elementCodeInputGroup": "text"
          }
        ]
      }
    ],
    "companyId": 1,
    "email": "text",
    "phone": "text",
    "phoneArea": "text",
    "name": "text",
    "loginPassStatus": "text",
    "payPassStatus": "text",
    "customerGroupId": 1,
    "country": "text",
    "id": 1,
    "optional": 1,
    "companyKycStatus": 1,
    "thirdServerCode": "text",
    "source": "text",
    "capitalInStatus": 1,
    "openAccountType": 1,
    "companyType": "text",
    "associationCompanyId": 1,
    "registerTime": 1,
    "apiCheckSwitch": true,
    "apiCheckRule": "text"
  },
  "ok": true,
  "fail": true
}

真实模拟账户切换

post
Header parameters
companyIdstringRequired

公司ID,通过环境变量获取

Example: {{company}}
tracestringRequired

随机跟踪码UUID

Example: {{mock_trace}}
tokenstringRequired

登录token

Example: {{LoginResult.data.token}}
langstringRequired

语言

Example: zh-CN
Body
objectOptional
Responses
200Success
application/json
Responseobject
post
/thirdExt/switchAccount
POST /api/thirdExt/switchAccount HTTP/1.1
Host: prewppc-3.cmfbl.com
companyId: text
trace: text
token: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{}

重置模拟账户

post

version=0.0.1 bizType=customer.app.CustomerDubboApiService.resetAccount

Header parameters
companyIdstringRequired

公司ID,通过环境变量获取

Example: {{company}}
tracestringRequired

随机跟踪码UUID

Example: {{mock_trace}}
tokenstringRequired

登录token

Example: {{LoginResult.data.token}}
langstringRequired

语言

Example: zh-CN
versionstringRequired

版本号

Example: 0.0.1
Body
objectOptional
Responses
200Success
application/json
Responseobject
post
/global/customer.app.CustomerDubboApiService.resetAccount
POST /api/global/customer.app.CustomerDubboApiService.resetAccount HTTP/1.1
Host: prewppc-3.cmfbl.com
companyId: text
trace: text
token: text
lang: text
version: text
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{}

获取访问令牌

post

/global/thirdExt/randomKey 通过一次临时Token换取最终访问Token

Header parameters
companyIdstringRequired

公司ID,通过环境变量获取

Example: {{company}}
tracestringRequired

随机跟踪码UUID

Example: {{mock_trace}}
tokenstringOptional

登录token

Example: {{LoginResult.data.token}}
langstringRequired

语言

Example: zh-CN
Body
objectOptional
Responses
200Success
application/json
post
/global/thirdExt/randomKey
POST /api/global/thirdExt/randomKey HTTP/1.1
Host: prewppc-3.cmfbl.com
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-qfx13-8z5850-mf4l657-gkqbn-1677563999",
  "code": "0",
  "data": "qfx13-8z5850-mf4l657-gkqbn-167756399",
  "bizCode": "",
  "tm": 955,
  "msgParams": null,
  "ok": true
}

Last updated