get user balance
POST
/api/balance/queryreturn result is an object {userid: balance}
balance amount / 1e12 => $, ex. 12000000000000 (12 zero) = $12.00
if meta_status==1 but the object is empty, means balance is 0
请求参数
Body 参数application/json
credit_type
string
必需
always "user_dollar"
示例
{
"credit_type": "user_dollar"
}
示例代码
返回响应
result(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
meta_message
string
必需
success or other error msg
meta_status
integer
必需
1 for success, negative for error
result
object
必需
user balance object, {id:balance}
额外字段
string
可选
示例
{
"meta_message": "string",
"meta_status": 0,
"result": {
"property1": "string",
"property2": "string"
}
}
修改于 1 年前