POST
/
api
/
v2
/
subscriptions
/
create-refund
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"
}

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"

Body

application/json

Response

200
application/json

Successful creation of the refund.

The response is of type any.