n8n flows
Get Order Details (Debug)
Inactive debug tool for reconciling orders and shipments between ShipHero and Supabase, linking and cleaning up records.
An ad-hoc debug and data-repair tool for reconciling orders and shipments between ShipHero and Supabase: backfilling the store link on orphaned shipments, linking shipments to their orders, and cleaning up voided shipments.
At a glance
- Status: Inactive
- Trigger: Manual ("When clicking 'Test workflow'"). No production trigger.
- Runs on: Hand-run debugging and cleanup only.
- Talks to: ShipHero (GraphQL, orders and shipments); Supabase (
Shipments,Orders,Stores,Brands).
How it works
Get Shipments With No Ordersreads SupabaseShipmentswherestore IS null, then loops over them.- Per shipment,
Get Brand For Shipmentsupplies the ShipHero token andGet Shipments For The Orderqueries ShipHero by tracking number. If1(total_count > 0) finds the matchingOrdersrow andLink Order And ShipmentsetsOrders_id.- A separate branch backfills the
storefield onOrdersby matchingshop_nameagainst theStorestable. - Another branch works from a hardcoded array of order IDs, plus a voided-shipment cleanup path (
Delete Voided Shipment).
Notes
- Inactive debug scenario.
- Contains a hardcoded ShipHero Bearer JWT and a hardcoded list of order IDs.
- Several branches are dead-ended.