Cancel Subscription
cancel_subscriptionCancel a Razorpay subscription immediately or schedule it to end at the current billing cycle by providing the subscription ID.
Instructions
Cancel a Razorpay subscription immediately or at end of billing cycle.
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": {
"subscription_id": "<subscription_id>"
},
"name": "cancel_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subscription_id | Yes | Subscription ID to cancel | |
| cancel_at_cycle_end | No | 0 = cancel immediately, 1 = cancel at end of current cycle |