Case study

Local Ecommerce Platform with Checkout AI & Store Pickup

E-commerce · Local Marketplace · Retail Technology

Project overview

We designed a modular, scalable platform with two differentiators built as core capabilities.

Checkout AI: A customer types a plain-language request. The system extracts people, days, budget, timing and diet, ranks stores by how many needs they can cover in stock, and builds a suggested cart of real, available products with a reason for each line. A three-pass optimiser fits the budget (cheaper brands, smaller nice-to-haves, then dropping them) without silently removing essentials. Customers can refine by chat ("make it vegetarian", "under ₹500") and always confirm the final cart before paying. A deterministic rules engine is the default and fallback; an LLM provider such as Azure OpenAI plugs into the same interface and must return validated structured output. Products, prices, stock and hours always come from the database, never from the model.

Store Pickup: Customers choose a store, pick a time slot generated from platform rules, and pay online. They receive a QR code and a 4-digit code plus a live status page. Slot capacity is enforced at the database level so simultaneous bookings cannot overfill a slot. Vendors work a simple queue (new, accepted, preparing, ready) and verify hand-over by code or QR. Five wrong codes lock the pass, and a pass cannot be used twice. Vendor earnings move from pending to available only after verified hand-over.

Platform approach: One order state machine with a full audit trail covers delivery and pickup. Vendors control only price and stock. An admin-owned rules engine controls hours, ordering windows, capacity, minimums and limits. A Phase 0 audit decides whether to evolve the existing system or migrate incrementally with a strangler approach and cohort-by-cohort cut-over, so there is no big-bang rewrite and no loss of orders, customers or vendor balances.

Business problem

The client wants consumers to buy from their local market and receive it at the door, without limiting the platform to a few product categories.

Local stores have large, messy catalogues in every category, so search and onboarding are hard.

Stock, slots and money (wallets, vendor balances, refunds) must stay correct when many customers order at the same time.

Customers plan whole baskets ("groceries for a family of four for three days under ₹500"), but browsing store by store is slow.

Pickup needs reliable slots, payment and hand-over verification, and vendors need a very simple way to work their orders.

Customer, vendor, delivery and admin journeys each need their own rules, and the platform (not the vendor) must control hours, limits and capacity.

Technical approach

Backend: Python 3.12, Django 5 & Django REST Framework (modular monolith with strict module boundaries)

Database: PostgreSQL 16 with PostGIS for geo-aware store lookup; Redis for caching and queues

Search: OpenSearch for catalogue search tuned for local names and brands

AI Engine: Rules-based provider by default; Azure OpenAI (LLM) via a pluggable two-method provider interface with automatic fallback

Frontend: Cross-platform web apps built with Next.js for customer, vendor, delivery and admin roles

Deployment: Containers Azure, infrastructure as code, CI/CD with automated tests, zero-downtime releases, monitoring and alerting

Key capabilities

  • Customer web app: OTP login, addresses, service areas, store discovery, variants and add-ons, search and filters
  • Checkout AI with quantity sizing, budget optimisation, alternatives, chat refinement and hand-off to checkout
  • Store Pickup with slots, preparation time, QR / OTP verification, status tracking and cancellation with refund
  • Cart and checkout with coupons, tax and charges, delivery or pickup, and payment
  • Orders module with a single state machine and audit trail across all actors
  • Vendor web app: business profile and documents, approval, products, price and stock, orders, reports, earnings and withdrawals
  • Delivery partner app: assignment, accept / reject, pickup and OTP-confirmed delivery, history and earnings
  • Admin panel for customers, vendors, stores, orders, pickup, delivery, payments, offers, complaints and platform rules
  • Platform-controlled rules engine: hours, preparation time, order capacity and minimums
  • Offers and coupons with caps and minimum-order conditions
  • Ledger-based wallets and vendor earnings; reviews, ratings and support tickets
  • KPI dashboards, including Checkout AI and pickup metrics
  • Security by design: role-based and object-level access checks, OTP attempt limits, audited admin actions, and no card data stored

Quantified outcomes are not published for this project. Confidential client information, source code and proprietary datasets are deliberately excluded.

Keep exploring

More case studies