Skip to main content
MP
ARI - A Dual-Brand E-Commerce Platform for Airlia & Innila
Client WorkE-CommerceNext.jsRazorpay10 May 2026· 4 min read

ARI - A DUAL-BRAND E-COMMERCE PLATFORM FOR AIRLIA & INNILA

Building one backend to power two distinct retail brands - Airlia and Innila - with subdomain routing, GST-compliant invoicing, and a unified admin portal.

"How do you build a single e-commerce infrastructure for two distinct consumer brands without duplicating codebases or splitting inventory management?"

In a client engagement through Taskdrift, I architected and developed the full-stack digital platform for ARI, powering two retail lines: Airlia (cleaning, fabric care, and hygiene products) and Innila (traditional foods, vermicelli, and health flours).


The Dual-Brand Challenge

Operating two independent consumer brands usually requires running separate web apps, database instances, and payment gateways. ARI required a unified codebase that could:

  1. Serve distinct brand identities, color palettes, and product catalogs dynamically based on incoming subdomains.
  2. Share a single consolidated database for inventory, admin operations, and order processing.
  3. Handle Indian statutory tax requirements including automated GST calculations.

Architectural Highlights

1. Middleware Subdomain Routing

Next.js 14 edge middleware inspects incoming host headers (e.g. airlia.taskdrift.in vs innila.taskdrift.in). The app injects appropriate brand tokens, metadata, navigation, and product filters dynamically without client-side page reloads.

2. Automated GST Invoice Engine

To satisfy Indian tax compliance, the server backend calculates state-aware tax breakdowns:

  • Intra-State Orders: Split evenly into CGST (9%) and SGST (9%).
  • Inter-State Orders: Applied as IGST (18%). Custom PDF invoice receipts are generated upon successful payment webhooks and emailed automatically via Resend.

3. Razorpay Payment Security & HMAC Validation

Payment integration utilizes Razorpay with strict server-side HMAC signature verification on incoming webhooks. Order states transition only after cryptographic signature checks succeed, preventing spoofed order completions.


Platform Status & Deliverables

Development on the engineering side is complete, featuring NextAuth role-gated admin dashboards for stock control and order management.

Explore the complete feature overview on the ARI Project Page.