> For the complete documentation index, see [llms.txt](https://resources.atriptech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.atriptech.com/api-wen-dang/readme/gong-ju-api-gai-lan/yu-e.md).

# 余额

{% hint style="info" %}
遇到 API 接入问题时，可登录 [Eva](https://www.atriptech.com/) 寻求帮助。
{% endhint %}

用这页查看当前账户余额。

### 主要 API

* `balance.do`

### 适用场景

* 支付前的财务检查
* 余额对账
* 余额不足场景的支持确认

### 关键输入

发送：

* `currency`

使用你要查询的余额账户的结算币种。

### 响应会返回什么

响应中通常会包含：

* 账户余额金额
* 结算币种

### 最佳实践

* 大量支付前先查余额
* 确认查询的是正确币种账户
* 返回金额只用于运营检查
* 成功判断以响应 `status` 为准

### 注意事项

* 余额按币种区分
* 余额过低会阻塞 deposit 支付
* `msg` 仅作说明，不应用于业务判断

### 完整 API 参考

完整 schema 和示例见：

[余额](/api-wen-dang/api-can-kao/gong-ju-api/yu-e.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://resources.atriptech.com/api-wen-dang/readme/gong-ju-api-gai-lan/yu-e.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
