Get end-user status
- GET
/api/v3/accountCenter/userStatus
Weight(IP): 5
Gets the restriction status of a specified end user. Currently, action=1 indicates the user's login/freeze status, and only 1 is supported.
Request parameters
| Parameter | Type | Required? | Description |
|---|---|---|---|
| subUserId | Long | Yes | End-user UID. |
| action | Integer | Yes | Restriction action. 1 indicates login status. Currently, only 1 is supported. |
Request example
curl "https://api-spot.weex.com/api/v3/accountCenter/userStatus?subUserId=1234567890&action=1" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1735632000000"
Response parameters
| Field name | Type | Description |
|---|---|---|
| subUserId | Long | End-user UID. |
| action | Integer | Restriction action. |
| status | Integer | Status. 1 = frozen. 0 = unfrozen. |
Response example
{
"subUserId": 1234567890,
"action": 1,
"status": 0
}