← All posts

Connecting a custom CRM or portal to your accounting, ERP and other systems

A new CRM or portal rarely lives alone. It has to share customers, orders, invoices and stock with the accounting package or ERP you already run. Here is how those integrations are planned and built, and what to have ready before you ask for one.

Author
Elie Chaaban
Published
Reading time
8 min
Topics
Portals, CRM, Integrations, Planning

Almost every business that asks for a custom CRM or portal already has other software. There is an accounting package that holds the invoices, maybe an ERP that holds stock and purchasing, a website that takes enquiries, and a few spreadsheets that glue it all together. The new system is supposed to make the week easier. If it becomes one more place where someone retypes the same customer and the same order, it has made the week harder.

So the question is not only what the CRM or portal should do. It is how it talks to everything around it. This post covers how I plan those connections and what you can prepare so the integration is quoted properly instead of discovered halfway through the build.

Why integration decides whether the system gets used

A CRM that does not know which invoices are unpaid will be ignored by the person chasing payments. A client portal that shows an order status nobody updates will generate more phone calls, not fewer. A B2B ordering portal that cannot see real stock will take orders the warehouse cannot fill.

In each case the screens can be well designed and the system still fails, because the information people need lives somewhere else. Before I worked on custom business software I spent a long time on ERP systems, and the lesson that carried over is simple: the hard part of business software is rarely the screen. It is agreeing where each piece of data comes from and keeping it consistent.

Start with a map, not a feature list

Before talking about APIs, I ask for a plain map of the data. For each kind of record, three questions:

  1. Where is it created? A new customer might start as a website enquiry, a salesperson's entry in the CRM, or a record the accountant opens when the first invoice goes out.
  2. Who changes it afterwards? Addresses, prices, credit limits and contact people all change. Someone does that, in some system.
  3. Who needs to see it? Staff in the CRM, clients in the portal, the accountant in the accounting package, managers in reports.

The answers usually fit on one page. That page turns "connect it to our accounting" into something specific, such as: customers are created in the CRM and pushed to accounting; invoices and payments are created in accounting and read by the CRM and the portal; products and stock levels come from the ERP and are never edited anywhere else.

One system owns each record

The single most important rule is that every kind of record has one owner. That system is the source of truth for it. Other systems can show a copy, but they do not edit it, or if they do, the change goes back to the owner rather than living in two places.

Skip this rule and you get the classic mess: a phone number updated in the CRM but not in accounting, or a portal showing an invoice as open that the accountant marked paid yesterday. Nobody knows which is right, so people stop trusting both.

Typical ownership looks like this, though every business is different:

Customers themselves are the record most often contested. Pick one owner, write it down, and design the screens so the other systems cannot quietly diverge.

How two systems can actually exchange data

Once ownership is clear, the next question is the mechanism. There are a few, and the one you get depends more on what your existing software supports than on preference.

A documented API

The cleanest case. Most current cloud accounting and ERP products publish an API that lets another system read and create records with proper authentication. The CRM backend, in my case usually a .NET Core or Next.js API on PostgreSQL, calls that API to push a new customer or pull invoice statuses. Some products also send webhooks, short notifications that something changed, so the CRM can update a record without asking every few minutes.

Even with an API, check the details early: which records it covers, whether it can create as well as read, how many calls it allows, and whether your subscription tier includes access. These answers come from the vendor's documentation, and I read them before quoting rather than assuming.

Direct database access

Older or self-hosted systems sometimes have no API, but the data sits in a database on a server you control. Reading from it directly is possible and sometimes the only option. Writing into it directly is risky, because the original software may rely on rules and related tables that a raw insert will skip. When I have to work this way, I prefer reading from a view or a reporting copy, and sending changes back through whatever import the original software supports.

File exports and imports

Many systems can export and import CSV or Excel files. A scheduled job can pick up an export from a folder, process it and update the CRM, or produce a file the accounting package imports. It has more ways to fail silently than an API, but it is cheap to build and often good enough for data that changes daily.

Not integrating yet

Sometimes the right first version has no automatic link at all. If ten invoices a week need to appear in the portal, an export the accountant uploads might do for now, and the integration can come in version two once the rest of the system has proved itself. That is a legitimate scoping choice, and it keeps the first launch focused, the same thinking behind replacing spreadsheets with a custom CRM one step at a time.

Real time, scheduled or on demand

Not every record needs to move instantly. Deciding how fresh each piece of data must be saves a lot of complexity:

Real-time syncing needs webhooks or frequent polling and careful failure handling. Scheduled syncing is simpler but can show yesterday's number, which is fine if everyone knows that.

The details that break integrations

Most integration problems come from the data on either side, not the connection.

I build these syncs as background jobs with their own logging and monitoring, running in Docker alongside the main application, so a slow or failing external system does not freeze the screens your team is using.

Integrations with the rest of your stack

Accounting and ERP are the heavy ones, but the same thinking applies to the lighter connections a CRM or portal commonly needs: website enquiry forms that create leads, email or WhatsApp notifications when a status changes, online payment links attached to invoices, calendar entries for appointments, and a mobile app sharing the same backend. NeonTask is an example of that last pattern: the web app for dispatchers, the technician app and the finance side all sit on one .NET Core API, so a job completed in the field is the same record the office sees moving towards invoice and payment.

What to prepare before asking for a quote

An accurate integration estimate needs a few facts, not technical knowledge:

  1. The exact name and version of each system the new CRM or portal must talk to, and whether it is cloud-hosted or installed on your own server.
  2. Who administers it. Is there a vendor, a local reseller or an IT person who can create API keys or give access to exports?
  3. The data map described above, even as a rough table: record, where it is created, who edits it, who needs to see it.
  4. How fresh each piece must be. Instantly, within the hour, or daily.
  5. A few sample exports with sensitive values removed, so the real fields, codes and mess are visible from day one.
  6. What happens today when things do not match. That workaround usually tells me where the integration needs the most care.

With that in hand, the integration becomes a defined part of the proposal, with its own scope, rather than a risk hiding under the words "connect to our system".

Getting started

If you are planning a CRM, client portal or internal system and it has to work with the software you already run, that is the work I describe on the custom CRM and portal development page, and you can read more about my background on the about page. Send me the list of systems involved and a rough data map at hello@eliechaaban.com, or get in touch to set up a call and we can work out which connections the first version needs and which can wait.

More from the blog

Let's work
together