Simple API endpoint for receiving Shopify webhooks.
- Start the server:
npm start- In a new terminal, expose it with Tunnel mole:
tmole 3000-
Copy the HTTPS URL from tunnelmole output (e.g.,
https://abc-123-456-789.tunnelmole.com) -
Add your webhook URL to Shopify:
- Go to Settings → Notifications → Webhooks
- Create webhook with URL:
https://your-tunnelmole-url/webhook - Select the events you want (orders, products, etc.)
Send a test POST request:
curl -X POST http://localhost:3000/webhook \
-H "Content-Type: application/json" \
-d '{"test": "data"}'All webhook data is logged to the console where the server is running.