Create checkout for the customer
create_checkoutCreate a pending customer-paid Stripe Checkout from a quote_id returned by prepare_order, only after the customer explicitly approved the displayed plan and price and accepted the terms. Requires the customer's email and customer_confirmed=true, terms_accepted=true; returns a checkout URL, NOT a paid eSIM, and fulfilment starts only after verified payment. Reuse one idempotency_key per intended purchase, including retries, to avoid duplicate orders; use purchase for other supported payment methods. With a sandbox key (mak_test_…) the checkout is a Stripe TEST checkout (test cards, no real money) and get_order returns a TEST eSIM that cannot be installed (test_mode=true).
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": {
"quote_id": "<quote_id>",
"email": "<email>",
"customer_confirmed": "<customer_confirmed>",
"terms_accepted": "<terms_accepted>"
},
"name": "create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language for names and texts (default en). | |
| Yes | Customer email; the eSIM and receipt are sent there. | ||
| quote_id | Yes | From prepare_order. | |
| terms_accepted | Yes | true only if the customer accepted immediate delivery and the loss of the withdrawal right. | |
| idempotency_key | No | Unique per purchase (MCP). REST: send the Idempotency-Key header instead. | |
| customer_confirmed | Yes | true only if the customer explicitly confirmed this purchase. |