文档
测试

2.4.1 balance

POST
/api/user/balance

接口描述

Request to query member balance

Headers

参数名
类型
描述
必填
Authorization
string
Example:9b358d8549004bd0bb48b3f94ae7e2a5
必填
Content-Language
string
Language packs (optional), the default language for opening an account, Example:ENG
必填

Form Data

参数名
类型
描述
必填
UserName
string
Username in query Example:ceshi01
必填
Currency
string
Currency(optional), the default for opening an account, Example:CNY
必填

Response

参数名
类型
描述
必填
success
number
Example:1
必填
msg
string
Example:7ms
必填
info
object
Data dictionary
必填
Money
number
Balance (Local Currency) Example:1005337.83
必填
Credit
number
Balance (Game Score) Example:1005337.8301
必填
Currency
string
Currency, example: CNY.
必填

Description / Example

`curl https://api.xx.com/api/user/balance -X POST -H "Authorization: 9b358d8549004bd0bb48b3f94ae7e2a5" -H "Content-Type:application/x-www-form-urlencoded" -d "UserName=ceshi01&Currency=CNY"` Response body example: ```language { success: 1, msg: "3ms", info: { Currency: "CNY", Money: 1005337.83, Credit: 1005337.8301 } } ```