Customer/Auth
version=0.0.1 bizType=customer.app.CustomerWebApiService.login Guest Accessible
Version Number
0.0.1Company ID, obtained through environment variables
{{company}}Random Tracking Code UUID
{{mock_trace}}Language
zh-CNRegistration and Login Methods: 1 Email, 2 Phone Number, 3 Customer Account
Phone Area Code; Required field when type is 2: Phone Number
Account: Email/Phone Number
Login Device: 1=Mobile Web: H5, 2=PC Web: PC_Web, 3=System & Backend Registration: System, 4=Android Native App: Android, 5=iOS Native App: iOS, 6=HarmonyOS: HOS, 7=PC Windows Client: PC_Win, 8=PC Mac Client: PC_Mac, 9=Others
Is it a third party
Verification code
Verification code sending ticket
Login password
Bind third-party userId
Third-Party Sources: google, facebook, twitter…
Google Verification Code
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"
}{
"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": "The company has not enabled KYC certification, go through directly",
"source": "H5",
"type": 0,
"registerSource": 1,
"loginPassStatus": "2",
"idCardType": null,
"loginTime": 1678360534200,
"kycRemark": "Not verified",
"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
}
],
"name": null,
"phoneArea": "+86",
"deposit": 1,
"rToken": "291e08e4e0af86b3d8af85f2947a02125a1c1746db58b303b06cc1aba389f4cd",
"thirdServerCode": "",
"customerNo": "86001175",
"status": 6,
"withdraw": 1
},
"bizCode": "",
"tm": 82650853,
"msgParams": null,
"ok": true
}Company ID, obtained through environment variables
{{company}}Random Tracking Code UUID
{{mock_trace}}Login Token
{{LoginResult.data.token}}Language
zh-CNPOST /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
{}{}version=0.0.1 bizType=customer.app.CustomerDubboApiService.resetAccount
Company ID, obtained through environment variables
{{company}}Random Tracking Code UUID
{{mock_trace}}Login Token
{{LoginResult.data.token}}Language
zh-CNVersion Number
0.0.1POST /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
{}{}version=0.0.1 bizType=customer.app.CustomerWebApiService.register Guest access
Version Number
0.0.1Company ID, obtained through environment variables
{{company}}Random Tracking Code UUID
{{mock_trace}}Language
zh-CNCountry
Language information, default en-US
Account: email/phone number, used in conjunction with type
Mobile area code, used in conjunction with registration method, default +86
Registration method: 1=email, 2=phone number
Registered device model
Verification code
Verification code sending ticket
Registration source: 1=mobile web: H5, 2=pc web: PC_Web, 3=system & backend registration: System, 4=Android native app: Android, 5=iOS native app: iOS, 6=HarmonyOS: HOS, 7=pc windows client: PC_Win, 8=pc mac client: PC_Mac, 9=other
Advertising source (account opening link parameter source)
Advertising medium (account opening link parameter medium)
Advertising campaign (account opening link parameter campaign)
Advertising group (account opening link parameter content)
Keyword (account opening link parameter term)
Client group ID
Account opening type: 0. Individual 1. Enterprise, default individual
Password, MD5 encryption
Unique identifier from third-party system
Third-party system source, such as: agent=agent
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"
}{
"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
}/global/thirdExt/randomKey Exchange final access token with a temporary token
Company ID, obtained through environment variables
{{company}}Random Tracking Code UUID
{{mock_trace}}Login Token
{{LoginResult.data.token}}Language
zh-CNPOST /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
{}{
"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