Balance available for withdrawal
Use this query to find out the available balance for a particular payout method.
https://unitpay.ru/api?
method=massPaymentAvailableAmount
params[login][email protected]
params[secretKey]=11122233F11-1F2220E3344-11122233D2
params[sum]=5
params[purse]=79123456789
params[paymentType]=sbp
params[recipientCurrency]=RUB
Mandatory Parameters:
login
string
E-mail account in the UnitPay system
sum
number
The amount of the payment (e.g. 100)
purse
string
Details for receiving the payment (e.g. phone number, bank card number)
paymentType
string
Name of payment method
Optional Parameters:
name
type
description
recipientCurrency
string
Payment currency (RUB - for all payments via bank cards, SBP)
Example of a successful response:
{
"result": {
"availableAmount": 1057.36,
"currency": "RUB"
}
}
name
type
description
availableAmount
число
Balance available for withdrawal
currency
строка
Currency of the requested balance
Example of an erroneous answer:
{
"error": {
"message": "Invalid authorization parameters",
"code": -32000
}
}
-32000
Invalid authorization parameters (login, secret key)
-32602
Invalid request parameters (incorrectly composed request)
-32603
Internal technical error
Last updated
Was this helpful?