
Connectors / ERP · HTTP Connector
Automate ERPNext with Tray.ai
Create a document in ERPNext and start a workflow when ERPNext sends “Document updated”. Connect ERPNext to the rest of your ERP stack with Tray.ai.
What can you do with ERPNext on Tray.ai?
ERPNext is open-source ERP software from Frappe covering accounting, inventory, sales, purchasing, manufacturing, and HR, run self-hosted or on Frappe Cloud. Tray.ai connects to ERPNext through the HTTP Connector, so your workflows can call the ERPNext API alongside the rest of your stack.
- When ERPNext sends “Document updated” on a sales order, update the matching deal in your CRM.
- Create a document for each new customer order taken in your online store.
- Read a document to add a customer's latest invoice details to their ticket in your help desk.
- Connects through
- HTTP Connector
- Authentication
- An API key in a request header or a bearer token or OAuth 2.0
Set it up
Connect ERPNext to Tray.ai
Each step uses ERPNext's own API details, from its documentation.
Step 1
Save ERPNext's API key
Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.
Step 2
Import a request from ERPNext's docs
Add an HTTP Client step and paste a cURL example from ERPNext's API docs. Tray.ai fills in the method, URL, headers, and query.
Step 3
Start with “List documents”
It's one of 7 documented actions, under Documents (any DocType, such as Customer or Sales Invoice). The response comes back as data the next step can map into your other apps.
Step 4
Start workflows from ERPNext events
Give ERPNext the URL of a Tray.ai webhook trigger. “Document updated” can then start a workflow.
Workflows to build with ERPNext
Each one uses actions and events from ERPNext's own API documentation.
Create ERPNext customers from closed Salesforce deals
When
A deal closes in Salesforce
Then
- Create a document of type Customer with the account details
- Create a document of type Sales Order for the deal
With Salesforce
Post ERPNext document changes to Slack
When
Document updated
Then
- Read a document to get the latest values
- Post a message to the finance channel in Slack
With Slack
Load ERPNext sales invoices into Snowflake each night
When
On a schedule
Then
- List documents of type Sales Invoice changed today
- Load the invoices into Snowflake
With Snowflake
Apps you can build on ERPNext data
Internal tools your team can build with an AI assistant, each one using ERPNext calls from its API documentation.
Sales invoice follow-up board
Lists sales invoices and customers so finance can follow up and update an invoice's notes.
Record change feed
Shows documents as they are updated so a team can review recent changes to key records.
Give your AI agents ERPNext tools
Build an MCP server on ERPNext in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- List documents
- Call a read-only method
- Create a document
- Read a document
- Update a document
- Delete a document
- Call a method that changes data
What the ERPNext API covers
2 resources and 7 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Documents (any DocType, such as Customer or Sales Invoice)
- List documents
- Create a document
- Read a document
- Update a document
- Delete a document
Whitelisted methods
- Call a read-only method
- Call a method that changes data
Events ERPNext can send to a Tray.ai webhook trigger
- Document updated
Checked against ERPNext's own documentation on 2026-10-22
How Tray.ai makes this work
ERPNext plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in ERPNext — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose ERPNext actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on ERPNext data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More erp apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every erp connector →
Frequently asked questions
What can a Tray.ai workflow do in ERPNext?
+
The ERPNext API documents 7 actions across 2 resources (Documents (any DocType, such as Customer or Sales Invoice), Whitelisted methods). For example: List documents; Call a read-only method. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with ERPNext?
+
The ERPNext API uses an API key in a request header, a bearer token, and OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which ERPNext events can start a Tray.ai workflow?
+
ERPNext sends one event to a webhook URL, for example: Document updated. A Tray.ai webhook trigger receives them and starts a workflow.
See ERPNext working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks — someone from our team will be in touch soon.