Update recurring invoice
update_subscriptionChange a recurring invoice that is not cancelled: amount of future invoices, description, billing_time, subscriber_name, external_subscriber_id, metadata. Pass only the fields to change. Amounts are whole tenge (KZT) as integers: 5000 means 5,000 tenge, no tiyn/decimals. Already sent invoices keep their amount. The phone and the period cannot be changed: cancel and create a new one. Use to change future invoices of an existing subscription; to stop it for a while use pause_subscription, for good cancel_subscription. Returns the updated subscription.
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": "update_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | New amount of each future invoice. Integer, whole tenge (KZT). | |
| metadata | No | Optional JSON object stored with the record and returned back (e.g. {"order_id": "1024"}). | |
| description | No | New invoice description; "{today}" is replaced by the billing date. | |
| billing_time | No | New time "HH:MM" in Almaty time, 06:00-22:00. | |
| subscriber_name | No | Customer name for your records. | |
| subscription_id | Yes | Subscription id. | |
| external_subscriber_id | No | Id of the customer in your system. |