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

Bibliothek / E-Commerce & Zahlungen

E-Commerce & Zahlungen

Medusa-Produkte aus PIM-Launch-Webhooks upserten und für den Verkauf einrichten

Empfängt PIM-Produkt-Launch-Payloads per Webhook, legt bepreiste Medusa-Produkte an oder aktualisiert sie, weist Kategorie, Collection und Verkaufskanal zu und gibt eine Launch-Antwort zurück.

Was sie bewirkt

## 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.

Die Schritte

  1. When Product Launch Received
  2. Validate Launch Payload
  3. Fetch Product by Handle
  4. If Product Exists
  5. Update Product Details
  6. Log Updated Product
  7. Merge Product Logs
  8. Create Product with Price
  9. Log New Product
  10. Categorize Product
  11. Collect Product
  12. Publish to Sales Channel
  13. Prepare Launch Response
  14. Send Launch Confirmation

Ähnliche Automatisierungen