eSIM Solutions - Fully Automated Multi-Provider Platform
How we engineered a SaaS platform that integrates multiple eSIM provider APIs into a seamless, fully automated purchase-to-activation flow - with user, admin, and reseller dashboards on a single Next.js codebase.
The Client
eSIM Solutions is a digital telecommunications platform that provides eSIM connectivity services to consumers and businesses worldwide. The platform aggregates multiple eSIM providers into a single marketplace, allowing users to purchase data plans for virtually any country without dealing with the complexity of comparing providers or managing multiple accounts.
Beyond the consumer-facing marketplace, the platform includes a reseller program that enables travel agencies, IT service providers, and other businesses to offer eSIM services to their own customers - effectively creating a white-label distribution network on top of the core infrastructure.
Industry: Telecommunications / SaaS
Location: Global Service
Project Type: Full-Stack SaaS Platform Development
Live Site: lock-esim.com
The Challenge
Building an eSIM provisioning platform is not a standard web development project. The core complexity lies in the fact that the platform must communicate with multiple external API providers - each with completely different interfaces, authentication methods, data structures, and operational quirks - and present them to users as a single, seamless experience.
The engineering challenges were substantial:
- Multiple API integrations with different interfaces: Each eSIM provider has their own API design philosophy. Some use REST, some have different authentication flows, some return data in different formats. The platform needs to speak all of their languages fluently while maintaining a consistent internal data model.
- 100% automation requirement: The client required zero manual intervention in the purchase-to- activation flow. When a user buys an eSIM, the system must automatically determine the correct provider, place the order, retrieve the provisioning details (QR code, activation instructions), and deliver them to the user - all in real time.
- Three distinct dashboard interfaces: The platform needed three separate interfaces - user, admin, and reseller - each with different features, permissions, data views, and business logic, but all sharing the same underlying infrastructure and data.
- Provider failover and reliability: If one provider's API is down or does not cover a specific region, the platform must handle this gracefully - either routing to an alternative provider or communicating the limitation to the user without exposing the internal complexity.
- Reseller pricing and business logic: The reseller system introduces a layer of pricing complexity. Different resellers may have different margin structures, different product access levels, and different customer- management needs. The billing and pricing engine must handle all of these permutations correctly.
- Real-time data synchronization: eSIM inventory, pricing, and availability change constantly across providers. The platform must keep its data fresh while avoiding unnecessary API calls that could hit rate limits or slow down the user experience.
Our Solution
We engineered a robust SaaS platform on Next.js with MySQL/MariaDB, built around a custom middleware layer that normalizes communication across all eSIM provider APIs into a single, consistent internal interface.
Multi-Provider API Middleware
The core of the platform is a middleware layer that sits between the application logic and the external eSIM provider APIs. This layer handles all the complexity of multi-provider communication: translating requests into each provider's expected format, normalizing responses into a consistent internal data model, managing authentication tokens and rate limits, and implementing retry and fallback logic for reliability.
When a new provider needs to be added, the middleware architecture means only a new adapter module is needed - the dashboards, the checkout flow, and the database schema do not need modification. This makes the platform extensible without disrupting the existing functionality.
Fully Automated Purchase Flow
The purchase-to-activation flow is entirely automated with no manual steps. When a customer selects a plan:
- The system determines the optimal provider based on region, pricing, and availability
- Payment is processed and confirmed
- The order is placed with the selected provider via their API
- The eSIM provisioning details (QR code, activation data) are retrieved
- Delivery to the customer is completed (displayed on screen, sent via email)
- The order record is created in the database with full audit trail
All of this happens in real time. The user sees their eSIM details within seconds of completing payment. Error handling is built into every step, with graceful fallback behavior if any provider encounters an issue.
Three-Dashboard Architecture
All three dashboards are built on the same Next.js codebase with role-based access control:
- User Dashboard: Purchase history, active eSIMs, usage monitoring, account management, and support access. Clean, intuitive interface designed for non-technical users who may be unfamiliar with eSIM technology.
- Admin Dashboard: Full platform management including order monitoring, customer management, provider status tracking, pricing configuration, analytics, and system health monitoring. Real-time data feeds from all provider APIs.
- Reseller Dashboard: A self-service portal where resellers manage their customers, configure their pricing margins, view sales analytics, and access their API keys for programmatic integration. Includes white-label capabilities for resellers who want to offer eSIMs under their own brand.
Technical Implementation
Next.js Full-Stack
Server-side rendering for public SEO pages, client-side rendering for dashboard interactivity. API routes handle backend logic including provider communication, payment processing, and data management.
MySQL / MariaDB
Relational database chosen for its reliability and the transactional nature of eSIM orders. Schema designed for multi-tenancy with proper indexing for dashboard query performance at scale.
API Middleware Layer
Custom adapter pattern normalizing multiple eSIM provider APIs into a consistent internal interface. Handles authentication, rate limiting, request transformation, and response normalization.
Role-Based Access Control
Secure RBAC system managing permissions across user, admin, and reseller roles. Each role sees only the data and functionality appropriate to their access level.
Real-Time Processing
Asynchronous processing pipelines for provider communication with proper error handling, retry logic, and fallback to alternative providers when primary providers are unavailable.
Reseller Infrastructure
Multi-tenant pricing engine supporting different margin structures per reseller. API key management, usage tracking, and white-label capabilities for programmatic integration.
The Results
The platform launched with full automation and has been processing eSIM orders without manual intervention:
- 100% automated order flow from purchase to eSIM delivery - zero manual processing required for any transaction, regardless of which provider fulfills the order.
- Multiple provider APIs unified behind a single, consistent interface - users see one seamless marketplace while the platform intelligently routes orders across providers.
- Sub-2-second page loads across all three dashboards, with server-side rendering for the public pages ensuring optimal SEO performance and first-visit speed.
- Reseller program operational with self-service onboarding, pricing management, and white-label capabilities - creating a scalable distribution channel.
- Provider-agnostic architecture that allows new eSIM providers to be added by creating a single adapter module without modifying the dashboard or checkout code.
- Reliable failover handling ensuring that provider outages do not impact the end-user experience when alternative providers are available for the requested region.
- Single codebase for all three dashboards reducing maintenance overhead and ensuring UI/UX consistency across the entire platform.
Key Takeaways
Middleware Is Everything
When your platform depends on multiple external APIs, the normalization layer determines your success. Investing in a robust adapter pattern pays dividends in reliability, maintainability, and extensibility.
Automation Scales, Manual Doesn't
Building for 100% automation from day one meant higher upfront engineering investment, but the platform can process unlimited orders without adding operational staff - the definition of SaaS scalability.
Unified Codebase, Multiple Interfaces
Running three dashboards on a single Next.js codebase with RBAC is dramatically more efficient than maintaining separate applications. Shared components, shared utilities, single deployment pipeline.
Frequently Asked Questions
What is eSIM Solutions and what does the platform do?
eSIM Solutions is a digital eSIM provider platform that allows users to purchase, activate, and manage eSIMs for mobile connectivity worldwide. The platform aggregates multiple eSIM API providers, handles user accounts, reseller programs, and delivers a fully automated flow from purchase to activation - with no manual intervention required.
What technology was used to build the eSIM Solutions platform?
The platform was built on Next.js with React for the frontend and server-side rendering. The backend uses MySQL/MariaDB for the database, with multiple third-party API integrations for eSIM provisioning. The architecture includes three dashboards (user, admin, and reseller) all running on a single Next.js codebase.
How many API integrations does the eSIM platform have?
The platform integrates with several different eSIM provider APIs, each with their own authentication methods, data formats, response structures, and rate limits. The middleware layer normalizes these differences so the frontend and dashboards work with a consistent internal data model regardless of which provider fulfills the order.
Is the eSIM purchase and activation process automated?
Yes - the eSIM purchase and activation flow is 100% automated from end to end. When a user selects a plan and completes payment, the platform automatically queries the appropriate provider API, provisions the eSIM, generates the QR code or activation details, and delivers them to the user. No manual processing is required at any step.
What is the reseller dashboard and how does it work?
The reseller dashboard allows third-party businesses to sell eSIMs under their own brand or as part of their service offerings. Resellers get their own management interface with pricing controls, customer management, sales analytics, and white-label capabilities. The reseller system connects to the same provider infrastructure but enforces separate pricing tiers and business rules.
Why was Next.js chosen over other frameworks for this SaaS project?
Next.js was chosen for its server-side rendering capabilities (critical for SEO on the public-facing pages), its ability to handle both static and dynamic content efficiently, and its React foundation which enables the complex interactive dashboards. The single codebase approach for all three dashboards reduces maintenance overhead and ensures consistency.
How fast does the eSIM Solutions website load?
The eSIM Solutions website achieves exceptional loading speeds with pages loading in under 2 seconds. Next.js server-side rendering, aggressive caching strategies, optimized database queries, and efficient API response handling all contribute to the performance that users expect from a SaaS platform.
How does the platform handle multiple eSIM providers?
A custom middleware layer sits between the dashboards and the external eSIM provider APIs. This layer handles provider selection logic, API authentication, request formatting, response normalization, error handling, and fallback strategies. If one provider is unavailable or does not cover a region, the system can route to an alternative provider automatically.
Need a Complex SaaS Platform Built?
Multi-API integrations, automated workflows, multi-tenant dashboards - we build the complex web applications that other agencies can't. Let's talk about your project.
Discuss Your Project