> 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/payment-methods-on-the-project-api.md).

# Payment methods on the project (API)

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

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

method    = getMethodsAvailable
projectId = 123456
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>
