v1.0.0 (2026-08-15 18:56)
Member Registration
API Details
- URL:
/client/member/register - Method:
POST - Content-Type:
application/jsonormultipart/form-data - Authentication: Base Token (A valid
Authorization: Bearer <baseToken>must be passed in the Header)
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.
Headers
| Parameter | Required | Type | Description |
|---|---|---|---|
| Authorization | Yes | String | Base Token, obtained via the Basic Auth API |
Request Parameters (Body)
| Parameter | Required | Type | Description |
|---|---|---|---|
username | Yes | String | Member login account |
password | Yes | String | Member login password (plain text, encrypted and verified by the backend) |
mobile | No | String | Mobile number |
ddi | No | String | Country phone code (e.g., +86) |
referrerCode | No | String | Referral code |
Request Example (JSON Format)
json
{
"username": "testuser02",
"password": "my_password123",
"mobile": "13800138000",
"ddi": "+86",
"referrerCode": "ABCDEFGH"
}Return Parameters
| Parameter Name | Type | Description |
|---|---|---|
code | Number | Status code, 0 means success |
msg | String | Prompt message |
data.id | String | Unique ID (GUID) of the newly registered member |
data.token | String | Exclusive Member Token, subsequent business requests involving members need to carry this Token |
data.expiresAt | Number | Timestamp of Token expiration time (milliseconds) |
Return Example
json
{
"code": 0,
"msg": "Success",
"data": {
"id": "xxxx-xxxx-xxxx-xxxx",
"token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9...",
"expiresAt": 1718000000000
}
}