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.

https://unitpay.ru/api? 
     method=getCurrencyCourses 
     params[login][email protected]
     params[secretKey]=secretKey

login

string

Email account in the UnitPay system

secretKey

string

Account secret key, available in the UnitPay profile settings

An example of a successful request:

https://unitpay.ru/api?method=getCurrencyCourses&params[login][email protected]&params[secretKey]=11122233F11-1F2220E3344-11122233D2

Example of a successful response:

{
   "result": {
      "in": {
         "wmz": 62.57,
         "uah": 2.55
      },
      "out": {
         "wmz": 64.9,
         "uah": 2.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?