Order Webhook for n8n
A secure n8n webhook for orders from any app: it checks your key and every order, saves the good ones in a data table and answers each caller, with n8n 2.48.7 in Docker.
- n8n
- n8n Webhook node
- n8n Code node
- n8n If node
- n8n Data table node
Screenshots
One-off price
- ₹99+ GST, ₹116.82 in total
- $2
- Download it from your library as soon as your payment is confirmed.
- Every later release of this project is included, at no extra cost.
- Latest release
- 1.0.0 · Nov 21, 2026
- Licence
- Source Code Licence
Overview
The complete source of an order webhook for n8n. Your shop, form or app sends each order as JSON; the webhook accepts only calls with your secret key, checks the customer, book and quantity, saves good orders in an n8n data table and replies with the saved order (201) or a list of problems (400). Includes both workflows, a one-click table setup and Docker Compose with n8n 2.48.7. Tested on macOS.
Shops, forms and apps all need somewhere to send their orders. Order Webhook for n8n gives you that address, ready to run: a webhook that only answers callers with your key, checks every order, saves the good ones and tells each caller exactly what happened. Every reply below was tested in real calls on macOS with n8n 2.48.7 and Docker Desktop.
What it does
- Takes orders from any app. A shop, a form, a script or another service sends each order as JSON to
http://localhost:5678/webhook/orders. - Lets only your callers in. n8n's Header Auth checks the
X-API-Keyheader on every call. A missing or wrong key gets status403andAuthorization data is wrong!, and the workflow never starts. - Checks every order. The customer and the book must be text, at most 100 and 200 characters, and the quantity a whole number from 1 to 100. Every problem is listed, not just the first, and other fields are never saved.
- Saves the good ones. Each good order becomes a row in the Orders data table, with its own
idand the time it was saved. - Answers every caller. A saved order comes back with status
201and its new row. An order with problems gets status400, nothing is saved, and the reply lists each field to fix. A body that isn't JSON gets n8n's own422. - Sets up its own table. A setup workflow creates the Orders table and its columns in one click. Running it again changes nothing.
- Runs n8n for you if you need it.
compose.ymlstarts n8n 2.48.7 in Docker, reachable only from your computer, with an optional port and time zone in.env.
Install
- Unzip the archive and open a terminal in its folder.
- Start n8n with
docker compose up -d. Skip this if you already run n8n 2. - Open
http://localhost:5678, create your owner account and import both workflows from theworkflowsfolder. - Run Set up the Orders table once.
- Make a long random key, for example with
openssl rand -hex 32, and save it in a Header Auth credential for the New order node, under the nameX-API-Key. - Publish Order webhook and send your first order.
Every step with screenshots: How to Set Up and Run the Order Webhook for n8n (opens in a new tab).
Good to know
- Change the rules in one place. The limits for the quantity and the text lengths sit at the top of the Check the order node.
- n8n isn't bundled.
compose.ymldownloads n8n's official image, and n8n's own licence applies to it. - Tested on macOS with Docker Desktop.
Learn how it works
The free n8n Tutorial for Beginners (opens in a new tab) teaches n8n from the start. Part 4: Webhooks: Start a Workflow from Any App (opens in a new tab) builds the first version of this webhook, How to Secure an n8n Webhook with Header Auth (opens in a new tab) covers the key, and How to Send a Custom Response from an n8n Webhook (opens in a new tab) covers the replies.
n8n is a trademark of n8n GmbH. Docker is a trademark of Docker, Inc. Other names are trademarks of their respective owners.
Free tutorial series
n8n Tutorial for Beginners
Prefer to learn by building it? This free, step-by-step guide on our blog shows how the project is made.
What you get
Everything in the archive, at a glance.
- Version 1.0.0 of the complete source: two n8n workflows, a Docker Compose file, an .env example and a README
- The Order webhook workflow: Header Auth on the webhook, a step that checks each order, a step that saves good orders in a data table, and two replies (201 and 400)
- Order checks you can change: a required customer and book, a whole-number quantity from 1 to 100, and a list of every problem found
- A setup workflow that creates the Orders data table in one click
- compose.yml with n8n 2.48.7, private to your computer, with the port and time zone in .env
- A README with the setup steps, the order format, every reply, settings, troubleshooting and clean-up
Built with
The exact runtimes and versions it was built and tested against.
- 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
What is in the archive
The file tree you get once you unzip it.
order-webhook-n8n/
- .env.example
- .gitattributes
- .gitignore
- README.md
- compose.yml
- workflows/
- order-webhook.json
- set-up-orders-table.json
What it needs from you
The accounts and services it expects to find, so nothing is a surprise.
- n8n 2 that you run yourself (the free Community Edition is enough), or Docker to run the included n8n
- Docker Desktop on macOS or Windows, or Docker Engine on Linux, to use compose.yml
- A free port on your computer, 5678 by default
- An app, form or script that can send an HTTP POST with JSON and a header
Releases
Every version so far, newest first.
1.0.0Latest
First release of the complete source.
- An Order webhook that accepts only calls with your key (Header Auth) and checks every order.
- Good orders are saved in an n8n data table and answered with status 201; orders with problems get status 400 and a list of what to fix.
- A setup workflow that creates the Orders table in one click.
- n8n 2.48.7 in Docker with compose.yml, tested on macOS.
Source Code Licence
What you may do with it
What you may and may not do with the source code you buy.
Read the full licence
- 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+ GST, ₹116.82 in total
- $2