Buy an eSIM
purchase_esimBuy an eSIM data plan with immediate balance charge; non-cancellable. Requires pre-approved max price; if price rises, no charge and new price returned. Returns eSIM ID with install details.
Instructions
Buy an eSIM data plan, charged to your balance immediately. It cannot be cancelled through this server once issued. Requires max_price_cents: the price from search_esim_plans that you showed the user and they approved; if the price is now higher, nothing is charged and the new price comes back to re-confirm. Returns the esim_ id with install details (LPA string, SM-DP+ address, activation code); if it is still processing, poll get_esim_status. Use get_esim_qr for the QR image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | prod_... id from search_esim_plans | |
| max_price_cents | Yes | The price you showed the user and they approved, in US cents (e.g. 250 = $2.50). Nothing is charged if the current price is higher; the new price comes back so you can ask the user again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| esim | Yes |