Skip to content

Member Registration

API Description

  • Path: /client/member/register
  • Method: POST
  • Description: Member registration API. Register using account, password, mobile number, etc. Must carry base authentication Token (baseToken). Upon successful registration, it will automatically log in and return the response containing member profile and Token.

Request Parameters

Parameter NameTypeRequiredDescription
baseTokenStringYesCredentials obtained from the basic authentication API
usernameStringYesMember login account
passwordStringYesMember login password (plain text, encrypted and verified by the backend)
mobileStringNoMobile number
ddiStringNoCountry phone code (e.g., +86)
referrerCodeStringNoReferral code

Request Example (JSON Format)

json
{
  "baseToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX...",
  "username": "testuser02",
  "password": "my_password123",
  "mobile": "13800138000",
  "ddi": "+86",
  "referrerCode": "ABCDEFGH"
}

Return Parameters

Parameter NameTypeDescription
codeNumberStatus code, 0 means success
msgStringPrompt message
data.idStringUnique ID (GUID) of the newly registered member
data.tokenStringExclusive Member Token, subsequent business requests involving members need to carry this Token
data.expiresAtNumberTimestamp of Token expiration time (milliseconds)

Return Example

json
{
  "code": 0,
  "msg": "Success",
  "data": {
    "id": "xxxx-xxxx-xxxx-xxxx",
    "token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9...",
    "expiresAt": 1718000000000
  }
}