Create or Resume Checkout
create_checkoutCreate, or reuse, a secure payment page hosted by Stripe where the business owner pays for a KaiCalls plan from list_plans with their own card. Needs business_id, plan_id and an idempotency_key: retrying with the same key returns the same page, and choosing a different plan needs a new key. This tool charges nothing; only the owner can pay, by opening the page themselves. It never proves payment or that the phone line is live: get_checkout_status reports payment for the returned session_id.
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": {
"business_id": "<business_id>",
"plan_id": "<plan_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | A plan key from list_plans. | |
| business_id | Yes | The business the plan is for. | |
| idempotency_key | Yes | Stable key for this checkout; reuse it when retrying. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| error | No | Present when success is false | |
| status | No | ||
| success | Yes | Whether the tool completed successfully | |
| session_id | No |