Skip to content
Back office

Agent & User Info

This is an API endpoint used to retrieve the balance information for a specific agent.

Markdown

Endpoint

POST https://api.nexusggr.com

Agent Info

Request Body

JSON
{
  "method": "money_info",
  "agent_code": "testAgent",
  "agent_token": "41f5cc794aef2b138c715cf25f767cc1"
}
KeyTypeDescription
methodstringThe method type (money_info)
agent_codestringThe agent's code
agent_tokenstringThe agent's authentication token

Success Response Example

JSON
{
    "status": 1,
    "code": 7777777,
    "msg": "SUCCESS",
    "agent": {
        "agent_code": "testAgent",
        "balance": 1000000
    }
}

Failure Response Example

JSON
{
  "status": 0,
  "code": 7770404,
  "msg": "Invalid Agent."
}

User Info

Request Body

JSON
{
  "method": "money_info",
  "agent_code": "testAgent",
  "agent_token": "41f5cc794aef2b138c715cf25f767cc1",
  "user_code": "testUser"
}
KeyTypeDescription
methodstringThe method type (money_info)
agent_codestringThe agent's code
agent_tokenstringThe agent's authentication token
user_codestringThe user's code

Success Response Example

JSON
{
    "status": 1,
    "code": 7777777,
    "msg": "SUCCESS",
    "agent": {
        "agent_code": "testAgent",
        "balance": 1000000
    },
    "user": {
        "user_code": "testUser",
        "balance": 100000
    }
}

Failure Response Example

JSON
{
  "status": 0,
  "code": 7770003,
  "msg": "Invalid User"
}

All Users Info

Request Body

JSON
{
  "method": "money_info",
  "agent_code": "testAgent",
  "agent_token": "41f5cc794aef2b138c715cf25f767cc1",
  "all_users": true
}
KeyTypeDescription
methodstringThe method type (money_info)
agent_codestringThe agent's code
agent_tokenstringThe agent's authentication token
all_usersbooleantrue

Success Response Example

JSON
{
    "status": 1,
    "code": 7777777,
    "msg": "SUCCESS",
    "agent": {
        "agent_code": "testAgent",
        "balance": 99550000
    },
    "user_list": [
        {
            "user_code": "testUser1",
            "balance": 450000
        },
        {
            "user_code": "testUser2",
            "balance": 20000
        }
    ]
}

Failure Response Example

JSON
{
  "status": 0,
  "code": 7770400,
  "msg": "all_users must be a boolean"
}