The Problem
An e-commerce brand was processing orders semi-manually. When a Shopify order came in, someone had to log into the fulfillment portal, submit the order details, then go back to Shopify and send a confirmation email. During peak hours, orders would stack up. During off-hours, nothing got processed until someone checked in the morning.
This created two problems: fulfillment delays and poor customer experience. Customers who buy at 11pm expect a confirmation email quickly — not the next morning when someone finally logs in. And on high-volume days, the manual process would fall behind by hours.
What I Built
A webhook-triggered fulfillment system built in Node.js that connects Shopify, the fulfillment provider API, and Gmail into one automated chain.
The moment a Shopify order is placed, a webhook fires to my server. The system validates the order data, extracts what the fulfillment provider needs (product SKU, quantity, shipping address, order ID), formats it correctly, and submits it to the fulfillment API. Once the fulfillment provider confirms receipt, the system pulls the order details back, builds a branded HTML confirmation email, and sends it to the customer — all within 45–60 seconds of the original purchase.
Error handling is built throughout. If the fulfillment API is down, the order gets queued and retried automatically. If the email fails to send, it gets logged and retried. Nothing silently drops. The team gets a daily digest of everything that was processed and any errors that were handled.
I tested this across 100+ simulated order scenarios before deployment — different product types, edge-case addresses, partial orders, cancelled orders — all handled correctly.
The Result
Fulfillment submission time dropped from "whenever someone checks in" to under 60 seconds, 24/7. Customer confirmation emails now go out instantly. The team stopped logging into the fulfillment portal entirely for standard orders. Order processing errors dropped to near zero because the system validates data before submission.
Tech used: Node.js, Shopify Webhooks API, Fulfillment Provider REST API, Nodemailer (Gmail SMTP), HTML email templates, exponential backoff retry logic, error logging, daily digest scheduler.
0 likes · 0 views · May 2, 2026
Built a zero-touch order fulfillment system — from purchase to customer confirmation in under 60 seconds