> For the complete documentation index, see [llms.txt](https://help.unitpay.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.unitpay.ru/en/unitpay-management/commissions.md).

# Commissions of project (API)

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

```bash
GET https://unitpay.ru/api

method    = getCommissions
projectId = 123456
login     = partner@example.com
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>

#### **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>
