# Commissions of project (API)

You can refine the commissions of a specific project using the API request:

```
https://unitpay.ru/api? 
     method=getCommissions 
     params[projectId]=123456 
     params[login]=partner@example.com 
     params[secretKey]=secretKey
```

<table data-header-hidden><thead><tr><th width="211.7777099609375">name</th><th width="135.99995930989581">type</th><th>description</th></tr></thead><tbody><tr><td><strong>projectId</strong></td><td>number</td><td>Project ID in the UnitPay system</td></tr><tr><td><strong>login</strong></td><td>string</td><td>Email account in the UnitPay system</td></tr><tr><td><strong>secretKey</strong></td><td>string</td><td>Partner's secret key, available in Unitpay account settings</td></tr></tbody></table>

#### **An example of a successful request:**

```
https://unitpay.ru/api?method=getCommissions&params[projectId]=123456&params[login]=unitpay-test@example.ru&params[secretKey]=11122233F11-1F2220E3344-11122233D2
```

#### **Example of a successful response:**

```
{
    "result": {
        "webmoney": 2,
        "card": 3.5,
        "card_not_rf": 10,
        "sbp": 0.7
    }
}
```

<table data-header-hidden><thead><tr><th width="226.55560302734375">name</th><th width="184.88887532552081">type</th><th>description</th></tr></thead><tbody><tr><td>name</td><td>text</td><td>Name of payment method</td></tr><tr><td>commission</td><td>number</td><td>Full commission for payment execution</td></tr></tbody></table>

#### **Example of an erroneous answer:**

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

#### **Description of possible errors:**

<table data-header-hidden><thead><tr><th width="251.77783203125"></th><th>Описание</th></tr></thead><tbody><tr><td><strong>-32000</strong></td><td>Invalid authorization parameters (login, secret key)</td></tr><tr><td><strong>-32602</strong></td><td>Invalid query parameters</td></tr><tr><td><strong>-32603</strong></td><td>Internal technical error</td></tr></tbody></table>


---

# 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/commissions.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.
