Skip to content
All projects
Web App

Multi-Store Grocery Delivery API

Backend for a multi-store grocery delivery service in India. Each order goes to the nearest store in range, then through packing, rider assignment, batched delivery and returns, with Razorpay payments, WhatsApp updates and live notifications for stores, riders and customers.

Client
Satya Ethnic Store
Completed
September 2026
Stack
Node.jsExpressMongoDBMongooseSocket.IORazorpayStripeJWTWhatsApp APIExcelJSPDFKitNodemailerDocker

About the project

The challenge

A grocery retailer with several branches wanted online ordering in which each order is fulfilled by the closest store, delivered by that store's riders, and visible to staff, riders and customers as it moves. The starting point was a single-store e-commerce backend with no concept of branches, riders or delivery.

What was built

That codebase was extended into a multi-store delivery API with about 198 endpoints and 21 data models.

Addresses are checked by location. When a customer saves an address, and again at checkout, a MongoDB geo query finds the nearest store inside the delivery radius set by the admin and assigns the order to it.

Online payments run through Razorpay. No order is stored until payment is confirmed: the webhook verifies Razorpay's signature, creates the order once even if the call arrives twice, records the payment and triggers notifications. Stripe and cash on delivery are also supported.

Orders follow a rule-checked path from pending to delivered, with cancel, return, refund and replacement routes and an automatic status history. Riders sign in with a WhatsApp code, complete identity checks, work in shifts and receive orders grouped into delivery batches. Branch admins see only their own store.

Stores, riders and customers get live Socket.IO events, and customers receive WhatsApp messages for login codes, order confirmation and rider assignment. A bulk importer produces a validated Excel template and stages uploads before they are published to the catalogue.

The outcome

One API covers customers, platform and branch admins, and riders, and ships as a Docker image.

Gallery

  • KidAultHub — Learning, Therapy & Wellness Platform
    Web AppFeatured

    KidAultHub — Learning, Therapy & Wellness Platform

    Online hub where families book free demos and enrol children in academic, autism-support, cognitive and wellness programs. A public site, a dashboard for parents, experts, admins and affiliates, and an API handle live Zoom classes, instalment payments and expert payouts.

    • Next.js
    • React
    • TypeScript
    • Tailwind CSS
    • +12
  • EClasess — CRM, LMS & Website Platform
    Web AppFeatured

    EClasess — CRM, LMS & Website Platform

    One platform for a tech training academy: a public website that sells courses, a CRM that captures and assigns every lead, and a learning portal with live classes, recordings, AI-generated notes and tests, instalment payments, attendance and chat.

    • React
    • Vite
    • Tailwind CSS
    • TanStack Query
    • +11
  • CaseKey — Legal Case Management & Evidence Tracking
    SaaSFeatured

    CaseKey — Legal Case Management & Evidence Tracking

    SaaS platform where law firms manage cases, evidence and witnesses in one place. Lawyers annotate PDFs, images and video, link each annotation to the facts and claims it supports, and export cited claim documents. Includes role-based access and usage-based Stripe billing.

    • React
    • Vite
    • Redux Toolkit
    • Node.js
    • +11