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 Params application/json
credit_type
string
required
always "user_dollar"
Example
{
"credit_type": "user_dollar"
}
示例代码
Responses
result(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
meta_message
string
required
success or other error msg
meta_status
integer
required
1 for success, negative for error
result
object
required
user balance object, {id:balance}
Additional properties
string
optional
Example
{
"meta_message": "string",
"meta_status": 0,
"result": {
"property1": "string",
"property2": "string"
}
}
Last modified: 2 年前