Currency Conversion Rates (API)
Last updated
Was this helpful?
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 = secretKeylogin
string
Email account in the UnitPay system
secretKey
string
Account secret key, available in the UnitPay profile settings
{
"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
-32000
Invalid authorization parameters (login, secret key)
-32602
Invalid query parameters
-32603
Internal technical error
Last updated
Was this helpful?
Was this helpful?