Skip to content
ERPNext logo

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

  1. Create a document of type Customer with the account details
  2. Create a document of type Sales Order for the deal

With Salesforce

Post ERPNext document changes to Slack

When

Document updated

Then

  1. Read a document to get the latest values
  2. Post a message to the finance channel in Slack

With Slack

Load ERPNext sales invoices into Snowflake each night

When

On a schedule

Then

  1. List documents of type Sales Invoice changed today
  2. 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

docs.frappe.io/framework/user/en/api/rest

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.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.