Skip to main content
Under NDA

SMMD OMS – Cash-on-Delivery Order Management

SMMD OMS is the order-management back office for a Saudi cash-on-delivery e-commerce operation. It pulls orders in from several sales channels, routes them through a locked agent order pool for phone confirmation, and hands them to warehouse and delivery — with telephony, ad-spend and agent analytics built in.

Engagement
Company project · NDA
My Role
Full stack engineer
Platform
Web (real-time)
Market
Saudi Arabia
Technologies used
  • NestJS
  • Next.js 15
  • MongoDB
  • Socket.IO

Built under NDA — client data and source code remain confidential, so details are intentionally limited.

SMMD order management dashboard with order status counters
265
API routes across 21 modules
30
No-answer follow-up stages
5
Real-time Socket.IO gateways

The challenge

Cash-on-delivery sellers lose money on fake, duplicate and unreachable orders. Orders arrived from Shopify, WooCommerce, Google Sheets and landing-page tools in different formats, and dozens of agents had to confirm them by phone without two agents ever working the same order.

The solution

We built a NestJS backend (21 modules, 265 routes, 31 schemas) with BullMQ workers for imports and five Socket.IO gateways, plus a Next.js 15 admin with 48 screens. Agents take orders from a shared pool with database-level locking; stale locks are released automatically every 30 minutes, and unreachable customers move through 30 no-answer stages before an order is closed.

Key features delivered

Engineered with clean code, scalable architecture and strict attention to performance.

Locked agent order pool

Each agent works one locked order at a time, so no customer is called twice; abandoned locks return to the pool automatically.

Multi-Channel Order Import

Shopify, WooCommerce, Google Sheets and landing-page integrations feed one order list, with IP and phone duplicate checks before agents spend time on a call.

Telephony & Agent Activity

An Altair PBX telephony console tracks extensions, live calls and session health, while agent activity and inactivity feed performance reports.

Warehouse, Wallet & Ad-Spend Analytics

Waybill generation and sorting, seller wallets and withdrawal requests, and ad-spend analytics that tie marketing cost to confirmed and delivered orders.

The business impact

The OMS gives the operations team one place to confirm, dispatch and measure every cash-on-delivery order.

  • No two agents ever work the same order, thanks to database-level pool locking
  • Duplicate and suspicious orders are flagged before an agent spends time on a call
  • Managers see confirmation, delivery and ad-spend numbers side by side
SMMD OMS – Cash-on-Delivery Order Management — results screen

Have a project in mind?I'd love to hear about it.

Let's talk
Quick messageReply within 24h