Create a new Refund
POST - https://url.base/api/reverse/new
Endpoint for requesting a payment refund, the request must be constructed with the following parameters.
*Required fields
Field | Type | Description |
---|---|---|
*reference | String | Transaction reference number |
*clientDocument | String | Client DNI |
*amount | number | Transaction amount |
*sign | String | The signature of the parameters is unique for each transaction |
*urlCallbackRefund | string | It is the URL where we will notify via webhook the final status of the refund |
info
Only successful payments can be refunded.
Example Response Success
{
"status"= [string] // 'success'
}
Example Response failed
{
"error"= [string] // 'incorrect amount to refund'
"error"= [string] // 'incorrect document'
"error"= [string] // 'payment not found'
}