API Path and Method to be used
Environment | Http Method | API Host URL |
---|---|---|
Sandbox | GET | https://api-preprod.phonepe.com/apis/pg-sandbox/payments/v2/refund/{merchantRefundId}/status |
Production | GET | https://api.phonepe.com/apis/pg/payments/v2/refund/{merchantRefundId}/status |
Request Headers
Header Name | Header Value |
---|---|
Content-Type | application/json |
Authorization | O-Bearer <access_token> |
Path Parameters
merchantRefundId : MerchantRefund Id against which status to b fetched
Sample Response :
{
"originalMerchantOrderId": "",
"refundId": "OMRxxxxx",
"amount": 1234,
"state": "FAILED",
"errorCode": "INTERNAL_SERVER_ERROR",
"detailedErrorCode": "",
"rail": {
"type": "UPI",
"upiTransactionId" : "upi12313",
"vpa" : "abcd@ybl"
},
"instrument" : {
"type": "ACCOUNT",
"accountType": "SAVINGS",
"accountNumber" : "121212121212"
}
}