getBalance: 查询余额
用户可以通过此接口查看自己的余额,方便自己做报警和查询
请求示例:
json
POST https://api.capsolver.com/getBalance
Host: api.capsolver.com
Content-Type: application/json
{
"clientKey":"YOUR_API_KEY",
}响应示例
json
{
"errorId": 0,
"balance": 1071810,
"packages": []
}请求参数
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| clientKey | String | 是 | 帐户密钥,可以在个人中心找到 |
响应数据
| 参数 | 类型 | 说明 |
|---|---|---|
| errorId | Integer | 错误提示: 0 - 没有错误,1 - 有错误 |
| errorCode | String | 错误代码对照表 |
| errorDescription | String | 错误详细描述 |
| balance | Decimal | 帐户余额 (USD) |
| packages | Array | 包月的套餐包 |
CapSolver