Skip to content
Ask for a Budget
BusinessAugust 31, 20267 min readUpdated on September 6, 2026

Integrating your ERP with CRM, app and website: where to start

ERP integration with a CRM, app or website fails less on technology than on the data contract. Five ways to connect systems and what to decide before the quote.

Integrating your ERP with CRM, app and website: where to start
Índice do artigo
faltam 7 min de leitura

The API exists, the vendor confirmed it exists, and still the data does not show up on the screen. That is the exact point where most integration projects discover the problem was never technological.

The scene repeats itself in mid-sized companies. The ERP has the customer record. The CRM has the deal. The e-commerce site has the order. The app has the end consumer. All four work well, each in its own corner, and nobody can see the whole operation anywhere.

This article is about what needs to be decided before anyone writes the first line of integration code. It is not a technical manual: it is the set of questions that separates an integration project that goes into production from one that turns into a scope argument in the third month.

Article summary

  • An API existing does not mean it delivers the field you need. In the projects we have run, a missing field stalls more integrations than a connection failure.
  • What defines the timeline is not technical difficulty: it is who has permission to change each side of the connection. When only the ERP vendor can publish a field, the schedule is theirs.
  • There are five ways to connect two systems, and the wrong choice shows up months later, in the maintenance bill.
  • The document that prevents most scope disputes is the data contract, and it needs to exist before the quote, not after.

The API exists and the data still does not arrive

The most expensive misreading on this subject is thinking that integration means plugging in a cable. The conversation usually ends with "the system has an API, so we can integrate", and that sentence hides three different questions that need three different answers.

Having an API means there is a door. It says nothing about what goes through it. In an app project for a tire retail chain, the ERP had a published API, the team had the credentials, the connection responded, and the app could not find customers by CPF (Brazil's individual taxpayer ID). The CPF was registered in the ERP. It simply did not come back in the response, because the field was not part of the published resource. Months later, the same project needed the area code and date of birth, and it was the ERP vendor, not the app team, that had to change the API.

That is the real shape of the problem. It is not a connection failure, it is a missing field. And the fix was not on the side of whoever was building the app.

What stalls things is not technology, it is who can change what

Every integration has two sides, and almost never does the same person control both. That asymmetry is the variable that most influences the schedule and the one that least appears in commercial proposals.

In practice there are three control boundaries, and it is worth mapping each one before promising a date. The first is the side you control, usually the app, the website or the new platform, where any adjustment goes into the next delivery. The second is the side a vendor controls, the off-the-shelf ERP or CRM, where publishing a new field depends on opening a ticket, waiting in a queue and sometimes buying support hours. The third is the side nobody controls anymore, the legacy system whose author has left the company, where the only reliable source is the database.

The business consequence is direct: when the three boundaries are mapped, the schedule stops being a technical estimate and becomes a sum of dependencies with names and owners. It is the difference between "four weeks" and "four weeks after TOTVS (a Brazilian ERP vendor) publishes the field, which depends on the ticket opened on such-and-such date".

Integration layerWhat you control
TOTVSVendor controls
SalesforceVendor controls
VTEXVendor controls
HubSpotVendor controls
WhatsAppPlatform controls

The diagram above is the shape we find most often: a core the company can evolve at its own pace, surrounded by systems that evolve at third parties' pace. Recognizing this is not pessimism, it is what makes planning possible.

The five ways to connect two systems

There are five paths, and the difference between them does not show up at delivery. It shows up in maintenance, six months later, when someone needs to change something.

ModeWhen it fitsThe price you pay later
Batch fileLarge, periodic loads: catalog, payroll, accounting closeStructural delay. The data is always from yesterday, and nobody notices until a customer complains
Direct database readsLegacy system with no API and nobody maintaining itSilent breakage with every version upgrade, and usually loss of support
Event and webhookImmediate reaction: order created, payment approved, status changedRequires handling resends, ordering and duplicates. Without that, the data slowly diverges
Integration platformMany simple connections between off-the-shelf systemsCost per volume and limited control when the rules get complex

The middle column is the one the sales team reads. The right-hand column is the one that decides whether the project will be a source of pride or embarrassment the following year. In most real cases the right answer is a combination: batch for volume, API for lookups, events for what needs to be immediate.

Real time is expensive and almost never needed across the board

The decision that most inflates budgets without improving operations is treating the whole integration as real time. It rarely needs to be.

It is worth separating what the user is looking at on screen from what the company reconciles later. Balance, order status and appointment availability need to be immediate, because the customer is waiting for the answer. Product catalog, price list and accounting close work perfectly with an overnight load, and nobody on the other side notices a difference.

There is also an intermediate case that is often forgotten: the same vendor may offer both. In an integration for looking up outstanding vehicle fines and taxes, the same company exposed a synchronous route and an asynchronous route, with different semantics. Choosing the wrong one does not produce an error, it produces a poor experience that only shows up with the app already in production and real volume.

The data contract prevents most disputes

Before the quote, before the schedule and before choosing technology, there is a short document that defines whether the project will go well: the data contract.

It answers, in writing, which fields travel, in what format, how often, which system is the source of truth for each field and what the system should do when the data does not exist on the other side. It looks like bureaucracy, and it is the piece that prevents the most unpleasant conversation of all, the one where one party says the integration was in scope and the other says it was not.

It is worth noting that this risk is real and commercial, not hypothetical. In a retail project with in-store installment credit, the line "integration with the ERP" was in the formal plan and in the kickoff, and it still became a disagreement, because what was written was the system's name, not which exact queries the app would make against it.

  • Each field listed with name, type and which system is its source of truth
  • Frequency defined field by field, not a single frequency for everything
  • Expected behavior when the data does not exist, is empty or comes in an old format
  • The name of the person responsible, on each side, for publishing changes to the connection
  • The staging environment named, with who grants access to it

The last item looks like a detail and is not. A test environment made available late is one of the most common causes of delay, and sometimes the block is not even technical: in a payment provider integration, the test environment rejected calls with a permission error until the merchant was commercially enabled on the other side.

Integrate, replace or coexist

Not every annoying system needs to be integrated, and almost none needs to be replaced urgently. It is worth placing each case on the matrix below before deciding.

Critical and stagnantEncapsulate it and plan the exit
Critical and aliveIntegrate and maintain
Secondary and stagnantLet it die, do not invest
Secondary and aliveConnect via the cheapest path

The top-left quadrant is the most delicate: a system the operation depends on and that nobody evolves anymore. There the answer is neither to integrate nor to replace immediately, but to place a layer on the outside that isolates the rest of the company from it, and buy time to decide on replacement without rushing. That layer is what protects the investment on the other fronts, and it is the subject of API-first architecture.

Who answers when the integration breaks

An integration is a production system that depends on another production system. It will break, and the time to define who responds is before, not during.

Three agreements solve almost everything. The first is to log every call, with what was sent and what came back, because without that the conversation between the two vendors comes down to one side's word against the other's. The second is to define the product's behavior when the other side is down: showing old data with a warning is usually better than an error screen. The third is to agree, in writing, on the channel and response time for escalating to the vendor on the other side.

To be honest about the limits: a well-designed integration layer reduces the number of failures, makes each failure diagnosable and makes fixes cheaper. It does not guarantee that the system on the other side stays up.

Where to start without stopping the operation

The path that works is to start with a narrow vertical slice, with real value, and not with a complete integration project.

Isometric block of four stacked layers with a narrow vertical slice highlighted in orange cutting through all of them from top to bottom

Pick a question the operation asks every day that today requires opening two systems. Checking the customer's balance. Seeing whether the order was invoiced. Knowing whether the part is in stock. Integrate just enough to answer that question end to end, put it into production and measure.

What you learn on the first complete path is worth more than any six-week assessment, because it reveals the missing fields before the whole budget is committed.

A narrow slice cutting through all the layers teaches more than an entire layer built in a vacuum.

From there, each new slice is cheaper than the previous one, because the authentication layer, call logging and error handling already exist.

Frequently asked questions

Almost never. In most cases the ERP remains the source of truth and gets an integration layer on the outside. Replacing the ERP is a much bigger project, with much greater risk, and it solves a different problem.

Sources and method

This article is based on integrations carried out by the X-Apps team between 2023 and 2026, involving TOTVS Protheus, TOTVS Fluig, VTEX, Salesforce, HubSpot, retail ERPs and payment and lookup providers. The cases cited were de-identified when the relationship between client and system is not public.

The statements about platform behavior were checked against each vendor's official documentation on August 31, 2026. Prices, call limits and service levels were not researched and therefore do not appear in the text.

Previous post
Public data collection: the part of a document that takes longest
Next post
Integrating TOTVS Protheus with an app: what to ask before the deadline
Newsletter

One email a month, no noise

What we learn shipping custom software and applied AI.

Related articles

Data sent to Brazil's Central Bank: what Joint Resolution 18 asks of your system6 min · Business
How to turn your company into an exponential organization3 min · Business
What to consider when validating a software development project2 min · Business
Open and closed scope: software and the urgency of innovation1 min · Business
Basic API guide for companies3 min · Business

Accelerate your business with X-Apps

Ask for a Budget
X-Apps is an IT provider partner and advised by
Gartner
Receive our e-mails
News on software and applied AI.
Follow X-Apps