In this article
Learn how to get an email when your balance runs low and how to receive balance and top-up notifications, so you can top up before orders are rejected. You'll also learn how to retrieve your balance with the API.
Before you start
- Low-balance emails go to each user who turns on Balance Alerts.
- Balance alerts use your account currency, which is USD.
- Portal address: https://portal.esim-go.com/.
Get an email when your balance is low
Balance notifications email you whenever your Organisation balance falls below a level you choose.
- Log in to your account on the eSIM Go Portal.
- Go to Settings > User Preferences > Notifications and turn on Balance Alerts.
- Click Save Changes.
You will receive an email when the Organisation balance falls below this level. To add credit, see Top up your account.
The balance alert fires when your balance reaches the alert threshold, then again as it passes 75%, 50% and 10% of that threshold. An InsufficientBalance alert is sent up to 10 times.
Tip: Act on the first low-balance email. Topping up before your balance runs out stops transactions being rejected for insufficient balance, so your customers never see a failed purchase.
Receive top-up notifications
You receive a top-up notification each time your account is topped up manually or by auto top-up. See Auto top-ups.
The alertType is one of Topup, AutoTopup or eSIMGoTopup. The payload fields are alertType, bundle, oldAmount and newAmount.
Top-up notifications are webhook callbacks, so set up your callback URL first; see Callback URL and notifications. For the payloads, see the notifications documentation: https://docs.esim-go.com/api/notifications/.
Low-balance and rejected-transaction notifications
Balance notifications alert you when you have insufficient credit to purchase a bundle. The alertType for these notifications is LowBalance. A transaction rejected for insufficient balance uses InsufficientBalance. Balance and top-up notifications are in the separate Notifications section of the developer documentation, not in the v2.5 callback reference, which lists only "eSIM Usage Callback" under Callback.
You can also receive real-time webhook callbacks for balance events.
Retrieve your balance with the API
Use GET /organisation (v2.5) to retrieve your Organisation details, including your current balance. See https://docs.esim-go.com/api/v2_5/operations/organisation/get.
Send your API key in the X-API-Key header. See Find, copy and refresh your API key.
The response includes these fields:
Field |
Meaning |
|---|---|
balance |
Your current balance |
currency |
The selected currency |
You will receive your current balance in the response. Don't poll this endpoint; frequent and consistent polling is not allowed under the Technical Service Agreement: https://esimgo.com/technical-service-agreement
The orders response also returns runningBalance, which is the balance at the time the order was placed. The order total is deducted from your Organisation balance. A validate order does not reduce your balance.