> For the complete documentation index, see [llms.txt](https://piqpay.gitbook.io/merchant-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://piqpay.gitbook.io/merchant-integration/other-api-requests/account-balance.md).

# Account balance

You can find out your PIQPAY account balances by calling one of the following API requests

**Example request to get the balance of all your accounts**

{% code overflow="wrap" %}

```
GET https://eha.piqpay.codes/v1/accounts
Authorization: Bearer ${secretKey}
```

{% endcode %}

When you perform this request, you will receive the balances of all your accounts.

***

**Example request to get the balance of your fiat accounts**

{% code overflow="wrap" %}

```
GET https://eha.piqpay.codes/v1/accounts/summary?currency=BDT
Authorization: Bearer ${secretKey}
```

{% endcode %}

When you perform this request, you receive the sum of the balances of all your accounts that are held in the specified currency (in example above it's BDT).

***

**Example request to get the balance of a specific account**

{% code overflow="wrap" %}

```
GET https://eha.piqpay.com/v1/accounts/<account_id>
Authorization: Bearer ${secretKey}
```

{% endcode %}

When you perform this request, you get the balance of the specified account.\
You can find the **account\_id** in the Accounts section of your business office.


---

# 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://piqpay.gitbook.io/merchant-integration/other-api-requests/account-balance.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.
