GET
/
api
/
v2
/
subscriptions
/
{subReferenceId}
/
payments
/
{paymentId}
curl --request GET \
  --url https://sandbox.cashfree.com/api/v2/subscriptions/{subReferenceId}/payments/{paymentId} \
  --header 'X-Client-Id: <x-client-id>' \
  --header 'X-Client-Secret: <x-client-secret>'
{
  "status": "OK",
  "message": "Subscription Payment",
  "payment": {
    "paymentId": 2276563,
    "referenceId": 214308920,
    "cfOrderId": 236286405,
    "orderId": "ORD_24534",
    "subReferenceId": 5513463,
    "currency": "INR",
    "amount": 250,
    "cycle": 5,
    "status": "INITIALIZED",
    "remarks": null,
    "scheduledOn": "2021-09-13",
    "addedOn": "2021-09-09 11:05:19",
    "retryAttempts": 0,
    "failureReason": null,
    "merchantTxnId": null,
    "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:

"asdf1234"

X-Client-Secret
string
required

Client Secret provided by Cashfree.

Example:

"qwer9876"

Path Parameters

subReferenceId
integer
required

The reference ID of the subscription.

Example:

2568045

paymentId
integer
required

The payment ID whose details are to be fetched.

Example:

3027869

Response

200
application/json

Successful retrieval of the payment details.

The response is of type any.