Move the team to another plan
Swaps the price on the plan item of the team’s live subscription and sets its quantity to the portfolio’s unit count, from today. The rest of the month on the old plan is credited on the next invoice. The bank-account item is left as it is, and a cancellation set for the end of the period is taken back, because choosing a plan is choosing to stay. The write sets the plan and the count outright, so a request that timed out can be sent again and lands once. Stripe’s own portal cannot offer any of this: it refuses to update a subscription carrying more than one line, and every subscription here carries the AI meter. Only an owner of the team, signed in on screen.
Request
- Base URL: http://localhost:5180
- URL: http://localhost:5180/api/v1/billing/plan
- Auth: API key in cookie better-auth.session_token
Request body
Response
The plan the team is on now.
Changes
No recorded changes to this operation across all 1 revision of this API.