Update Subscription
update_subscriptionUpdate a subscription by modifying items, payment method, trial, cancellation behavior, metadata, or proration settings.
Instructions
Update a subscription. Can change items, payment method, trial, cancellation behavior, and metadata.
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 | Subscription ID (sub_...) | |
| items | No | Updated line items | |
| cancel_at_period_end | No | Cancel at end of period | |
| default_payment_method | No | New default payment method | |
| metadata | No | Metadata to update | |
| proration_behavior | No | How to handle prorations | |
| trial_end | No | Trial end timestamp or "now" to end immediately | |
| coupon | No | Coupon ID to apply | |
| idempotency_key | No | Optional idempotency key for safe retries |