Payment Refund
To make a refund, run a GET request:
https://unitpay.ru/api?method=refundPayment
params[paymentId]=1234512345
params[secretKey]=x6bh0qbewehfppogkz6lufartkzyv7o0
params[sum]=100
Mandatory parameters
paymentId
number
Payment ID in the UnitPay system
secretKey
line
Project secret key
Optional parameters
name
type
deescription
sum
number
Refund amount, if a partial refund is required. If the parameter is not passed, the full amount of the payment will be refunded.
You can only make one full or partial refund per payment.
If you have connected an online cash register in your personal cabinet, you must additionally pass a number of parameters to generate cash receipts.
Successful response
{
"result": {
"message": "The refund was successful",
}}
message
line
The comment of a successful transaction can be used as a hint to the user after completing the request
Error response
{
"error": {
"message": "Invalid secret key",
"code": -32000
}
}
message
line
Information with a description of the request error
Last updated
Was this helpful?