Enter access PIN to continue
Incorrect PIN. Try again.
PDF
Type to search...
Confidential — Enterprise Architecture Document

Shipment

The World's Most Advanced Logistics Operating System — Multi-Country, Multi-Currency, AI-Powered, Built to Dominate Global Delivery Infrastructure

A comprehensive enterprise architecture document covering market positioning, multi-country platform design, AI-powered core engines, real-time QR chain-of-custody tracking, multi-warehouse orchestration, cross-border operations, and the technology blueprint for building the most technologically advanced shipment and logistics operating system on the planet — designed from day one to compete with and surpass DHL, FedEx, Amazon Logistics, and Noon at global scale.

Part One

Platform & Market

Market analysis, product vision, stakeholder mapping, user journeys, QR chain-of-custody system, multi-warehouse management, and the complete enterprise module landscape.

36
Sections
9
Categories
4
Phases
01

Executive Summary

Vision

Shipment is the operating system for physical delivery — the layer between "someone bought something" and "they have it in their hands." Every order, from every channel, through every fleet, in every country — orchestrated through one intelligent platform.

The Problem

The logistics industry — particularly in MENA and emerging markets — runs on fragmented, rigid, and opaque systems. Merchants use one courier for same-day, another for next-day, a third for intercity. Each has its own dashboard, its own tracking page, its own rate card, its own API (if any). Marketplace sellers juggle fulfillment rules across Noon, Amazon, Wadi, and their own stores. Drivers are treated as disposable resources. Receivers have zero control. Dispatchers work in spreadsheets. Finance teams reconcile COD in Excel.

No single system exists that acts as the operating system for the entire shipment lifecycle — from the moment a buyer clicks "Place Order" to the moment cash is reconciled and the merchant is paid.

What Makes This Different

Traditional CourierShipment
Fixed rate cards, manual quotesDynamic pricing engine with real-time cost modeling
Manual dispatch via phone/WhatsAppAI-powered dispatch with driver suitability scoring
"Your package is on the way"Real-time map tracking, receiver controls, time-window promises
One-size-fits-all vehiclesAutomatic vehicle selection based on cubic volume, fragility, weight
COD = black box until settlementReal-time COD tracking with per-delivery reconciliation
APIs as afterthoughtAPI-first architecture; every feature is an API
Returns are a nightmareReverse logistics as a first-class workflow
Drivers are anonymousDriver profiles, ratings, specializations, earnings transparency

Scale Design Point — Enterprise From Day One

20+
Countries supported at launch architecture
Multi-Currency
AED, SAR, KWD, BHD, OMR, QAR, EGP, USD, EUR
1M+/day
Shipments — architected for from day one
QR Chain
Full chain-of-custody QR tracking at every handoff
Not an MVP — An Enterprise Weapon

This is not a startup experiment. Shipment is built as an enterprise-grade, multi-country, multi-warehouse logistics operating system from day one. Every feature — multi-currency settlement, warehouse management, cross-border customs, QR chain-of-custody, AI dispatch, computer vision POD verification — is core, not "Phase 2." We are building the system that makes DHL, Aramex, and Noon's logistics look outdated.

Revenue Model (Hybrid)

Revenue StreamDescription
Per-shipment fee10 AED flat fee per delivery or return — simple, competitive, market-leading
COD handling fee1-3% of COD amount collected
Subscription tiersMonthly plans for merchants (Free / Growth / Enterprise)
API usageHigh-volume API consumers pay per-call beyond free tier
Marketplace fulfillmentWadi merchants pay fulfillment fees (pick, pack, ship)
Float incomeInterest on COD float between collection and settlement
White-label licensingCourier companies license the platform under their brand
02

Market Gap & Opportunity

The MENA Logistics Landscape

The MENA eCommerce market is projected to exceed $50B by 2027. Yet logistics infrastructure remains the #1 bottleneck. Address chaos, COD dominance (50-70% of orders), fragmented last-mile, driver churn, and no unified platform create massive opportunity.

$50B+
MENA eCommerce by 2027
60-70%
Orders are COD in MENA
~30%
First delivery attempts fail
$18-29B
Total Addressable Market

Competitive Landscape

PlayerStrengthsFatal Weaknesses
AramexBrand, network, cross-borderLegacy tech, terrible tracking UX, slow API, rigid pricing
SMSASaudi coverage, gov contractsNo marketplace integration, no real-time tracking
Noon logisticsIntegrated with marketplaceCaptive — only serves Noon, not a platform
Amazon logisticsScale, tech excellenceCaptive — only serves Amazon
Shippo / ShipStationAggregation, multi-carrierLabel printing only — no fleet, no dispatch, no driver app
Onfleet / BringgLast-mile dispatchNo COD, no marketplace model, no rate engine, US/EU focused
The Gap

Nobody has built the Stripe of logistics — a platform that handles the entire shipment lifecycle end-to-end, works for ANY merchant, ANY marketplace, ANY fleet, is API-first, handles MENA realities (COD, addresses, multi-language), and scales from 10 to 1M+ shipments/day.

03

Problems with Existing Logistics Systems

Merchant Pain Points

💻

No Single Pane of Glass

Merchants managing 3-5 couriers have 3-5 dashboards, 3-5 logins, 3-5 rate cards, 3-5 tracking pages. No unified view.

💰

Opaque Pricing

"We'll quote you" is the standard. No real-time pricing. Surcharges appear on invoices weeks later.

💵

COD Black Hole

When does the money arrive? Which orders were collected? Which driver has the cash? Most systems cannot answer in real-time.

🔮

No Delivery Intelligence

No courier gives a probabilistic answer to "When will my shipment arrive?" Just "1-3 business days."

Driver Pain Points

💲

Opaque Earnings

Drivers don't know how much they'll earn before accepting. Commission structures are complex and hidden.

🛠

No Route Optimization

Drivers with 20 packages get a list, not an optimized route. They use personal judgment and Waze separately.

Receiver Pain Points

🚫

No Control

Cannot reschedule, redirect, choose a time window, or communicate with the driver until they're already at the door.

🔍

Tracking is Useless

"In transit" for 3 days. No map, no ETA, no updates. The tracking page is a static list of statuses.

Systemic Industry Problems

Architecture Debt

Most courier systems were built as monoliths in 2005-2015. They can't handle real-time events, webhooks, or concurrent operations at scale. No multi-tenancy. No intelligence layer. Mobile-last design. No event streaming.

04

Product Vision & Principles

"Shipment is the operating system for physical delivery — the layer between 'someone bought something' and 'they have it in their hands.'"

10 Design Principles

1

Platform First, Product Second

Every feature must be accessible via API. Our own dashboards are just consumers of our own API.

2

Intelligence by Default

The system must always know more than the human operator. Suggest, predict, warn, auto-resolve.

3

Multi-Everything by Design

Multi-tenant, multi-country, multi-currency, multi-language, multi-branch, multi-fleet — from day one.

4

Driver = Partner

Drivers are the physical execution layer. Every decision must make their job easier and more rewarding.

5

Receiver = First-Class User

The receiver is not a passive endpoint. They should have control, visibility, and options.

6

Real-Time or Nothing

Everything — tracking, dispatch, status, alerts, COD — must be real-time. 2-second propagation.

7

COD as Core Competency

In MENA, COD is the default. The system must treat cash flow with the same rigor as shipment flow.

8

Fail Gracefully, Recover Automatically

Automated recovery, retry logic, and graceful degradation for every failure mode.

9

Build for the Last Mile of the Last Mile

The hardest deliveries are where competitors fail. We design for these first.

10

Data is the Moat

Every shipment generates data. Over time, dispatch gets smarter, pricing sharper, SLA predictions more accurate. This compounds.

05

Full Stakeholder Map

Every actor in the logistics ecosystem has a defined role, interface, and set of needs within the Shipment platform.

StakeholderRolePrimary InterfaceKey Needs
Merchant / ShipperCreates shipments, tracks ordersWeb Dashboard, APIReliability, pricing transparency, fast COD settlement
Marketplace (Wadi)Bulk creation, multi-vendor fulfillmentAPI, Admin ConsoleSplit shipments, seller-level tracking, SLA enforcement
DriverPicks up, delivers, collects CODMobile AppClear instructions, fair earnings, optimized routes
Fleet PartnerProvides drivers and vehiclesFleet PortalDriver management, earnings, SLA compliance
DispatcherMonitors ops, handles exceptionsDispatch ConsoleReal-time visibility, alerts, bulk operations
Branch OperatorHub operations, sortingBranch ConsoleScan workflows, inventory, transfers
Receiver / CustomerReceives deliveriesTracking Page, SMSControl, visibility, easy returns
Finance TeamCOD reconciliation, invoicingFinance ConsoleReal-time cash tracking, automated reconciliation
Support TeamHandles escalations, disputesSupport ConsoleFull timeline, communication tools, resolution workflows

Permission Model

RBAC Design

Permissions are additive — roles can be combined. Every role is scoped to a tenant and optionally to a branch. API keys inherit the permissions of the role they're created under. All permission checks happen at the API gateway level.

Merchant Onboarding Flow

Self-Service Signup
Email, business name, trade license upload
Document Verification
Trade license, TRN, bank details (automated + manual review)
Rate Card Assignment
Based on volume tier, category, service levels
Integration Setup
API keys generated, webhook configured, plugin installed
Test Shipment
Guided first shipment with dummy data
Live
Production API access, full dashboard
White-Glove Enterprise Onboarding

For enterprise merchants (1000+ shipments/month): dedicated account manager, custom rate negotiation, technical integration support, data migration from existing courier (Aramex/SMSA/DHL historical data import via CSV), branded tracking page setup, and custom webhook configuration.

Data Migration Strategy

Merchants switching from Aramex, SMSA, DHL, or other couriers can import historical data:

CSV Import
Bulk import historical shipments, addresses, rate cards
Address Book
Import receiver addresses from existing courier exports
API Mirror
Run parallel with old courier during transition period
Zero Downtime
Gradual migration: 10% → 50% → 100% of volume
06

Detailed User Journeys

Merchant: First Shipment

Step 1: Shipment Request
Receiver Details
Name, phone, address/coordinates
Package Details
Weight, dimensions, item type
Service Level
Same-day, next-day, scheduled
Step 2: System Intelligence (< 500ms)
Address Validation
Geocode, verify, flag risk
Vehicle Selection
Based on volume, weight, fragility
Price Calculation
Rate card + surcharges + COD fee
SLA Prediction
"2-4 PM, 87% confidence"
Step 3: Confirmation & Dispatch
AWB Generated
Unique tracking number
Label Created
PDF + ZPL thermal
Driver Assigned
Auto-dispatch via DSS

Driver: Typical Delivery Day

🏃

Start Shift

Report location, receive optimized delivery queue, accept delivery batch.

📦

Pickup

Navigate to merchant, scan barcode, verify package count, confirm pickup.

🚚

Deliver

Navigate to receiver, hand over package, collect COD if applicable, capture POD.

💰

End Shift

View daily earnings summary, deposit COD at branch, review performance.

Receiver: Tracking Experience

Receiver Touchpoints

SMS on creationProactive tracking linkLive map with ETA"Driver 5 min away" alertDelivery confirmation with PODRating widgetOne-tap return if needed

Finance: Daily COD Reconciliation

Driver Collects COD
Real-time ledger updated
Driver Deposits at Branch
Operator scans & confirms
System Reconciles
Collected vs deposited
Settlement to Merchant
Bank transfer confirmed
07

Product Modules & Capabilities

The platform is organized into four module families: Core Platform, Operations, Financial, and Intelligence.

Shipment Management — All at Launch

CapabilityStatus
Single + bulk shipment creation (API, dashboard, CSV, QR-initiated)Core
AWB + QR code generation (every package gets unique QR)Core
Full lifecycle status tracking with QR scan at every handoffCore
Multi-piece + split shipmentsCore
Cross-border shipments with customs documentationCore
Multi-warehouse routing & inventory orchestrationCore
Scheduled, recurring, and template-based shipmentsCore

QR Chain-of-Custody System

Every Touch = A Scan

Like Noon but more advanced. Every package gets a unique QR code at creation. At every handoff point — seller packs → driver picks up → hub inbound → sorting → transfer → hub outbound → delivery driver → receiver — the QR is scanned. This creates an immutable chain-of-custody with GPS coordinates, timestamp, actor ID, and photo evidence at each scan. Lost package? Check the chain. Damaged? We know exactly which handoff caused it.

QR Scan Chain
Seller Scans
Packs & labels package
Pickup Driver Scans
GPS + timestamp + photo
Hub Inbound Scan
Automated sorting trigger
Transfer Scan
Intercity manifest verify
Delivery Driver Scans
GPS + confirms possession
Receiver Scans
Confirms receipt (optional)

Dispatch Engine — AI-Powered

CapabilityStatus
AI auto-dispatch with Driver Suitability Score (DSS)Core
Manual dispatch override for dispatchersCore
Real-time driver tracking (WebSocket + GPS)Core
Batch dispatch with VRP solver (Google OR-Tools)Core
Zone-based dispatch with geo-fencingCore
Predictive pre-positioning (ML demand forecasting)Core
Cross-fleet dispatch (partner fleet integration)Core

Financial Module — Multi-Currency, Multi-Country

CapabilityStatus
COD collection tracking with real-time driver cash balanceCore
Multi-currency settlements (AED, SAR, KWD, BHD, OMR, QAR, USD, EUR)Core
Automated merchant invoicing with per-shipment line itemsCore
Dynamic rate cards with A/B testingCore
Real-time reconciliation engine with exception queueCore
Cross-border duty/tax estimation & FX rate lockingCore
Driver payroll automation with multi-country tax complianceCore

Warehouse Management System (WMS)

CapabilityStatus
Multi-warehouse inventory tracking across countriesCore
QR-based pick, pack, and label workflowsCore
Bin/shelf location management with barcode mappingCore
Wave picking & batch picking optimizationCore
Returns processing & quality inspection workflowsCore
Cross-warehouse transfer managementCore
Real-time inventory dashboard with aging alertsCore
Part Two

Architecture & Engines

System architecture, tech stack decisions, event-driven design, data models, and the core algorithmic engines that power intelligent dispatch, pricing, SLA prediction, and route optimization.

08

Recommended Architecture

Cloud-native, event-driven microservices architecture deployed on DigitalOcean Kubernetes (DOKS). Each service owns its data and communicates via events and APIs.

Client Layer
Web Apps
React + Next.js
Mobile Apps
React Native
External APIs
REST + GraphQL
Edge Layer
CDN
DigitalOcean Spaces CDN
API Gateway
Kong on DOKS
Auth
JWT + API Keys
Core Services
Shipment
CRUD, status, labels
Dispatch
DSS, assignment
Pricing
Rate cards, quotes
Tracking
Real-time, ETA
Data Layer
PostgreSQL + PostGIS
Primary datastore
Redis
Cache, real-time, pub/sub
OpenSearch
Full-text search
DigitalOcean Spaces
Files, POD photos
Enterprise From Day One

Launch config: Multi-region DOKS (UAE primary, Saudi DR), PostgreSQL with read replicas + PostGIS, Redis Cluster (6 nodes), Apache Kafka (3-broker), multi-AZ deployment. No single points of failure. Auto-scaling from 100 to 100,000+ pods. Every service runs minimum 3 replicas. Database failover is automatic. This is not "scale later" — it's "scale now."

09

Recommended Tech Stack

LayerTechnologyRationale
BackendNode.js (NestJS)Fast dev, TypeScript, enterprise patterns, excellent for event-driven
Primary DBPostgreSQL 16JSONB, PostGIS for geo, RLS for multi-tenancy
CacheRedis 7 (Cluster)Sub-ms reads, pub/sub for tracking, sorted sets for dispatch queue
Event StreamingRedis Streams (included in Redis)Built into Redis we already pay for. Handles inter-service events at our volume. Upgrade to Kafka when hitting 50K+ deliveries/day.
AI/ML RuntimeTensorFlow Lite (on-device) + Claude API (LLM) + LightGBM (server)Edge AI on driver phones, LLM chatbot for customer support, ML models for ETA/demand/fraud
Computer VisionTensorFlow Lite (MobileNet)On-device POD verification, damage detection, QR scanning. No cloud round-trip needed.
MobileReact NativeSingle codebase iOS+Android, large ecosystem, code sharing with web
Web FrontendReact + Next.jsSSR for tracking pages, rich ecosystem, TypeScript
Maps & LogisticsHERE Maps (single provider)Geocoding, routing, tour planning, geofencing, fleet tracking, traffic ETA. Best logistics features. 10x cheaper than Google. ~800 AED/month.
Map DisplayOpenStreetMap + Leaflet (free)Tracking page and dispatch console. Zero per-load charges. Driver uses Google Maps/Waze free app for navigation.
WhatsApp API360dialog (official Meta BSP)Zero markup on Meta rates. $5/month platform fee. WhatsApp buttons + keyword bot + Claude Haiku fallback for complex queries.
PaymentsHyperPay + StripeHyperPay for MENA (MADA, Apple Pay), Stripe for international
CloudDigitalOceanSimpler, cost-effective; DOKS, managed PostgreSQL, managed Redis, Spaces
MonitoringDigitalOcean built-in + custom dashboardDO monitoring for infrastructure. Custom admin dashboard for business metrics. Zero extra cost.
CI/CDGitHub ActionsIntegrated with code, good ecosystem
Maps Cost Strategy — HERE Maps, 10x Cheaper Than Google

HERE Maps as single provider for geocoding, routing, tour planning, geofencing, fleet tracking, and traffic ETA. Cost: ~800 AED/month at launch (Google would be $7,500+). Includes logistics-specific features (vehicle routing, multi-stop optimization) that directly increase deliveries per driver. Driver navigation via free Google Maps/Waze app. Tracking page maps via free OpenStreetMap + Leaflet.

10

Event-Driven Architecture

All state changes produce domain events. Services react to events, enabling loose coupling, audit trail, and easy addition of new consumers.

Core Event Catalog

EventProducerKey Consumers
shipment.createdShipment ServiceDispatch, Pricing, Notification, Analytics
shipment.assignedDispatch ServiceTracking, Notification, Driver App
shipment.picked_upDriver AppTracking, Notification, Webhook
shipment.deliveredDriver AppCOD, Notification, Analytics, Webhook
shipment.delivery_failedDriver AppDispatch, Notification, Webhook
driver.location_updatedDriver AppTracking, Dispatch, Geofencing
cod.collectedCOD ServiceFinance, Driver Wallet, Reconciliation
settlement.completedSettlement ServiceNotification, Merchant Dashboard
Sync vs Async

Synchronous (HTTP): Pricing calculation (merchant needs price immediately), driver availability query. Asynchronous (Event): Dispatch assignment, webhook delivery, COD recording, POD upload, analytics.

11

Canonical Data Model

Core entities with multi-tenancy built into every record via tenant_id and PostgreSQL Row-Level Security.

Core Entities

Tenant
Platform, marketplace, merchant, courier, 3PL
Shipment
AWB, addresses, packages, status, pricing, POD
Package
Barcode, dimensions, weight, item type, handling
Driver
Profile, vehicle, zones, specializations, ratings
Address
Geocoded, confidence scored, Makani, delivery history
GeoZone
PostGIS polygons, pricing multipliers, service config
RateCard
Weight tiers, distance rates, surcharges, per-merchant
CODRecord
Immutable ledger: collected → deposited → reconciled → settled

Shipment Status State Machine

Lifecycle
CREATED
PENDING_PICKUP
DRIVER_ASSIGNED
PICKED_UP
IN_TRANSIT
DELIVERED
Failure Path
DELIVERY_FAILED
RETURNED_TO_HUB
RETURNED_TO_MERCHANT
12

Dispatch Engine Design

Philosophy

Traditional dispatch: "Find the nearest available driver." Shipment dispatch: "Find the driver who maximizes delivery success probability while minimizing cost and ensuring fairness."

Driver Suitability Score (DSS)

DSS = (w1 × ProximityScore)
    + (w2 × VehicleMatchScore)
    + (w3 × CapacityScore)
    + (w4 × PerformanceScore)
    + (w5 × FairnessScore)
    + (w6 × SpecializationScore)
    + (w7 × ZoneAffinityScore)
    + (w8 × CODCapacityScore)
    + (w9 × TimeEfficiencyScore)
    − (Penalties)

Default Weights

WeightFactorValueAdjustable By
w1Proximity0.25Tenant settings
w2Vehicle Match0.20System (hard constraint)
w3Capacity0.10Tenant settings
w4Performance0.15Tenant settings
w5Fairness0.10Tenant settings
w6Specialization0.08System
w7Zone Affinity0.07Tenant settings
w8COD CapacityHard constraintSystem
w9Time Efficiency0.05Tenant settings

Dispatch Edge Cases

No Driver in Zone

Expand radius progressively: 5km → 10km → 15km → broadcast to all nearby drivers.

All Drivers at COD Capacity

Alert dispatcher; option to send non-COD driver + redirect payment to online.

Vehicle Breakdown Mid-Route

Auto-reassign remaining shipments to nearest available driver.

100 Shipments Simultaneously

Batch dispatch: optimize collectively using VRP solver, not individually.

13

Vehicle Recommendation Engine

Automatic vehicle selection based on multi-dimensional analysis: cubic volume, fragility, temperature needs, quantity, item type, route type, and business rules.

Vehicle TypeCodeMax WeightMax VolumeUse CasesHourly Cost
MotorcycleMOTO10 kg30,000 cm³Documents, small parcels, food, instant25 AED
Compact CarCAR_S30 kg200,000 cm³Medium parcels, multi-stop35 AED
Cargo Van (Small)VAN_S500 kg3M cm³Furniture, appliances, bulk70 AED
Refrigerated VanVAN_R500 kg3M cm³Food, pharma, temp-sensitive120 AED
Box TruckTRUCK_B3,000 kg20M cm³Hub transfers, bulk fulfillment150 AED
14

Pricing / Rate / Surcharge Engine

Dynamic, transparent, and configurable per tenant. Supports static rate cards, dynamic pricing, and hybrid models.

ShippingCharge = MAX(minimum, MIN(cap,
  (BaseRate + DistanceCharge + WeightCharge + CODFee + Surcharges + ZoneAdj)
  × TimeMultiplier × DynamicPricingMultiplier × (1 - MerchantDiscount)
)) × (1 + TaxRate)

Surcharge Types

SurchargeConditionTypical Amount
Fuel surchargeAlways5-15% of base
Fragile handlingis_fragile5-10 AED
Temperature-controlledis_temperature_sensitive15-30 AED
COD feepayment = COD2.5% of COD amount
Instant deliveryservice = INSTANT50-100% premium
Remote areazone.difficulty > 410-25 AED
15

SLA Prediction Engine

Not "1-3 business days." We produce specific, probabilistic delivery windows: "Delivery between 2:00 PM - 4:00 PM today, 87% confidence." This powers the delivery promise shown to receivers and SLA compliance tracking.

Service Levels

INSTANT
30-60 min · 5x base price
MINUTES
60-120 min · 3x base price
SAME_DAY
End of day · 2x base price
NEXT_DAY
By 6 PM next day · 1x base
SCHEDULED
2-hour window · 1.5x base
ECONOMY
3-5 days · 0.7x base

SLA Prediction Model

PredictedDeliveryTime = CurrentTime + PickupWaitTime + PickupProcessingTime
  + TransitTime + HubProcessingTime + LastMileDeliveryTime + BufferTime

ConfidenceInterval = f(historical_variance, address_quality, time_of_day, weather, Ramadan)

SLA Risk Score (Real-Time)

Score RangeStatusAction
0.0 - 0.2GREENOn track. No action.
0.2 - 0.5YELLOWAt risk. Alert dispatcher dashboard.
0.5 - 0.8ORANGELikely miss. Auto-suggest reassignment. Notify merchant.
0.8 - 1.0REDWill miss. Auto-attempt reassignment. Update receiver ETA. SLA credit triggered.
Money-Back SLA Guarantee

When confidence is >90%, we offer: "Delivered by [time] or shipping is free." No courier in MENA offers this. Cost: ~3-5% of revenue if we hit 95%+ on-time rate. Value: massive trust signal that drives merchant acquisition.

16

Address Intelligence & Location Verification

Get the driver to the exact delivery point with < 50m accuracy, on the first attempt, every time. This is where most competitors fail in MENA.

Address Resolution Pipeline

Raw Address Input
Text, Makani number, or pin drop
Geocoding
HERE Maps API
Confidence Scoring
0-1 based on completeness + history
Zone Assignment
PostGIS polygon lookup

Address Enrichment Layers

Layer 1: Input-Time

Autocomplete suggestions (HERE Autosuggest), Makani number resolution (free UAE API), map pin drop, Plus Codes acceptance.

Layer 2: Intelligence

Address clustering (group deliveries within 50m). Driver-confirmed locations (GPS at delivery = ground truth). Building database built over time.

Layer 3: Confidence Scoring

geocoding_confidence × 0.3 + completeness × 0.2 + historical_success × 0.3 + pin_accuracy × 0.2. Score < 0.7 = flag for verification before dispatch.

Layer 4: Self-Healing Database

After every successful delivery, actual GPS vs stored coordinates compared. Drift > 100m = auto-update. After 100K deliveries = 50K+ verified addresses. Impossible to replicate.

Makani Integration (UAE)

Makani is UAE's official addressing system. Every building has a unique 10-digit number. We accept Makani as input, resolve to coordinates via free Makani API, cross-reference with commercial geocoding. For Dubai, this is free and more accurate than any commercial geocoder.

17

Route Optimization & Batching

Four optimization layers: single route, multi-stop TSP, batch VRP, and hub-spoke network routing. Instant delivery gets dedicated, direct assignment with pre-positioned drivers.

Optimization Layers
Layer 1
Single route: A → B
Layer 2
Multi-stop TSP (10-100 stops)
Layer 3
Batch VRP (50+ shipments)
Layer 4
Hub-spoke network
Part Three

Operations & Integrations

Driver strategy, receiver experience, failed delivery handling, reverse logistics, multi-branch operations, marketplace integration, and channel connectors for WooCommerce, Shopify, and the public API.

18

Driver Fairness & Earnings Strategy

Own-fleet model: drivers are employees or long-term contractors, not anonymous gig workers. Compensation = Base Salary + Per-Delivery Commission + Performance Bonus + Tips (100% pass-through).

3-4K AED
Motorcycle Driver Base Salary
5-8 AED
Per Standard Delivery
1,500 AED
Max Monthly Performance Bonus
100%
Tips Go to Driver

Driver Onboarding Flow

Application
Online form + document upload
Background Check
Criminal record, license verification
Training
App training, QR scanning, COD handling, POD capture
Device Provisioning
Phone setup, app install, biometric registration
Probation (30 days)
Monitored performance, enhanced oversight
Active Driver
Full access, bonus-eligible

Fairness Mechanisms

Equitable Distribution

No driver gets <60% or >140% of average daily deliveries. Premium deliveries distributed across all drivers. Fairness index tracked daily (target: StdDev/Mean < 0.3).

Zone Rotation

Drivers rotate through zones weekly. No permanent assignment to "easy" or "hard" zones. Specialized zones (cold-chain) assigned to qualified drivers only.

Earnings Transparency

Real-time earnings in app. Per-delivery breakdown. Weekly projection. Monthly bonus progress: "You're at 94% success — 1% more unlocks 500 AED bonus."

Anti-Gaming Protections

Cherry-picking detection (3+ rejections = temp queue removal). Fake delivery prevention (GPS + QR + photo CV). COD verification via receiver WhatsApp confirmation.

IoT & Hardware Integration

2026 Hardware Stack

GPS trackers on all vehicles — real-time location even if driver phone is dead. Temperature sensors in refrigerated vans — continuous cold-chain monitoring with alerts if temp exceeds range. Smart scales at warehouses — auto-weigh packages, verify declared weight, flag discrepancies. Dash cams — incident recording, driver safety. Smart lockers — QR-authenticated pickup, 24/7 availability, no staff needed.

19

Receiver Experience Strategy

The receiver is a first-class user with agency, control, and delight. A branded, mobile-first tracking page (no app install required) serves as their primary interface.

Tracking Page Performance

First Contentful Paint: < 1s. Map Load: < 1.5s. Real-time Update Latency: < 2s. Lighthouse Score: > 95. No app install required. Works on any browser, any device.

Tracking Page Features

🗺

Live Map with ETA Countdown

Real-time driver location on interactive map. Updates every 5 seconds when out for delivery. ETA countdown narrows as driver approaches. Pulsing circle animation when driver is < 5 min away.

📅

Reschedule & Redirect

Receiver can reschedule delivery to another day/time, redirect to a different address (same zone), or authorize safe drop — all from the tracking page, up to 30 min before driver arrives.

💳

Payment Flexibility

Switch from COD to online payment directly on tracking page (card, Apple Pay, STC Pay). "Pay now and skip the cash at the door." Incentive: merchant-funded 5% discount for online switch.

💬

Driver Communication

Masked phone call (privacy-preserving — neither sees real number). In-page chat with pre-built quick messages. Receiver can share live GPS location with driver for hard-to-find addresses.

🌟

Rating & Feedback

Post-delivery: 1-5 star rating on professionalism, package handling, timeliness. Optional text feedback. Tip option (5/10/20 AED, 100% to driver). Shareable delivery summary card.

🔄

One-Tap Return

Within merchant return window: one tap to initiate return. Select reason, upload photo evidence, schedule pickup. Full return tracking on same page.

Receiver Communication Flow

TriggerChannelMessage
Shipment createdWhatsApp"Your order from [Merchant] is being prepared. Track: [link]"
Out for deliveryWhatsApp"Your package is out for delivery! ETA: [time]. Track: [link]"
5 min awayWhatsApp"[Driver] is 5 minutes away with your package"
DeliveredWhatsApp"Delivered! View proof: [link]. Not happy? Start a return: [link]"
Delivery failedWhatsApp"We missed you! Reschedule: [link]. Reply with preferred time."
Return picked upWhatsApp"Return picked up. Refund in [X] days."

Contactless & Smart Delivery Options

Safe Drop
Leave at door + photo proof. Receiver authorizes via tracking page.
Neighbor
Deliver to specified neighbor. Both parties notified.
Smart Locker
Redirect to nearest smart locker. QR unlock code sent via WhatsApp.
Concierge
Leave with building security/reception. Receiver name verified.
20

Failed Delivery Handling & Retry Logic

Target: >95% first-attempt success rate. Failed deliveries are the #1 cost driver in last-mile logistics. We attack this with 3-layer prevention and AI-powered retry scheduling.

Cost of Failure

Every failed attempt costs 15-25 AED (driver time, fuel, opportunity cost) with zero revenue. At 50K shipments/day, reducing failure from 20% to 5% saves ~$3.5M/year.

3-Layer Prevention System

Layer 1: At Shipment Creation
Address Quality Check
Confidence > 0.7 or flag
Phone Verification
HLR lookup — is number active?
Receiver History
Past failures at this address?
COD Risk Flag
First-time + high-value = verify
Layer 2: Pre-Dispatch (Day Before)
WhatsApp Confirmation
"Will you be home tomorrow?" [Yes/Reschedule]
COD Pre-Payment Offer
"Pay online now, skip cash at door"
Weather Check
Reschedule outdoor deliveries in sandstorms
Layer 3: Day of Delivery
Morning Alert
"Package out for delivery today"
30-Min Warning
"Not home? [Reschedule/Safe Drop]"
5-Min ETA
"Driver arriving now"
At Door: 3-Min Call
Driver calls if no response

Smart Retry Logic

Failure Reason% of FailuresAuto-Retry Strategy
Not available40%Check receiver's historical patterns. Morning fail → retry afternoon. Ask receiver via WhatsApp for preferred time.
Wrong address20%Send pin-drop link via WhatsApp. After update → immediate re-queue.
Refused (changed mind)15%Confirm with merchant. Initiate return.
Can't pay COD10%Send online payment link via WhatsApp. Auto-convert to prepaid if paid. Retry within 4 hours.
Damaged package5%Photo documentation, damage claim, replacement shipment.
Can't find location5%Request live location via WhatsApp. After received → immediate re-dispatch.
Max Attempts & Auto-Return

3 failed attempts → automatic return to merchant. Receiver explicitly cancels → immediate return. No additional charge for first retry. 2nd attempt: 50% of delivery charge. 3rd: 75%. Return: 50-100% of original charge. This pricing incentivizes merchants to provide accurate data.

21

Reverse Logistics / Return Architecture

Returns are a first-class workflow, not an afterthought. Six return types, QR-tracked through the entire reverse chain, with combined delivery + return routes that reduce cost by 50%.

Return Types

Return TypeInitiated ByTriggerSLA
Customer ReturnReceiverChanged mind, wrong item, damagedPickup within 24h
RTO (Failed Delivery)SystemMax delivery attempts exceededImmediate, auto-triggered
ExchangeReceiver + MerchantSwap item (return old + deliver new)Single trip: pickup old + deliver new simultaneously
Partial ReturnReceiverMulti-item order, return somePickup within 24h
Merchant RecallMerchantProduct recall, shipping errorUrgent pickup
Rejected at DoorDriver/ReceiverVisible damage, wrong itemImmediate return, no extra trip

Return Lifecycle (QR-Tracked)

Return Requested
Via tracking page or WhatsApp
Approved
Merchant auto-approve or manual
Pickup Scheduled
Combined with delivery routes
QR Scanned: Picked Up
Driver has return package
QR Scanned: At Hub
Inspection & QC check
Refund Processed
Auto-credit to receiver

RTO Reduction Strategy

<5%
Target RTO rate (industry avg: 15-25%)
50%
Cost reduction via combined routes
QR Chain
Every return scan = tamper-proof evidence
Auto-Refund
Refund triggered on hub QC pass
22

Multi-Country / Multi-Warehouse Operations

Full organizational hierarchy: Platform → Region → Country → City → Branch/Warehouse. Not "future-ready" — operational from launch.

7
Branch/Warehouse Types
9+
Currencies Supported
Per-Country
Tax, VAT, Customs Rules
Data Residency
Compliant Per Jurisdiction
Facility TypePurposeStaffing
Main HubCentral sorting, intercity dispatch, returns processing, QR scan gates20-50 staff
City HubIntra-city sorting, driver dispatch, COD collection, QR inbound/outbound10-20 staff
Micro-HubInstant/minutes delivery staging, pre-positioned inventory3-5 staff
Fulfillment WarehouseFull WMS: pick, pack, label, QR assign. Multi-level racking with bin locations20-100 staff
Dark StoreQuick-commerce fulfillment (Wadi Express), inventory pre-positioning10-30 staff
Cross-Dock FacilityNo storage — packages arrive, get sorted, depart same day. Intercity transfers5-15 staff
Pickup Point / LockerCustomer self-collection, QR-authenticated pickup, 24/7 smart lockers0-2 staff
Cross-Border Operations

Shipments crossing country borders automatically generate customs documentation (commercial invoice, packing list, HS codes), estimate duties/taxes for the receiver, and route through designated customs-clearance hubs. Supports both DDP (Delivered Duty Paid) and DDU (Delivered Duty Unpaid) models. Multi-currency settlement handles FX conversion with locked rates at shipment creation.

23

Marketplace Model for Wadi

Wadi is a tenant on the Shipment platform — no special code paths. Same APIs, same dispatch, same tracking. This is critical: what works for Wadi works for any marketplace.

Marketplace-Specific Flows

📦

Multi-Vendor Order Splitting

Customer buys 3 items from 3 sellers → 3 separate shipments, linked by marketplace_order_id. System detects proximity and batches pickups. At destination hub, consolidates to one delivery driver if possible.

🏢

Fulfillment by Wadi (FBW)

Seller inventory pre-stored in Wadi warehouses. Order placed → QR pick list generated → pick, pack, label at warehouse → single shipment to customer. Fastest SLA, lowest cost.

🚚

Seller Pickup Model

Non-FBW sellers: order placed → seller confirms "ready" within 4 hours → pickup driver dispatched → QR scan at seller → deliver to customer. Late confirmation = seller penalized.

Wadi Express (Instant/Minutes)

Items pre-positioned in micro-hubs/dark stores. Order → pick in <5 min → nearest motorcycle dispatched → delivery in 15-30 min. Pre-positioned drivers at dark store locations.

Wadi Settlement Flow

Customer Pays
Online or COD to driver
Shipment Settles to Wadi
Minus shipping fee
Wadi Settles to Seller
Minus marketplace commission
Everyone Gets Paid
Driver → Platform → Wadi → Seller
24

WordPress / WooCommerce Integration

Full WordPress plugin published on WordPress.org. Zero-code setup: install plugin, enter API key, done.

Plugin Capabilities

FeatureDescription
Live Shipping RatesAt checkout, fetches real-time rates from Shipment API based on cart weight, dimensions, and delivery address. Shows multiple service levels with prices and ETAs.
Auto Shipment CreationOrder paid → shipment auto-created via API. AWB + QR code generated. Label downloadable from WooCommerce order page.
Status SyncWebhook-driven: shipment status changes auto-update WooCommerce order status. Order notes added at each milestone.
COD SupportMaps WooCommerce COD payment method to Shipment COD. COD fee shown at checkout. Configurable max amount and first-time restrictions.
Tracking WidgetEmbeddable tracking widget for any WordPress page. Customer sees tracking in "My Orders" with link to full tracking page.
Bulk OperationsSelect multiple orders → create shipments in bulk. Export labels as batch PDF.
Return ManagementCustomer-initiated returns from "My Account" page. Creates return shipment automatically.
Arabic + EnglishFull RTL support. Translation-ready with .po/.mo files.
25

Shopify Integration

Shopify App published on Shopify App Store. Uses Carrier Service API for live rates + Fulfillment Service API for auto-shipment creation. Embedded dashboard via App Bridge + Polaris.

Shopify App Features

FeatureDescription
Live Rates at CheckoutShopify calls our Carrier Service endpoint. We return rates for Instant, Same Day, Next Day, Economy with ETAs.
Auto-FulfillmentOrder paid → fulfillment request sent to our API → shipment created → tracking number returned to Shopify.
Embedded DashboardFull merchant dashboard embedded inside Shopify admin (App Bridge). View shipments, analytics, COD balance without leaving Shopify.
Bidirectional WebhooksShopify → Shipment: orders/create, orders/cancelled, refunds/create. Shipment → Shopify: picked_up, delivered, failed, returned.
COD via Payment ExtensionAdds "Cash on Delivery" as payment method at Shopify checkout. COD collection and reconciliation handled by Shipment platform.
Label PrintingPrint shipping labels with QR codes directly from Shopify order page. Supports thermal printers (ZPL) and standard PDF.
26

Public API / Webhook / SDK Strategy

REST-first, versioned, idempotent, with comprehensive documentation. Every feature in the platform is an API. Our own dashboards consume the same APIs third parties use.

API Design Principles

REST + GraphQL
REST for CRUD, GraphQL for complex queries
WebSocket
Real-time tracking, dispatch console, driver locations
Idempotent
Safe to retry. Every mutating op supports idempotency keys.
Versioned
/v1/, /v2/. Old versions supported 12 months after deprecation.

Core API Resources

ResourceKey Endpoints
ShipmentsPOST /shipments, GET /shipments/:id, POST /shipments/bulk, GET /shipments/:id/tracking, GET /shipments/:id/label
QuotesPOST /quotes (price + SLA + vehicle recommendation in <500ms)
TrackingGET /tracking/:awb (public, no auth, rate-limited)
AddressesPOST /addresses/validate, POST /addresses/autocomplete
WebhooksPOST /webhooks, GET /webhooks/:id/deliveries
ReturnsPOST /shipments/:id/return

Webhook System

Delivery Guarantee

HMAC-signed payloads (SHA-256). Exponential retry: immediate → 5m → 30m → 2h → 8h → 24h (6 attempts). Delivery logs via API. Auto-disable after 72h of continuous failure with email alert. Events: shipment.created, shipment.picked_up, shipment.delivered, shipment.delivery_failed, shipment.returned, cod.collected, settlement.completed.

SDKs & Sandbox

Official SDKs

JavaScript/TypeScript (@shipment/sdk), PHP (shipment/shipment-php), Python (shipment-sdk). Auto-generated from OpenAPI spec. Type-safe, with built-in retry logic.

Sandbox Environment

Full API parity with production. Test API keys (sk_test_...). Simulated dispatch, tracking, and webhooks. Simulation controls: POST /sandbox/simulate/:id/deliver. Data reset every 30 days. Zero charges.

Rate Limits

TierRate LimitBurst
Free100 req/min20 req/sec
Growth1,000 req/min100 req/sec
Enterprise10,000 req/min500 req/sec
CustomNegotiatedNegotiated
Part Four

Strategy & Execution

Security architecture, AI/ML at every layer, fraud prevention, operational analytics, cutting-edge 2026 technology stack, enterprise launch scope, risk analysis, innovative moat ideas, and the 28-day implementation sprint plan.

27

Security / Compliance / Audit

Enterprise-grade security architecture. Every layer protected. Every action audited. Every regulation complied with.

Security Architecture

Edge Security
WAF + DDoS Protection
DigitalOcean Cloud Firewall
TLS 1.3 Termination
All traffic encrypted
Rate Limiting
Per API key, per tenant
API Security
JWT + API Keys
1h access, 7d refresh, rotatable
RBAC + Resource Scoping
Tenant + branch isolation
Input Validation
Schema enforcement on every request
Data Security
AES-256 Encryption at Rest
All PII, financial data
Phone Masking
Driver ↔ receiver via platform relay
Immutable Audit Trail
Every action logged, 7-year retention

PII Handling

Data TypeStorageDisplayRetention
Customer phoneAES-256 encryptedMasked: +9715****45672 years
Driver national IDEncrypted + tokenizedNever shown in UIEmployment + 1 year
Bank accounts (IBAN)Encrypted + tokenizedLast 4 digits onlyActive + 1 year
GPS locationsPlaintext (operational)Authorized roles only90 days, then aggregated
POD photosEncrypted at rest (S3)Authorized roles only1 year
QR scan chainBlockchain-hashedFull chain viewable7 years (immutable)

Compliance

UAE PDPL
Data protection, consent management, breach notification
PCI-DSS
Delegated to HyperPay — we never store card data
Central Bank
COD cash handling licensed, daily deposit requirements
GDPR-Ready
Data portability, right to erasure, for EU expansion

Disaster Recovery & Business Continuity

DR Strategy

RPO: < 15 minutes (WAL archiving + streaming replication). RTO: < 15 minutes (automated failover). Multi-AZ: all services run across 2+ availability zones. Multi-region DR: Saudi Arabia as warm standby. Daily backups: encrypted, tested monthly with restore drills. Chaos engineering: quarterly failure injection tests to validate resilience.

28

Fraud Prevention & Dispute Management

10 fraud vectors identified and defended against. Real-time rule engine + ML anomaly detection from launch.

Fraud Vectors & Prevention

Fraud TypeActorPrevention
Fake deliveryDriverGPS must be within 200m of delivery point. Photo POD verified by on-device CV model. QR scan required.
COD skimmingDriverReceiver confirms COD amount via WhatsApp. Discrepancies auto-flagged. Daily random cash audits.
GPS spoofingDriverDevice fingerprinting, emulator detection, accelerometer cross-validation with GPS movement.
Return fraudReceiverQR scan at return pickup. Hub QC inspection with photos. Weight comparison vs original shipment.
Address fraudReceiverFirst-time + high-value COD = phone OTP verification before dispatch.
Account takeoverExternalAPI key rotation, IP whitelisting, anomalous call pattern detection.
Phantom driverInternalBiometric selfie at shift start. Device binding (one device per driver account).
Insurance fraudMerchantDeclared value vs product category cross-check. Photo evidence at pickup.

Dispute Lifecycle

Dispute Opened
By merchant, receiver, or system
Auto-Investigation
Pull POD, GPS trail, QR chain, COD record
AI Assessment
ML model suggests resolution
Resolution
Auto-resolve or escalate to human
Auto-Resolution

SLA breach: auto-credit 50% shipping fee. COD mismatch < 5 AED: auto-adjust. "Not delivered" but POD exists: send POD to receiver for review. Damaged + insured: auto-initiate claim, credit declared value. These auto-resolutions handle 60%+ of disputes without human intervention.

29

AI & Automation — Built Into Every Layer

AI is not a feature — it's the nervous system of the platform. Every decision point has an AI model behind it, from dispatch to pricing to fraud detection to customer communication.

🧠

AI Dispatch (Reinforcement Learning)

RL agent learns optimal driver-to-shipment assignment by observing outcomes. Discovers patterns humans can't see: "assign this to the farther driver because their route passes through the pickup area." Trained on simulation, deployed with A/B testing against rule-based DSS.

📈

ML ETA Prediction

Custom LightGBM model trained on delivery data: Google Maps ETA as baseline + parking time + building access + floor + COD payment time + weather + Ramadan adjustments. 30-40% more accurate than raw Google ETA.

💬

LLM-Powered Customer Support

Claude API as the brain behind WhatsApp chatbot. Understands natural language: "where is my package?" "can you deliver tomorrow instead?" "the driver was rude." Handles 70%+ of support queries without humans. Arabic + English.

📷

Computer Vision

On-device TensorFlow Lite models: POD photo quality verification (rejects blurry/dark), package damage detection (flags before receiver opens), QR code scanning (instant decode), driver selfie verification (anti-fraud).

📊

Demand Forecasting (Prophet + LSTM)

Predicts order volume per zone per hour, 24-72h ahead. Factors: historical patterns, weather, holidays, Ramadan, payday cycles, marketing campaigns, trending products on Wadi. Drives driver scheduling and pre-positioning.

🔎

Fraud Detection (Anomaly ML)

Real-time anomaly detection on delivery patterns, COD amounts, GPS trails, driver behavior. Flags fake deliveries, COD skimming, GPS spoofing, and account abuse. Auto-escalates to investigation queue.

30

Operational Analytics / KPI Model

30+ KPIs across operations, financial, customer experience, and driver metrics. Real-time dashboards in custom admin console. Operations Command Center for dispatchers. Merchant analytics dashboard with export.

>92%
First-Attempt Delivery Rate Target
>95%
On-Time Delivery Rate Target
<5%
RTO Rate Target
>4.3
Average Receiver Rating Target
31

Unit Economics & Profit Model

This section answers the critical question: how does Shipment make money, how much, and when does it become profitable? All numbers are based on UAE market rates, own-fleet model with 20 drivers at launch, and realistic order volumes.

Revenue Streams — How We Earn Per Delivery

Revenue StreamHow It WorksRate (AED)% of OrdersWeighted / Delivery (AED)
Shipping Fee (Flat)10 AED fixed — same for delivery or return. Simple, competitive.10.00100%10.00
COD Handling Fee2.5% of COD amount. Avg COD = 300 AED.7.5060%4.50
Instant/Express Premium30-min delivery premium on top of flat fee.20.00 avg10%2.00
Return FeeSame 10 AED flat for return pickup.10.008%0.80
Wadi Fulfillment (FBW)Pick (3) + Pack (2) + Label (0.5) on top of shipping.5.5015%0.83
Merchant SubscriptionsGrowth (500) / Enterprise (1,500 AED/month) plans.~1.50100%1.50
Insurance1.5% of declared value. Optional.7.505%0.38
COD Float IncomeCash held 3-7 days before settlement.Passive
Blended Avg Revenue Per Delivery20.01 AED
Why 10 AED Flat Fee Works

10 AED is aggressively competitive — most UAE couriers charge 15-25 AED. This is our merchant acquisition weapon. The flat fee is razor-thin but blended revenue reaches 20 AED through: COD fees (60% of orders), instant premiums (3x markup), FBW warehouse fees, merchant subscriptions, and scale efficiency.

Cost Structure — What Each Delivery Costs Us

All Fixed Monthly Costs (20 Drivers + Operations)

Cost ItemMonthly (AED)Notes
Driver Costs (20 Drivers)
Driver base salary (20 × 2,500)50,000Fixed monthly salary per driver
Fuel (20 drivers × 3,000 km/month @ 0.70 AED/km)42,000Avg 3,000 km/driver/month
Vehicle maintenance (20 × 350)7,000Tires, oil changes, service
Vehicle insurance (20 × 1,200/year ÷ 12)2,000Commercial third-party, cheapest UAE option (RSA ~1,200 AED/yr)
Operations Costs
Operations manager (1 per 20 vehicles)7,000Manages dispatch, drivers, daily ops
Technology (DigitalOcean + HERE Maps + 360dialog + Claude Haiku + Sentry)3,000Cloud infra 1,250 + HERE Maps 800 + 360dialog WhatsApp 400 + Claude AI 75 + Sentry 95 + misc 280. Redis Streams for events. GitHub Free. DO built-in monitoring.
Miscellaneous (labels, supplies)2,000Thermal labels, QR stickers
TOTAL FIXED MONTHLY COST113,000Drivers: 101,000 + Ops: 12,000
113,000 AED
Total Fixed Monthly Cost
~$30,800
USD equivalent
110,000 AED
One-Time Startup (below)
One-Time Startup Costs (Not Monthly)

Vehicle purchase: 3,500 AED/vehicle × 20 = 70,000 AED (owned forever).
Uniforms + safety equipment: ~500 AED/driver × 20 = 10,000 AED.
Vehicle branding/wrapping: ~1,500 AED/vehicle × 20 = 30,000 AED.
Total one-time startup: ~110,000 AED.
Driver visa, personal insurance, and phone/device are the driver's own responsibility.

Vehicle Insurance — Cheapest UAE Option

Commercial third-party (required by UAE law). Cheapest: RSA Insurance (~1,000-1,200 AED/year), Orient Insurance (~1,100-1,400), Oman Insurance (~1,200-1,500). We budget 1,200 AED/year per vehicle = 100 AED/month. Third-party is sufficient for delivery operations.

Variable Cost Per Delivery

Variable CostPer Delivery (AED)Notes
Driver per-delivery commission2.00Fixed 2 AED max per order, offset by 2,500 AED base salary + bonuses
Fuel per delivery (avg 6 km optimized route)2.50Route optimization reduces avg trip distance
WhatsApp notifications (4 msgs/delivery)0.08360dialog + Meta conversation pricing
Maps API cost per delivery (HERE)0.10HERE Maps with aggressive caching
Label + QR code printing0.20Thermal printer, bulk label stock
COD cash handling risk reserve (0.3%)0.90QR chain reduces risk significantly
Failed delivery cost (prorated @ 5% rate)0.75AI prevention reduces failure rate to 5%
Total Variable Cost Per Delivery6.53

Unit Economics Per Delivery

Contribution Margin

Blended revenue per delivery: 20.01 AED. Variable cost per delivery: 6.53 AED. Contribution margin: 13.48 AED (67.4%). The 10 AED flat fee is the merchant acquisition weapon — COD fees, instant premiums, FBW, and subscriptions push blended revenue to 20 AED while costs stay lean.

Breakeven Analysis (20 Drivers)

Breakeven Deliveries/Month = Fixed Costs / Contribution Margin
= 113,000 AED / 13.48 AED per delivery
= 8,383 deliveries/month
= 279 deliveries/day (30-day month)
= ~14 deliveries per driver per day
Is 14 Deliveries/Driver/Day Realistic?

Trivially easy. Industry benchmarks in UAE: Noon drivers do 25-35 deliveries/day. Aramex drivers do 20-30. Even the worst-performing drivers do 15+. We break even at just 14 — less than half of what average drivers do. Everything above 14 is pure profit. At 30/driver (industry average), we're making 129K AED/month.

Profit Scenarios (Monthly, 20 Drivers)

ScenarioDel/Driver/DayDel/MonthRevenue (AED)Total Cost (AED)Net Profit (AED)Margin
Below Breakeven106,000120,060152,180−32,120−27%
At Breakeven148,383167,880167,88000%
Good (20/driver)2012,000240,120191,36048,76020.3%
Strong (25/driver)2515,000300,150210,95089,20029.7%
Great (30/driver)3018,000360,180230,540129,64036.0%
Excellent (35/driver)3521,000420,210250,130170,08040.5%
Outstanding (40/driver)4024,000480,240269,720210,52043.8%
The 10 AED Strategy: Volume is King

At 10 AED flat, profitability requires high volume per driver. This is exactly the Noon/Amazon model — low per-unit margin, massive volume. The 10 AED price is a market penetration weapon that undercuts every competitor, locks in merchants, and builds the density needed for profitable operations. Once density is established, margins improve dramatically because fixed costs are spread across more deliveries.

129,640 AED
Monthly Profit @ 30 del/driver/day
170,080 AED
Monthly Profit @ 35 del/driver/day
210,520 AED
Monthly Profit @ 40 del/driver/day
2.53M AED/yr
Annual Profit @ Outstanding (40/driver)

Where the REAL Money Is (Beyond Flat Fee)

Profit Multipliers at Scale

The 10 AED fee gets merchants in the door. The real profit comes from:
1. Instant delivery premium: 100 instant orders/day × 20 AED premium = 60,000 AED/month
2. FBW warehouse fees: 300 FBW orders/day × 5.50 AED = 49,500 AED/month
3. Enterprise subscriptions: 30 merchants × 1,000 AED avg = 30,000 AED/month
4. COD float income: ~15,000 AED/year at current volume, 150,000 AED/year at scale
Combined: These add ~140,000 AED/month on top of base delivery profits.

How Top UAE Logistics Companies Maximize Profit

📈

Density Over Distance

Noon, Aramex, and Careem focus on dense urban zones (Dubai Marina, JLT, Downtown, Business Bay) where 5-8 deliveries happen within 2 km. More drops per hour = higher revenue per driver hour. Our zone-based dispatch + route optimization targets this.

💰

COD Float Income

COD cash sits in our account 3-7 days before merchant settlement. At 500 deliveries/day with avg 300 AED COD (60% COD rate): float = ~630,000 AED constantly held. At 5% annual return = 31,500 AED/year free income. At scale (5,000/day) = 315,000 AED/year.

📦

Return Revenue

Returns are charged at 50-75% of original shipping. With ~8% return rate: 500 deliveries/day × 8% = 40 returns/day × 18 AED avg = 21,600 AED/month extra revenue on work you're already partially doing (combined routes).

🏢

Wadi Fulfillment Fees

For FBW (Fulfillment by Wadi) orders: charge pick (3 AED) + pack (2 AED) + label (0.5 AED) = 5.50 AED per unit ON TOP of shipping fee. At 200 FBW orders/day = 33,000 AED/month additional revenue from warehouse operations.

💲

Merchant Subscription Revenue

Enterprise merchants pay monthly subscription (500-2,000 AED/month) for premium features: priority dispatch, custom tracking pages, dedicated account manager, advanced analytics. 20 enterprise merchants = 20,000-40,000 AED/month recurring.

🚀

Instant/Minutes Premium

Instant delivery charges 3-5x base rate. A 15 AED standard delivery becomes 45-75 AED for instant. Even at 10% of volume being instant: 50 instant deliveries/day × 40 AED premium = 60,000 AED/month pure premium.

Scaling Economics: 20 → 50 → 100 Drivers (@ 40 deliveries/driver/day)

Metric20 Drivers50 Drivers100 Drivers
Deliveries/day8002,0004,000
Deliveries/month24,00060,000120,000
Monthly revenue (@ 20.01 AED blended)480,2401,200,6002,401,200
Fixed costs (drivers + ops)113,000278,500547,000
Variable costs (@ 6.53/delivery)156,720391,800783,600
Total costs269,720670,3001,330,600
Net profit/month210,520530,3001,070,600
Net margin43.8%44.2%44.6%
Annual net profit2.53M AED6.36M AED12.85M AED
Why Margins Improve With Scale

Fixed ops costs don't double when drivers double. One dispatcher handles 20-40 drivers. One hub handles 50 drivers. Tech costs are nearly flat. At 100 drivers, ops overhead per delivery drops 40%. This is why Noon and Amazon invest in scale — the unit economics get dramatically better. Our target: 20%+ net margin at 50+ drivers.

Time to Profitability

Month 1
Ramp-up. 150-250 deliveries/day. Building zone density.
Month 1-2
Hit 279/day breakeven (14/driver). Trivially easy target.
Month 3-5
600-900/day (30-45/driver). Strong margins. Adding drivers.
Month 7+
Scale mode. 50+ drivers. 1,500+/day. 20%+ margins. Expand to Abu Dhabi.
"In logistics, you lose money on the first delivery to a zone and make money on every subsequent one. The game is density — the more deliveries per square kilometer per hour, the more profitable each delivery becomes. This is why we focus on zone domination before geographic expansion." — Shipment Financial Strategy, March 2026
32

Launch Scope — Full Enterprise System

No MVP. No feature gates. The launch system includes every core capability: multi-country operations, multi-currency settlement, multi-warehouse management, QR chain-of-custody, AI-powered dispatch, real-time tracking, computer vision POD verification, and full API platform. This is the system that makes competitors obsolete.

Launch Success Criteria

Auto-dispatch accuracy: >90%. QR scan chain completion: 100%. Tracking page: <1s load. Driver app crash rate: <0.5%. COD reconciliation: >99%. API uptime: >99.9%. Multi-country: UAE + 2 GCC countries operational. Cross-border: customs docs auto-generated.

2026 Cutting-Edge Technology Stack

🤖

AI/ML at Core

Not bolted on later. LLM-powered customer support chatbot (Claude API), ML demand forecasting, computer vision for POD quality + damage detection, reinforcement learning for dispatch optimization. All from day one.

📸

Computer Vision POD

Driver captures delivery photo → on-device ML model verifies: package visible, not blurry, correct location, no damage. Rejects bad photos instantly. Detects package damage automatically and flags before receiver opens.

🌐

Edge Computing on Driver App

ML models run ON the phone (TensorFlow Lite): QR scanning, POD verification, address matching, offline dispatch. No internet needed for core operations. Sync when connected.

🔒

Blockchain Audit Trail

Every QR scan event is hashed into an immutable chain. Tamper-proof chain-of-custody. Exportable for insurance claims, legal disputes, and customs verification.

📡

Real-Time Event Streaming

Redis Streams for inter-service events at launch (included in Redis — zero extra cost). Upgrade to Apache Kafka when volume exceeds 50K deliveries/day. Every event (shipment, driver, financial) streams in real-time to all consumers.

🌍

Multi-Region Deployment

DigitalOcean regions: UAE (primary), Saudi, Europe. Data residency compliance per country. Active-active for global availability. Sub-100ms API responses in every served region.

Estimated Enterprise Infrastructure Cost

ItemMonthly Cost
DigitalOcean (DOKS multi-region + managed DBs + Redis Cluster + Spaces + LBs)~$1,500-2,500
HERE Maps (geocoding, routing, tour planning, geofencing, fleet tracking)~$220
360dialog (WhatsApp API) + Meta conversation fees~$110
Claude API Haiku (AI chatbot fallback)~$20
Sentry (error tracking) + GitHub Free~$26
Redis Streams (event streaming — included in Redis)$0
Domain + misc~$55
Total Technology Infrastructure~$820/month (~3,000 AED)
Context

DHL spends $2B+/year on technology. Noon spends $50M+/year on logistics tech. Our $3-6K/month buys us a system that is architecturally superior to both — because we're building on 2026 cloud-native infrastructure while they maintain 2010-era monoliths. This cost scales linearly with volume, not exponentially.

33

Risks, Tradeoffs & Anti-Patterns

Critical Risks

RiskProbabilityImpactMitigation
Driver acquisition & retentionHIGHCRITICALCompetitive pay, transparent earnings, good app UX, streak bonuses, partner treatment
COD cash handling fraud/lossHIGHHIGHDaily audits, cash limits, dual-confirmation for high-value, QR scan at every handoff, insurance
Map API costs at scaleMEDIUMHIGHHERE Maps as single provider (10x cheaper than Google). Aggressive caching. Logistics-grade features included.
Address quality in UAEHIGHMEDIUMMakani integration, pin drop, driver-confirmed GPS locations, crowdsourced address database
System reliability at scaleMEDIUMCRITICALMulti-AZ, automated failover, circuit breakers, chaos engineering, <15min RTO
Regulatory compliance (multi-country)MEDIUMHIGHLegal counsel per country. Data residency per jurisdiction. Transport permits. Central Bank COD license.
Competition from incumbentsHIGHMEDIUMTechnology superiority (AI, QR chain, real-time). Better UX. Lower cost. API-first openness.
28-day timeline execution riskMEDIUMHIGHAll architecture decisions pre-made. Zero planning weeks. 15+ engineers in parallel. Daily standups. No scope creep.

Architecture Tradeoffs

Microservices from Day 1

Chosen over modular monolith. Tradeoff: harder to build initially but eliminates painful monolith-to-microservices migration later. With Kafka from day 1, services are properly decoupled.

PostgreSQL over NoSQL

Chosen over MongoDB. Why: ACID for financial data, PostGIS for geo, RLS for multi-tenancy, JSONB for flexibility. NoSQL would need separate solutions for transactions and geo.

DigitalOcean over AWS

Chosen over AWS. Why: Simpler, 30-50% cheaper, sufficient for our needs. If we need specific AWS services (SageMaker), we can go hybrid later.

HERE Maps over Google Maps

Chosen over Google Maps. Why: 10x cheaper at scale. HERE has logistics-specific features (tour planning, geofencing, fleet tracking, vehicle routing). Quality gap in UAE is small.

Anti-Patterns to Avoid

Never Do This

WhatsApp-based dispatch: build the dispatch console first. Excel reconciliation: COD service from day 1. Shared databases between services: each service owns its data. Driver favoritism: algorithmic dispatch with fairness scoring. Ignoring failed deliveries: automated retry with root cause analysis. Custom everything: buy commodities, build differentiators.

34

"Crazy" Innovative Ideas That Create a Moat

💰

Money-Back Delivery Guarantee

"We promise delivery by 4 PM. If we miss it, shipping is free." No courier in MENA offers this.

Receiver Reputation System

Receivers build reputation based on availability, accuracy, and behavior. High-rep gets priority slots.

📍

Crowdsourced Address Database

Every delivery GPS-confirms the exact door location. Over 100K deliveries = 50K+ verified addresses. Impossible to replicate.

🏆

Driver Streak Bonuses

"5 on-time in a row = +20 AED. 10 without failure = +50 AED." Gamification without punishment.

📦

Predictive Inventory Positioning

Pre-ship popular items to nearest micro-hub before orders arrive. 15-minute delivery becomes possible.

🌐

Open Delivery Network

Other courier companies plug into our infrastructure. Their drivers, our tech. Network effect creates moat.

35

Final System Blueprint

Channels
Wadi App
Merchant Dashboard
WooCommerce
Shopify
Public API
Applications
Driver App
React Native
Dispatch Console
React
Tracking Page
Next.js SSR
Admin Console
React
Core Services (NestJS on DOKS)
Shipment
Dispatch
Pricing
Tracking
Address
Fleet
COD
Data & Infrastructure (DigitalOcean)
PostgreSQL
+ PostGIS
Redis
Cache + Pub/Sub
Kafka
Event Bus
Spaces
S3 Storage
PropertySpecification
ArchitectureMicroservices from day one (NestJS + Kafka + DOKS)
Availability99.95% at launch → 99.99% at scale
LatencyP95 < 200ms API, < 3s tracking updates
Throughput500/day → 1M+/day
36

Implementation Readiness Pack

Enterprise Engineering Workstreams — 28-Day Sprint

1

Platform Foundation + Shipment Core (Days 1-5)

DOKS infra, CI/CD, NestJS monorepo, DB schema, auth, API gateway. Shipment CRUD, AWB + labels, address validation with HERE Maps.

2

Engines: Pricing + Vehicle + Dispatch (Days 3-8)

Rate card engine, pricing formula, vehicle recommendation, DSS scoring, auto-dispatch, driver location tracking via WebSocket + Redis. All 3 engines built in parallel by separate devs.

3

Driver App — Full Flow (Days 4-14)

React Native: OTP auth, shift start/end, delivery queue, Google Maps/Waze navigation, pickup scan, delivery POD (photo + signature), COD collection, earnings view. Offline queue sync.

4

Merchant Dashboard + Admin Console (Days 6-16)

Merchant: shipment creation (single + CSV bulk), tracking with map, COD balance, label download, API key management. Admin: tenant, user, branch, zone, rate card CRUD.

5

Tracking Page + WhatsApp Notifications (Days 10-18)

Next.js SSR tracking page (live map, ETA, status timeline, Arabic/English). 360dialog WhatsApp integration for 4 touchpoints + buttons + Claude Haiku chatbot fallback

6

Dispatch Console + Branch Console (Days 12-20)

Dispatch: real-time map with drivers + shipments, alert panel, manual assign/reassign. Branch: inbound/outbound scan, sorting view, COD deposit recording.

7

Financial Module + Webhooks (Days 14-22)

COD ledger (per-delivery tracking), driver cash balance, deposit reconciliation, merchant invoicing, settlement tracking. Webhook service with retry logic.

8

Wadi Integration + E2E Testing (Days 18-25)

Wadi API client, shipment creation from orders, webhook status sync, COD flow. Full end-to-end testing of complete lifecycle.

9

Load Testing + Security + Bug Fixes (Days 23-27)

Load test at 2x expected volume, security audit, penetration testing, critical bug fixes, performance tuning.

10

Soft Launch + Go Live (Day 28)

Soft launch with 50-100 shipments/day, driver training, merchant onboarding, monitoring war room. Full launch ramp-up.

Recommended Build Sequence — 4-Week Sprint

Sprint Execution Model

4-week timeline requires maximum parallelization: all 10 workstreams run concurrently with dedicated owners. Daily standups, no blockers tolerated. Team of 11+ engineers working simultaneously across backend, mobile, frontend, and DevOps.

DayDeliverablesTeam
Day 1-2DOKS cluster live, CI/CD pipeline, NestJS monorepo, PostgreSQL schema, Redis, auth serviceDevOps + 1 Backend
Day 3-5Shipment CRUD API, AWB generation, label PDF, address validation (HERE Maps), quote API2 Backend
Day 3-8Pricing engine, vehicle recommendation engine, dispatch engine (DSS + auto-assign)2 Backend (parallel)
Day 4-14Driver app: auth, shift, queue, navigation, pickup/delivery flows, POD, COD, offline mode2 Mobile
Day 6-16Merchant dashboard + admin console (shipment creation, tracking, rate cards, user mgmt)2 Frontend
Day 10-18Tracking page (Next.js SSR, live map, ETA) + WhatsApp (360dialog) + buttons + Claude Haiku chatbot1 Frontend + 1 Backend
Day 12-20Dispatch console (real-time map, alerts) + branch console (scan, sort, COD deposit)1 Frontend
Day 14-22COD ledger, reconciliation, invoicing, settlement, webhook service with retry1 Backend
Day 18-25Wadi integration (API client, webhooks, COD flow) + full E2E testing1 Backend + QA
Day 23-27Load testing (2x volume), security audit, critical bug fixes, performance tuningAll hands
Day 28Soft launch — 50-100 shipments/day, driver training, merchant onboardingFull team
Ready to Build — 28 Days to Enterprise Launch

This is not an MVP build — it's a full enterprise system in 28 days. Multi-country, multi-currency, multi-warehouse, QR chain-of-custody, AI dispatch, computer vision, LLM chatbot, real-time Kafka streaming — all at launch. With a 15+ person team running all workstreams in parallel, every capability ships on Day 28. The technology stack is decided. The architecture is designed. Day 1 = code starts.

"This document is a living artifact. Update it as decisions are made, assumptions are validated or invalidated, and the product evolves." — Shipment Architecture & Product Strategy, March 2026