update_subscription
Update a Stripe subscription to cancel at period end or switch to a different price.
Instructions
Updates a Stripe subscription. Can schedule cancellation at period end or change the subscription's price.
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 |
|---|---|---|---|
| subscription_id | Yes | The ID of the subscription to update (e.g., 'sub_123'). | |
| cancel_at_period_end | No | If true, the subscription will be canceled at the end of the current period. | |
| price_id | No | The new price ID to switch the subscription to (e.g., 'price_123'). |