In this article
Learn how to buy bundles into your inventory, in the Portal or with the API, so you have them ready to apply to your customers' eSIMs later. You'll also learn how long unused bundles stay in your inventory.
Before you start
- For the API route, make sure you have already located and entered your API key. See Find, copy and refresh your API key.
- Unused bundles stay in your inventory until the expiry date is reached or the bundle is applied to an eSIM. See Apply a bundle from inventory to a new eSIM. There is no separate 12-month expiry for bundles in inventory.
Add a bundle in the Portal
- Log into your account.
- In the left menu, click Inventory > Buy.
- Use Filter by country or region or Search bundles to find the country you need a bundle for.
- In the bundle list, click + on the bundle you need. For example, a 1GB / 7 day United Kingdom bundle.
- On the Your Basket page, adjust the quantity with - and + as required. See Ordering multiple bundles.
- Under Delivery Method, choose Add to Inventory.
- Check the Order Summary, then click Add to Inventory. If the Order Summary shows that a top-up is needed, top up first; see Top up your account.
- A confirmation is shown.
- Find the ordered bundle(s) in Inventory > Bundles.
Tip: Keep a stock of your best-selling bundles in your inventory. You can then apply one to a customer's eSIM as soon as they buy, and unused bundles stay available until their expiry date.
Add a bundle with the API
Use POST /orders on the v2.5 API. See the v2.5 API docs at https://docs.esim-go.com/api/v2_5/operations/orders/post for the full request details.
- Set "type" to "transaction". The allowed values are validate and transaction. Use validate to test an order before you place it.
- Set "assign" to false. With a quantity set and assign set to false, the bundle is purchased into your inventory. Don't send ICCIDs or a profile ID, because they only work when assign is true. Always send "assign": false explicitly.
- Enter the "quantity" of bundles you need.
- In "item", enter the moniker (the bundle code), for example esim_1GB_7D_AD_V2. Monikers are case sensitive and can be found in the API catalogue.
- Send the request. A successful transaction returns "statusMessage": "Order completed" and an order reference.
- The total is deducted from your organisation's balance. The response shows "Order completed", and the bundle can then be found in your inventory. For errors, see API error troubleshooting.