What an eSIM API does for a reseller
A provider’s eSIM API sells you an eSIM from code. What the calls are, what they leave for you to build, and the order they have to run in.
هذه المقالة منشورة بالإنجليزية. الموقع العربي مترجم بالكامل، أما المدونة فلا — لأن ادعاءً واحداً مترجماً ترجمة سيئة عن تسعير منافس أسوأ من عدم وجوده.
A supplier you can call from code
An eSIM API is a supplier’s ordering desk, opened to software. Instead of logging in to a dashboard and buying an eSIM by hand, your system sends a request and gets back an eSIM: the details a phone needs to install it, and an identifier you can use to ask about it later.
Most eSIM providers that sell to businesses offer one, usually as part of a partner or reseller programme rather than as a public signup. Access is a commercial relationship: you apply, you are approved, you agree rates, and then you are issued credentials. The API is the last step of that process, not the first.
Two different things get called an eSIM API, and it helps to keep them apart. A provider API sells you eSIMs. A platform API lets your systems read and change your own store: orders, prices, delivered eSIMs. The first is supply. The second is automation on top of a business that already has supply.
The calls you actually make
Names and shapes differ between suppliers, but the calls a reseller needs fall into the same handful of jobs. If an API is missing one of them, you will be doing that job by hand.
| Job | What the call does | What to watch |
|---|---|---|
| Catalogue | Lists the packages you can buy, with destination, data, validity and your cost | How often it changes, and whether cost and suggested retail price arrive in the same currency |
| Order | Buys an eSIM against your account | Whether a repeated request can buy the same eSIM twice |
| Installation details | Returns what the customer installs: an SM-DP+ address and activation code, usually also as a QR payload, plus the ICCID | Whether the details come back in the order response or have to be fetched afterwards |
| Usage | Reports how much data is left on a delivered eSIM | Whether every package reports it, and how fresh the figure is |
| Top-up | Adds data to an eSIM the customer already holds | Which packages can top up which eSIMs |
| Notifications | Tells your system about events, such as data running low | Whether they are signed, and what happens when your endpoint is down |
The usage and top-up rows are the ones resellers skip in the first version and regret by the third month. Usage is how you answer "how much data do I have left?" without guessing, and top-ups are the second sale on the same customer. An integration that only buys and delivers is a vending machine.
What the API leaves to you
A provider API answers one question: give me an eSIM. Every question around it, starting with whether you should give this person an eSIM and what to charge them, is yours.
- A storefront where a traveller can find a destination and a package in their language.
- A payment account, a checkout, and a reliable way of knowing a payment really succeeded.
- Prices: a markup over cost, a rule for when the supplier’s cost moves, and a guard against selling below cost.
- Delivery: the email that carries the QR code, a page the customer can come back to, and a resend when the email lands in spam.
- Records: what was sold, to whom, at what cost, for tax and for the customer who writes six months later.
- Support, refunds and legal pages, in your name, because you are the seller.
The order the calls have to run in
- The customer chooses a package and pays through your gateway.
- Your gateway notifies your system, and your system checks the notification is genuine before doing anything else.
- Your system places the order with the provider, once, even if the payment notification arrives twice.
- The installation details are stored against the order and emailed to the customer.
- Usage is read from the provider from then on, and a top-up goes back to step one on the same eSIM.
Both failure modes in that list cost real money. Buy before the payment is verified and you are funding whoever can fake a confirmation. Buy twice on a repeated notification and you have paid your supplier for an eSIM nobody will ever install.
Build it, rent it, or skip it
There are three sensible ways to put a provider API to work, and the deciding factor is what you already run rather than how technical you are.
| Route | Who writes the code | Right when |
|---|---|---|
| Integrate the provider API yourself | You, and whoever maintains it next year | eSIMs are one product inside an app, booking flow or marketplace you already operate |
| Rent a store that runs on your own provider keys | Nobody; you paste credentials into a settings screen | You want your own supplier rate but not a software team |
| Sell from a wholesaler’s ready-made store | Nobody, and there are no keys to hold | You want to sell this week and do not want a supplier relationship |
The middle route is the one Esimbit is built for: you hold the provider account, and the store, checkout, delivery, usage readings and top-ups run on your keys. Esimbit also has an API of its own, on the Scale plan, for reconciling orders, repricing in bulk or feeding order status into your support tools. It is the second kind of API from the first section. It does not sell you eSIMs, and by design a key cannot issue a refund or create or delete a provider connection.
Questions to ask before you integrate
Whichever route you take, these questions are worth putting to a supplier before you commit, because the answers decide how much work sits behind the word integration.
- How are sandbox and live separated: by address, or only by which credentials you send? If it is the credentials, label them the day you create them.
- Does a sandbox order behave like a real one, or does it return a realistic response without provisioning anything?
- Does every package report usage, and how often is the figure refreshed?
- Which packages can be added to an existing eSIM as a top-up?
- In what currency are costs quoted, and how will you hear when they change?
- Can a repeated order request be made safe, so a retry never buys a second eSIM?
- What does the supplier promise about new fields in responses? A parser that rejects unknown fields will break on a change the supplier is entitled to make.
Then do the test no documentation replaces: switch to live credentials, buy one low-value package, and install it on a real phone in a country you can check. An eSIM that provisions cleanly in an API response and fails on a handset is the most expensive kind of bug, because the customer finds it in an airport.
الأسئلة الشائعة
What is an eSIM API?
A supplier’s interface that lets your software buy and manage eSIMs without a person in a dashboard. The usual calls list the catalogue, place an order, return installation details, report usage and add top-ups. Access normally comes through a partner programme after the supplier approves you.
Do I need an API to resell eSIMs?
No. You need one only if you are writing the store yourself. Platforms that sell you their own catalogue need no keys at all, and platforms that run on your own provider account need only the credentials pasted into a settings screen. The API is still there underneath; somebody else maintains the code.
Is there an Airalo API for resellers?
Yes. Airalo offers a Partner API through Airalo Partners, and access is a commercial application rather than an instant signup. Our guide to it covers what it provides and what you still have to build around it.
What does an eSIM API return when I place an order?
The details a phone needs to install the eSIM: an SM-DP+ address and an activation code, which together are what a QR code encodes, along with the ICCID that identifies the eSIM. Some suppliers return them in the order response and others make you fetch them afterwards, so check which before you design the delivery step.
Can the Esimbit API replace a provider API?
No. The Esimbit API reads and changes your own store, such as orders, prices and delivered eSIMs, and it is on the Scale plan. The eSIMs themselves are still bought from your provider account with your own credentials.