When ERPNext REST API integration is worth building and why it is harder than it looks
When your ERP has to exchange orders, stock levels, invoices, bank lines or payroll data with other systems, the real work is designing a stable contract between systems through the Frappe REST API, with API keys, webhooks and whitelisted methods as the building blocks. Building the integration is worth the effort when a manual import or export runs on a schedule, when errors are caught late, or when two systems hold conflicting copies of the same record. The decision to build is less about whether the API exists and more about whether you can name the documents, fields, states and owners that the two systems will agree on.
The difficulty shows up in ERPNext's document model. Permissions apply at the document level, so a call that works for an administrator may fail or return partial data for the user the integration actually runs as. Child tables mean a single sales invoice arrives as a parent record plus item rows that must be written together. Submitted documents cannot be edited in place, so corrections become cancel and amend flows, and a sync that ignores docstatus will quietly create conflicts. Duplicate handling is also yours to design: the same order posted twice from an e-commerce platform after a timeout will create two documents unless you store an external reference and check it before writing.
Treat the integration user as a security boundary. The API is only as safe as the account, roles and user permissions behind its keys, so create a dedicated user with the narrowest role set that covers the documents involved, and confirm in a test site which fields and records that user can read and write. Keep key rotation, logging of request payloads and error responses, and a plan for what happens when a source system retries. Before you commit to a build, ask your ERPNext partner or internal team to document the exact DocTypes in scope, the state each one must reach, the expected rate of calls, and the failure path for each call. Confirm current limits and endpoint behavior against the version you run, since these details change between releases and are not covered here.
Which ERPNext and Frappe parts the integration touches
An ERPNext integration rarely touches one thing. Every external call passes through an authenticated REST resource, lands on a DocType governed by permissions, and may trigger webhooks or custom Python that your team has to own. Mapping these parts before writing code shows where access is granted, where logic runs and where failures will surface.
REST resource and method endpoints
Frappe exposes each DocType as a resource under the /api/resource/ path, and whitelisted methods under /api/method/. Resource calls handle standard create, read, update and delete work on documents, while method calls run a named function you have exposed. Check which DocTypes the integration reads and writes, and confirm the exact endpoint paths against your ERPNext version before you map fields. Test with a non-production site first.
API keys, secrets and token auth
Each integration user should get an API key and secret pair generated on that user record, sent in the Authorization header as a token. Treat the pair as a password: store it in your secrets manager, rotate it when staff change, and never reuse a human administrator's credentials. Confirm how your ERPNext version handles token expiry and revocation before you go live.
DocTypes and their permissions
The API applies the same role and user permissions as the desk UI, so an integration user sees only the documents its roles allow. Build a dedicated role with read and write rights limited to the DocTypes the integration needs, and add user permissions to restrict company or warehouse scope. Test each permission with the integration user, not an administrator, because admin access hides gaps.
Webhooks for outbound events
Webhooks send a request to your receiving system when a document event occurs, such as a Sales Invoice being submitted. They move data out of ERPNext without polling, but a failed delivery needs a retry and logging plan on both sides. Define which events, fields and conditions trigger each webhook, and confirm the payload format and retry behavior in your version's documentation.
Whitelisted Python methods
A whitelisted method is a Python function in a custom app, marked so the API can call it. Use one when a single REST call must run multi-step logic, such as posting a payment entry and reconciling it in one transaction. Keep the function narrow, validate every input, and version it in source control so upgrades do not silently break the integration.
Server Scripts as API endpoints
Server Scripts can expose a Python endpoint without a custom app, but from version 15 they are disabled by default and must be enabled through the server_script_enabled setting. Frappe Cloud public shared benches do not allow them, so check your hosting before you design around them. Enabling them is an administrative decision that should be reviewed with your security team.
- Disabled by default
- Version 15
Choosing between standard REST resources, whitelisted methods and Server Scripts
This table compares four ways to expose or consume data for an ERPNext integration: standard DocType REST calls, whitelisted methods in a custom app, Server Script endpoints and middleware outside ERPNext. Read each row for when the option fits and what it will cost you to run, then check the push and pull rows before choosing how events reach your external systems. The main takeaway is that the simplest option is usually the standard REST resource, and custom code should be added only where standard calls cannot express the business logic.
| Option | When it fits | Operational cost | Hosting constraint |
|---|---|---|---|
| Standard DocType REST calls | Create, read or update standard records such as Sales Order, Item or Payment Entry using API keys or tokens | Low. Runs on the standard API, so upgrades rarely touch it, but permissions must be set per user | Works on Frappe Cloud shared benches |
| Whitelisted method in a custom app | Multi-step logic, validation across several DocTypes or a stable endpoint for a banking or payroll partner | High. Code lives in a custom app that must be tested against each ERPNext upgrade and maintained by your team or a partner | Requires a bench you control, not a shared hosted bench |
| Server Script API endpoint | Small custom endpoint or field logic, written and changed by administrators without a deployment | Medium. Must be enabled with server_script_enabled in version 15 and later, and scripts need review like any other code | Not allowed on Frappe Cloud public shared benches |
| Middleware outside ERPNext | Several systems need one orchestration layer, or transformations and retries must sit outside the ERP | High. Adds a service to host, secure, monitor and keep in sync with ERPNext API changes | Independent of ERPNext hosting, so works with any hosting model |
| Push through webhooks | External systems must react quickly to document events such as a new order or a submitted invoice | Medium. Receiver must be reachable, authenticated and idempotent, and failed deliveries need a retry plan | Confirm webhook availability and retry behavior for your ERPNext version and hosting |
| Pull by polling | Sources change infrequently, the receiving system cannot accept inbound calls, or you need a simple reconciliation job | Low to medium. Simple to build, but polling load grows with volume and delays grow with the interval | Check API rate limits with your host and tune the polling interval to them |
How to build an ERPNext integration in order
This sequence takes an integration from an agreed data contract to a tested, staging-verified connection that cannot overreach its permissions or create duplicate documents. Each step ends with a check you can run before moving on.
Define the data contract for each object
Before touching ERPNext, list every object the integration reads or writes, such as Customer, Sales Order, Payment Entry, Item or Employee. For each one, record the source system of truth, the required fields, the ERPNext DocType and field names, the allowed status transitions, and who owns a conflict when both systems change the same record. Agree this with the business owner and the external system's team. Done means a signed-off table that names every DocType and field the integration touches, and nothing outside it.
Create a dedicated integration user with restricted roles
Create a separate ERPNext user for the integration instead of reusing an administrator or a person's account. Assign only the roles needed for the DocTypes in the contract, and add user permissions that limit the user to specific Companies, Cost Centers or Warehouses where the business requires it. Keep the user out of System Manager and avoid roles that allow script or customization changes. Check: log in as the user or query the API with its credentials, then try to read a document from another company or cost center. The request should be denied or return nothing.
Issue and store API credentials securely
Generate the API key and secret for the integration user from that user's record, not from an administrator account, and store them in the integration platform's secret manager or an equivalent vault. Record who holds the credentials, when they were issued and the rotation process. The integration should send them as the Authorization header in the form ERPNext documents for token authentication. Check: a call with the valid token returns the expected document, a call with a revoked or wrong token is rejected, and the secret does not appear in logs or source control.
Build the endpoint or whitelisted method
Implement the integration as a standard REST call against the DocType resource where it fits, or as a whitelisted method in a custom Frappe app when the business logic needs several documents in one transaction. Validate input against the data contract before saving, and let ERPNext's own validations run rather than bypassing them with direct database writes. If you use a Server Script, confirm first whether server scripts are enabled on the target site, since they are disabled by default from version 15. Check: a valid payload creates the expected document with the right company, currency and accounts, and an invalid payload returns a clear error without partial writes.
Add idempotency keys and duplicate checks
Retries are normal in integrations, so every create request needs a stable external reference, such as the source system's order ID, stored in a custom field with a unique constraint. The endpoint should look up that reference before inserting and return the existing document when it finds one. Decide how updates are versioned so a delayed message cannot overwrite a newer change. Check: send the same request twice and confirm that only one document exists and that the second response reports the existing record.
Configure webhooks for outbound events
Use ERPNext webhooks to push events such as submitted invoices or stock changes to downstream systems, and only for the DocType events listed in the contract. Configure the receiving endpoint to verify the webhook signature, respond quickly, and handle duplicate deliveries using the document name and event as the key. Plan what happens when the receiver is down, including how failed deliveries are retried and how someone is alerted. Check: trigger each configured event on the staging site, confirm the receiver gets one correct payload, and confirm a deliberately stopped receiver produces a visible failure rather than silent loss.
Test against a staging site with production-like data
Run the full integration on a staging site that matches production's version, apps, roles and company structure, using a copy of masters and sanitized transactional data. Test happy paths, validation failures, permission boundaries, duplicate submissions, concurrent updates and bulk loads in batches, because the Data Import documentation advises importing only a few thousand records at a time. Watch error responses and rate behavior from the external system, and record how the integration backs off. Check: a written test log with each case, its result and the retest after fixes, signed off before any production credentials are issued.
Handling errors, retries and rate limits without corrupting accounting data
Network drops, proxy timeouts and brief server restarts are common in any integration, and the danger is not the failure itself but the retry that follows. A request that timed out may still have succeeded on the ERPNext side, so the caller cannot know whether the document exists. Before retrying a create call, the integration should check whether a record with the same external reference already exists. Retries should use exponential backoff with a maximum attempt count, so a struggling server is not hit harder while it recovers.
- Idempotency key first: store the source system's order or transaction ID on the ERPNext document (for example in a custom field) and look it up before every create.
- Backoff with jitter: space retries out progressively and add randomness so many workers do not retry at the same moment.
- Retry only safe errors: retry network errors, timeouts and server-side 5xx responses, not client errors that will fail again.
- Dead-letter queue: after the maximum attempts, move the message to a queue that operators review instead of dropping it.
- Log the attempt history: record each attempt, status and response so support can see what happened without guessing.
Confirm with your platform team how timeouts are set at the reverse proxy and in the application server, because a proxy that gives up before ERPNext finishes is a common source of ambiguous results.
Validation errors are different: ERPNext rejected the data because it breaks a rule, such as a missing customer, an inactive item, a closed fiscal year, a posting date outside an open period or a tax template that does not match. Retrying these without changing the payload will fail every time. The right response is to stop, classify the error, and route the record to a person or a mapping fix. Validation rules are configured per site, so the same payload can pass in a test site and fail in production.
- Map master data before posting: confirm that customers, items, accounts and tax templates exist and are enabled before the transaction is sent.
- Respect closed periods: check the posting date against the company's fiscal years and accounting period closing before submitting.
- Do not alter accounting values to get past a rule: fixing a wrong account or tax rate in the integration layer produces documents no one reviewed.
- Separate draft from submitted: create documents as drafts where the process allows, so a reviewer can check them before submission.
- Capture the full message: store the exact error text and the record identifiers for the exception queue.
Ask your ERPNext implementer which validations are custom scripts, since those can change behavior without any change to your integration code.
Webhooks and event notifications are usually delivered at least once, which means the same event can arrive more than once, sometimes out of order. If the receiving side creates a sales invoice or payment entry for every delivery, the books will show money received twice. The receiver must treat each event as a request to reach a known state, not as an instruction to create something new. Event IDs from the source system should be stored and checked before any write.
- Store processed event IDs: keep a table of event identifiers with their outcome and reject repeats.
- Design for the final state: where possible, upsert against a known external reference instead of inserting.
- Handle out-of-order events: compare timestamps or version numbers and ignore an older update that arrives late.
- Acknowledge after persistence: return success only once the event is recorded, so the sender's retries are meaningful.
- Verify the sender: check signatures or shared secrets so forged events cannot trigger postings.
Confirm which events your source platform sends, how it retries, and what it does when your endpoint returns an error. Server Scripts that receive webhooks are disabled by default from version 15, so the receiver is often a separate service.
The hardest case spans systems: the order is saved in the e-commerce platform, the invoice is created in ERPNext, and the payment is pushed to a bank or payroll provider, and one step fails. Without a plan, the systems disagree and someone reconciles by hand. Accounting documents should not be cancelled automatically when a later step fails, because a cancelled invoice that a customer already received creates a new discrepancy. Corrections should be made through reversing or credit entries that keep the audit trail intact.
- Use a saga pattern: define a compensating action for each step, such as a credit note or payment reversal, and run it only after review.
- Do not auto-cancel submitted documents: flag the inconsistency, notify an owner and let them decide.
- Run reconciliation reports: compare counts and totals between systems daily, listing orders without invoices, invoices without payments and payments without matches.
- Name an owner per exception type: assign finance operations, not only the integration team, to decide accounting outcomes.
- Record the decision: keep who approved each correction and why, for audit purposes.
When reviewing this design, confirm with your finance team which corrections they accept and how long unmatched items may stay open before escalation.
Rate considerations depend on the environment rather than on a single number built into ERPNext. Limits can come from the reverse proxy, a web application firewall, the hosting provider, worker capacity or database connection limits, and each may be configured differently in production than in staging. Treat any throughput figure as something to measure in your own environment, and confirm the limits with your hosting provider and network team before setting the request rate of an integration.
- Measure in staging: run representative request volumes against a copy of production and record response times and error rates.
- Throttle at the integration layer: cap concurrent requests and queue the rest, so bursts from an e-commerce sale do not overload the site.
- Batch with care: the ERPNext Data Import documentation advises importing only a few thousand records at a time, so split large loads into batches and verify each one.
- Watch background jobs: heavy posting can compete with scheduled jobs and report generation, so schedule bulk runs outside business peaks.
- Handle 429 responses: treat rate-limit responses as transient and back off rather than retrying immediately.
Ask your hosting provider and proxy administrator for the configured limits, timeouts and worker counts before you commit to a sync schedule.
How an order moves from e-commerce into ERPNext and back
The order starts in the e-commerce platform, which hands it to middleware. The middleware calls the ERPNext REST API with an API key, and ERPNext checks the key's user and that user's role and user permissions before it creates the Sales Order. Each request writes an entry to the integration log, so failed calls can be traced. When the Sales Order changes status, ERPNext fires a webhook, and the middleware uses that event to update the storefront. Check the key owner's permissions, the log entries and the webhook delivery at each hand-off.
Order flow from the storefront into ERPNext and back, with the trust boundary and log point.
What drives the effort of an ERPNext API integration
This table lists the factors that expand or shrink an ERPNext integration project, with a note on how to keep each one under control. Read it as a checklist for scoping: the drivers near the top usually set the largest share of build and test work, while the lower rows tend to add ongoing operating effort.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Number of external systems | Each system adds its own authentication, field mapping, error paths and test cases, so effort grows with every connected platform. | Agree the system list in writing before design, and retire or merge feeds that duplicate data already synced elsewhere. |
| DocTypes touched | Each DocType (for example Sales Order, Item, Journal Entry) carries its own mandatory fields, validations and permissions, so more DocTypes means more mapping and testing. | Limit writes to a short list of DocTypes per flow and document the field contract for each one. |
| Direction and frequency of sync | Two-way sync needs conflict rules and duplicate protection, while near real-time sync needs webhooks, retries and monitoring that batch jobs do not. | Default to one-way flows where possible and use scheduled batches unless the business case needs events. |
| Volume per batch | Large payloads hit timeouts and rate limits and make failures harder to isolate and retry. The Data Import documentation advises importing only a few thousand records at a time, which is a useful planning ceiling for bulk loads. | Set batch sizes in the design, paginate reads, and test with production-scale volumes in staging. |
| Custom app versus Server Script placement | Server Scripts are disabled by default from version 15 and are not available on Frappe Cloud public shared benches, so the placement choice decides whether the integration can run there at all. Custom apps add packaging, version control and upgrade testing. | Confirm the hosting target first, then use a reusable integration app for shared logic so each new feed reuses the same code. |
| Environments (dev, staging, production) | Each environment needs its own API keys, endpoints, test data and deployment steps, and an integration that is not tested in staging usually costs more to fix later. | Use separate integration users and credentials per environment and promote the same tested package through each stage. |
| Integration identity and access | Shared or admin accounts make permission errors hard to trace and make audit answers harder to give. | Create one integration user per system with the minimum role and user permissions the flow needs, and rotate its keys on a schedule. |
| Compliance evidence needed | Audit trails of API calls, change records, access reviews and data handling notes add documentation and test work that a basic feed does not need. | Ask the assessor or your compliance team for the evidence list before design and build logging into the integration from the start. |
Securing API keys, integration users and webhook endpoints
An integration is only as safe as the credentials and accounts it runs under. The cards below cover the access layer that sits beneath every ERPNext REST API call: who the integration acts as, where its secrets live, which hosts it can call back to, and how its activity is recorded.
Issue a dedicated integration user
Create a separate ERPNext user for each integration rather than reusing an administrator or a person's login. The API key and secret pair inherits that user's roles and permissions, so the user is the real security boundary. Confirm which DocTypes the integration must read or write, and document why each one is needed before generating any key.
Frappe auth docsRestrict roles and user permissions
Grant the integration user only the roles its job requires, then add user permissions to limit which companies, warehouses or customers its records can touch. Test each endpoint with the integration user, not an administrator, because an administrator session hides permission gaps. Review the role set after every change to the integration's scope.
Issue, rotate and revoke keys
Generate API keys on the integration user and record an owner, purpose and review date for each one. Rotate secrets on a fixed schedule and immediately when a developer leaves, a server is rebuilt or a secret may have been exposed. Revoke old keys only after the new key is confirmed working, so the integration does not fail mid-batch.
Store secrets outside code
Keep API keys and secrets in a secrets manager or the host's protected environment, never in source repositories, sample scripts or ticket comments. Load them at runtime into the calling service and restrict who can read them. Scan repositories and CI logs for accidental exposure, because a leaked key carries every permission of its integration user.
Limit webhook targets to allowed hosts
Webhooks send ERPNext document data to a URL you configure, so the destination list is an access control. Allow only known endpoints, use HTTPS, and confirm that a changed or added webhook target goes through review. Check that the receiving service verifies the request before it trusts the payload, and that outbound traffic from the ERPNext server cannot reach arbitrary internal addresses.
Keep Server Scripts off unless needed
Server Scripts run Python on document events or as API endpoints. Since version 15 they are disabled by default and must be enabled with the server_script_enabled setting. Leave them disabled unless the integration design truly requires one, and if you enable them, review each script, restrict who can create them, and log changes. The wider platform settings belong to the security hardening topic.
- Disabled by default
- Version 15
How to test that the integration works and fails safely
Test the integration in layers, and agree the pass criteria with finance and operations before go-live. Start with contract tests for each endpoint you call or receive: confirm that the request fields, the response shape and the error format match what your source system and the ERPNext side expect, including child table rows for sales orders, invoices or payroll lines. Run these against a staging site on the same ERPNext version as production, not against a demo, because the API behavior you test should match what you will run. Permission tests come next. Run every call with the dedicated integration user, not an administrator, and confirm it can create and read the DocTypes it needs and is refused everywhere else. Check that the API key and secret pair works only for that user and that a revoked key fails cleanly.
The failure tests matter as much as the happy path. Replay the same inbound order or payment twice and confirm that ERPNext does not create a second document, which depends on the unique identifier you send and on how your middleware records what it has already posted. Inject timeouts between your middleware and the site, send malformed payloads with missing mandatory fields, wrong data types and unknown item codes, and confirm that each failure lands in your error queue with the original payload, is not silently dropped and can be retried without side effects. Also confirm the behavior when a burst of calls arrives at once, and whether your retry logic respects any rate limits your hosting or proxy layer applies. Confirm those limits with your hosting provider or infrastructure team, because this guide does not assume specific values.
Finish with a reconciliation run. Pick a closed period from the source system, post it through the integration into a staging site, and compare document counts, invoice totals, tax amounts, stock quantities and payment balances against the source figures. Differences should be explained one by one, not averaged away. Agree in writing with finance and operations what counts as a pass, including which differences are acceptable, who signs off, and what happens when a failed batch must be reversed. Those criteria should exist before the first test run, so that the team does not adjust the definition of success after seeing the results. Repeat the reconciliation after the first live week, because production volumes and data quirks often differ from staging.
What to monitor, back up and document after go-live
An ERPNext integration fails quietly unless someone watches it. The cards below cover what to monitor, what to back up before changes land, and what to hand over so the next engineer can run the integration without the original builders. Each item feeds the same goal: knowing when an integration breaks and being able to recover it.
Failed requests and queue depth
Track HTTP error rates from the REST API, including 401 and 403 responses from expired or revoked credentials and 429 or 5xx responses from overload. Watch the background job queue as well, because webhook deliveries and scheduled syncs can back up while the API still looks healthy. Set alerts on sustained error rates rather than single failures, and confirm with your ERPNext host where worker and queue metrics are exposed.
frappe_docker servicesAPI key and token expiry
Keep an inventory of every API key and token the integration uses, with the owning ERPNext user, the roles and permissions it carries, and its renewal date. Rotate credentials on a schedule and test the rotation in staging first. Confirm with your team whether your ERPNext version issues keys that expire automatically or whether expiry is managed by your own process. Revoke keys for users who leave the company.
Log retention and audit trails
Decide how long to keep integration logs, request and response payloads with personal data removed, and the Error Log records ERPNext writes. Logs are needed to investigate a disputed invoice or a failed payroll export months later. Confirm the retention period with your compliance team, and make sure log storage sits in the same access controls as the data it describes.
Backups before schema changes
Take a full bench backup of the database and files before you add custom fields, change DocType definitions, deploy a custom app or run bench migrate. Integration payloads may depend on field names, so a schema change can break a working sync without any code change on the other side. Test the restore on a separate environment, not only the existence of the backup file.
Re-testing after each release
ERPNext v15 and v16 both receive frequent minor releases, for example v16.51.1 and v15.123.0 in the releases list. Rerun your integration tests on each planned update, not only at major upgrades, because a minor release can change API behavior or a validation rule your sync depends on. Keep a fixed test suite covering create, update, cancel and error paths, and record which ERPNext version each run used.
ERPNext releasesRunbook and data contract
Hand over two documents: a runbook covering how to restart workers, rotate credentials, replay failed webhooks and roll back a deployment, and a data contract listing each field exchanged, its source system, its ERPNext DocType, its format and its owner. The data contract is what lets a new engineer or a partner change one side without breaking the other. Review both documents after every release that changes the integration.
What buyers ask before hiring help for an ERPNext API integration
How much effort does an ERPNext API integration take, and what drives it?
Effort depends mainly on how many systems are connected, how many documents move in each direction, and how much logic sits between them. A storefront sending orders into ERPNext as Sales Orders is a different job from a two-way bank feed that matches payments to Sales Invoices. The drivers to price are the number of data objects (customers, items, orders, payments, payslips), whether the flow is one-way or two-way, the error and retry handling you need, the volume of records per day, and the number of test cycles against non-production systems. Ask any partner to break the quote down by flow and by environment so you can see what is build work and what is testing.
Can our internal team build an ERPNext integration without a partner?
Yes, if you have engineers comfortable with Python, the Frappe DocType model, API authentication and failure handling. ERPNext exposes a REST API, supports API keys and tokens, and can call whitelisted methods, so the technical building blocks are available to your team. The harder part is the operating discipline: someone must own the mapping rules, watch failed syncs, rotate credentials, and retest after every ERPNext upgrade. Decide early who will be on call for the integration after go-live, because most long-term problems come from ownership gaps rather than the first build.
What do we need to provide for an integration project?
A well-scoped integration needs named system owners on both sides, sample payloads from the source system, and test accounts or a sandbox in ERPNext that is not production. You should also provide the business rules for each mapped field, such as tax handling, currency, item codes and how duplicates are identified. Ask for access to the source system's API documentation and its rate limits, and for a written list of who approves changes to the mapping. Missing samples and unclear ownership are the most common causes of schedule slips, so collect them before work starts.
Does a Frappe Cloud plan change what we can build for the integration?
It can. Frappe Cloud shared site hosting starts at 5 US dollars per month, and Frappe Cloud servers start at 20 US dollars per month for shared instances and 125 US dollars per month for dedicated servers, according to the ERPNext pricing page. Those are starting prices, not the full cost of a plan. The more important constraint for integrations is code placement: Server Scripts are disabled by default from version 15 and must be enabled with the server_script_enabled setting, and Frappe Cloud public shared benches do not allow them. If the integration relies on server-side logic, confirm which plan and bench type you will run before choosing the design, and check current limits with Frappe directly.
How do ERPNext upgrades affect custom integration code?
Upgrades can change the behavior of the DocType fields, API responses and whitelisted methods your integration depends on, so every integration needs a regression test before a major upgrade. Frappe publishes support windows for each version, and ERPNext ships frequent minor releases on both supported major versions, so plan to re-test often rather than once a year. Keep integration code in a custom Frappe app under version control instead of in the UI, pin the request formats you send, and run bench migrate on a staging copy with your integration tests before touching production. Confirm the support window for your current version on Frappe's supported versions page.
How should we handle credentials, rate limits and failed syncs?
Treat API keys and tokens as secrets: give each integration its own user with the narrowest role and user permissions it needs, store keys outside code, and rotate them on a schedule. Plan for rate limits on both ERPNext and the external system, and for retries that do not create duplicate documents. Use idempotency keys or external reference fields so a retried request updates instead of duplicating. Log every failed call with the payload reference, and set up an alert and a reprocessing queue. Confirm the exact rate and throttling behavior in your own hosting environment, since it depends on how your server and reverse proxy are configured.
What should we ask for in a quote for an integration?
Ask for a fixed-scope written proposal that lists each data flow, its direction, its trigger (webhook, scheduled job or on-demand call), the ERPNext objects it touches, and the acceptance tests. The quote should separate one-time build work from recurring items such as hosting, monitoring, credential rotation, upgrade testing and support. Ask how changes to scope are priced, which environments are included (development, staging, production), and who provides test accounts and sandbox access. DeployOpen works from a written scope, and a quote follows from that scope rather than from a published price list.
How DeployOpen scopes, builds and hands over ERPNext integrations
The sequence turns a set of systems that need to talk to ERPNext into a written scope, a tested integration in staging, and a handover that your team can operate without depending on the people who built it. Each step closes with a document or check you can review.
Agree the written scope
Before any code is written, DeployOpen and your team list every external system, the ERPNext DocTypes each one reads or writes, and the direction of data for each object, such as orders flowing in from an online store or payment references flowing back from a bank feed. The scope also records which fields are authoritative in each system, how often each flow runs, and what counts as a failed record. The output is a signed fixed-scope document with deliverables and acceptance criteria. The step is done when your finance and operations owners have approved the object list and the change process for later additions.
Confirm the target environment and API surface
DeployOpen confirms where ERPNext runs, whether on your own servers, in your cloud account or on Frappe Cloud, and which Frappe and ERPNext versions are in use, since this determines the endpoints, permission model and whether Server Scripts can be enabled. The team checks which resources the API user will need, how API keys and token secrets are issued, and whether the network path from each external system to the ERPNext site is allowed. The output is a short environment note your security team can review. It is done when the target version is on a supported list and the access path is documented.
Design the data mapping and error model
DeployOpen maps each source field to its ERPNext field, defines keys used for idempotent creation and updates, and decides which validations run in the source system and which run in ERPNext. The design also covers error handling: which failures are retried, which go to a review queue for your operations team, how duplicate deliveries are detected, and how rate and batch limits shape the sync schedule. Where a webhook is used, the design states how payloads are verified and what happens when ERPNext is unavailable. The output is a mapping sheet and error runbook draft. It is done when your finance owner signs off on the mapping for each object.
Build the integration in staging
The integration is built in a staging ERPNext site that mirrors production configuration, using the REST API, scoped API keys or tokens, and whitelisted methods where custom logic is needed. Where a Server Script is required, the team confirms it is permitted in the target environment before relying on it. Code lives in version control with configuration kept separate from secrets. The output is a working integration in staging and a log of the endpoints and permissions it uses. It is done when every object in the written scope can be created, updated and rejected in staging as specified.
Test with finance and operations owners
Your finance and operations owners run test transactions through the flows they will rely on, such as order creation, stock movements, payment matching and payroll exports, and compare ERPNext results with the source system. DeployOpen records failing cases, fixes them and reruns the affected tests, including duplicate delivery, partial failure and invalid reference data. The output is a test report with each acceptance criterion marked as passed, the defects found and how they were resolved. It is done when the business owners sign the report against the scope.
Manage credentials and promote to production
Credentials are issued for the integration user only, with the narrowest role permissions that let the flow run, and are stored in your secrets manager rather than in code or chat. Keys are rotated under a procedure you approve. DeployOpen promotes the tested build to production during a window you agree, runs a controlled first batch, and checks counts and balances against the source system. The output is a production run record and a credential inventory listing who holds what. It is done when the first production batch reconciles and no credentials remain in source code.
Hand over code, runbook and automated tests
DeployOpen delivers the source code with a README, the configuration reference, the mapping sheet, the error runbook covering retries, queue review and manual replay, and the automated test suite that your team can run before each change. Your administrators are trained on monitoring, log locations and how to pause a flow. The output is a handover package and a recorded walkthrough. It is done when your team runs the test suite and replays one failed record without DeployOpen involvement.
Decide on retainer support
After handover, you choose whether to keep support in-house or add a retainer for ERPNext upgrades, updates to the integration when Frappe or ERPNext minor releases change behavior, and continuous testing of the flows. A retainer scope is agreed in writing, like the original project, and states what is covered, response expectations and how upgrade testing is run in staging first. The output is either a closed project or a signed retainer scope. It is done when the chosen support model and its owners are recorded in the runbook.

