Skip to content
@n8n2erpnext

n8n to ERPNext

The official ecosystem of n8n community nodes for ERPNext v15 & v16. This organization provides a collection of modular, production-ready nodes

n8n2erpnext ERPNext n8n community nodes logo

n8n2erpnext

Production-minded n8n community nodes for ERPNext and Frappe automation.
Built as a connected ERP ecosystem, not isolated node packages.

npm n8n ERPNext nodes ERPNext v15 v16 Frappe v15 v16 n8n community nodes live tested

ERPNext Automation For n8n

n8n2erpnext is an open-source ecosystem of n8n community nodes for ERPNext and Frappe. It helps teams automate real ERP operations such as accounting, procurement, sales, warehouse movement, inventory validation, and cross-module document integrity.

The project is designed for:

  • ERPNext automation with n8n.
  • Frappe REST API integrations.
  • Self-hosted ERP operations.
  • SME and mid-market business workflow automation.
  • Retail, distribution, stock, buying, selling, accounting, HRMS, and ERP operations.
  • AI-searchable ERPNext integration examples with production-style README documentation.

Connected ERP Ecosystem

The core business modules are now validated as one connected ERP system:

Buying -> Stock -> Selling -> Accounting

The Stock validation suite includes two live-tested enterprise workflows that prove cross-module behavior end to end:

Standard Product Lifecycle
Supplier -> Purchase Receipt -> Inventory Increase -> Purchase Invoice
-> Customer Sale -> Sales Invoice update_stock=1 -> Inventory Decrease
-> Bin, Stock Ledger Entry, and Accounting verification
Exception / After-Sales Lifecycle
Sale -> Return Credit Note -> Warranty Warehouse -> Defective Warehouse
-> Repair / Virtual Workshop -> Disposal
-> Bin, Stock Ledger Entry, and Accounting verification

These workflows prove:

  • Inventory can safely enter the business.
  • Inventory can safely move through warehouses.
  • Inventory can safely leave through sales.
  • Return, warranty, defect, repair, and disposal flows are covered.
  • Internal trade can move stock and accounting across two ERPNext companies.
  • Purchase Invoice locks protect Purchase Receipt cancellation.
  • Sales Invoice locks protect Delivery Note cancellation.
  • Linked inter-company Purchase Invoice records protect Sales Invoice cancellation.
  • Valid inter-company reversal works when the receiving Purchase Invoice is cancelled before the source Sales Invoice.
  • Non-stock fee and rebate invoices do not create Stock Ledger Entry rows.
  • Public webhook responses are allowlisted and checked for credential leaks.

Detailed coverage notes, tested ERPNext pain points, and live document references are maintained in docs/ecosystem-coverage.md.

Module Packages

Module Package npm Scope Status
Frappe Core node Core n8n-nodes-frappe-core Foundation package Generic Frappe API, shared credential pattern, core API behavior In progress
ERPNext HRMS node HRMS n8n-nodes-erpnext-hrms npm Employees, attendance, leave, payroll-adjacent workflows Live
ERPNext Accounting node Accounting n8n-nodes-erpnext-accounting npm Sales Invoice, Purchase Invoice, Payment Entry, Journal Entry, GL Entry Live
ERPNext Buying node Buying n8n-nodes-erpnext-buying npm Supplier, RFQ, Supplier Quotation, Purchase Order, Purchase Receipt Live
ERPNext Selling node Selling n8n-nodes-erpnext-selling npm Customer, Lead, Opportunity, Quotation, Sales Order Live
ERPNext Stock node Stock n8n-nodes-erpnext-stock npm Item, Warehouse, Stock Entry, Delivery Note, Batch, Serial No, Bin, Stock Ledger Entry Live

Live-Tested Coverage

The active ecosystem has been tested against ERPNext/Frappe v16 behavior on a self-hosted n8n runtime with API v1 and API v2 document workflows.

Area Verified behavior
ERPNext/Frappe v16 behavior, Frappe REST API v1 and v2
n8n Self-hosted n8n community node runtime
Credentials Shared ERPNext API credential with optional host header support
Buying Supplier, Purchase Receipt, Purchase Invoice link, cancellation lock
Stock Material Receipt, Material Transfer, Stock Reconciliation, Delivery Note, Batch, Serial No, Bin, Stock Ledger Entry
Selling Customer, Quotation, Sales Order, Sales Invoice bridge, return credit note
Accounting Sales Invoice, Purchase Invoice, Payment Entry, Journal Entry, GL Entry verification
Retail Sale, exchange, return fee, warranty, defect, repair, disposal
FMCG/Fresh Batch expiry, spoilage, damage, vendor claim warehouse, non-stock rebate/fee
Manufacturing basics BOM, Work Order, WIP transfer, Manufacture Entry, Finished Goods sale
Multi-company Internal Customer/Supplier mapping, allowed-company setup, internal sale/purchase, linked cancellation lock, valid reversal order
Negative cases Over-issue, wrong warehouse, disabled item, missing warehouse, duplicate Batch/Serial
Security Allowlisted webhook summaries, no API keys or secrets in responses

Why This Project Exists

Many ERPNext integrations stop at generic HTTP requests. n8n2erpnext goes further by packaging repeatable, module-aware n8n nodes with:

  • ERPNext-specific resources and operations.
  • Frappe API v1 and v2 support.
  • Submit and cancel helper behavior.
  • Read-only ledger verification resources where safety matters.
  • Importable workflow artifacts for real ERP validation.
  • Production security notes for credentials, webhooks, and response design.
  • Cross-module workflows that mirror actual business operations.

Install From n8n

In n8n, install the package you need from the Community Nodes interface:

n8n-nodes-erpnext-accounting
n8n-nodes-erpnext-buying
n8n-nodes-erpnext-selling
n8n-nodes-erpnext-stock
n8n-nodes-erpnext-hrms

For manual installation in a custom n8n nodes environment:

npm install n8n-nodes-erpnext-stock
npm install n8n-nodes-erpnext-accounting
npm install n8n-nodes-erpnext-buying
npm install n8n-nodes-erpnext-selling

Credential Pattern

All module packages use the shared ERPNext API credential pattern:

Site URL: https://erp.example.com
Site Host Header: erp.example.com
API Key: your ERPNext API key
API Secret: your ERPNext API secret
Ignore SSL Issues: false

For private VPS or container deployments, n8n can call ERPNext through an internal URL while still sending the public Frappe site host header:

Site URL: http://erpnext.internal:8001
Site Host Header: erp.example.com

Production Posture

The project favors operational safety over broad, unchecked API exposure:

  • Use dedicated ERPNext API users.
  • Scope roles to the exact DocTypes used by each workflow.
  • Prefer explicit fields for public webhook responses.
  • Treat Stock and Accounting workflows as high-impact operations.
  • Deactivate temporary write-test workflows after verification.
  • Do not expose generic Custom DocType or Frappe Method workflows publicly.
  • Use VPN, reverse proxy auth, header auth, IP allowlists, or shared secrets for public webhooks.
  • Reduce saved n8n execution data for workflows that process financial, inventory, payroll, or customer records.

SEO Keywords

ERPNext n8n integration, Frappe n8n nodes, n8n community nodes ERPNext, ERPNext automation, Frappe automation, ERPNext Accounting n8n, ERPNext Buying n8n, ERPNext Selling n8n, ERPNext Stock n8n, ERPNext HRMS n8n, ERPNext API v2 n8n, Frappe REST API n8n, ERPNext workflow automation, n8n ERP integration, self-hosted ERPNext automation, warehouse automation ERPNext, stock ledger ERPNext n8n, purchase receipt ERPNext n8n, sales invoice ERPNext n8n, business lifecycle ERPNext automation.

Roadmap

Planned direction:

  • Keep module READMEs concise and production-focused.
  • Add focused workflow documentation for retail, manufacturing basics, FMCG/Fresh, multi-company, and coverage matrices.
  • Keep V1 focused on maintenance, issue response, documentation fixes, and dependency/security updates.
  • Build Core V2 only when enough real issues and custom ERPNext examples arrive.
  • Position Core V2 as a Frappe/ERPNext Customization Bridge: Custom DocTypes, custom fields, dynamic metadata, child tables, method helpers, and schema translation for real ERPNext/Frappe customization pain points.
  • Add additional modules only when they can follow the same live-tested standard.
  • Expand automated tests for request construction, endpoint selection, and credential redaction.
  • Keep the ecosystem modular so teams can install only the ERPNext domain they need.

References

License

Each package is released under its repository license. Core module packages are MIT unless noted otherwise in the package repository.

Pinned Loading

  1. n8n-nodes-erpnext-accounting n8n-nodes-erpnext-accounting Public

    n8n node for ERPNext module Accounting

    TypeScript 1

  2. n8n-nodes-erpnext-hrms n8n-nodes-erpnext-hrms Public

    n8n node for ERPNext module HRMS

    TypeScript 2

  3. n8n-nodes-erpnext-selling n8n-nodes-erpnext-selling Public

    n8n node for ERPNext module Selling

    TypeScript 1

  4. n8n-nodes-erpnext-buying n8n-nodes-erpnext-buying Public

    n8n node for ERPNext module Buying

    TypeScript 1

  5. n8n-nodes-erpnext-stock n8n-nodes-erpnext-stock Public

    n8n node for ERPNext module Stock

    TypeScript 1

Repositories

Showing 9 of 9 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…