{"ok":true,"layer":"ecommerce-blockchain-v3","enabled":false,"chainReady":false,"message":"Set BLOCKCHAIN_LAYER_ENABLED=true after migration 101 and contract deploy.","openBoxAi":{"pilotScope":"descoped","enabled":false},"meta":{"title":"E-Commerce + Blockchain Layer","modulePrefix":"EC","sourcePath":"reference/concept-platform/Platform first/Blockchain commerce","specFile":"HealthNode_Ecommerce_Blockchain_v3.py","chain":"Polygon PoS","secureThresholdInr":500,"autoTriggerOrdersPerMonth":2000,"writesPerSecureOrder":3,"costPerSecureOrderPaise":"45–60","overallCompletionPct":72,"updated":"June 2026"},"secureThresholdInr":500,"integration":{"liveSteps":4,"partialSteps":8,"descopedSteps":2,"gapSteps":1,"plannedSteps":0,"completionPct":72},"lifecycle":[{"step":1,"phase":"CUSTOMER","actor":"Patient","action":"Search medicine / lab","hospitalNodeRoute":"/shop?view=paramedics&service=pharmacy","apiEndpoint":"GET /api/products","status":"live"},{"step":2,"phase":"CUSTOMER","actor":"Patient","action":"Add to cart + stock check","hospitalNodeRoute":"/cart","apiEndpoint":"POST /api/orders (inventory verify)","status":"live"},{"step":3,"phase":"CUSTOMER","actor":"Patient","action":"Rx upload for Schedule H drugs","hospitalNodeRoute":"/shop?view=ai","apiEndpoint":"POST /api/shop/hospital-ai/rx","status":"partial"},{"step":4,"phase":"CUSTOMER","actor":"Patient","action":"Checkout — address + payment method","hospitalNodeRoute":"/checkout","apiEndpoint":"POST /api/orders","status":"live"},{"step":5,"phase":"PAYMENT","actor":"Razorpay","action":"UPI / card / webhook confirm","apiEndpoint":"POST /api/payments/razorpay/webhook","status":"live"},{"step":6,"phase":"WAREHOUSE","actor":"Warehouse","action":"Pick + pack + dispatch","apiEndpoint":"PUT /api/vendor/... dispatch","blockchainWrite":"write1","status":"partial"},{"step":7,"phase":"DELIVERY","actor":"Delivery agent","action":"Pickup QR handover","hospitalNodeRoute":"/customer/track-order","apiEndpoint":"POST /api/delivery/scan-pickup","blockchainWrite":"write2","status":"partial"},{"step":8,"phase":"DELIVERY","actor":"Agent","action":"GPS tracking en route","status":"partial"},{"step":9,"phase":"DELIVERY","actor":"Agent","action":"Doorstep arrival","status":"partial"},{"step":10,"phase":"OPEN-BOX","actor":"AI camera","action":"Open-box scan (≥₹500)","blockchainWrite":"none","status":"descoped"},{"step":11,"phase":"OPEN-BOX","actor":"AI camera","action":"Match / mismatch verdict — descoped from pilot (OPEN_BOX_AI_ENABLED)","status":"descoped"},{"step":12,"phase":"DELIVERY","actor":"Customer","action":"OTP delivery confirm","apiEndpoint":"POST /api/phlebo/... (lab) · order confirm","status":"partial"},{"step":13,"phase":"BLOCKCHAIN","actor":"BullMQ worker","action":"Polygon Write 3 — final audit hash","apiEndpoint":"BullMQ blockchain:worker + AuditLog.sol","blockchainWrite":"write3","status":"partial"},{"step":14,"phase":"COMMISSION","actor":"System","action":"VHG / vendor commission payout","status":"gap"},{"step":15,"phase":"NOTIFY","actor":"System","action":"SMS / WhatsApp all parties","status":"partial"}],"legal":[{"law":"IT Act 2000","status":"compliant","note":"Polygon log = electronic record (65B)"},{"law":"DPDP Act 2023","status":"compliant","note":"Only SHA-256 on chain — no PII/video"},{"law":"Consumer Protection E-Commerce 2020","status":"compliant","note":"Open-box + audit trail"},{"law":"Drugs & Cosmetics Act","status":"action","note":"Online pharmacy licence required for VHG"}],"dashboard":"/blockchain","worker":"npm run blockchain:worker","deploy":"npm run blockchain:deploy-amoy","thresholdApi":"/api/blockchain/threshold-status"}