Get the payment link
get_checkout_linkFinal step. Before calling, ask the user (never guess): is the trip for leisure or business; what date they need the eSIM from; and which phone they will use. Check the phone with check_device and confirm compatibility with the user. Ask the user to confirm their phone is eSIM-compatible and network-unlocked (list: https://simplysim.co.uk/device-compatibility) and set device_compatible to true only if they confirm. A device not on the list is refused with device_not_found and suggestions; only if the user has checked their phone's Settings for an eSIM option and it is unlocked, call again with device_unlisted_confirmed: true. Returns a secure Stripe checkout_url for the user to open and pay in their own browser, where they enter their own email address. The eSIM and installation instructions are emailed to that address. Calling again returns the same link while it is still open and the basket is unchanged. Do not pay on the user's behalf.
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": {
"basket_token": "<basket_token>",
"usage_type": "<usage_type>",
"travel_date": "<travel_date>",
"device": "<device>",
"device_compatible": "<device_compatible>"
},
"name": "get_checkout_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | The phone the user will use, exactly as check_device lists the model, e.g. "iPhone 15". | |
| usage_type | Yes | The user's answer to: is this trip for leisure or business? | |
| travel_date | Yes | The date the user needs the eSIM from, YYYY-MM-DD, today or later (UK time). | |
| basket_token | Yes | The basket_token returned by create_basket. Keep it private. | |
| device_compatible | Yes | true only when the user has confirmed their phone supports eSIM and is network-unlocked. | |
| device_unlisted_confirmed | No | Optional. true only when the phone is not on the compatibility list and the user has confirmed in their phone's Settings that it can add an eSIM. The device text is then saved as given. |