garage-openLogin

Trading client login authorization

Introduction

This interface is used to log in to the trading system when customizing the client, and to subscribe to quotes and place trading orders.

Interface

Email/Mobile phone number login

Login

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.login Guest Accessible

Header parameters
versionstringRequired

Version Number

Example: 0.0.1
companyIdstringRequired

Company ID, obtained through environment variables

Example: {{company}}
tracestringRequired

Random Tracking Code UUID

Example: {{mock_trace}}
langstringRequired

Language

Example: zh-CN
Body
typeintegerRequired

Registration and Login Methods: 1 Email, 2 Phone Number, 3 Customer Account

phoneAreastringOptional

Phone Area Code; Required field when type is 2: Phone Number

loginNamestringRequired

Account: Email/Phone Number

deviceintegerRequired

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

isThirdbooleanRequired

Is it a third party

verifyCodestringOptional

Verification code

sendTokenstringOptional

Verification code sending ticket

loginPwdstringOptional

Login password

bindThirdUserIdstringOptional

Bind third-party userId

thirdSourcestringOptional

Third-Party Sources: google, facebook, twitter…

googleCodestringOptional

Google Verification Code

Responses
chevron-right
200

Success

application/json
bizCodestringOptional

Module identifier code

codestringOptional

Status return code

msgstringOptional

Status description

tminteger · int64Optional

Processing time (milliseconds)

tracestringOptional

Tracking code

msgParamsstringOptional

Placeholder parameter string in return description, multiple parameters separated by commas

okbooleanOptional
failbooleanOptional
post
/login/customer.app.CustomerWebApiService.login
200

Success

Login with social account

Get Third-Party Login Configuration Information

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.config Guest Accessible

Header parameters
versionstringRequiredExample: 0.0.1
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
thirdSourcestringOptional

Third-Party Sources: google, facebook, twitter, telegram, apple, metamask

Responses
chevron-right
200

Success

application/json
codestringRequired

Status Return Code, code=0 indicates current request operation success, other codes handle exceptions

msgstringRequired

Status description

bizCodestringRequired

Module identifier code

tminteger · int64Required

Processing time (milliseconds)

tracestringRequired

Tracking code

msgParamsstringRequired

Placeholder parameter string in return description, multiple parameters separated by commas

post
/global/customer.app.CustomerThirdLoginService.config
200

Success

Google Third-party Login Verification

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.googleVerify Accessible after login

Body
idTokenstringOptional
accessTokenstringOptional
Responses
chevron-right
200

Success

application/json
codestringRequired

0-Success, other exceptions

msgstringRequired
bizCodestringRequired
tmintegerRequired
tracestringRequired
msgParamsstringRequired
post
/h/com.cats.customer.api.app.CustomerThirdLoginService/googleVerify
200

Success