Skip to content
Back office

Reset User Balance

Withdraws the full balance from a user (or all users) and returns it to the agent. Used in Transfer mode.

Markdown

Endpoint

POST https://api.nexusggr.com

Content-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
}
FieldTypeRequiredDescription
methodstringYesMust be user_withdraw_reset
agent_codestringYesYour agent code
agent_tokenstringYesYour agent API token
user_codestringConditionalRequired when resetting a single user
all_usersbooleanConditionalRequired 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"
}