余额查询 API

  • 在每次请求任意接口返回的 Header 里也包含 Balance

请求参数

参数位置必填
keyheaderkey
versionurl2.0

key in request header or url

返回示例

{
	"code": 0,
	"data": {
		"id": 9,  //用户ID
		"balance": 5310.25,  //余额
		"price": {  //接口价格
			"coverage": "0.2",
			"coverage-purchase": "0.2",
			...
		},
		"lastpaid": "2020-11-08 13:53:32"  //最近一次扣费时间
	}
}

余额查询 Response Header

HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 580
Content-Type: application/json
Balance: 5310.25