cURL
curl --request POST \ --url https://sandbox.cashfree.com/api/v2/subscriptions/create-refund \ --header 'Content-Type: application/json' \ --header 'X-Client-Id: <x-client-id>' \ --header 'X-Client-Secret: <x-client-secret>' \ --data '{ "paymentId": "1223", "refundAmount": 100, "refundNote": "Charge refund", "merchantRefundId": "test-refund", "requestedSpeed": "STANDARD" }'
{ "subRefundId": "SUB_76d688d5-cbcc-49ea-960b-21b11433b641", "merchantRefundId": "test-refund", "paymentId": 1223, "subReferenceId": 191645, "refundAmount": 100, "refundStatus": "INITIALIZED" }
Use this API to create a refund for the payment of a Subscription. Only one of paymentId or merchantTxnId should be passed. If both are passed then the request will be rejected.
Client ID provided by Cashfree.
"asdf1234"
Client Secret provided by Cashfree.
"qwer9876"
Successful creation of the refund.
The response is of type any.
any