Zum Inhalt springen
NEULerne Alaaddin kennen, deinen KI-Flaschengeist mit Stimme. trig8n startet am 1. Januar 2027. Neuigkeiten ansehen

Bibliothek / Datensynchronisierung & ETL

Datensynchronisierung & ETL

Lagerbestände aus WMS- oder ERP-Feeds in Medusa-Inventar synchronisieren

Empfängt Bestandsfeeds per Webhook von einem WMS oder ERP, setzt absolute Lagerbestände für passende SKUs in Medusa, protokolliert nicht zugeordnete SKUs und gibt dem Aufrufer einen Synchronisationsbericht zurück.

Was sie bewirkt

## Sync multi-location inventory to Medusa from any WMS ### How it works This workflow receives a warehouse stock payload from a WMS or ERP, validates and expands each SKU row, and looks up the corresponding inventory item in Medusa. It sets the absolute stock level for matched items, records unmatched SKUs without creating stray records, combines both branches, then returns a structured sync report to the webhook caller. ### Setup steps - Configure the WMS or ERP to send POST requests to the "When Stock Feed Received" webhook URL. - Set up Medusa credentials in n8n for both Medusa nodes, including the backend URL and secret API token. - Send stock_location_id plus an items array containing sku and stocked_quantity. - Confirm every SKU exists as a Medusa Inventory Item and the stock location ID exists in the target store. ### Customization Adjust the validation code to match the source system's stock schema, add webhook authentication before production, or route not_found results to an alerting or reconciliation workflow.

Die Schritte

  1. When Stock Feed Received
  2. Validate Stock Feed
  3. Fetch Inventory Item by SKU
  4. If Inventory Item Exists
  5. Set Inventory Level
  6. Log Synced SKU
  7. Merge Stock Results
  8. Log Missing SKU
  9. Prepare Sync Report
  10. Send Sync Report

Ähnliche Automatisierungen