# Способы оплаты на проекте (API)

Узнать способы оплаты, доступные на проекте, можно узнать по API.

```
https://unitpay.ru/api?method=getMethodsAvailable
params[projectId]=123456
params[secretKey]=секретный ключ проекта

```

|               | Значение | Описание                                                                 |
| ------------- | -------- | ------------------------------------------------------------------------ |
| projectId     | строка   | Номер проекта                                                            |
| **secretKey** | строка   | Секретный ключ проекта, доступен в настройках проекта рядом с public key |

**Успешный ответ**

```
{
    "result": {
        "card",
        "cardInvoice",
        "paypal"
    }
}
```

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

```
{
    "error": {
        "message": "Неверные параметры авторизации",
        "code": -32000
    }
}
```

{% hint style="warning" %}
**Важно:** если при запросе вы получаете ошибку, рекомендуем проверить правильность секретного ключа и других параметров в запросе.
{% endhint %}

<table><thead><tr><th width="345"> </th><th width="334">Описание</th></tr></thead><tbody><tr><td><strong>-32000</strong></td><td>Ошибка авторизации </td></tr><tr><td><strong>-32602</strong></td><td>Ошибочные параметры запроса</td></tr><tr><td><strong>-32603</strong></td><td>Внутренняя техническая ошибка</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/unitpay-management/sposoby-oplaty-na-proekte-api.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.
