Subscription: Start checkout (returns Stripe URL)
start_checkout Create a Stripe Checkout session and return the URL for the user
to open in a browser to complete payment.
Args:
plan_id: SubscriptionPlan.id to subscribe to (a paid plan only)
Returns:
``{"checkout_url": "...", "plan_name": "..."}`` or ``{"error": ...}``.
The URL opens Stripe Checkout in the user's browser; checkout
cannot be driven programmatically. A user with a live paid
subscription gets an error pointing at the billing portal; a
user whose Premium is comped (or free in beta) still gets the URL
plus ``already_premium_note``, which explains they already have
Premium access.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plan_id": "<plan_id>"
},
"name": "start_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes |