Change Plan
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
What to do with an in-progress trial. ‘preserve’ (default) keeps the original trial end date: the plan changes immediately but nothing is billed until the trial ends, at which point the first real period is charged at the new price. ‘end_now’ ends the trial immediately and bills straight away. Either way the change is applied in place — the subscription is not replaced and no proration or credit is produced for trial time, which was never paid for. Ignored unless the subscription is currently in a trial that has not yet ended.
Whether payment must succeed before the plan change takes effect. If true, the original subscription remains unchanged until the proration invoice is paid. New subscriptions are created in ‘incomplete’ state, and the original subscription’s items are NOT deactivated and the original is NOT cancelled until payment succeeds. Returns HTTP 402 with the invoice to collect. If payment fails, customer stays on their original subscription with no disruption. If false, the plan change commits immediately regardless of payment status, and new subscriptions may be left in ‘incomplete’ state if payment fails. Requires proration_behavior=always_invoice when true.
When the plan change should take effect. ‘immediate’ executes the change now. ‘period_end’ schedules the change to execute at the end of the current billing period.
Additional metadata to add to new subscription(s)
Response
True if original was cancelled (all items moved/deleted)
New subscriptions created (one per SubscriptionTerms)
Credit for unused time on moved/deleted items (negative)
Charge for new subscription periods (positive)
Net proration amount (credit + charge)
ID of proration invoice (if always_invoice)
Payment status (paid, failed, no_payment_method)
‘period_end’ if change is deferred, None if immediate
When the deferred change will execute (period_end datetime)
ID of the pending change (for cancellation/lookup)