Refund Status

API Path and Method to be used

EnvironmentHttp MethodAPI Host URL
SandboxGEThttps://api-preprod.phonepe.com/apis/pg-sandbox/payments/v2/refund/{merchantRefundId}/status
ProductionGEThttps://api.phonepe.com/apis/pg/payments/v2/refund/{merchantRefundId}/status

Request Headers

Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-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" } }