eSIM API Integration: Costs, Best Practices, and Process Overview

Denis Belov

Connectivity Advisor

Published on:

Tags:

API

eSIM

Telecom

On paper, eSIM API integration looks simple. In practice, the developers have to work through stacks of API documentation just to compare providers, then squeeze the integration in alongside everything else on their plate. Every week it slips is another week of cost and lost momentum, especially on white-label eSIM platforms, where the integration is the product.

This guide is here to shorten that path. Drawing on our experience at esimba.ai, we’ll explain how eSIM APIs work, what integration really costs, which practices save the most time, and how the process runs from vendor selection to launch.

For Developers: How eSIM APIs Actually Work

A diagram showing the process of the eSIM compatability check

If you’ve already worked with APIs, then the model is the same. An eSIM API sits between you and your carrier’s provisioning infrastructure. You call it, it handles all the telecom complexity, and you get back a data plan, an activation code, or a status update. 

All eSIMs currently operate on the GSMA SGP.22 standard. It defines and regulates how eSIM profiles get securely delivered to the embedded chip. You won’t have to apply it in practice, as it’s your carrier’s responsibility. Memorize this core principle: after you scan a QR code or activate the eSIM, the profile downloads from the carrier’s server and moves through their infrastructure to the device's eUICC (the chip).

eSIM APIs also have rate limits, which protect the platform from overload and bot traffic. At esimba.ai, the default is 60 requests per minute. Every response includes an X-RateLimit-Remaining header, so your app can see how much room is left and slow down before it hits the cap. Caching data that rarely changes, like the bundle catalog, keeps you well under the limit.

API Command Overview

A description and image showcasing the refund API command

Most eSIM APIs are REST-based and have a similar set of capabilities. The most noteworthy ones include:  

  • Bundle catalog. Query available data plans by country, region, or duration. This is your product catalog if you're building a consumer app.
  • Order placement. Assign a specific plan to a device identifier (ICCID). This is the transaction.
  • Activation code/QR code generation. The output your app delivers to the end user, which they scan or tap to install the profile on their device.
  • Status endpoints. Poll for profile state: ordered, delivered, installed, active, expired.
  • Webhooks. Event-driven notifications for the same states. Prefer these over polling; activation happens asynchronously on the device, and you don't control the timing.
  • Usage status. Used to retrieve data about remaining data, days, and other information. 
  • Balance. Get information about the current balance, top it up, or configure an autorefill. 

What a Basic Request Looks Like

For your reference, here’s what creating a line looks like at esimba.ai. The example uses the sandbox base URL, so you can test it without spending money:

curl -X POST "https://myaccount.sandbox.keepgo.com/api/v2/line/create" \

  -H "apiKey: YOUR_API_KEY" \

  -H "accessToken: YOUR_ACCESS_TOKEN" \

  -H "Content-Type: application/json" \

  -d '{

    "bundle_id": 13,

    "refill_mb": 1024,

    "refill_days": 7

  }'

A successful response returns the new line’s ICCID and its activation code:

{

  "ack": "success",

  "sim_card": {

    "iccid": "89103000010077777736",

    "lpa_code": "LPA:1consumer.ppp.localTN20213634636363463"

  },

  "data_bundle_id": 356

}

The lpa_code is the string the user’s device needs to install the eSIM profile. Your app turns it into a QR code or shows it for manual entry. Store the ICCID as well. Every later call for this line (status, usage, refills) uses it. 

Use Cases

Depending on what you’re building, the integration process may look different. Here are a few examples: 

  • eSIM App. A branded app, web app, or in-app flow where users buy, install, and top up eSIMs. Most of the work is in the post-purchase experience. Line status is tracked through simcard.status.changed, the remaining data is shown via /line/{iccid}/get_details, and top-up prompts are triggered by simcard.usage.low_data. 
  • Custom bridge. eSIMs are linked to an existing system, such as an airline or travel agency booking flow, and the matching eSIM is created automatically at booking. The integration is mostly server-to-server,  built around /line/create (or /line/create_async for bundle types that are delivered asynchronously).  
  • Webstore. An eSIM shop added to a website that already gets steady traffic. The bundle catalog does the heavy lifting. It’s pulled from /bundles, cached, and kept current with the bundle.added and bundle.removed webhooks. 

However, each case is unique to the business or team, and we encourage you to look through our API documentation to get a thorough understanding of what you need for implementation

How Much Does eSIM API Integration Cost?

A breakdown of API integration costs supporting the text below

This cost depends on the situation. For example, at esimba.ai, we only charge for developer time if you actually need our team for implementation, and the cost is variable. If you’re planning to do the integration yourself, you don’t have to pay anything extra beyond fulfilling our initial minimal balance requirements. 

But if we look more granularly, associated costs can be broken down into more than a few groups. 

Main Cost Groups

Vendor and data costs come first. You have to account for:

  • Profile activation. Can run you for $0.05–$0.50 per eSIM, depending on volume, tier, and provider. esimba.ai doesn’t charge its clients for activation.
  • Data bundles. Rates vary and heavily depend on the region. The same applies to margins, which tend to thin within the EU.
  • Minimum volume top-up. Some providers may request that you maintain a minimum data balance. The amount varies by provider, and if you want to inquire about ours at esimba.ai, contact us.

The next logical group is the development and integration costs. Hiring a mid-level developer in the US will cost $60–$120 per hour. eSIM REST API integration can take anywhere from 2-5 days, provided the documentation is in order, and you’ll solely focus on the project. Subtract a day if the provider offers an SDK, and add two or three if the docs are sparse. You’re looking at roughly $960–$4,800.

Altogether, at the maximum range, the costs could amount to $5,300, excluding the bundle price. Do also keep in mind that this is an estimate for your reference; an actual integration can take up to 2-3 weeks and cost more. 

Other Cost Factors

If there are no webhooks, this means polling, which involves more API calls against your rate limit and an activation UX that’s harder to build well. And if there are undocumented error codes, you’ll have to debug or, more precisely, reverse-engineer behavior that should’ve been specified.

The solution involves additional engineering time, and if you’re unlucky enough to run into these two issues, you’re looking at anywhere from $720 to $3,840.

API Integration: 5 Best Practices for eSIM Projects

Because the extra costs can add up quickly, the solution is to build defensively. Let’s take our API as an example and look through the top 5 best integration practices. 

1. Secure Authentication Properly 

Many providers use keys, which is not optimal for security because they can serve as static access points for cybercriminals. However, you can protect your business from hacking attempts. For that purpose, esimba.ai uses a dual-credential system, where an API key paired with an accessToken is required on each HTTPS request. We also use webhook signature verification via HMAC-SHA256 for additional security. 

2. Remember About Asynchronous Activation

The most common developer mistake is forgetting about asynchronous eSIM profile activation. It usually takes seconds, but, depending on the provider-side situation, it can take up to 15 minutes. 

A good solution is to build a proper state machine from the beginning. esimba.ai surfaces three line states out of the box: Registered, Activated, and Deactivated. The changes are pushed through simcard.status.changed webhook event in real time. That means you don't need to poll for activation confirmation; you subscribe to the event and let the platform push the transition to you. 

Line creation can be asynchronous too. For bundles that take longer to provision, esimba.ai’s /line/create_async returns a request ID immediately instead of holding the connection open, and your app checks /request/{requestId} for the result. That way, nothing times out while the line is being set up. 

For providers that don't support webhooks, polling with exponential backoff is your only option. 

3. Check Compatibility Before Checkout

Not every phone has an eSIM chip, which means not every customer will be able to install one. A refund request is often the first sign that it can’t, and that’s precisely why compatibility checks belong in your purchase flow.

esimba.ai provides an /esim_enabled_devices endpoint that returns a regularly updated list of eSIM-capable devices by brand and model. There’s also /check_esim_enabled_device to cross-reference the device model against our database and show the result before checkout.

4. Handle Errors at Your Layer

We use standard HTTP status codes throughout (200, 401, 403, 404, etc.), which allows for a cleaner error taxonomy. Even so, your application shouldn't be surfacing raw vendor responses to users or to your monitoring systems. Map vendor codes to your own internal error taxonomy early in the build. This insulates your application from vendor-side changes and makes debugging significantly faster.

5. Treat the Bundle Catalog as a Live Data Source

eSIM bundle catalogues aren’t static: carrier agreements change, and so does the list of available operators. We planned for this at esimba.ai, and bundle.added and bundle.removed webhook events notify you in real time when plans are added to or removed from the platform. Other providers are doing the same, but just in case,  set a TTL on your catalog cache and treat webhook events as authoritative signals. 

If you plan to partner with esimba.ai, the last tip is to use /line/{iccid}/available_refills rather than deriving refill options from the bundle catalog directly. It's faster and specific to the line in question.  

Skip the Infrastructure. Launch Faster.

API Integration: Best Testing/Staging Practices for eSIM Projects

eSIM Integration without testing is suboptimal, to say the least. The cards have real costs: you pay for profiles, sometimes incurring activation charges. But beyond these costs, you also inconvenience the users, which can lead to poor sales and brand reception. To avoid these, consider the tips provided below. 

Set Up a Staging Environment 

Not all eSIM API providers have a dedicated testing environment. If that’s the case with yours, it’s not a big issue, and you can treat a small pool of lines as your sandbox. Purchase a handful of the cheapest available bundles specifically for testing, document which ICCIDs are reserved for that purpose, and account for their cost upfront in your integration budget. 

Some providers, like esimba.ai, have a dedicated sandbox, and the only real differences are a separate base URL and separate credentials. New accounts come with a test balance, and you can create eSIMs and refills without spending any money. Sandbox eSIMs can’t be installed on a real phone, and data usage needs to be triggered. Use the sandbox-only simulate_usage endpoint to check that your app tracks usage and handles refills correctly. 

For webhook testing, use a tool like ngrok or Webhook during development to expose a local endpoint and capture real webhook payloads. 

Organize Testing Layers

Another good practice is to do your testing in three layers:

  • Unit. Authentication header generation, error code mapping logic, bundle catalog parsing, and filtering.
  • Integration. Full order-to-activation sequence, webhook signature verification, retry behavior under simulated failures, idempotency on order placement, and both sync (/line/create) and async (/line/create_async) paths.
  • Contract. Snapshot response schemas on critical endpoints and alert on unexpected changes; field renames and new required parameters ship without warning more often than you'd expect.

This lets you test independently and catch breaking API changes before users do. 

Simulate Edge Cases

A few failure modes worth mocking explicitly:

  • A profile that takes 10–15 minutes to activate. Confirm your polling fallback works and that the UX doesn't strand users in a loading state with no timeout.
  • A bundle.removed event against a plan your test user is actively on. Verify the catalog UI degrades gracefully rather than displaying something that can no longer be purchased.
  •  A rate limit response. Confirm your retry logic handles a 429 with backoff rather than surfacing a raw error to the user.

Process Overview: From Vendor Selection to Integration

If you’re already planning an API integration and are evaluating providers, it’s important to get the whole picture and properly plan. To do just that, you can follow the steps below: 

  1. Define your use case. A travel app and a reseller platform have little in common, so get specific before committing. 
  2. Shortlist vendors. Consider the scope, documentation depth, webhook support, and how they handle breaking changes.
  3. Model costs. Get wholesale quotes and try to run unit economics while factoring in minimum volume commitments and other similar things.
  4. Prototype before committing. Build auth, one bundle query, and one order placement against your chosen provider. 
  5. Design the activation state machine. Map every state and transition before writing production code. 
  6. Build core integration. Authentication, bundle catalog, order placement, activation status, and webhook listener. Keep the eSIM API calls server-side; never expose credentials to the client. 
  7. Stage and validate. Use a sandbox or test lines, verify webhook signatures, prevent duplicate orders, and simulate edge cases. 
  8. Monitor from day one. Activation success rate and webhook delivery rate are your two primary health signals. Set alerts on both before launch. 

Choosing esimba.ai as Your Provider

We’ve referenced our API throughout the blog, and for a reason. Measured against the evaluation criteria that actually matter for a developer building on top of an eSIM API, it holds up well across the board. 

The API is clean REST, thoroughly documented, and covers the full integration surface: bundle catalog, line creation, activation status, refills, auto-refill, and webhook events for every meaningful state change. For resellers and app developers, the minimum top-up balance requirement to access the API is a low barrier relative to what comparable platforms demand, and it goes directly toward usable inventory rather than a platform fee.

If a partnership sounds interesting to you, you can reach out to us today for pricing and coverage. Our sales team will outline the integration process and help you start your journey to high-grade connectivity. Alternatively, you can follow this link to self-register for free on the platform. 

You get an API key even with a free account, but to access the sandbox environment, there’s a separate registration process. Keep in mind that you won’t be able to purchase eSIMs via API until your first balance top-up on the platform.      

Ready for the next step?

Contact us today to learn more about our eSIM API integration solution.

Read more