# Payment methods on the project (API)

You can find out the payment methods available on a particular project via the API.

```
https://unitpay.ru/api?method=getMethodsAvailable
params[projectId]=123456
params[secretKey]=project secret key
```

<table><thead><tr><th width="193.11114501953125"> name</th><th width="142.333251953125">type</th><th>decription</th></tr></thead><tbody><tr><td><strong>projectId</strong></td><td>string</td><td>Project number</td></tr><tr><td><strong>secretKey</strong></td><td>string</td><td>Project secret key, available in the project settings next to the public key</td></tr></tbody></table>

#### Example of a successful response

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

#### Example of an erroneous answer:

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

{% hint style="warning" %}
**Important:** if you get an error when requesting, we recommend checking the correctness of the secret key and other parameters in the request.
{% endhint %}

<table><thead><tr><th width="166.11114501953125"> name</th><th width="579.5555419921875">decription</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/payment-methods-on-the-project-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.
