Merchant Refund 360
This api can be used to trigger a refund against a successful complaint resolve and if the transaction is successful. There are two types of refunds supported - ONLINE and OFFLINE. ONLINE refunds get credited to remitter account instantly, whereas OFFLINE refunds take around 3-5 working days.
Refund360 will be used for initiating a new refund or getting the status of an existing refund. If the "refundRequestId" is present with the PSP, then the latest status of the existing refund will be returned. If not present, then a new refund will be triggered.
This is an idempotent api.
Use --header x-api-version: 3 to get gatewayRefundTransactionId and merchantRequestId in response.
UPI request id for the original transaction against which refund is being initiated.
Constraints: Max 35 characters alphanumeric.
Merchant generated unique id for the refund.
Constraints: Max 35 characters alphanumeric, can also contain hyphen(-), dot(.) & underscore(_)
Type of refund being initiated.
Constraints: OFFLINE, ONLINE,UDIR
The amount to be refunded
Constraints:String with mandatory two decimals
Merchant refund vpa that is to be used for online refund.
Constraint: mandatory for refundType = ONLINE
Remarks or reason for the refund.
Constraints: The transaction note must be alphanumeric, with a minimum length of 1 character and a maximum length of 50 characters.
Timestamp of the original transaction. Passing this parameter will help PSP to optimize the refund request to reduce the latency of this api.
Formate: YYYY-MM-DDTHH:MM:SS+05:30
Current Epoch Unix timestamp string. Has to be of 13 digit in Milliseconds.
Example: 1496918882000.
Merchant Defined Parameters
Example: "{\"udf1\":\"value1\",\"udf2\":\"value2\",…}"
Note: Few special characters are not allowed. Regex for the characters which are not allowed : ^[^/#-()*!%~`]+$
Reason Code for complaint sent to NPCI.
Upi request Id used for refund transaction.
Constraints: Max 35 characters alphanumeric.
PSP status of the API.
Values: SUCCESS | FAILURE.
PSP response code for the API.
Values: Refer Codes Guide in Resource Section.
PSP response message for the API.
Values: Refer Codes Guide in Resource Section.
Unique id for the merchant channel.
Values:As passed in request headers.
Response status returned by gateway for the refund.
Values:String (SUCCESS, PENDING, DEEMED, FAILURE).
Unique id for the merchant.
Values:As passed in request headers.
Reference id returned by the gateway for the refund.
Response message for code returned by gateway for the refund.
Merchant generated id for the original transaction.
Response code returned by gateway for the refund.
UPI request id returned by gateway for the transaction.
Values:Same as originalUpiRequestId passed in request.
The amount to be refunded.
Values:As passed in the request body.
Merchant generated unique id for the refund.
Values:As passed in the request body.
The total amount for which original transaction was performed.
Values:String with mandatory two decimals.
Timestamp of when refund request was initiated.
Formate: String (YYYY-MM-DDTHH:MM:SS+05:30).
Type of refund being initiated.
Values:As passed in the request body.
Merchant refund vpa that is to be used for online refund
Values: mandatory for refundType = ONLINE
List of partners for which the split needs to be divided with the value.
The LSP id provided by the bank.
Split share for LSP account. Decimal Value.
The type of split for this transaction. Can be AMOUNT, PERCENTAGE, DEFAULT, LATER.
Split share for merchant pool account.
RiskScore shared by NPCI or Bank
UpiRequestId for the refund
Example:- Values: As passed in the request body in refundUpiRequestId.
Unique id for subMerchant. Only if present as a subMerchant.
Unique id for the channel via which request is made. Only if present as a subMerchant.
Remarks or reason as sent in the request.
Values:As passed in the request body
Complaint reference number returned by NPCI.
Values:14 to 16 characters alphanumeric.
Reason flag for complaint sent to NPCI.
Reason Code for complaint sent to NPCI.
Amount of the transaction sent to NPCI.
Values:Amount in two decimals.
Reason flag for complaint sent by NPCI
Reason Code for complaint sent by NPCI
Merchant Defined Parameters
Example: "{\"udf1\":\"value1\",\"udf2\":\"value2\",…}"

