latestOpenAPI 3.0.1AGPL-3.0raw.githubusercontent.com2026-08-18258499893.8 KB

29f14678f58f

Subscriptions

Preview a plan change (v2, swap in place)

Preview a subscription plan change without writing. Swap-in-place: subscription id, billing anchor and period bounds are preserved.

post/subscriptions/{id}/change/v2/preview

Path parameters

idstring required

Subscription ID

Request body

idempotency_keystring
metadataobject
proration_behavior'create_prorations' | 'none' required
target_plan_idstring required

Response

OK

change_type'upgrade' | 'downgrade' | 'lateral'
effective_atstring date-time
metadataobject
warningsstring[]