Библиотека / Синхронизация данных и ETL
Синхронизация данных и ETL
Синхронизация остатков склада в инвентарь Medusa из лент WMS или ERP
Принимает ленты остатков по webhook из WMS или ERP, устанавливает абсолютные значения остатков для сопоставленных SKU в Medusa, логирует несопоставленные SKU и возвращает вызывающей стороне отчёт о синхронизации.
Что делает
## 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.
Шаги
- When Stock Feed Received
- Validate Stock Feed
- Fetch Inventory Item by SKU
- If Inventory Item Exists
- Set Inventory Level
- Log Synced SKU
- Merge Stock Results
- Log Missing SKU
- Prepare Sync Report
- Send Sync Report
Похожие автоматизации
Синхронизация данных и ETLСинхронизация заказов Shopify с ERP Jitterflow с проверкой подписи и оповещениями в SlackШагов: 12Электронная коммерция и платежиМаршрутизация заказов из webhook магазина поставщику, в службу доставки, CRM и ERP с проверкой остатковШагов: 24ИИ-агенты и ассистентыОценка рисков поставщиков и маршрутизация согласований с OpenAI, Slack и данными ERPШагов: 57Синхронизация данных и ETLСинхронизация мастер-данных клиентов и поставщиков между ERP и CRM через вебхукШагов: 16