GET
/
api
/
v2
/
subscriptions
/
payments
/
merchantTxnId
/
{merchantTxnId}
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": "OK",
  "message": "Subscription Payment",
  "payment": {
    "paymentId": 121799,
    "referenceId": 1489904256,
    "cfOrderId": 3528817,
    "orderId": "SUB_109826_CHARGE_121799",
    "subReferenceId": 109826,
    "currency": "INR",
    "amount": 1,
    "cycle": 1,
    "status": "PENDING",
    "remarks": null,
    "scheduledOn": null,
    "addedOn": "2023-01-18 13:00:38",
    "retryAttempts": 0,
    "failureReason": null,
    "merchantTxnId": "test-txn-id-4",
    "splitDetails": {
      "scheme": [
        {
          "merchantVendorId": "test-vendor-1",
          "percentage": 10
        },
        {
          "merchantVendorId": "test-vendor-2",
          "percentage": 10
        }
      ]
    }
  }
}

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

200
application/json

Successful retrieval of the payment details.

The response is of type any.