Skip to main content
GET
/
api
/
v2
/
subscriptions
/
payments
/
merchantTxnId
/
{merchantTxnId}
Fetch Payment by Merchant Transaction ID
curl --request GET \
  --url https://sandbox.cashfree.com/api/v2/subscriptions/payments/merchantTxnId/{merchantTxnId} \
  --header 'X-Client-Id: <x-client-id>' \
  --header 'X-Client-Secret: <x-client-secret>'
{
  "status": "ERROR",
  "message": "Server encountered an unexpected condition."
}

Headers

X-Client-Id
string
required

Client ID provided by Cashfree.

Example:

"<x-client-id>"

X-Client-Secret
string
required

Client Secret provided by Cashfree.

Example:

"<x-client-secret>"

Path Parameters

merchantTxnId
string
required

The merchant transaction ID whose payment details are to be fetched.

Example:

"test-txn-id-4"

Response

Successful retrieval of the payment details.