Skip to content

Delete a sub-user

DELETE
/subuserdel/{user_id}

Deletes a sub-user and its related records. No history is lost: orders and delegations are reassigned to the parent account, then the sub-user's own records are removed — API key, settings, referral data, deposit address — and a deletion record is stored for auditing. Everything runs in one transaction: all of it, or nothing.

Only sub-users can be deleted, and only your own: real accounts are not deletable through this method, and an attempt to delete someone else's sub-user is rejected with 403.

Authorizations

ApiKeyAuth

API key from the dashboard. Some Host Mode endpoints also accept the key as an api_key field in the request body — this is stated in the schema of the particular operation.

Type
API Key (header: X-API-KEY)

Parameters

Header Parameters

X-Real-IP*

An IP address from the key's whitelist. A request from an address outside the whitelist is rejected with 401.

Type
string
Required
Example"203.0.113.10"
Format
"ipv4"

Path Parameters

user_id*
Type
integer
Required
Example1234

Responses

The sub-user was deleted and its history reassigned to the parent.

application/json
JSON
{
  
"user_id": 0,
  
"google_id": "string",
  
"parent_user_id": 0,
  
"total_reassigned": 0,
  
"total_deleted": 0,
  
"message": "string"
}

Playground

Authorization
Headers
Variables
Key
Value

Samples

Powered by VitePress OpenAPI