Get the link to buy a plan
get_buy_linkThe roamfly.co checkout link for a plan_id (from find_plans or get_destination), optionally for several eSIMs (one per traveller). The buyer opens it, signs in and pays there; the eSIM then arrives in their Roamfly account and by email.
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": {
"plan_id": "<plan_id>"
},
"name": "get_buy_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | plan_id from find_plans or get_destination. | |
| quantity | No | eSIMs to buy, one per phone (default 1). |