E-Commerce Automation Project

Rebuilding NextEngine integration broken by multi-location setup with a custom app

EC AutomationOrder ManagementNextEngineShopifyMulti-Location
4 min read

Introduction

Shopify and NextEngine come with built-in integration features. When an order comes in, it's automatically reflected in NextEngine, and when shipping is processed, customers receive notifications. Normally, this standard integration works perfectly fine.

However, when you add multiple locations (warehouses) to Shopify, this standard integration stops working.

Whether you want to ship from multiple locations or manage inventory separately by warehouse—when you implement multi-location for such business requirements, the automatic integration breaks.

This project built a custom integration app that works in multi-location environments, restoring the lost automation.

Why Does Standard Integration Stop Working?

Shopify's standard NextEngine integration is designed with a single location (warehouse) in mind.

Single Location (Standard Integration Works)
Shopify

1 warehouse only

Standard Integration
NextEngine

Auto-sync OK

Multi-Location (Standard Integration Stops)
Shopify

Warehouse A + Warehouse B

×
NextEngine

Integration breaks

When multiple locations are added, the following features stop working:

  • Automatic order data transfer to NextEngine
  • Automatic shipping notifications to customers
  • Inventory synchronization

What This Project Achieved

We built a custom app to replace the standard integration, achieving the following automation even in multi-location environments.

1. Automatic Order Data Transfer

When an order is placed on Shopify, it receives the Webhook and automatically sends data to NextEngine. Regardless of which warehouse ships the order, order information reliably reaches NextEngine.

2. Automatic Shipping Notifications

When shipping is completed in NextEngine, shipping information is automatically registered to Shopify. Customers receive shipping notification emails with tracking numbers.

3. Multi-Store Support

Even when operating multiple Shopify stores, integration is possible with independent settings per store. The same system handles additional stores.

4. Spreadsheet Integration

Bidirectional integration with Google Sheets enables automatic sales data export and bulk inventory updates, streamlining daily aggregation work.

5. Reliability and Error Handling

Automatic token renewal, duplicate prevention, detailed logging—mechanisms for stable operation are implemented.

Overall Architecture

Multi-Location Compatible Integration App
Shopify (Multiple Warehouses)

Orders and shipments from Warehouse A / Warehouse B

Webhook (On Order)
Integration App (This System)

Order conversion · Shipping sync · Duplicate check · Error handling

API Integration
NextEngine

Order Management

Google Sheets

Bidirectional Data Sync

Comparison with Standard Integration

Single Location
Standard Integration○ Works
This Project○ Works
Multi-Location
Standard Integration× Doesn't work
This Project○ Works
Multi-Store Support
Standard Integration△ Limited
This Project○ Flexible
Spreadsheet Integration
Standard Integration× None
This Project○ Bidirectional
Customization
Standard Integration× Fixed specs
This Project○ Adjustable to requirements

Tech Stack

Data Storage
TechnologyVercel KV (Redis-compatible)
PurposeTokens, settings, state
Scheduler
TechnologyQStash
PurposePeriodic job management
Encryption
TechnologyAES-256-GCM
PurposeSecure credential storage
External Integration
TechnologyNextEngine API
PurposeOrder system integration
Spreadsheet
TechnologyGoogle Sheets API
PurposeRead/write spreadsheets
Authentication
TechnologyHMAC-SHA256
PurposeWebhook signature verification

Feature Details

Each feature's technical details are explained in depth.

Summary

Shopify's multi-location feature is convenient for managing inventory and shipping from multiple locations. However, it has the constraint that NextEngine's standard integration stops working.

This project resolved this constraint by building a custom integration app, achieving automation equal to or better than before even in multi-location environments.

Related Topics