GetBalance() API

此 API 请求使运营商能够获取玩家的可用余额。

GetBalance() 请求

类型输入
HTTP 方法POST
API URLhttps://<API_BASE_URL>/get_balance
标头"Content-Type": "application/json"
POST 参数json 对象 e.g.:
{
"token": "3c2ef39d02581e2db3ddf6c713e83e05",
"account_id": "123123"
}
参数类型描述
token字符串分配给每个玩家的唯一字符串
account_id字符串玩家的帐号 ID

GetBalance() 响应 + 示例

{ "status": 0, "account_id": "123123", "country": "US", "token": "3c2ef39d02581e2db3ddf6c713e83e05", "balance": 12345, "currency": "USD" }
响应对象中的对象/Key类型描述
status整数响应状态
account_id字符串玩家的唯一 ID
country字符串玩家的国家/地区 以ISO格式表示
token字符串分配给每个玩家的唯一字符串(会话 ID)
balance整数玩家的可用余额
currency字符串玩家的货币种类