Endpoint
POST https://api.nexusggr.comAgent Info
Request Body
JSON
{
"method": "money_info",
"agent_code": "testAgent",
"agent_token": "41f5cc794aef2b138c715cf25f767cc1"
}| Key | Type | Description |
|---|---|---|
| method | string | The method type (money_info) |
| agent_code | string | The agent's code |
| agent_token | string | The 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"
}| Key | Type | Description |
|---|---|---|
| method | string | The method type (money_info) |
| agent_code | string | The agent's code |
| agent_token | string | The agent's authentication token |
| user_code | string | The 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
}| Key | Type | Description |
|---|---|---|
| method | string | The method type (money_info) |
| agent_code | string | The agent's code |
| agent_token | string | The agent's authentication token |
| all_users | boolean | true |
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"
}