Agency · Front RowPilot
ERP-to-Shopify inventory sync
NetSuite to Shopify Inventory Sync
Governed inventory projection from NetSuite to Shopify with pending-demand accounting, drift reconciliation, and audited warehouse commands.
stack: Fastify · TypeScript · NetSuite · Shopify · Background Worker · Drift Reconciliation · Runbooks
Built for Front Row's digital division. Client details withheld.
01 / Problem
The problem
Direct inventory syncs between an ERP and Shopify frequently oversell or diverge when unfulfilled orders, warehouse holds, and mapping changes happen concurrently.
02 / Architecture
The build
- NetSuite maintained as the authoritative source of truth, projecting available inventory to Shopify with pending-demand accounting and drift reconciliation.
- Fastify API, operator dashboard, and background worker supporting versioned SKU/location mapping, safety-stock thresholds, and approval policies.
- Audited warehouse commands and written operational runbooks for governed exception handling.
03 / Diagram
System schematic
04 / Scope
Status & scale
Status
Pilot
Source of truth
NetSuite ERP
Target storefront
Shopify
Governance
Audited commands + runbooks
05 / Stack
Components
- Fastify
- TypeScript
- NetSuite
- Shopify
- Background Worker
- Drift Reconciliation
- Runbooks
06 / Writing
Related writing
- EDI 850 purchase order explained for engineersEDI 850 explained for engineers: the segments in an X12 purchase order, a worked example, how it maps to the 855 acknowledgment, and how to model it.
- EDI 856 (advance ship notice) explained for engineersEDI 856 explained for engineers: the BSN header, the HL shipment, order, pack and item hierarchy, the segments that matter, and how to model it safely.
- Product feed management: a custom feed engine for Merchant Center, Microsoft and MetaHow a product feed management engine was built for Magento and Merchant Center: CEL rules, pgvector enrichment, channel adapters and a parallel cutover.
- NetSuite Shopify integration: inventory sync with drift reconciliationA NetSuite Shopify integration with NetSuite as master: pending Shopify demand, certificate OAuth, compare-and-set writes and drift reconciliation.
- Offline conversion tracking for Google Ads: click IDs, hashed identities and GA4Offline conversion tracking for phone sales: three ways to send them back to Google Ads, the identifier each needs, and how to check the value is real.
- What is EDI? Retail X12 documents 850, 855, 856, 810 and 846 for engineersWhat is EDI? A working explanation of the five retail X12 documents, how they map to an order lifecycle, and where an EDI network like SPS Commerce fits.