API - Refund
Request partial or full refund
POST{BASE_URL}/wipay-payment-admin/v2/refund
This endpoint creates a refund operation to fully or partially reverse a previously completed transaction. The system automatically determines whether the requested amount qualifies as a full refund or a partial cancellation.
Headers
Content-Type
application/json
X-Api-Key
API Key <xxx>
Body # 1
string
requestId
Unique link identifier
Required
string
merchantId
Unique merchat identifier
Required
number
amount
Total operation amount
Required
string
terminalId
Unique merchant terminal identifier. If your merchant account has multiple terminals, you must specify the terminal ID to indicate which one to use. If you have only one terminal, you may omit this field—it will default to the only available terminal.
Optional
string
reference
Unique identifier that links the refund with the executed payment. This is the reference of the original transaction to be refunded, typically obtained through the online confirmation or payment response.
Required
string
merchantOperationId
Optional field that you can use in order to identify operations in your system (is gonna be returned in the WebHook communication)
Optional
Request
{
"requestId": "9803452372-25-0-P4IoJhO9BWQreslB3fyXKnnr",
"merchantId": "123456",
"amount": 1.00,
"currency": "234",
"terminalId": "00045566",
"reference": "009996114453312"
}{
"message": "Ha habido un problema con la recarga. Procedemos con la devolución del importe",
"status": "KO"
}Full refund: If amount equals the original transaction total, the system processes a full refund.
Partial cancellation: If amount is less than the total, it’s treated as a partial refund (allowing multiple partial operations as long as the cumulative amount does not exceed the original).
Responses
Last updated