Commissions of project (API)
You can refine the commissions of a specific project using the API request:
https://unitpay.ru/api?
method=getCommissions
params[projectId]=123456
params[login][email protected]
params[secretKey]=secretKey
projectId
number
Project ID in the UnitPay system
login
string
Email account in the UnitPay system
secretKey
string
Partner's secret key, available in Unitpay account settings
An example of a successful request:
https://unitpay.ru/api?method=getCommissions¶ms[projectId]=123456¶ms[login][email protected]¶ms[secretKey]=11122233F11-1F2220E3344-11122233D2
Example of a successful response:
{
"result": {
"webmoney": 2,
"card": 3.5,
"card_not_rf": 10,
"sbp": 0.7
}
}
name
text
Name of payment method
commission
number
Full commission for payment execution
Example of an erroneous answer:
{
"error": {
"message": "Invalid authorization parameters",
"code": -32000
}
}
Description of possible errors:
-32000
Invalid authorization parameters (login, secret key)
-32602
Invalid query parameters
-32603
Internal technical error
Last updated
Was this helpful?