Create subscription
payments_create_subscriptionCreate a recurring subscription via UPI Autopay or card e-mandate across Indian gateways. Returns a checkout action the customer must complete to authorise the mandate.
Instructions
Create a recurring subscription (UPI Autopay / card e-mandate). Returns a checkout action the customer must complete to authorise the mandate.
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": {
"provider": "<provider>",
"subscription_ref": "<subscription_ref>"
},
"name": "payments_create_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | ||
| customer | No | ||
| metadata | No | ||
| provider | Yes | Gateway id | |
| return_url | No | ||
| include_raw | No | Include the untouched provider response (verbose). | |
| total_count | No | Billing cycles (Razorpay requires it) | |
| provider_options | No | ||
| provider_plan_id | No | ||
| subscription_ref | Yes | Merchant reference: 3-40 chars, letters/digits/_/- | |
| provider_customer_id | No |