Create checkout link
create_checkout_linkReturns a slashtel.com link with the chosen eSIM plan or top-up already selected. Share it with the user: they enter their email and pay on the site. For type 'esim' pass plan_id. For type 'topup' pass phone, operator_code and option_id from get_topup_plans.
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": {
"type": "<type>"
},
"name": "create_checkout_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| phone | No | Top-up: the full international number | |
| plan_id | No | eSIM plan_id from get_esim_plans | |
| language | No | Optional. The sender's language (the language they are writing in). The top-up link opens the Slashtel page in that language for their route where one exists (for example Malayalam for India from the UAE, Bengali for Bangladesh from Saudi Arabia), otherwise the English page. | |
| option_id | No | Top-up: option_id of the chosen option from get_topup_plans | |
| send_value | No | Deprecated, use option_id. Still accepted for older conversations. | |
| operator_code | No | Top-up: operator_code from get_topup_plans | |
| sender_country | No | Optional. ISO-2 country the sender is in, e.g. US, FR, SA. Helps pick the matching page. |