POST
/
api
/
v2
/
subscription-plans
{
  "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"
  }
}

Headers

X-Client-Id
string
required

Client ID provided by Cashfree.

X-Client-Secret
string
required

Client Secret provided by Cashfree.

Body

application/json
intervals
integer

Number of intervals for the periodic plan.

intervalType
enum<string>

Interval type for the periodic plan.

Available options:
day,
week,
month,
year
maxAmount
number

Maximum amount for the plan.

planId
string

Unique ID for the subscription plan.

planName
string

Name of the subscription plan.

recurringAmount
number

Recurring amount for the plan.

type
enum<string>

The type of the subscription plan.

Available options:
PERIODIC,
ON_DEMAND

Response

200 - application/json

The response is of type any.