获取账户余额
GET
/web/v1/slash/connections/{connectionBizId}/accounts/{accountId}/balancesJWT获取指定 Slash 账户的余额详情,包括可用余额和已入账余额。
鉴权
需要有效的 JWT token。Portal 访问权限:system、tenant。
请求参数
| Name | Type | Required | In | Description |
|---|---|---|---|---|
connectionBizId | String | Yes | path | Slash 连接业务 ID。 |
accountId | String | Yes | path | 账户 ID。 |
成功响应
Not Found404
{
"code": "4040",
"message": "Account not found"
}错误响应
| HTTP 状态码 | 错误码 | 描述 |
|---|---|---|
| 401 | 4010 | 无效或过期的 JWT token |
| 404 | 4040 | 账户或连接未找到 |
说明
- 余额金额以分为单位(例如
1500000= $15,000.00)。 - 响应字段使用 snake_case 格式,与 Slash 平台返回一致(
available_balance、posted_balance、amount_cents、next_cursor)。