Check_Balance.md 1.8 KB

Get Balance

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

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

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