decide between the erpnext rest resource api and the frappe rpc method api for an integration

domain: docs.frappe.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Use the REST resource API at /api/resource/{doctype} for straightforward CRUD on a document type via standard HTTP verbs (GET, POST, PUT, DELETE)
  2. Use the RPC API at /api/method/{dotted.path.to.function} to call a specific whitelisted Python function when the operation isn't a plain CRUD action
  3. Ensure any function called via /api/method is decorated with @frappe.whitelist() in the Frappe app, or the call is rejected
  4. Combine both styles in one integration: resource calls for basic document manipulation, method calls for bulk operations, reports, or custom business logic
  5. Authenticate both styles the same way, using an API key/secret pair or session cookie, since the split is about routing, not auth

Known gotchas

Related routes

Perform document operations via ERPNext REST API
ERPNext REST API · 5 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