create_checkout_link
Create a secure checkout link for a chosen plan (by id). Before sharing the link, confirm with the customer that their phone is (1) eSIM-compatible AND (2) carrier-unlocked — a locked phone cannot use a travel eSIM. The customer completes payment themselves on SinoConnection's checkout page (sign-in required) — you never handle card details. Returns a URL, the plan title, and price_usd (current discount already applied).
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": {
"id": "<id>"
},
"name": "create_checkout_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Package id from search_esim_plans |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| plan | No | ||
| error | No | ||
| checkout_url | No | ||
| before_you_buy | No |