billing

Change Plan Endpoint

Change subscription plan (upgrade or downgrade between paid plans).

Use this for:

  • Hobby → Standard or Pro (upgrade)
  • Standard → Pro (upgrade)
  • Pro → Standard or Hobby (downgrade)
  • Standard → Hobby (downgrade)

For Free → Paid, use /billing/create-checkout-session instead. For Paid → Free, use /billing/cancel-subscription instead.

post/api/billing/change-plan

Request body

product_idstring required
plan'hobby' | 'standard' | 'pro' required

Response

Successful Response

subscription_idstring required
new_planstring required
statusstring required
current_period_endinteger nullable
messagestring nullable

Changes