Ecommerce

Asthafy

Client: Asthafy

Client Asthafy
Industry Ecommerce
Duration 6 Months
Technologies
React Node.js MongoDB RESTful APIs

The Challenge

Product: Asthafy — a unified retail commerce platform serving small and mid-sized retailers worldwide, with primary focus on Bangladesh and expanding reach into Australia, Southeast Asia, and global markets.
Industry: Retail commerce technology — sitting at the intersection of ecommerce marketplaces, point-of-sale systems, FMCG distribution, and cross-border payments.
The retail world Asthafy was built to serve is deeply fragmented. SMB retailers have been stitching together three or four disconnected systems just to operate, and every pillar of their business carries real, daily friction:
Online and offline inventory live in separate worlds. A boutique owner in Dhaka selling handmade textiles would finish a busy in-store evening and discover her Shopify listing had already sold the same scarf hours ago. Reconciliation was manual, error-prone, and constant — three to four parallel systems with no shared truth.
Multi-currency selling was a hack, not a feature. Existing platforms either forced retailers into plug-ins with stale exchange rates or charged international customers in AUD without ever showing the original BDT price. There was no native price-storage model that respected both the retailer's currency and the customer's currency.
Cross-border payments were an either/or trap. Tools supported Stripe or local gateways like SSLCommerz — never both, never auto-routed. A Bangladeshi seller wanting to accept both BDT locally and international cards had to break the user experience in half.
FMCG retailers had no software built for them. Grocery, pharmacy, and modern-trade businesses needed batch tracking, expiry-date logic, multi-UOM (case-to-piece auto-conversion), and FEFO (first-expiry-first-out) decrement — features almost no SMB POS supported. A two-store grocery operation would end up rebuilding COGS manually every month.
Supplier finance was chaos. Supplier credit, cheque payments, bounced cheques, and outstanding-payment reconciliation across multiple bank accounts caused finance teams real pain — including double-counting and write-offs that ate into already-thin margins.
Shopify migration meant lock-in or expensive bridge apps. Retailers wanting to escape or even coexist with Shopify hit a wall — there was no clean two-way sync that prevented echo loops or rate-limit chaos.
Charity giving programs were performative. Where they existed, they were manually tracked, opaque, and untrustworthy. There was no automated, transparent way for a retailer to commit a percentage of every sale to a customer-chosen cause.
The pain was concrete and named — three customer personas drove the design: Rina (a Dhaka boutique owner trying to sell internationally), Daniel (an Australian multi-channel grocer drowning in stock reconciliation), and Aisha (an FMCG distributor juggling batches, UOMs, and supplier cheques).

Our Solution

Asthafy was built as a unified retail commerce platform with three pillars sharing a single backbone: Asthafy Marketplace (multi-currency ecommerce, Shopify-meets-Amazon model), Asthafy POS (full point-of-sale for physical stores), and Offerly Integration (universal product catalog and deal platform). The architectural thesis: one product, one inventory, one customer view — across online and offline.
Every major design decision flowed from that thesis:
Single MongoDB across all three apps. Marketplace, POS, and Offerly share the same database. This is what makes "sell it online, ring it in store" actually work — a sale on the POS at 9pm updates the marketplace listing instantly, with no sync layer to break. Stock reservation kicks in the moment an item enters a cart and auto-releases after 30 minutes if checkout doesn't complete.
Native multi-currency engine, not a plug-in. Prices are stored with both an original Price (the retailer's home currency, e.g., BDT) and a base Price (AUD as the system base). A Bangladeshi retailer sets her price once at 400 BDT; her local customers see 400 BDT, Australians see 4.80 AUD, Americans see 3.15 USD — all driven by real exchange rates, no spreadsheets.
Auto-routed dual payment gateways. SSLCommerz handles BDT transactions natively; Stripe handles everything else. The routing is automatic based on customer currency and locale, so the retailer never manages two checkouts.
FMCG-grade inventory logic. The POS supports multi-UOM conversion (sell a case, decrement 24 pieces automatically), batch tracking with expiry dates, and FEFO logic that routes the nearest-expiry batch to checkout first. When an ecommerce-only product gets sold via POS, a batch is auto-created — no edge case left manual.
Customer segmentation with group pricing. Retail, wholesale, and VIP tiers each get their own price visibility, layered with four promotion types: BOGO, quantity tiers, payment-method promos, and bundles.
Supplier and treasury management built in. Supplier credit and cheque payments sit in a Pending queue until cleared by the bank — nothing posts to books prematurely, eliminating double-counting. Multi-account bank and cash management with audit-trail fund transfers gives finance teams a real ledger across accounts.
Two-way Shopify sync via a dedicated bridge service. A separate service called bt-shopify-remix handles all Shopify API traffic, so the POS itself never gets rate-limited. The sync covers inventory, pricing, product fields, creates, and deletes — with a 120-second echo-loop prevention window so updates don't bounce infinitely between systems. Shopify webhooks normalize incoming prices into Asthafy's original Price schema automatically.
Automated Good Cause donations. 10% of the platform's net commission (after Stripe fees) is routed to a customer-selected charity on every sale, in every currency, fully automated. The customer sees the exact donation amount before checkout — transparency by design, not by report.
Retailer-scoped multi-tenancy. Every setting — UOMs, payment accounts, custom promos, customer groups — is isolated by retailer_id, which is why a retailer can onboard a third store in two weeks without configuration bleeding across locations.
Tech stack and delivery: Built around MongoDB as the shared data layer, Stripe and SSLCommerz as payment rails, and a Remix-based bridge service (bt-shopify-remix) for Shopify integration. Designed for global retailers with deep localization for Bangladesh — currency, payment, and compliance choices reflect both home-market and international needs. Duration: 6 months of focused development across the three-app ecosystem.

Results & Impact

Results and Impact
Boutique retailer case: International sales reached 22% of revenue within 3 months; second physical location opened on the same inventory with zero overselling incidents.
Grocery retailer case: Stock takes dropped from 8 hours to 90 minutes; cheque write-offs fell 40%; third store onboarded in 2 weeks.
Platform reach: 3 apps unified on 1 database, 3+ currencies native (BDT, AUD, USD — extensible), 2 payment gateways auto-routed, 5 customer payment methods supported.
Charity impact: 10% of net commission donated automatically on every sale, with full per-transaction transparency at checkout.
Operational guardrails: 30-minute cart stock-reservation auto-release and 120-second Shopify echo-loop prevention — preventing two of the most common failure modes in unified commerce.
Scroll