get_plan.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
plan | string | No | Which plan to upgrade to: basic or pro. Defaults to basic. |
Returns
Usually a Stripe Checkout URL the user must open in their browser to complete payment (status: "checkout_required"); the plan updates automatically once they finish. If the user is already on a paid plan, the subscription is switched in place with proration and no checkout is needed (status: "swapped"). Other outcomes are already_on_plan, waitlisted, unavailable, and checkout_failed, each with a clear message to relay.