Create checkout link
A link a human opens to buy a plan (pro or business) on a Stripe page branded Geocode AI. Free, and charges nothing: the person enters or confirms the card (never pass card details to a tool). With a key, the link is a Checkout page for that account (or, on a paid plan already, a page that confirms the switch, prorated). Without a key it is a Checkout page that collects the human's email and creates their account when they pay (kind guest_checkout), so an agent with no account can still hand its human one link. Give the url to the human as is, say the plan and price (monthly by default; yearly: true bills ten months' price once a year), then call get_account to see when it is paid. Never open or pay it yourself, and only call it when the human asked to buy or upgrade.
MCP tool create_checkout_link · CLI geocode create-checkout-link · RPC POST /v1/ops/create_checkout_link
Input
| Field | Type | Description |
|---|---|---|
planbody, required | "starter" | "pro" | "business" | The plan to buy. get_pricing lists them with prices, limits and features. |
yearlybody | boolean | Bill once a year: ten months' price (two months free). get_pricing shows price.yearly. Default false. |
Example request
curl -X POST "https://geocodeai.dev/v1/billing/checkout" \
-H "Content-Type: application/json" \
-d '{"plan":"pro"}'Example response
See the description above for what this returns.
Errors
Failures are RFC 9457 problems. Common ones here: 400 invalid_input, 429 rate_limited.