cURL
curl --request POST \ --url https://sandbox.cashfree.com/api/v2/subscription-plans \ --header 'Content-Type: application/json' \ --header 'X-Client-Id: <x-client-id>' \ --header 'X-Client-Secret: <x-client-secret>' \ --data '{ "planId": "1682406696", "planName": "Plan 1682406656", "type": "PERIODIC", "recurringAmount": 10, "maxAmount": 100, "intervals": 1, "intervalType": "month" }'
200
Periodic Plan
{ "message": "Plan created successfully", "status": "OK", "data": { "planId": "1682406696", "planName": "Plan 1682406656", "type": "PERIODIC", "currency": "INR", "amount": 10, "maxAmount": 100, "intervals": 1, "intervalType": "month", "isActive": true, "addedOn": "2023-04-25 13:50:17" }}
Use this API to create a new plan. Provide the planId, planName, and the plan type(PERIODIC/ON_DEMAND).
Client ID provided by Cashfree.
"asdf1234"
Client Secret provided by Cashfree.
"qwer9876"
Subscription plan created successfully.
The response is of type any.
any