How n8n connects ERPNext to the rest of the business
When ERPNext is the system of record, the question is how forms, shops and CRMs get their data into it without copying records by hand. The supported route is the n8n ERPNext node, which creates, deletes, retrieves, lists and updates documents of any DocType. Your workflow reads a order, lead or customer from a web form, a storefront or a CRM, maps the fields to the DocType's field names, and writes the document to ERPNext. For calls outside document CRUD, such as running a whitelisted method or reading a report, you use the HTTP Request node with the same ERPNext credential. Confirm in the ERPNext node documentation which operations and DocTypes your version exposes before you design around them, and test the field mapping against a non-production site first.
Licensing decides who can run this and how. ERPNext is licensed under GPL-3.0 and the Frappe Framework under MIT, so you can self-host both at no license fee. n8n is different: it is source-available under the Sustainable Use License, which permits use only for your own internal business purposes or for non-commercial or personal use. Connecting ERPNext to your own forms and CRM is normally internal use, but if you embed the workflows in a product you sell to customers, or run them as a service for other companies, the terms need legal review. Also check whether any file you rely on carries an .ee marking, since those files need a separate n8n Enterprise License. Ask your legal team to confirm how the Sustainable Use License applies to your planned use before the design is fixed.
What you need before connecting n8n to ERPNext
Connecting n8n to ERPNext depends on five things lining up: a supported ERPNext version, a hosting path your team can maintain, a scoped API user, a network route from n8n to the site, and a current n8n release. Confirm each one before building the first workflow, because a mismatch in any of them is hard to diagnose once workflows are running.
A supported ERPNext version
Confirm which major version the site runs before choosing node operations or API paths. Version 15 is planned to be supported until the end of 2027 and version 16 until the end of 2029. Version 14 reached end of life on January 31, 2026, so an integration built against it will sit on an unpatched platform. Both supported majors receive frequent minor releases, so plan a routine to track them as the integration depends on them.
Supported versionsA hosting path you can operate
ERPNext can run on Frappe Cloud, on Docker Compose with the frappe_docker images, or manually with the bench command line tool. The choice decides who patches the site, runs backups and manages background workers. The single-file demo setup in frappe_docker is intended for short-lived evaluation only, so do not point a production workflow at it. Ask your implementation partner or internal team which path they own before the integration is designed.
frappe_docker repositoryA scoped API user
Create a dedicated ERPNext user for n8n rather than reusing an administrator account. Assign a role that grants read and write access only to the document types the workflows touch, and restrict record permissions where your data model allows it. Generate API credentials for that user and store them in the n8n credential store. Review the role whenever a new workflow needs another document type, and keep a record of who approved each permission change.
HTTPS reachability from n8n
The n8n host must reach the ERPNext site over HTTPS on the site's public or internal hostname. Check DNS resolution, certificate chain validity and any firewall or proxy rules between the n8n network and ERPNext. If n8n runs in a restricted segment, open only the port and hostname the integration needs. A failed call that looks like an authentication error is often a certificate or routing problem, so test connectivity with a read-only request before building anything on top of it.
A current n8n version
Run a current n8n release on infrastructure you control, and record the version the integration is built against. n8n uses semantic versioning and ships minor releases roughly weekly, and n8n 2.43 was released on 6 October 2026. Node behavior can change between releases, so pin the version in your deployment and test upgrades in a non-production instance before rolling them to production. Confirm the ERPNext node's current operations in your chosen version.
n8n release notesFrappe support plan for warranty
Frappe states that customers must run a listed version and hold a matching Frappe Cloud support plan to receive warranty coverage from Frappe. If your site is self-hosted, confirm with Frappe or your partner whether any support arrangement applies, and what it covers for issues caused by custom integrations. Ask in writing whether an API integration built outside Frappe's own apps affects that coverage, and record the answer before go-live.
Support versions policyConfiguring the ERPNext credential and first document workflow
This sequence connects n8n to an ERPNext site with a dedicated API user, proves the connection with a read, and then creates and updates one document type from a form submission. Each step ends with a check so problems surface before any production data moves.
Create a dedicated ERPNext integration user
An ERPNext administrator creates a separate user for n8n, not a personal account, and assigns only the roles the workflows need, such as read and write access to the document types in scope. Keep the user's permissions narrow so a leaked key exposes as little as possible. Confirm the role set with your ERPNext administrator and your own access model before you continue. The step is done when the user exists, is enabled, and its permissions have been reviewed and written down.
Generate the API key and secret
Signed in as the integration user, or as an administrator acting on that user, generate an API key and secret pair from the user's settings in the ERPNext desk. Store both values in your organization's secrets store, not in a workflow note or a shared document. ERPNext shows the secret only at generation, so record it at that moment. The step is done when the key and secret are stored in a location your team controls and the owner of the record knows where they are.
Create the n8n ERPNext credential
In n8n, open the credentials area and create an ERPNext credential with the site URL of the non-production site, the API key, and the API secret. Confirm the URL uses the protocol and host your users reach and that it matches the site you intend to test. Save the credential and check the connection test that n8n runs when you save. The step is done when the credential saves without error and the connection test reports success.
Test a read on a non-production site
Build a small workflow with a manual trigger followed by the ERPNext node set to list documents of one type, such as Customer, with a small result limit. Run it and inspect the output. The check is a successful list call that returns records matching what the integration user can see in the ERPNext desk. If the list is empty when you expect data, compare the user's permissions against the document type before changing anything else.
Build the form trigger and create a document
Add a form trigger to the workflow, define two or three fields that match a simple document type you have agreed with the business owner, and connect the ERPNext node set to create a document of that type. Map each form field to the matching ERPNext field name carefully, since field names in ERPNext are case and spelling sensitive. Submit a test entry through the form. The check is a new record visible in the ERPNext desk with the values you submitted.
Update the document and confirm the change
Extend the workflow with a second ERPNext node that updates the document created in the previous step, using the document name returned by the create call. Submit a second test entry that changes one field and confirm the update runs. The check is the changed value visible on the same record in the ERPNext desk, with no duplicate record created. Record which field and document type you tested so the same pattern can be repeated for others.
Force a failure and read the error
Deliberately send one invalid value, such as a field name that does not exist or a mandatory field left empty, and run the workflow. Open the n8n execution log for the failed run and read the error returned by the ERPNext node. The check is a readable error that names the failing operation or field, which tells the team what to fix. Note the error pattern, because it will guide how alerts and retries are configured later.
Mapping form, shop and CRM fields to ERPNext DocTypes
This table compares the main ERPNext DocTypes an n8n workflow usually writes to, showing what each requires, which link fields must already exist, and who sets each value. Read it before building a workflow so that the source form or CRM payload is checked against ERPNext's rules first. Most failed creates trace back to a missing link record or a naming choice made too late.
| DocType | Required fields to supply | Link fields and child rows | Workflow sets versus ERPNext defaults |
|---|---|---|---|
| Customer | Customer name and customer group, territory and currency where your setup requires them | Customer group and territory must exist as records; primary contact and address are separate documents linked afterward | Workflow sets name, group and contact details; ERPNext applies naming series and default currency from company settings |
| Lead | Lead name and an email or phone value your duplicate rule checks | Source and territory link to existing masters; lead owner must be a valid user | Workflow sets source from the form; ERPNext assigns naming series and status defaults |
| Item | Item code, item name, item group and stock UOM | Item group and default UOM must exist; variant attributes are separate records | Workflow sets code and names; ERPNext applies default warehouse and valuation settings only if configured |
| Sales Order | Customer, transaction date, delivery date and company | Customer is a link field; each line is a child table row referencing an existing Item and UOM | Workflow sets header and item rows; ERPNext computes totals, taxes and naming series from its settings |
| Address and Contact | Address title, type and linked customer reference | Dynamic link to parent Customer; the parent must be saved first | Workflow creates both after the Customer returns its ID; ERPNext fills display fields automatically |
| Child table rows | Each row must include every mandatory column of the child DocType | Parent name and parent field must match the child DocType definition | Workflow builds the array in one request; a single invalid row can reject the whole document |
| Naming series | Series prefix selected or left to default in the document | Series is defined per DocType in ERPNext settings, not in n8n | Workflow may pass a series value; ERPNext generates the document name and rejects unknown series |
| Duplicate handling | Search by a stable key such as email or tax ID before creating | Use the ERPNext list or get endpoint in an IF branch; update the existing record instead of creating | Workflow decides create versus update; ERPNext duplicate rules apply only where configured on the DocType |
When to use the ERPNext node and when to use HTTP Request
The ERPNext node covers the everyday document operations that most integrations need. It creates, deletes, retrieves, lists and updates documents of any ERPNext document type, which means a form submission, a web shop order or a CRM record can each map to a standard document such as a customer, lead, sales order or item without custom code. For these cases the node is the first choice because its field mapping, credential handling and error output are maintained alongside n8n itself, and your team does not need to write or maintain request bodies by hand.
- Document types: Create, read, list, update and delete operations apply to any document type your user is permitted to access.
- Permissions: The node acts with the API user's roles, so role permissions in ERPNext still decide what each workflow can read or write.
- Child tables: Confirm during testing how line items in child tables are mapped, since nested rows are where field mapping errors usually appear.
- Bulk loads: For large one-time loads, the ERPNext Data Import tool is usually a better fit than a workflow that runs thousands of node calls.
- Upgrades: Retest mappings after each ERPNext minor release, because field names and required fields can change.
Before you commit a workflow to the node, check the document types and operations it needs against the node documentation and run a test against a staging site with the same ERPNext version as production.
Some integrations need actions that are not document operations: calling a custom whitelisted method, running a report, or reaching a custom API endpoint added by an app. For these cases, the HTTP Request node in n8n calls the ERPNext REST API directly and can reuse the same ERPNext credential as the ERPNext node, so authentication stays in one place. You own the request shape in this case, including the method path, parameters, pagination and error handling, so the workflow needs the same review as any custom API client.
- Same credential: Reuse the ERPNext API credential so token rotation and access scope are managed once.
- Custom methods: Whitelisted methods and custom endpoints are called by path with parameters you define.
- Reports: Report output is typically read through the API and mapped in n8n, so confirm the response shape for each report version.
- Error handling: Handle HTTP status codes and ERPNext error messages explicitly, since the node does not hide them for raw calls.
- Scope: Keep the calls narrow so the API user has only the permissions the workflow actually uses.
Before building these calls, list each endpoint the workflow needs and confirm with your ERPNext developer that it exists, is whitelisted and returns the fields you expect.
Custom server logic in ERPNext often lives in Server Scripts, which run Python on document events or as API endpoints. From version 15 onward Server Scripts are disabled by default and must be enabled with the server_script_enabled setting. Frappe Cloud public shared benches do not allow them at all. If your integration depends on a Server Script endpoint, the hosting model decides whether the HTTP Request approach is possible, so this must be settled before design starts.
- Version check: Versions before 15 and version 15 or later have different default behavior, so confirm the exact version on your site.
- Enablement: Enabling
server_script_enabledis an administrative decision that affects every user with the right to create scripts. - Frappe Cloud: Public shared benches do not allow Server Scripts, so a dedicated or self-hosted site is needed for that pattern.
- Code review: Scripts that run on document events change data outside n8n, so they need the same change control as other code.
- Alternatives: Where scripts are not permitted, an app with whitelisted methods or an integration on the workflow side may fit better.
Before committing to a design, confirm with your ERPNext administrator whether Server Scripts are enabled, which hosting model applies and who approves changes to server-side logic.
How a form submission reaches an ERPNext document
A form, shop or CRM posts a webhook to n8n, which validates the payload and maps its fields to the target DocType. n8n then calls ERPNext over HTTPS with a scoped API user, either through the ERPNext node or the HTTP Request node. ERPNext writes the document and returns its ID, which n8n records in its execution log. The boundary between the n8n host and the ERPNext site is where you check authentication, permissions and what data leaves your network.
Data path from a form submission through n8n to an ERPNext document, with the trust boundary between hosts.
Securing the API user, credentials and data in transit
An n8n workflow that writes to ERPNext holds a login with real business permissions, so the API user, the stored credentials and the network paths between the three systems need the same care as a human administrator's access. The cards below cover the decisions that connect them, from the ERPNext role through to the audit trail that shows who changed what.
Least-privilege ERPNext role for the integration user
Create a dedicated ERPNext user for n8n and give it a custom role that covers only the DocTypes and permission levels each workflow needs, such as creating Sales Orders but not deleting them. Avoid the Administrator account and avoid reusing a person's login. Review the role's read, write, create and delete rights per DocType, and check field-level permissions on sensitive fields such as salary or bank details. Tell the ERPNext team which workflows depend on the user before changing its role.
n8n ERPNext node docsRotating API keys and secrets
The ERPNext node authenticates with an API key and secret pair tied to the integration user. Plan a rotation schedule with a named owner, and document the steps: generate a new pair, update the n8n credential, run a test execution, then revoke the old pair. Rotate immediately after staff changes or any suspected exposure. Confirm in your own ERPNext version how keys are generated and revoked, since the procedure is controlled by the ERPNext instance rather than n8n.
Encrypted credential store and worker key sharing
n8n stores credentials in its database encrypted with the instance encryption key. In queue mode, the main instance's encryption key must be shared with every worker and webhook processor so they can decrypt those credentials. Treat that key as a root secret: keep it out of workflow exports, restrict who can read the environment file or secret store that holds it, and record where every copy lives. Losing the key makes stored credentials unreadable.
n8n queue mode docsRestricting webhook endpoints
Forms, shops and CRMs often post to n8n through webhook URLs, which are reachable from outside the network by design. Require a secret header or signature check where the sender supports it, use HTTPS only, and accept requests from known source addresses at the reverse proxy when possible. Keep webhook paths unguessable and do not place ERPNext write operations directly behind an unauthenticated endpoint. Test rejection of requests with a missing or wrong secret.
Limiting outbound calls to the ERPNext host
Workflows that call ERPNext should reach only the ERPNext base URL on the expected port, and nothing else from that n8n node. Enforce this with egress rules on the n8n host or container network, so a misconfigured HTTP Request node or a compromised workflow cannot send credentials to an unrelated address. Confirm the ERPNext hostname resolves to the address you expect, and keep the allowed list in version control next to the deployment configuration.
Audit trail of document changes
ERPNext records version history on documents, which shows the user and time of each change. Because the integration user performs writes on behalf of many sources, the history shows only that n8n made the change, not which form submission or customer caused it. Add the workflow name and execution ID to the document's remarks or a custom field, keep n8n execution logs for the agreed retention period, and check that both logs can be matched when reviewing an incident.
Common ERPNext and n8n integration failures and fixes
This table lists the failures teams most often hit when n8n writes to ERPNext, with the likely cause and the fix for each. Read it as a triage checklist: match the symptom you see in an execution log, then check the cause column before changing workflow logic.
| Failure | Likely cause | Fix |
|---|---|---|
| Permission error on create or update | The API user's role has no read, write or create permission on that DocType, or a user permission or share restricts the record. | Grant the integration role the needed permissions on the DocType in ERPNext's role permission manager, then test with the same credential in the n8n ERPNext node. |
| Link validation failure | A Link field points to a master record, such as a customer, item or warehouse, that does not exist yet, or the name differs in spelling or case. | Create or look up the master record first in a separate branch, and pass the exact document name ERPNext generated or stores. |
| Duplicate records after webhook retries | The source system resends the event after a timeout, and the workflow creates a new document each time because nothing checks for an existing one. | Store the source system's unique ID in a custom field, search for it before creating, and use the update path when a match exists. |
| Timeouts on large batch imports | One execution tries to write thousands of rows, so the request or the workflow exceeds the time your proxy or ERPNext worker allows. | Split the input into smaller batches, loop with a wait between them, and check how the Data Import tool guidance on batch size applies to your volume. |
| Child table rows rejected | Child rows are sent as separate documents, or the child DocType name and field names do not match the parent schema, or a required child field is empty. | Send child rows inside the parent document's items array with the exact child field names, and confirm required fields by testing one record in a non-production site. |
| Credential errors after changing the encryption key | Workers and webhook processors still hold the old n8n encryption key, so they cannot decrypt the stored ERPNext credential. | Set the same encryption key on the main instance, every worker and every webhook processor, restart them, then reauthorize the credential if it still fails. |
| API calls outside document CRUD fail | The ERPNext node covers create, delete, retrieve, list and update only, so custom methods are called with the wrong path, method or payload. | Use the HTTP Request node with the same credential, confirm the endpoint and parameters in the ERPNext API docs for your version, and test before scheduling. |
| Server Script endpoint returns an error | Server Scripts are disabled by default from version 15 and must be enabled, and shared Frappe Cloud benches do not allow them. | Enable the server_script_enabled setting on a self-hosted site, or move the logic to a custom app if the bench does not allow scripts. |
Questions buyers ask before connecting n8n to ERPNext
How much does it cost to connect n8n to ERPNext?
The software itself has no license fee for ERPNext, and n8n's Community edition is free to self-host, so the main costs are hosting, the n8n plan you choose if you need paid features, and the engineering time to design and test the integration. ERPNext self-hosting is free according to the ERPNext pricing page, while Frappe Cloud shared site hosting starts at 5 US dollars per month and Frappe Cloud dedicated servers start at 125 US dollars per month. Engineering effort is usually the largest line, and it recurs whenever document types, validation rules or external systems change. Ask any quote to separate one-time build work from ongoing support.
Which n8n plan do I need for an ERPNext integration?
The answer depends on identity and environment needs, not on ERPNext itself. Per n8n's pricing page, SSO and LDAP, environments with Git, and log streaming are included only in the Business and Enterprise plans, so a team that requires SSO for workflow editors or wants to promote workflows through Git environments will need one of those tiers. A workflow that only calls the ERPNext node from a single self-hosted instance can run on the free Community edition. Confirm the current plan terms on n8n's pricing page before you buy, because plan contents change.
How long does an ERPNext and n8n integration take?
Duration is driven by scope more than by the tools. The main factors are the number of document types you create or update, how many validation rules and submit or cancel behaviors the workflows must respect, how many source systems feed ERPNext (forms, shop platforms, CRMs), and how many error paths you need to handle. Each additional document type with its own mapping and tests adds work. A fixed-scope agreement sets the timeline in writing once those counts are known, so ask for the document type list and the test cases before accepting any schedule.
What do we need to provide for the integration?
Three inputs carry most of the risk. First, an ERP process owner who can confirm field meanings, approval rules, naming series and what a correct record looks like for each document type. Second, a dedicated API user with roles limited to the document types the workflows touch, along with the API key and secret generated for that user. Third, a test site that mirrors your ERPNext version, customizations and master data, so workflows can be exercised without writing to production. Without a test site, expect verification to slip into live data.
Can our internal team build the ERPNext and n8n integration alone?
A team with ERPNext administration experience and some n8n skills can build simple integrations alone, such as creating a sales order from a web form using standard fields. The work gets harder with custom DocTypes, submittable documents, child tables, custom validation and calls outside the ERPNext node, which require the HTTP Request node and an understanding of Frappe's API behavior. Check whether your team has someone who knows the ERPNext release you run, can review credentials and permissions, and can maintain the workflows after handover. If any of those gaps exist, a partner-led build with documented handover is often the faster route.
When should I use the ERPNext Data Import tool instead of n8n workflows?
Use the Data Import tool for bulk loads and one-off migrations, and use n8n for event-driven, ongoing record flows. The Data Import tool imports and updates records from CSV or Excel files or public Google Sheets using downloadable templates, supports child table rows, and the documentation advises importing only a few thousand records at a time. For larger loads, split files into batches or plan a scripted approach. Workflows fit cases where each new order, lead or ticket must reach ERPNext within minutes and where errors need routing back to the source system.
What breaks most often in n8n to ERPNext workflows?
The most common failures come from mismatched field names after an ERPNext upgrade, missing permissions on the API user, and validation rules that reject records only in some cases. Server Scripts also matter: according to the Frappe Framework documentation, they run Python on document events or as API endpoints, and starting from version 15 they are disabled by default and must be enabled with the server_script_enabled setting, while Frappe Cloud public shared benches do not allow them. Check the ERPNext version and script settings before designing a workflow that depends on custom server logic.
Which ERPNext versions are supported for this integration?
Confirm the version you run against Frappe's supported versions page before you build. According to that page, ERPNext and Frappe Framework version 14 reached end of life on January 31, 2026, version 15 is planned to be supported until the end of 2027, and version 16 until the end of 2029. Frappe's policy also says customers must be on a listed version and subscribed to a matching Frappe Cloud support plan to receive warranty coverage from Frappe. Plan upgrades so workflows are retested against each new release before the old one leaves support.
How to test ERPNext workflows before they touch live records
Test every n8n workflow that writes to ERPNext against a staging site first, and treat that site as the only place where test data may be created. Copy the master data you need (customers, items, suppliers, price lists, chart of accounts and warehouses) from production into a separate ERPNext site, then point a dedicated n8n credential at it. Keep the staging credential and the production credential in different n8n projects or environments so a workflow cannot be promoted with the wrong one. Ask your ERPNext partner or internal admin how the copy will be refreshed, how personal data in customer and supplier records will be masked, and who approves the copy. Re-running a test should not depend on whatever state the last run left behind.
Write test cases for four paths. The create path should confirm that the expected document type, naming series and child table rows are written with the right links. The update path should confirm that only the intended fields change, which you check by reading the document back with the ERPNext node's retrieve operation before and after. The duplicate path should send the same payload twice from the form, shop or CRM and confirm that the second run does not create a second order, customer or invoice. The failure path should send invalid or incomplete data, a missing link target, and a permission-denied user, and confirm that n8n reports the error and no partial document remains. Keep the ERPNext API user limited to the DocTypes each workflow needs, so permission failures show up in testing rather than in production.
Accounting side effects deserve their own check. A Sales Order, Delivery Note or Purchase Invoice can trigger stock, ledger or payment entries through standard ERPNext behavior and any server scripts, so count the Sales Invoices, Payment Entries and Journal Entries created before and after each test run and confirm the counts match the test plan. Server Scripts are disabled by default from version 15 and must be enabled with server_script_enabled, so ask whether your site has them enabled before you assume a hook will run in staging the same way it runs in production. For batches, define a rollback plan before the first live run: record the names of every document a batch creates, use the ERPNext Data Import tool's batch size guidance to keep each import small, and agree who cancels or deletes documents if a run must be reversed. Retest after every ERPNext minor upgrade and every n8n version change, because either can change API behavior or how documents are validated.
How DeployOpen scopes and delivers the ERPNext and n8n integration
DeployOpen plans, builds, documents and supports self-hosted open-source platforms inside your own infrastructure, including the n8n workflows that connect ERPNext to forms, shops and CRMs. Engagements start from a written scope, so the document types, credentials and API calls are agreed before any workflow is built.
How we scope
- List the ERPNext document types, forms, shops and CRMs that n8n will create, read, update or delete.
- Map which operations the native ERPNext node covers and which need HTTP Request calls to the ERPNext API.
- Agree the ERPNext version, hosting model and n8n edition in writing before build work starts.
- Fixed-scope engagements set deliverables and timelines in writing, and quotes follow from that scope.
How we build
- Create n8n credentials for ERPNext with least-privilege API users and document how each key is stored.
- Build workflows for each agreed document type, including child table rows and validation of inbound data.
- Test create, update and failure paths against a non-production ERPNext site before any live connection.
- Confirm that any Server Script dependency is allowed on the target ERPNext hosting before relying on it.
How we hand over
- Deliver a workflow inventory listing triggers, ERPNext operations, credentials and owners for each flow.
- Document the HTTP Request calls used beyond document CRUD, with endpoints, payload examples and error handling.
- Provide runbooks for credential rotation, failed execution review and bulk imports through the ERPNext Data Import tool.
- Walk your administrators through the handover so they can change flows without relying on DeployOpen.
How we support
- Review workflows when you upgrade n8n or move to a new ERPNext major version, such as version 15 or 16.
- Track ERPNext support status so integrations are not left on a version that has reached end of life.
- Offer ongoing support, upgrades and continuous testing as a retainer after the initial handover.
- Agree the support boundaries, response expectations and change process in the written scope.

