Create eSIM order (spends balance)
create_orderBuy one or more eSIMs of a package from the account balance. Two-step: first call returns a preview with the current balance and a generated idempotency_key; call again with confirm: true AND that idempotency_key to execute. Tell the user the cost before confirming.
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": {
"package_code": "<package_code>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Omit to get a preview; pass true to execute | |
| quantity | No | ||
| package_code | Yes | Exact package_code from search_packages | |
| idempotency_key | No | From the preview; required with confirm: true |