EDC Txn Search API


The search API supports transaction search using both RRN and posRequestId. 

Header NameHeader Value
Content-Typeapplication/json
X-VERIFYSHA256(base64 encoded payload +
/v1/edc/transaction/status” + salt key) + ### + salt index
X-PROVIDER-IDUsed for merchants getting onboarded via Providers. Pass providerID shared by PhonePe

Mandatory params: 

  1. merchantId 
  2. terminalId
  3. Either RRN or posRequestId is mandatory.

Note: If both rrn and posRequestId is passed then the priority will be given to posRequestId for the search.

Optional Params:

  1. starttimestamp
  2. endTimestamp
  3. amount

** If both timestamps are not passed in request then by default the API will return transactions from the last 24 hours of data.

** StartTimeStamp should always be less then the endTimestamp

Parameter NameTypeDescriptionMandatory
merchantIdStringUnique Merchant ID assigned to the merchant by PhonePeYes
terminalIdStringUnique Terminal Id shared by Phonepe. Special characters like ” “, “,”, “@” etc. are not allowed.Yes
rrnStringUnique transaction reference ID of the transaction. This is referenceNumber from the response payload.Yes
merchantTransactionIdStringThis is the transactionId that is passed in the EDC Sale request and ResponseYes
startTimestampLongEpoch timestamp from which the transactions will be fetched and rrn will be searchedNo
endTimestampLongEpoch timestamp till which the transactions will be fetched and searched.No
JSON Request payload
{
  "merchantId": "M101NLBM5TQL3U",
  "terminalId": "MST2405301213090863007",
  "merchantTransactionId": "test3456",
  "rrn": "467543752",
  "startTimestamp": 1729248705772,
  "endTimestamp": 1729248705772
}
Base 64 encoded request payload
{
  "request": "ewogICJtZXJjaGFudElkIjogIk0xMDFOTEJNNVRRTDNVIiwKICAidGVybWluYWxJZCI6ICJNU1QyNDA1MzAxMjEzMDkwODYzMDA3IiwKICAibWVyY2hhbnRUcmFuc2FjdGlvbklkIjogInRlc3QzNDU2IiwKICAicnJuIjogIjQ2NzU0Mzc1MiIKfQo="
}
Sample Curl Request
curl --location 'https://mercury-t2.phonepe.com/v1/edc/transaction/status' \
  --header 'Content-Type: application/json' \
  --header 'X-VERIFY: 0ea78d35134416cf114c220e0706d549ed9e33b02d643894ebbdcafb9356502a###1' \
  --header 'X-PROVIDER-ID: OFFLINEPRODTESTPOS' \
  --data '{
    "request":"ewogICJtZXJjaGFudElkIjogIlRFU1RNSUQxMjMiLAogICJ0ZXJtaW5hbElkIjogIk1TVDI1MDQwOTE0Mzk0ODA3NzA1MjcwNTAiLAogICJycm4iOiAiNjQ5NjU5MzMyNDgxIgp9"
  }'
Sample Curl Response
{
  "success": true,
  "code": "SUCCESS",
  "message": "Your request has been successfully completed.",
  "data": [
    {
      "merchantId": "TESTMID123",
      "storeId": "MS2502111XXXX05955930709",
      "terminalId": "MST2504XXXX39480770527050",
      "orderId": "141511012",
      "transactionId": "57111833380079",
      "referenceNumber": "64964332481",
      "paymentMode": "DQR",
      "amount": 100,
      "status": "SUCCESS",
      "responseCode": "null",
      "paymentInstruments": [
        {
          "type": "ACCOUNT",
          "amount": 100,
          "upiTransactionId": "IBLe100972b18b5480692fe5beb32c4d4bb"
        }
      ],
      "timestamp": 1748953450000
    }
  ]
}

Is this article helpful?