Create Subscription
create_subscriptionCreates a recurring Razorpay subscription for a customer by specifying a plan and total billing cycles.
Instructions
Create a recurring subscription for a customer in Razorpay.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plan_id": "<plan_id>",
"total_count": "<total_count>"
},
"name": "create_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| plan_id | Yes | Razorpay Plan ID (e.g. plan_xxxxxx) | |
| quantity | No | ||
| start_at | No | Unix timestamp for when subscription starts | |
| total_count | Yes | Total number of billing cycles | |
| customer_notify | No | 1 = notify customer via SMS/email, 0 = silent |