Skip to main content
Starts a paid-plan upgrade to Basic (15/mo,15cards/month,upto15/mo, 15 cards/month, up to 500 per card) or Pro (100/mo,50cards/month,upto100/mo, 50 cards/month, up to 1,000 per card). Use it only when the user explicitly wants to upgrade, and confirm the result afterwards with get_plan.

Parameters

ParameterTypeRequiredDescription
planstringNoWhich 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.

Example

{ "name": "upgrade_plan", "arguments": { "plan": "pro" } }