Back to projects

Shopify Development

Tidal eSIM - Travel eSIM Store with Automated Fulfilment

A complete travel eSIM business on Shopify: 217 destinations and 2,040 data plans synced live from the Airalo Partner API, a custom Horizon storefront, and a Cloudflare Worker that buys and delivers each eSIM within seconds of payment. It also adds live data-usage tracking, low-data emails, multi-currency pricing and affiliate codes, all within the supplier's pricing rules.

Tidal eSIM - Travel eSIM Store with Automated Fulfilment

The Problem

Tidal is a UK eSIM brand for travellers and merchant seafarers. It resells plans from Airalo, one of the largest eSIM providers, through its Partner API. Off-the-shelf reseller apps gave little control over pricing, branding or what happens after a sale. The partnership also comes with hard rules: never sell below Airalo's minimum retail price, keep prices in sync as the catalogue changes, and never buy the same eSIM twice. On top of that, customers had no way to check how much data they had left, because a partner eSIM never appears in Airalo's own app.

The Solution

I built the store as two parts that share one set of rules. A custom Shopify Horizon theme handles the shopping experience: a searchable directory of 217 destinations, an interactive globe, a plan picker that shows the price per GB, and pages written for seafarers. A Cloudflare Worker runs the business behind it. It turns every paid order into a real eSIM through the Airalo API, keeps 2,040 prices in step with the supplier every hour, emails customers when their data runs low, and powers a 'Check my data' page that reads live usage from the network.

Screenshots

Tidal Japan eSIM product page with a grid of data plans showing price and price per GB
Plan picker: every variant shows its data, validity, price and price per GB, synced from the supplier every hour.
Tidal destinations directory showing tabs, search and a grid of countries with flags and from-prices
Destination directory: 217 countries and regions with search, tabs and live from-prices.
Check my data page on a laptop and a phone, showing 500 MB left of 500 MB for a Japan eSIM
Check my data: remaining data, status and plan end date, read live from Airalo through the Worker.

Key Features

  • 217 destinations and 2,040 plans synced from the Airalo Partner API, re-checked every hour by a Worker cron
  • Paid order to delivered eSIM in seconds: Shopify webhook, Airalo order, branded QR email, order fulfilled and tagged
  • Duplicate-proof fulfilment using a Shopify metafield lock with compareDigest, per-line records and a missed-webhook sweep
  • Pricing engine that respects the supplier's minimum price, covers fees and margin, rounds up, and leaves room for affiliate codes
  • 'Check my data' page: live remaining data, plan end date and status from the network, by signed email link or order number and email
  • Low-data (75% and 90%) and expiry alerts from signed Airalo webhooks, sent once per level through Resend
  • Multi-currency storefront (GBP, USD, EUR) with Shopify Markets, plus browser-side conversion of prebuilt price text
  • Affiliate discount codes, created by a script that first checks every variant stays above the supplier's minimum with the code applied
  • Custom Horizon theme: destination directory with search and tabs, interactive globe, plan picker with price per GB, and a seafarers landing page
  • SEO groundwork: unique titles and descriptions, Product, FAQ and Breadcrumb structured data, internal linking and a WebP image pipeline

Process

  1. Mapped Airalo's catalogue onto Shopify: one product per destination and one variant per plan, with the variant SKU holding Airalo's package ID so every order says exactly what to buy.
  2. Wrote a pricing engine that never goes below Airalo's minimum retail price, adds payment fees and a profit floor, always rounds up, and leaves room for a 10% affiliate discount without breaking the floor.
  3. Built 28 custom tidal- sections on Shopify's Horizon theme with a strict brand system, an inline SVG icon set (no emoji) and SEO rules: one H1 per page, structured data, internal links and WebP images within a size budget.
  4. Built the fulfilment Worker: verified webhooks, an atomic Shopify metafield lock so retries can never double-buy, each eSIM saved before the next line is ordered, and a sweep every 10 minutes for webhooks Shopify missed.
  5. Moved catalogue sync into the Worker's cron (one small batch every minute, the full catalogue every hour), with a cap on how far a price can move in one step and automatic withdrawal of plans the supplier retires.
  6. Added after-sale features: signed low-data and expiry webhooks from Airalo sent as branded emails through Resend, and a 'Check my data' page with signed links, order-number lookup and rate limiting.
  7. Launched multi-currency with Shopify Markets, using manual exchange rates chosen so USD and EUR prices, even with a discount code applied, stay above Airalo's minimums in those currencies.

Stack

frontend

Shopify HorizonLiquidJavaScript (Web Components)CSSShopify Markets

backend

Custom Shopify appCloudflare WorkersCron TriggersNode.jsShopify Admin GraphQLWebhooks (HMAC)

integrations

Airalo Partner APIShopify PaymentsResendCloudflare Cache APIShopify CLI
Home
Blog
GitHubGitHub
LinkedInLinkedIn
MediumMedium
Contact
Theme