Create a plan
create_planCreates a recurring billing plan with a set amount charged every interval count and unit, so you can subscribe customers to it.
Instructions
Create a plan.
Create a plan: an amount billed every interval_count × interval (for example every 3 months). Subscribe customers to it with POST /api/v1/subscriptions.
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": {
"name": "<name>",
"amount": "<amount>",
"interval": "<interval>"
},
"name": "create_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| amount | Yes | Amount per period in kobo | |
| interval | Yes | ||
| metadata | No | ||
| description | No | ||
| interval_count | No | Bill every N intervals (e.g. 3 months) | |
| idempotency_key | No | Optional. A unique key for this request; retrying with the same key returns the original result instead of acting twice. One is generated if omitted. |