Get a checkout link for a plan
create_checkout_linkGet a checkout link for a plan (permission: edit)
A link to the AnalyticsProof checkout page for the project and plan, with the price in each currency the plan is sold in. No payment happens in this call and nothing is created: open url in a browser signed in as a project owner or admin (a person, or a browser agent acting for them) and pay there; a signed-out browser signs in first. The link carries no credentials. currency preselects the checkout currency (case-insensitive; omitted: the buyer’s browser decides; lockedCurrency, when set, wins). A key with edit permission of a project below the plan (Free, an expired trial) may call it, like GET /whoami. After the payment, GET /projects (agent connection) or GET /whoami shows the new tier. An organization project answers 409 org_managed, an invoice-billed project 409 invoice_billed, a project with a subscription 409 already_subscribed, a billing account charged in a currency the plan is not sold in 409 currency_unsupported. Idempotency-Key is ignored: a retry answers an equivalent link.
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": {
"tier": "<tier>",
"billingCycle": "<billingCycle>"
},
"name": "create_checkout_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | The plan to buy. | |
| currency | No | Preselect this checkout currency (case-insensitive: usd = USD). Omitted: the buyer’s browser decides. A currency the customer is already billed in wins (lockedCurrency). | |
| projectId | No | The project to upgrade. Required with an organization key or an agent connection. | |
| promoCode | No | Prefill this promo code on the checkout page; the buyer applies it there. | |
| billingCycle | Yes | Pay monthly or yearly. |