Bridging a 15-year-old AS400 ERP to Shopify Plus and warehouse logistics without modifying legacy code
Industrial Wholesale & Distribution · Chicago, IL · USA
"The company couldn't afford to replace their battle-tested ERP, but their sales reps were sick of manual inventory exports. We built an intelligent database bridge that keeps 12,000 SKUs synced in real time."
§ 01 · The Context
The Problem
Apex Logistics operates an 80,000 sq ft distribution facility supplying industrial equipment to B2B contractors across the Midwest. Their operational core is an on-premise AS400 ERP built in 2009.
While the legacy system handled physical warehouse bin locations and wholesale accounting flawlessly, it had zero native web capabilities or REST APIs.
To run their modern Shopify Plus wholesale portal and 3PL fulfillment network, operations staff had to manually export inventory CSVs twice a day and upload them into Shopify.
Inevitably, fast-moving items would sell out in the warehouse while still showing in-stock online, causing embarrassing backorders, angry customer calls, and manual credit card refunds.
Key operational bottlenecks:
§ 02 · Architecture & Delivery
What was actually built.
Non-Invasive Database Bridge & Event-Driven Delta Sync
A secure read-only bridge connecting directly to the underlying DB2/ODBC tables, tracking row modification deltas, and synchronizing state to Shopify and 3PL platforms every 5 minutes.
Read-Only ODBC Delta Polling
Secure Python daemon inspects row modification timestamps on inventory tables without putting locks on live transactions.
Data Normalization & Validation
Cleanses raw part numbers, resolves kit-assembly quantities, and validates sanity thresholds to prevent erroneous zero-outs.
Shopify GraphQL Batch Sync
Transmits delta inventory updates to Shopify Plus via bulk GraphQL mutations, staying well within rate limits.
Carrier Tracking & Automated Fulfillment
Pulls daily freight manifest scans from FedEx and UPS, logs fulfillment into ERP, and triggers customer SMS alerts.
Silent-Failure Anomaly Watchdog
Automated monitor verifies end-to-end sync health; if any SKU drifts or the local link drops, an alert pings IT on Slack.
§ 03 · Transformation
Before and After
Before
- ✕Warehouse employees ran manual CSV exports twice daily to update web stock.
- ✕Stockouts and backorders occurred 15–20 times per week on high-velocity items.
- ✕Carrier tracking numbers were manually typed into billing systems at the end of every shift.
- ✕Management considered a risky multi-year ERP migration just to get web synchronization.
After
- ✓12,000+ SKUs synchronized automatically every 5 minutes with zero human intervention.
- ✓Overselling and inventory discrepancies dropped to absolute zero in the first 90 days.
- ✓Fulfillment updates and carrier tracking link automatically with zero manual entry.
- ✓Saved $450,000 in software replacement costs by making the existing ERP modern.
§ 04 · Outcomes
The Result
Apex modernized their entire digital storefront operations while preserving the stability of the core ERP they have relied on for decades.
- ▸Zero inventory discrepancies recorded across 12,000 SKUs since go-live.
- ▸Customer service back-order complaint tickets decreased by 94%.
- ▸Operations saved 14 hours every single week in manual data entry.
- ▸Completed within 3 weeks at a fixed project cost—saving hundreds of thousands over software replacement.