Order Webhook for n8n
Sicherer n8n-Webhook für Bestellungen aus jeder App: prüft Schlüssel und Bestellung, speichert gültige in einer Datentabelle und antwortet jedem Aufrufer. Mit n8n 2.48.7 in Docker.
- n8n
- n8n Webhook node
- n8n Code node
- n8n If node
- n8n Data table node
Bildschirmfotos
Einmaliger Preis
- 99 ₹zzgl. GST, insgesamt 116,82 ₹
- 2 $
- Laden Sie es aus Ihrer Bibliothek herunter, sobald Ihre Zahlung bestätigt ist.
- Alle künftigen Releases dieses Projekts sind ohne Aufpreis enthalten.
- Neuestes Release
- 1.0.0 · 21.11.2026
- Lizenz
- Source Code Licence
Überblick
Der vollständige Quellcode eines Bestell-Webhooks für n8n. Er nimmt nur Aufrufe mit Ihrem geheimen Schlüssel an, prüft Kunde, Buch und Menge jeder JSON-Bestellung, speichert gültige in einer n8n-Datentabelle und antwortet mit der gespeicherten Bestellung (201) oder einer Liste der Probleme (400). Mit beiden Workflows, der Tabelle per Klick und Docker Compose mit n8n 2.48.7. Getestet unter macOS.
Shops, Formulare und Apps brauchen eine Adresse für ihre Bestellungen. Order Webhook for n8n liefert diese Adresse startklar: einen Webhook, der nur Aufrufern mit Ihrem Schlüssel antwortet, jede Bestellung prüft, die gültigen speichert und jedem Aufrufer genau sagt, was passiert ist. Jede Antwort unten wurde in echten Aufrufen unter macOS mit n8n 2.48.7 und Docker Desktop getestet.
Was es tut
- Nimmt Bestellungen aus jeder App an. Ein Shop, ein Formular, ein Skript oder ein anderer Dienst sendet jede Bestellung als JSON an
http://localhost:5678/webhook/orders. - Lässt nur Ihre Aufrufer herein. Header Auth von n8n prüft bei jedem Aufruf den Header
X-API-Key. Ohne oder mit falschem Schlüssel lautet die Antwort Status403mitAuthorization data is wrong!, und der Workflow startet gar nicht erst. - Prüft jede Bestellung. Kunde und Buch müssen Text sein, höchstens 100 und 200 Zeichen lang, und die Menge eine ganze Zahl von 1 bis 100. Jedes Problem wird aufgelistet, nicht nur das erste, und andere Felder werden nie gespeichert.
- Speichert die gültigen. Jede gültige Bestellung wird eine Zeile in der Datentabelle Orders, mit eigener
idund dem Zeitpunkt der Speicherung. - Antwortet jedem Aufrufer. Eine gespeicherte Bestellung kommt mit Status
201und ihrer neuen Zeile zurück. Eine Bestellung mit Problemen erhält Status400, nichts wird gespeichert, und die Antwort nennt jedes zu korrigierende Feld. Ein Body, der kein JSON ist, erhält das422von n8n selbst. - Legt seine Tabelle selbst an. Ein Setup-Workflow erstellt die Tabelle Orders und ihre Spalten mit einem Klick. Ein zweiter Lauf ändert nichts.
- Startet n8n für Sie, wenn nötig.
compose.ymlstartet n8n 2.48.7 in Docker, nur von Ihrem Computer aus erreichbar, mit optionalem Port und optionaler Zeitzone in.env.
Installation
- Entpacken Sie das Archiv, und öffnen Sie ein Terminal in seinem Ordner.
- Starten Sie n8n mit
docker compose up -d. Überspringen Sie diesen Schritt, wenn Sie n8n 2 schon betreiben. - Öffnen Sie
http://localhost:5678, legen Sie Ihr Owner-Konto an, und importieren Sie beide Workflows aus dem Ordnerworkflows. - Führen Sie Set up the Orders table einmal aus.
- Erzeugen Sie einen langen zufälligen Schlüssel, zum Beispiel mit
openssl rand -hex 32, und speichern Sie ihn in Header-Auth-Zugangsdaten für den Knoten New order, mit dem NamenX-API-Key. - Veröffentlichen Sie Order webhook, und senden Sie Ihre erste Bestellung.
Jeder Schritt mit Screenshots: How to Set Up and Run the Order Webhook for n8n (öffnet in einem neuen Tab) (auf Englisch).
Gut zu wissen
- Regeln an einer Stelle ändern. Die Grenzen für die Menge und die Textlängen stehen oben im Knoten Check the order.
- n8n ist nicht enthalten.
compose.ymllädt das offizielle n8n-Image herunter, und dafür gilt die eigene Lizenz von n8n. - Getestet unter macOS mit Docker Desktop.
So funktioniert es
Das kostenlose n8n Tutorial for Beginners (öffnet in einem neuen Tab) (auf Englisch) bringt Ihnen n8n von Grund auf bei. Part 4: Webhooks: Start a Workflow from Any App (öffnet in einem neuen Tab) (auf Englisch) baut die erste Version dieses Webhooks, How to Secure an n8n Webhook with Header Auth (öffnet in einem neuen Tab) (auf Englisch) erklärt den Schlüssel, und How to Send a Custom Response from an n8n Webhook (öffnet in einem neuen Tab) (auf Englisch) erklärt die Antworten.
n8n ist eine Marke der n8n GmbH. Docker ist eine Marke von Docker, Inc. Andere Namen sind Marken ihrer jeweiligen Inhaber.
Kostenlose Tutorial-Reihe
n8n Tutorial for Beginners
Sie lernen lieber beim Nachbauen? Diese kostenlose Schritt-für-Schritt-Anleitung in unserem Blog zeigt, wie das Projekt entsteht.
Das bekommen Sie
Alles im Archiv, auf einen Blick.
- Version 1.0.0 des vollständigen Quellcodes: zwei n8n-Workflows, eine Docker-Compose-Datei, ein .env-Beispiel und eine README
- Den Workflow Order webhook: Header Auth am Webhook, ein Schritt, der jede Bestellung prüft, ein Schritt, der gültige Bestellungen in einer Datentabelle speichert, und zwei Antworten (201 und 400)
- Prüfungen, die Sie ändern können: Pflichtfelder Kunde und Buch, eine ganzzahlige Menge von 1 bis 100 und eine Liste jedes gefundenen Problems
- Einen Setup-Workflow, der die Datentabelle Orders mit einem Klick anlegt
- compose.yml mit n8n 2.48.7, privat auf Ihrem Computer, mit Port und Zeitzone in .env
- Eine README mit den Setup-Schritten, dem Bestellformat, jeder Antwort, Einstellungen, Fehlerbehebung und Aufräumen
Gebaut mit
Die genauen Laufzeitumgebungen und Versionen, mit denen gebaut und getestet wurde.
- n8n2.48.7
- n8n Webhook node2.2
- n8n Code node2
- n8n If node2.4
- n8n Data table node1.1
- n8n Respond to Webhook node1.5
- Docker Compose5.7.0
- Docker Engine29.9.3
Was im Archiv liegt
Der Dateibaum, den Sie nach dem Entpacken vor sich haben.
order-webhook-n8n/
- .env.example
- .gitattributes
- .gitignore
- README.md
- compose.yml
- workflows/
- order-webhook.json
- set-up-orders-table.json
Was es von Ihnen braucht
Die Konten und Dienste, die es voraussetzt, damit Sie später nichts überrascht.
- n8n 2, das Sie selbst betreiben (die kostenlose Community Edition reicht), oder Docker für das mitgelieferte n8n
- Docker Desktop unter macOS oder Windows oder Docker Engine unter Linux, um compose.yml zu nutzen
- Einen freien Port auf Ihrem Computer, standardmäßig 5678
- Eine App, ein Formular oder ein Skript, das einen HTTP-POST mit JSON und einem Header senden kann
Versionen
Alle bisherigen Versionen, die neueste zuerst.
1.0.0Neueste
Erste Version des vollständigen Quellcodes.
- Ein Order webhook, der nur Aufrufe mit Ihrem Schlüssel annimmt (Header Auth) und jede Bestellung prüft.
- Gültige Bestellungen werden in einer n8n-Datentabelle gespeichert und mit Status 201 beantwortet; Bestellungen mit Problemen erhalten Status 400 und eine Liste der Korrekturen.
- Ein Setup-Workflow, der die Tabelle Orders mit einem Klick anlegt.
- n8n 2.48.7 in Docker mit compose.yml, getestet unter macOS.
Source Code Licence
Was Sie damit tun dürfen
What you may and may not do with the source code you buy.
Vollständige Lizenz lesen
- What this licence covers
This licence governs every file included in a product you buy from Dewiride Store: source code, configuration, database scripts, sample data, documentation and any other file in the download. It takes effect when your payment is confirmed and applies to every release of that product that reaches your library. Files that reach your library through an annual updates membership are governed in exactly the same way.
It forms part of the Terms of Sale and Use. Where a product page states different or additional licence terms for that product, those terms prevail for that product. The membership page may likewise state different or additional licence terms for the files a membership carries, and those terms then prevail for those files.
- The licence we grant you
We grant you a perpetual, worldwide, non-exclusive, non-transferable licence to use, reproduce, adapt, translate and modify the files, and to include the result in your own work, on the conditions set out below.
Perpetual means it does not expire. Worldwide means it is not limited to any country. Non-exclusive means we license the same product to other customers. Non-transferable means you cannot pass it on to someone else.
The licence is granted to you — either you personally, or the organisation you identified when buying. Everyone working within that organisation may use the files for that organisation’s projects. Nobody outside it may.
- What you may do
- Use and change the files in your own projects, commercial or otherwise, with no limit on the number of projects.
- Build a product or a service on them and charge your own customers for it.
- Deploy the result for a client, as part of work you are doing for that client.
- Distribute the result in compiled, deployed or otherwise non-source form.
- Keep as many back-up copies as you reasonably need.
- Study, observe and test how the code works, and obtain the information you need to make it work with your own software.
The last two are yours by law under sections 52(1)(aa) to (ac) of the Indian Copyright Act, 1957, and nothing in this licence is intended to take them away.
- What you may not do
- Resell, sublicense, redistribute or publish the files themselves, in whole or in substantial part, in source form.
- Include them in a template, starter kit, course, tutorial repository or component library that you sell or give away, where the code is the thing being supplied.
- Share your account, your download links or your invoices with anyone outside your organisation.
- Publish the files in a public repository, or in any other place where they can be obtained without buying them.
- Remove or obscure the copyright and attribution notices in the source files.
- Use the files to build something whose main purpose is to compete with Dewiride Store as a supplier of the same code.
The distinction that matters is simple: you may sell what you build with the code; you may not sell the code.
- Third-party components
Our products depend on open-source libraries, frameworks and services that we did not write. Those remain under their own licences, which we do not and cannot change. Where a product includes or requires such a component, its licence is named in the product’s documentation, and complying with it is your responsibility.
- Releases
Every release of a product you own is covered by this same licence and appears in your library at no extra cost. A release you have already downloaded remains licensed to you even if we later stop publishing the product. A release that reached your library through an annual updates membership is licensed to you on these same terms, and stays licensed after the period that carried it has ended.
- Ownership
We keep ownership of the files and of the copyright in them. You own whatever you create with them: your changes, your additions and the product you build are yours.
- If this licence ends
This licence ends if you materially breach it and do not put the breach right within thirty days of us asking you to in writing. It also ends if your payment is reversed or refunded, because the purchase it depends on no longer stands. Where a membership period is refunded or reversed, the licence ends for the releases that period carried and for nothing else: anything you bought separately, or that another period carried, is unaffected.
If it ends, you must stop using the files and delete the copies you hold. Work you had already delivered to a client before that point may continue in use, so that ending this licence never breaks something your own customer relies on.
- No warranty beyond the description
The warranties and limits in section 19 and section 20 of the Terms of Sale and Use apply to this licence as well.
- Governing law
This licence is governed by the law of India, and section 24 of the Terms of Sale and Use applies to any dispute about it. If a translation and the English version differ in meaning, the English version governs.
Order Webhook for n8n
- 99 ₹zzgl. GST, insgesamt 116,82 ₹
- 2 $