Perform document operations via ERPNext REST API

domain: ERPNext REST API · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Generate an API key and API secret for the integration user in ERPNext (User Settings > API Access); all requests are authenticated with the header 'Authorization: token YOUR_KEY:YOUR_SECRET'.
  2. To read a list of documents GET /api/resource/DOCTYPE, using query parameters filters (URL-encoded JSON array of filter triples), fields, limit_start, and limit_page_length.
  3. To read a single document GET /api/resource/DOCTYPE/DOCNAME; the response 'data' object contains all fields.
  4. To create, POST to /api/resource/DOCTYPE with a JSON body of field values; the response returns the new document name (string ID).
  5. To update, PUT to /api/resource/DOCTYPE/DOCNAME with only the changed fields; to delete, DELETE to /api/resource/DOCTYPE/DOCNAME (only permitted on draft or cancelled documents).

Known gotchas

Related routes

decide between the erpnext rest resource api and the frappe rpc method api for an integration
docs.frappe.io · 5 steps · unrated
Query invoices via Oracle Fusion Cloud ERP REST API
Oracle Fusion Cloud ERP REST · 5 steps · unrated
Implement offset-based pagination and field filtering when querying NetSuite SuiteTalk REST collections
docs.oracle.com/en/cloud/saas/netsuite · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans