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

Currency Conversion Rates (API)

On the Home page of UnitPay personal cabinet there is a section "Reference information", where we display currency exchange rates. The same data can be requested using API request.

GET https://unitpay.ru/api

method    = getCurrencyCourses
login     = partner@example.com
secretKey = secretKey

login

string

Email account in the UnitPay system

secretKey

string

Account secret key, available in the UnitPay profile settings

Example of a successful response:

{
   "result": {
      "in": {
         "wmz": 62.57,
         "usd": 74.55
      },
      "out": {
         "wmz": 64.9,
         "eur": 80.65
      }
   }
}

payment type

text

Conversion type: to receive (in) or to pay out (out)

currency

text

Currency of payment/payment

course

number

Conversion rate of the selected currency

Description of possible errors:

-32000

Invalid authorization parameters (login, secret key)

-32602

Invalid query parameters

-32603

Internal technical error

Last updated

Was this helpful?