#   <font > Get Balance</font>

##   Description

>This function allows Operator to get latest member's balance in Game Provider's wallet.

> Request method:（ Host-> BeSoft）:post 

> Encoding method：application/x-www-form-urlencoded

> Besoft The response data format is: application/json



##     Method URL

>   {besoftapi}/api/game/getbalance 


##      Request Parameters

| Name     | Type     | Required    |     Description        | 
| -------- | -------- | -------- |    -------- |  
| cert    | int32     |   Y |     security code |
| extension1   |string |  Y |   agent ID (agent id to login ARS) |
| users | string(500) | Y |      a series of usernames split by comma(,)  |

## Example
- URL:
    - http://127.0.0.1:8000/api/game/getbalance
- HTTP Method
    -   POST
- Form Data
    > Content-Type: application/x-www-form-urlencoded
    ``` 
    cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
    extension1:adminweb
    user:test1
    ```


##  Return Result

| Name    | Type    | Description   |     
| -------- | -------- | -------- |    
 status    | int32     |  status code|     
| extension1    | string     |  agent Id|     
| totalscore  |double|  Query the total score | 
| users | array | Query the specified player only |      
| users.user | string |  Player account|      
| users.curscore|  double |  Player's current score|      

##   Successful Result

```CPP
{
"extension1": "agent",
"status": 1,

    "totalscore": "200000000",
    "users": [
        {
            "user": "test1",
            "curscore": "100000000"
        },
        {
            "user": "test2",
            "curscore": "100000000"
        }
    ]
}
"extension1": "agent","status": 1,
    {
"extension1": "admin",
"status": 1,
    "totalscore": "0",
    "users": []
    }
```
##    Failed Result

>{"status": 1003}

