Toki set out to eliminate fragmented e-commerce loyalty tech stacks by combining rewards, paid memberships, referrals, and digital wallet passes into a single platform for Shopify merchants. Elementica engineered the underlying backend architecture — building dynamic Shopify API and webhook pipelines, a centralized real-time points ledger, and native Apple/Google Wallet integrations that sync online and in-store POS transactions seamlessly.
E-commerce/Loyalty/Shopify/SaaS
Real-time POS sync — a unified ledger merging in-store physical checkouts with online e-commerce transactions
Native wallet passes — real-time Apple & Google Wallet updates for instant tier tracking and pass scans
Client context
D2C brands on Shopify frequently assemble their loyalty programs from disconnected apps — using one tool for points, another for paid VIP memberships, a third for referral links, and a fourth for digital passes. This fragmented stack results in high monthly subscription costs, mismatched customer data, and a clunky experience for shoppers who move between a brand's online store and physical retail locations.
Toki set out to replace this chaos with a unified, modular loyalty platform that Shopify merchants can tailor to their exact brand strategy without writing code or managing separate app integrations.
The challenge
Engineering an all-in-one e-commerce loyalty engine required solving complex synchronization and architectural hurdles:
- Omnichannel Data Reconciliation: Ensuring that a purchase made at a physical Shopify POS terminal in Miami instantly updates a customer's points balance on their mobile phone and online web profile without race conditions or accounting delays.
- Modular Infrastructure: Building a system where merchants can enable or disable independent features (e.g., running paid memberships without referrals) without dragging along unnecessary database queries or frontend code bloat.
Elementica's role
Elementica acted as the primary platform engineering partner. We designed the core integration layer with Shopify, engineered the high-throughput points ledger, built the real-time webhook ingestion engine, and developed the native Apple and Google Wallet pass generation system.
The solution
Unified Real-Time Points Ledger & POS Sync
We built an event-driven ledger powered by Node.js and Redis. By subscribing to Shopify's real-time webhooks across online checkout events and physical Shopify POS transactions, every purchase is processed instantly. Points are calculated, mapped against current tier multipliers, and credited to the user's unified account in real time.
Native Mobile Wallet Pass Engine
To bring loyalty tracking off the web and into the physical world, we integrated Apple PassKit and Google Wallet APIs. Customers save a dynamic pass to their mobile device that displays current point balances, active discount codes, and membership tiers. When scanned at a physical POS, the pass identifies the customer and applies benefits instantly.
Decoupled Modular Architecture for Merchants
We structured Toki into four independent micro-modules: Rewards, Paid Memberships, Referrals & Affiliates, and Digital Wallet Passes. Merchants configure only the modules they need through the Shopify admin panel, keeping payloads light while giving growing brands room to scale their loyalty strategy over time.
Engineering decisions that mattered
Modular micro-architecture over a monolithic loyalty engine
Designing the backend around decoupled module boundaries allowed merchants to enable features incrementally. If a brand only wants a referral system, the platform isolates database execution to referral routes, preventing the performance drag associated with heavy monolithic loyalty software.
Idempotent webhook queueing for high-volume store events
During major sales events (like Black Friday), webhook traffic from Shopify spikes dramatically. We implemented AWS SQS queues paired with strict transaction idempotency hashing. This ensures that duplicate webhooks or network retries never result in double-credited points or duplicate reward redemptions.
Results
Toki launched on the Shopify App Store and rapidly earned a 5.0-star rating. Merchants praise the platform for replacing multiple expensive single-purpose apps with one cohesive system that bridges physical in-store retail with online e-commerce.
Product evolution
Toki continues to expand its platform capabilities, introducing community engagement modules, custom gamified challenges, and automated badge progression to deepen customer retention.
