WalletGetBalance() API

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

WalletGetBalance() 请求

类型输入
HTTP 方法POST
API URLhttps://<API_BASE_URL>/wallet/wallet-get-balance/
标头"Content-Type": "application/json"
POST 参数json 对象 e.g.:
{
"api_key": "3c2ef39d02581e2db3ddf6c713e83e05",
"username": "123123",
"password": "1234yf"
}
参数类型Description
api_key字符串分配给每个前端的 API Key
username字符串玩家的用户名
password字符串玩家的密码

GetBalance() 响应 + 示例

{ "status": "success", "amount": 12345, "currency": "USD" "account_id": "123123" }
响应对象中的对象/Key类型描述
status整数响应状态
amount十进制小数玩家的最新余额
currency字符串玩家的货币种类
account_id字符串玩家的唯一 ID