get https://sandboxapi.upayments.com/api/v1/check-refund/
Overview
This API is designed for checking the refund status of a transaction based on the order_id received after successful payment.
Request Header
Add "Authorization": "Bearer {Token}" to the request header.
Request
You have to pass the order_id which received a response from the Get Payment Status API or from Webhook
Response Model
{
"status": true,
"message": "Response received successfully",
"data": {
"refund": [
{
"order_id": "k4eJmnNR8p9c7cf29bc74e46feabbff746da2eae57v29c7cf354d55441108e82c3fc8c879656",
"is_refunded": false,
"refunded_date": null
},
{
"order_id": "k4eJmnNR8p9c7cf29bc74e46feabbff746da2eae57v29c7d2c6a6c6545f7b38e326a409a5c2a",
"is_refunded": true,
"refunded_date": "2024-07-11 17:38:00"
}
]
}
}