---
page_source: https://juspay.io/in/docs/upi-plugin-direct-psp/flutter/transaction-api-callbacks/refund-status
page_title: Refund Status
---


## **Refund Status** 



This callback is given when the merchant initiates a refund and when the same gets success/failure.

**Note:**  Merchant can get multiple callbacks for the same event type till the refund status reaches a terminal state. Terminal states for a refund are SUCCESS and FAILURE.


| Parameter | Description |
|---|---|
| customResponse | Stringified JSON parameter for future use. |
| gatewayRefundReferenceId | Reference id returned by the gateway for the refund |
| gatewayResponseCode | Response code returned by gateway for the refund |
| gatewayResponseMessage | Response message for code returned by gateway for the refund |
| gatewayResponseStatus | Response status returned by gateway for the refund |
| gatewayTransactionId | UPI request id returned by gateway for the transaction |
| merchantChannelId | Unique id for the merchant channel as passed in request headers |
| merchantId | Unique id for the merchant as passed in request headers |
| refundAmount | The amount to be refunded as passed in the request body |
| refundRequestId | Merchant generated unique id for the refund as passed in the request body |
| refundTimestamp | Timestamp of when refund request was initiated |
| refundType | Type of refund being initiated as passed in the request body |
| transactionAmount | The total amount for which original transaction was performed |
| type | Event type of the callback - MERCHANT_DEBITED_VIA_REFUND |
| udfParameters (optional) | Udf parameters as passed in the request |




## Sample Code Snippets:
### Callback:

#### Parameters:
```json
{"success":false,"message":"No Data found for the given path"}
```

