National Commerce Docs
n8n flows

Overview

Every n8n workflow that runs the National Commerce automation layer, grouped by what it does.

n8n (spelled "N8N" elsewhere in these docs) is the workflow tool that glues ShipHero, Supabase, and the portal together. Each workflow is called a flow (n8n also calls them "scenarios"). This section documents one flow per page.

For the big picture of how data moves between systems, read Data Flows first. This section zooms in on each individual n8n flow: its trigger, its steps, and what it reads or writes.

Purchase orders

Build draft purchase orders, push them to ShipHero, and keep Supabase in sync as orders change.

Shipments & inventory

Pull missing shipments into Supabase, keep on-hand inventory counts current, and clean up voided labels.

SKU, brand & onboarding

Resolve and sync SKUs, provision new accounts, and invite portal users.

ShipHero auth & infrastructure

Log into ShipHero, keep API tokens fresh, and register the webhooks the other flows depend on.

Operations, errors & backups

Cross-cutting flows: shared error handling, retries, backups, and reporting.

Not documented in detail

n8n also holds a handful of starter samples, throwaway tests, and abandoned experiments with no production logic. They are listed on the Test & scratch workflows page for completeness.

On this page