Unique Transaction ID generated by the merchant to track this request to PhonePe
merchantId
STRING
Unique Merchant ID assigned to the merchant by PhonePe
amount
LONG
Transaction amount in paise
status
STRING
Status of the request
mobileNumber
STRING
Mobile number of the user
providerReferenceId
STRING
PhonePe payment transaction id against which the reversal is to be done
payResponseCode
STRING
PhonePe internal status code
Refund API Response Codes
Code
Description
BAD_REQUEST
Invalid request
AUTHORIZATION_FAILED
X-VERIFY header is incorrect
TRANSACTION_NOT_FOUND
Original transaction not found
INTERNAL_SERVER_ERROR
Something went wrong. Refund might get initiated (need to check status with check transaction status API before retrying the refund)
PAYMENT_SUCCESS
Payment is successful
PAYMENT_ERROR
Payment failed
PAYMENT_PENDING
Payment is pending. It does not indicate failed payment. Refund might get initiated (need to check status with check transaction status API before retrying the refund)
TIMED_OUT
Refund timed out. Refund might get initiated (need to check status with check transaction status API before retrying the refund)
REVERSAL_WINDOW_EXCEEDED
The time window for refunding the transaction has been breached. Please process the refund manually
Language
Click Try It! to start a request and see the response here!