topup_esim
Adds more data (and on some plans voice/SMS) to an existing eSIM the user already owns, without issuing a new eSIM. This SPENDS the wallet balance and cannot be undone. First call get_topup_options with the same ICCID to get valid top-up package codes and prices, then pass one here. Use when a user wants to extend an eSIM that is running low rather than buy a new one. Requires a connected agent wallet (OAuth or ak_live_ key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iccid | Yes | The ICCID of the eSIM to top up (from list_orders or a prior purchase) | |
| promoCode | No | Optional promo/discount code. Validated server-side; an invalid code rejects the top-up with the reason (nothing is charged). Only pass a code the user explicitly provided. | |
| packageCode | Yes | A top-up package code returned by get_topup_options for this ICCID (top-up codes differ from new-purchase codes) |