Skip to content
Sanfeliu Software

Guides

How to connect the ERP to the online shop, without changing ERP

To connect the ERP to the online shop you do not need to replace either of them: you build an integration that takes orders from the shop to the ERP, and stock, prices and products from the ERP to the shop. They connect through each system’s API, through the ERP’s database or, if there is no other way, with periodic exports. Before you start, you need to decide which system owns each piece of data, how often the data moves and what happens when an order does not go through.

Updated

Thirty minutes, free and with no obligation, with the engineer who would lead the project.

What has to pass from one system to the other

  • From the shop to the ERP: orders, with the customer, the lines, the taxes, the shipping and the payment.
  • From the ERP to the shop: available stock, prices (including per-customer price lists, if you have them) and, if you want, the products.
  • Back to the shop: the order status and the carrier’s tracking number.

The first decision is which system owns each piece of data. Usually the ERP owns stock, prices and customers, and the shop owns orders until they reach the ERP. If both can write the same piece of data, sooner or later they will not match.

Three ways to connect them

  • Through the API. The right way when there is one: each system has a documented door for reading and writing. Online shops have one, and so do many ERPs.
  • Through the ERP’s database. When the ERP has no API, or only a limited one, the integration reads and writes its tables, very carefully and with the same permissions as a user.
  • Through files. If there is no other way, the ERP exports a file every so often and the integration reads it. It works, but it is never instant.

Ready-made connectors work well when you work the way most companies do. When there are per-customer price lists, bundles, several warehouses or an ERP that has been adapted, they fall short and the integration has to be built to measure.

How often the data moves

Orders, as soon as they come in: the sooner they are in the ERP, the sooner they are prepared. Stock, more often the less of each product you have, because that is where you end up selling what is not there. Prices and products, when they change.

Not everything has to be instant, and not everything is worth making instant: decide it for each piece of data, based on what getting it wrong would cost.

When an order does not go through

It will happen: a product that does not exist in the ERP, a customer with a mistyped tax ID, a tax that does not add up. A good integration neither stops nor hides it: it sets the order aside, alerts whoever needs to look at it with the reason, and once it is fixed, tries again.

It also has to keep a record of everything it does: which order went in, when and with what data. That is what will save you arguments the day a customer says their order never arrived.

What to have ready before you start

  • Which ERP and which online shop you use, and which version.
  • Whether the ERP has an API or whether its database can be accessed. Whoever maintains it for you will know.
  • Which data each system owns.
  • A few examples of real orders, including the complicated ones.

How we do it at SANFELIU

At SANFELIU, a custom software consultancy in Barcelona, we build integrations between the ERP and the online shop without replacing either of them, with SAP Business One, Sage, Odoo, Microsoft Dynamics, A3, Holded or an in-house ERP. We do not sell or implement any ERP: we build the connection.

It is done in phases, at a fixed price per feature, and after handover it is maintained with a monthly plan sized to the solution, with no minimum term.

Thirty minutes, free and with no obligation, with the engineer who would lead the project.

Frequently asked questions

Do you need to change ERP to sell online?

No. If the ERP has an API, allows access to its database or can export data on a regular basis, it can be connected to the shop you already have.

How long does an integration between the ERP and the shop take?

It depends on the systems and the exceptions. At SANFELIU, integrations are done in phases, over four to twelve weeks, and the proposal gives the timeline for each phase before we start.

What if the ERP has no API?

There are two alternatives: reading and writing to the ERP’s database, carefully and with the same permissions as a user, or working with periodic exports. The second is slower, but it does not touch anything in the ERP.

Tell us about your case in thirty minutes.

Book a meeting with the engineer who would lead the project: thirty minutes, free and with no obligation. If we’re a fit, we tell you how we’d start; if not, who to turn to.

Or email me@joansanfeliu.com

Prefer to write?

Tell us about your case in a few lines and we’ll reply by email.