post https://sandboxapi.upayments.com/api/v1/delete-refund
Single delete refund from order id
Overview
Once the refund request is refunded, it cannot be cancelled.
Refunds can be deleted or cancelled if they are 'initiated' and not "refunded".
KNET refunds are done within 4 hours of refund initiation
CC refunds are done within 2-3 business days.
Request Header
Add "Authorization": "Bearer {Token}" to the request header.
Request Model
The request is a POST request with the following parameters:
Input Parameter | Type | Length | Description |
---|---|---|---|
orderId | string, mandatory | 255 | Pass order ID which is received in Create Single Refund API. |
refundOrderId | string, mandatory | 255 | Pass refund order ID which is received in Create Single Refund API. |
{
"orderId" : "k4eJmnNR8pME3OdxVO6m202210101255255144669168767109617317875056497d138ae43fpQ7MVOgvFkaeLckgydR7zPdt6vNiVpNa",
"refundOrderId" : "pQ7MVOgvFkaeLckgydR7zPdt6vNiVpNa"
}
Response Model
{
"status": true,
"message": "Refund invoice delete successfully",
"data": {
"order_id": "k4eJmnNR8pME3OdxVO6m202210101255255144669168767109617317875056497d138ae43fpQ7MVOgvFkaeLckgydR7zPdt6vNiVpNa",
"refund_order_id": "pQ7MVOgvFkaeLckgydR7zPdt6vNiVpNa"
}
}