Endpoint
POST https://api.nexusggr.comContent-Type: application/json
Request
Method: user_withdraw_reset
Single user
JSON
{
"method": "user_withdraw_reset",
"agent_code": "your_agent_code",
"agent_token": "your_agent_token",
"user_code": "test"
}All users
JSON
{
"method": "user_withdraw_reset",
"agent_code": "your_agent_code",
"agent_token": "your_agent_token",
"all_users": true
}| Field | Type | Required | Description |
|---|---|---|---|
method | string | Yes | Must be user_withdraw_reset |
agent_code | string | Yes | Your agent code |
agent_token | string | Yes | Your agent API token |
user_code | string | Conditional | Required when resetting a single user |
all_users | boolean | Conditional | Required when resetting all users: when true, resets all users. Send either user_code or all_users, not both |
Response
Success — single user
JSON
{
"status": 1,
"code": 7777777,
"msg": "SUCCESS",
"agent": {
"agent_code": "your_agent_code",
"balance": 1000000
},
"user": {
"user_code": "test",
"withdraw_amount": 5600,
"balance": 0
}
}Success — all users
JSON
{
"status": 1,
"code": 7777777,
"msg": "SUCCESS",
"agent": {
"agent_code": "your_agent_code",
"balance": 1076850
},
"user_list": [
{
"user_code": "test",
"withdraw_amount": 20000,
"balance": 0
},
{
"user_code": "test2",
"withdraw_amount": 56850,
"balance": 0
}
]
}Failure
JSON
{
"status": 0,
"code": 7770400,
"msg": "user_code and all_users cannot be sent together; send only one of them"
}