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.
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 |