For the complete documentation index, see llms.txt. This page is also available as Markdown.

Payment methods on the project (API)

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

GET https://unitpay.ru/api

method    = getMethodsAvailable
projectId = 123456
secretKey = project secret key
name
type
decription

projectId

string

Project number

secretKey

string

Project secret key, available in the project settings next to the public key

Example of a successful response

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

Example of an erroneous answer:

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

-32000

Invalid authorization parameters (login, secret key)

-32602

Invalid query parameters

-32603

Internal technical error

Last updated

Was this helpful?