# Current Balance (API)

You can find out the amount of balance on your account available for payment via API.\
The server response displays information about the netting balance available for payment.

```
https://unitpay.ru/api?
     method=getPartner 
     params[login]=partner@gmail.com 
     params[secretKey]=key
```

<table data-header-hidden><thead><tr><th width="157.11110432942706">name</th><th width="183.888916015625">type</th><th>description</th></tr></thead><tbody><tr><td><strong>login</strong></td><td>string</td><td>E-mail account in the UnitPay system</td></tr><tr><td><strong>secretKey</strong></td><td>string</td><td>The account's secret key, available in the <a href="https://unitpay.ru/partner/profile/edit">profile settings</a></td></tr></tbody></table>

Example of a successful response:

```
{
    "result": {
        "email": "unitpay-test@site.ru",
        "accounts": {
            "rub": {
                "balance": "1060.76",
                "availableBalance": "1060.76"
            },
        }
    }
}
```

<table data-header-hidden><thead><tr><th width="197.22222900390625">name</th><th width="137.11104329427081">type</th><th>description</th></tr></thead><tbody><tr><td><strong>email</strong> </td><td>e-mail</td><td>E-mail аккаунта в системе UnitPay</td></tr><tr><td><strong>balance</strong></td><td>number</td><td>Total account balance</td></tr><tr><td><strong>availableBalance</strong></td><td>number</td><td>Account balance available for withdrawal</td></tr></tbody></table>

#### Ошибочный ответ

```
{"error": {
    "message": "Incorrect authorization parameters",
    "code": -32000
}}
```

<table data-header-hidden><thead><tr><th width="199.5555419921875">name</th><th>description</th></tr></thead><tbody><tr><td><strong>-32000</strong></td><td>Incorrect authorization parameters (login, secret key)</td></tr><tr><td><strong>-32602</strong></td><td>Incorrect query parameters</td></tr><tr><td><strong>-32603</strong></td><td>Internal technical error</td></tr></tbody></table>

Some of the balance may not be available for payout for some time, depending on the hold.

Types of Holds:

1. Static Hold - a certain amount is held on your balance, which you cannot withdraw until the hold is lifted.
2. Dynamic hold - hold for days. All received funds from your clients are blocked for a certain number of days, after which you will be able to withdraw funds.\
   For example, if the dynamic hold is set for 3 days, the funds received on Monday will be available for withdrawal on Thursday. The funds received on Tuesday will be available for withdrawal on Friday, etc.
3. Hold on payments - similar to "Statistical Hold", but within specific payments.


---

# Agent Instructions: 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://help.unitpay.ru/en/unitpay-management/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.
