
ERPNEXT n8n INTEGRATION: AUTOMATE ERPNEXT WITH N8N
Looking to automate ERPNext with n8n? You're in the right place. The ERPNext n8n integration gives you access to 5 powerful actions to automate your ERP document management without writing a single line of code.
ERPNext is a comprehensive open-source ERP system that handles everything from accounting to inventory, HR, and manufacturing. Combined with n8n's workflow automation capabilities, you can create seamless data flows between ERPNext and hundreds of other applications. Whether you need to automatically create documents from form submissions, sync customer data across platforms, or trigger updates based on external events, this integration has you covered.
In this guide, you'll discover exactly how to connect ERPNext to n8n, explore each available action in detail, and learn practical use cases to transform your business processes.
Need help automating Erpnext with n8n?
Our team will get back to you in minutes.
Why automate Erpnext with n8n?
The ERPNext n8n integration gives you access to 5 distinct actions covering the complete document lifecycle: Create, Get, Get Many, Update, and Delete. This means you can build end-to-end automation workflows that handle every aspect of your ERP document management—from initial creation to archival or removal.
Significant time savings are the first benefit you'll notice. No more manually copying data between systems or logging into ERPNext just to update a single field. Set up smart rules that automatically create sales orders when quotes are approved in your CRM, or update inventory records when shipments are confirmed in your logistics platform. What once took 15 minutes of repetitive clicking now happens instantly, 24/7.
Zero oversight and perfect accuracy come naturally with automation. Human data entry errors—typos, missed fields, incorrect values—become a thing of the past. Your n8n workflows execute the same way every time, ensuring consistent data quality across your ERPNext instance. And with n8n's extensive integration library of 400+ nodes, you can connect ERPNext to virtually any tool in your stack: CRMs like HubSpot or Salesforce, e-commerce platforms like Shopify, communication tools like Slack, and many more.
How to connect Erpnext to n8n?
! 1 stepHow to connect Erpnext to n8n?
- 01
Add the node
Search and add the node in your workflow.
TIP💡 TIP: Create a dedicated API user in ERPNext specifically for n8n automations rather than using your personal account. This improves security, makes it easier to track automated changes in your audit logs, and ensures your workflows continue running even if team members change. For more complex setups, our n8n agency can help you design secure automation architectures.- 01
Need help automating Erpnext with n8n?
Our team will get back to you in minutes.
Erpnext actions available in n8n
01 Action 01Create a document
The "Create a document" action is your gateway to automatically populating ERPNext with new records. Whether you're generating sales orders from e-commerce transactions, creating customer profiles from lead forms, or adding new inventory items from supplier catalogs, this action handles it all programmatically.
Key parameters to configure:
- Credential to connect with: Select your ERPNext account credentials from the dropdown menu. This is required to authenticate your request.
- Resource: Set to "Document" to work with ERPNext document records.
- Operation: Set to "Create" to generate a new document entry.
- DocType Name or ID: Enter the exact DocType identifier (e.g., "Sales Order", "Customer", "Item"). This text field tells ERPNext what type of document to create.
- Properties: Add key-value pairs defining the fields and values for your new document. Click "Add Property" to specify attributes like customer name, item code, quantity, etc.
Use cases where this action shines:
- Create new customer records automatically when leads convert in your CRM
- Generate purchase orders when inventory levels hit reorder points
- Add expense entries from receipt scanning applications
- Create project tasks from project management tool webhooks

02 Action 02Get a document
The "Get a document" action retrieves a specific document from ERPNext based on its type and name. This is perfect when you need to fetch details about a particular record—like pulling customer information to personalize an email, or checking order status before triggering a follow-up action.
Key parameters to configure:
- Credential to connect with: Your ERPNext account credentials from the dropdown (required).
- Resource: Set to "Document" to target document records.
- Operation: Set to "Get" to retrieve a single document.
- DocType Name or ID: Specify the document type you want to retrieve (e.g., "Customer", "Sales Invoice").
- Document Name: Enter the unique identifier of the specific document instance (e.g., "CUST-00001" or "SINV-00023").
Use cases where this action shines:
- Fetch customer details before sending personalized communications
- Retrieve order information to include in shipping notifications
- Pull product specifications when generating quotes
- Check document status before proceeding with conditional workflow logic

03 Action 03Get many documents
The "Get many documents" action retrieves multiple records from ERPNext in a single operation. This is invaluable for batch processing, generating reports, or syncing data between ERPNext and other platforms.
Key parameters to configure:
- Credential to connect with: Your ERPNext account credentials (required).
- Resource: Set to "Document" for document record operations.
- Operation: Set to "Get Many" to retrieve multiple records.
- DocType Name or ID: Specify which document type to query (e.g., "Sales Order", "Stock Entry").
- Return All: Toggle this ON to retrieve every matching document, or OFF to limit results.
- Limit: When "Return All" is OFF, specify the maximum number of documents to return (default: 10).
- Options: Add custom fields or filters to refine your query results.
Use cases where this action shines:
- Export all pending invoices for a weekly review report
- Sync customer lists with your email marketing platform
- Retrieve all open support tickets for a dashboard
- Pull inventory items below minimum stock for reorder alerts
💡 TIP: When working with large datasets, use the "Limit" parameter strategically or add filters in the "Options" section. Retrieving thousands of documents at once can slow down your workflow and consume unnecessary resources. You can also store retrieved data in Airtable or Google Sheets for further analysis.

04 Action 04Update a document
The "Update a document" action modifies existing records in ERPNext. From updating order statuses to adjusting inventory quantities or enriching customer profiles with new data, this action keeps your ERP data current across all your systems.
Key parameters to configure:
- Credential to connect with: Your ERPNext account credentials (required).
- Resource: Set to "Document" for document operations.
- Operation: Set to "Update" to modify an existing record.
- DocType Name or ID: Specify the document type you're targeting (e.g., "Lead", "Purchase Order").
- Document Name: Enter the unique identifier of the document to update (required).
- Properties: Add key-value pairs defining which fields to update and their new values. Click "Add Property" for each field modification.
Use cases where this action shines:
- Update lead status when they respond to marketing campaigns
- Modify inventory quantities after warehouse operations
- Change order status based on shipping carrier webhooks
- Enrich customer records with data from third-party enrichment services

05 Action 05Delete a document
The "Delete a document" action removes records from ERPNext permanently. Use this for automated cleanup tasks, removing test data, or handling deletion requests from connected systems.
Key parameters to configure:
- Credential to connect with: Your ERPNext account credentials (required).
- Resource: Set to "Document" for document operations.
- Operation: Set to "Delete" to remove the specified record.
- DocType Name or ID: Specify the document type of the record to delete (e.g., "Lead", "Quotation").
- Document Name: Enter the exact identifier of the document to remove (required).
Use cases where this action shines:
- Remove duplicate records identified by data quality workflows
- Delete test entries after development or QA processes
- Handle GDPR deletion requests by removing customer data
- Clean up expired or cancelled quotations automatically
⚠️ Important: Deletions in ERPNext are often permanent. Consider implementing an archival workflow (moving to a "Deleted" status or separate DocType) instead of outright deletion for records you might need to reference later.

Build your first workflow with our team
Drop your email and we'll send you the catalog of automations you can ship today.
- Free n8n & Make scenarios to import
- Step-by-step setup docs
- Live cohort + community support
Frequently asked questions
Is the ERPNext n8n integration free to use?
Yes, the ERPNext integration is included with n8n at no additional cost. n8n itself offers a free self-hosted option where you can run unlimited workflows on your own infrastructure. If you prefer a managed solution, n8n Cloud offers paid plans starting with a free tier that includes 5 active workflows. ERPNext is also open-source, so the only costs you might encounter are hosting fees for your ERPNext instance and any n8n Cloud subscription if you choose not to self-host. This makes the ERPNext n8n combination one of the most cost-effective ERP automation setups available.What types of documents can I manage with the ERPNext n8n integration?
You can manage any DocType available in your ERPNext instance through the n8n integration. This includes standard modules like Customers, Suppliers, Items, Sales Orders, Purchase Orders, Invoices, Stock Entries, Journal Entries, Employees, Projects, and many more. Custom DocTypes you've created in ERPNext are also accessible—just enter the exact DocType name in the configuration. The integration works with ERPNext's entire document structure, giving you complete flexibility to automate across accounting, inventory, HR, manufacturing, CRM, and any other ERPNext module you use. Check out the official ERPNext documentation for a complete list of available DocTypes.How long does it take to set up the ERPNext n8n integration?
You can have your first working automation running in under 15 minutes. Generating API credentials in ERPNext takes about 2-3 minutes. Adding those credentials to n8n is another minute or two. Building a simple workflow—like creating a document when a webhook is received—takes around 5-10 minutes, depending on your familiarity with n8n's interface. More complex multi-step workflows involving conditional logic, data transformation, or multiple systems will take longer to design and test, but the initial connection is remarkably quick. Most users report being productive with basic automations within their first hour. If you want to accelerate your learning curve, consider our workflow creation services or explore our downloadable automation templates.



