Systems Architecture·Dec 2024·10 min read

Scaling a B2B Procurement Engine from Zero to ₹3Cr+ GMV in 120 Days

Architectural decisions behind automated RFQs, ERP VPN tunnels, and multi-tenant ledger entitlements built for Godown Sourcing Engine.

Sole Tech Lead:Aabhas Kumar Jha (Sole Engineer & Tech Lead)

Engineered from scratch for Godown (Manufacturing & Distribution Procurement Platform).

SYS-ARCH // 03 · GODOWN PLATFORMIndustrial RFQ Ledger, 3-Tier RBAC & Encrypted SAP S/4HANA Tunnel
LIVE TELEMETRY|60 FPS VECTOR ENGINE
++++
B2B LEDGER & 3-TIER RBAC GOVERNANCE · ₹3Cr+ GMVINDUSTRIAL RFQ STREAMGMV PROCESSED₹3,18,40,000CNC HYDRAULIC VALVEQTY: 120 · ₹4,80,000KYC OCR: VERIFIED ✓SS FLANGE PIPES 4"QTY: 400 · ₹1,20,000TAXONOMY: MAPPEDTIER 1: CEILINGCORP LIMIT: ₹50L/MOTIER 2: ROLE GRANTSR. PURCHASER: ALLOWTIER 3: USER OVERRIDEUSER 841: APPROVED ✓RESOLVED: ACTION PERMITTEDIPSec / WIREGUARDAES-256-GCM VPNAWS VPC ↔ ON-PREMSAP S/4HANAERP DATABASEPO #44901 GENERATEDMASTER LEDGER: SYNCED
Fig. ARCH //Multi-tenant industrial procurement architecture: Live RFQ stream with KYC document verification, 3-tier hierarchical authorization evaluation (Company Ceiling → Role Grant → User Override), and encrypted WireGuard/IPSec VPN tunnel into on-premise SAP ERP.
Platform GMV
₹3Cr+ ($315k+)
Scaled in 120 days (₹2Cr+ in 90D)
ERP Integration
Live SAP Sync
Bidirectional VPN tunneling for master items
Access Governance
3-Tier RBAC
Company → Role → User Inherit/Allow/Deny
Deployment
100% Solo Lead
Complete AWS infrastructure & microservices
Three-Tier Hierarchical Authorization Engine
TIER 01

Company Ceiling

Maximum functionality enabled per tenant. If a company turns off an action, it is strictly denied for every user and role.

TIER 02

Role Grants

Normal functional access inherited by users: Admin, Purchase Manager, Plant Head, Store Manager, Engineer, and SAP Operator.

TIER 03

User Override

Granular per-person exceptions: DENY to restrict a specific action or ALLOW for rare exemptions.

The Problem: Multi-Plant Industrial Procurement Friction

Industrial manufacturing companies have complex organizational hierarchies: plant heads, purchase managers, maintenance engineers, and SAP operators. Giving broad administrative permissions leads to rogue purchasing, while rigid single-tier permissions cause operational paralysis. The system required granular, company-wide hierarchical feature control combined with real-time enterprise ERP integration.

Three-Tier RBAC & Enterprise SAP Tunneling

The architecture is engineered around strict data isolation, modular feature controls, and automated back-office sync:

  • ›Three-Tier Entitlement Engine: Company features define the global ceiling, Roles define default grants, and User records define granular Allow/Deny overrides.
  • ›Secure IPSec/WireGuard VPN tunneling connecting AWS VPC instances directly to on-premises SAP ERP databases for master data queues.
  • ›Automated vendor KYC document verification pipeline that ingests GST certificates and company registration documents via OCR.
  • ›Semantic Catalog Taxonomy Engine (JSON-backed) unifying thousands of disparate industrial items into searchable, structured procurement clusters.
Production Permission Enginerbac_permission_resolver.py
def resolve_user_permission(company_id: str, user, action_code: str) -> bool:
    """
    Three-Tier Hierarchical Entitlement Resolution
    Company Ceiling -> Role Grant -> User Override (Deny / Allow)
    """
    # 1. Company Ceiling: If company disables action, it is denied for ALL
    if not is_feature_enabled_for_company(company_id, action_code):
        return False

    # 2. User Specific Override
    user_override = get_user_feature_override(user.id, action_code)
    if user_override == "DENY":
        return False
    if user_override == "ALLOW":
        return True

    # 3. Inherit from Role
    user_role = get_user_role(user.id)
    return is_action_granted_to_role(user_role.id, action_code)

Key Takeaways & Architectural Insights

  • 01In B2B enterprise SaaS, authorization is not a binary toggle; it must reflect hierarchical organizational authority.
  • 02ERP integration cannot be an afterthought; designing bidirectional SAP queues from Day 1 enabled rapid enterprise buy-in.
  • 03Automating document verification at the ingestion layer unlocks frictionless vendor onboarding and accelerated GMV velocity.

Architect High-Velocity B2B Systems

Consult with Aabhas on enterprise ERP integration, complex RBAC, and venture infrastructure.