Библиотека / Электронная коммерция и платежи
Электронная коммерция и платежи
Создание и обновление товаров Medusa из вебхуков запуска PIM
Принимает по вебхуку данные о запуске товара из PIM, создаёт или обновляет товары Medusa с ценами, назначает категорию, коллекцию и канал продаж и возвращает ответ о запуске.
Что делает
## Upsert and merchandise Medusa products from a PIM ### How it works This workflow receives a product launch payload from a PIM, validates it, and looks up the product in Medusa by handle. It updates an existing product or creates a new priced product, normalizes the branch output, then merchandises the product by assigning it to a category, collection, and sales channel. Finally, it builds and returns a launch response to the webhook caller. ### Setup steps - Configure the webhook URL in the PIM so product launch events are sent to the "Receive product launch" trigger. - Set up Medusa credentials in n8n for all Medusa nodes, including the correct backend URL and API token. - Confirm the payload fields expected by the validation code, especially handle, pricing, category_id, collection_id, and sales channel identifiers. - Verify the Medusa category, collection, and sales channel IDs referenced by the payload or node parameters exist in the target store. ### Customization Adjust the validation code and Set nodes to match your PIM schema, and modify the Medusa merchandising steps if products should be assigned to different categories, collections, or sales channels.
Шаги
- When Product Launch Received
- Validate Launch Payload
- Fetch Product by Handle
- If Product Exists
- Update Product Details
- Log Updated Product
- Merge Product Logs
- Create Product with Price
- Log New Product
- Categorize Product
- Collect Product
- Publish to Sales Channel
- Prepare Launch Response
- Send Launch Confirmation
Похожие автоматизации
Синхронизация данных и ETLСинхронизация остатков склада в инвентарь Medusa из лент WMS или ERPШагов: 10ИИ-агенты и ассистентыQuery and edit UnoPim product catalogs with OpenAI GPT-4o and SlackШагов: 18Электронная коммерция и платежиSync UnoPim product catalogs to Shopify and log results in Sheets, Slack and JiraШагов: 11Автоматизация эл. почтыAudit UnoPim catalog completeness weekly and email a scorecard to your teamШагов: 11