Upgrade or change plan
spur_change_planMoves the user to another Spur plan (ids from spur_show_billing_options; usually agent, team or brokerage).
No paid subscription yet: returns a Stripe checkout link. No confirmation needed.
Already subscribed: switches the plan immediately and charges or credits the prorated difference to the saved card. Call once without confirm to get the exact change, ask the user to approve it, then call again with confirm=true.
Moving to the free Solo plan returns a billing-portal link where the user cancels the paid subscription.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Only for users who already have a paid subscription: true ONLY after they approved the switch and the prorated charge in the conversation. | |
| plan_id | Yes | Target plan id, e.g. agent, team, brokerage | |
| billing_interval | No | annual is cheaper per month | monthly |