Agent & User Info

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

Endpoint

POST https://{API_ENDPOINT}

Agent Info

Request Body

{
  "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

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

Failure Response Example

{
  "status": 0,
  "msg": "INVALID_PARAMETER"
}

User Info

Request Body

{
  "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

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

Failure Response Example

{
  "status": 0,
  "msg": "INVALID_PARAMETER"
}

All Users Info

Request Body

{
  "method": "money_info",
  "agent_code": "testAgent",
  "agent_token": "41f5cc794aef2b138c715cf25f767cc1",
  "all_users": true
}
Key
Type
Description

method

string

The method type (game_list)

agent_code

string

The agent's code

agent_token

string

The agent's authentication token

all_users

boolean

true

Success Response Example

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

Failure Response Example

{
  "status": 0,
  "msg": "INVALID_PARAMETER"
}

Last updated