> ## Documentation Index
> Fetch the complete documentation index at: https://doc.haipay.net/llms.txt
> Use this file to discover all available pages before exploring further.

# 账户查询

> 按币种调用 /{currency}/account/ledger 查询当前业务账户余额，返回账户余额、可用金额、冻结金额与待入账金额。

**简要描述：**

* **查询当前业务对应账号的账户的余额**

**URL：**

currency为路径参数，需更换为要查询的币种，如美元：/usd/account/ledger

币种采用国际标准编码，三位英文字母，参考：[Wikipedia-ISO\_4217](https://en.wikipedia.org/wiki/ISO_4217)

`/{currency}/account/ledger`

**参数：**

| 参数名 | 必选 | 类型 | 说明 |
| :- | :- | :- | :- |
| appId | 是 | Long | 业务ID（后台获取，需要根据URL中的币种传递对应的业务ID） |
| sign | 是 | String | 签名 |

**返回data参数说明**

| 参数名 | 类型 | 说明 |
| :- | :- | :- |
| bal | String | 账户余额 |
| availableBal | String | 可用金额 |
| frzBal | String | 冻结金额 |
| unSettleBal | String | 待入账金额 |
| sign | String | 签名 |

## 相关主题

* [HaiPay 接口说明与公共规则](https://doc.haipay.net/zh/get-started/api-conventions.md)
* [公共接口 — 账户查询 (POST /{currency}/account/ledger)](https://doc.haipay.net/zh/api-reference/common/account-query.md)
* [公共接口 — 查询商户支付配置 (POST /common/payment/config)](https://doc.haipay.net/zh/api-reference/common/payment-config.md)
* [获取商户支付配置](https://doc.haipay.net/zh/operations/merchant-payment-config.md)
* [配置商户密钥与 RSA 签名规则](https://doc.haipay.net/zh/get-started/configuration-and-signatures.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.