ERP integration: how to connect your sales tool, store or portal to CONTPAQi, Aspel or Odoo
Your team keys in the same order twice, the store sells what is already gone and someone re-types every invoice. This guide explains what gets synced, how each ERP really connects and what to ask so the integration does not become another problem.
What integrating your system with the ERP means
Integrating means two systems pass data to each other on their own, without a person copying it from one screen to another. In a mid-sized company it is nearly always the same picture: the ERP (CONTPAQi, Aspel, Odoo) handles invoicing, inventory and accounting, and outside it lives another system where you sell or serve: a CRM or quoting tool, an online store, a customer or dealer portal.
If it is not yet clear what belongs in each, the guide on ERP vs CRM explains it. This one starts from both already existing and not talking.
The signs you need an integration:
- Double entry: the order comes in through the store or the salesperson and someone keys it into the ERP again.
- The store or portal shows stock that is not what the warehouse has, and you sell what is already gone.
- CFDI invoices are made by re-typing the order, with mistakes in the tax ID, the CFDI use or the price.
- Prices change in the ERP and the site or quoting tool is updated by hand, whenever someone remembers.
- Salespeople cannot tell whether a customer has paid without calling finance.
- The month-end close includes a day of matching what one system says against the other.
Integrating is not switching ERPs. The ERP almost always stays where it works; what changes is that it stops being an island.
What gets synced, and which system owns each record
Before talking technology, decide record by record which system is the source of truth: the only place where that data is created or corrected. The other one just receives it. The most common setup in mid-sized companies:
| Record | Usual source of truth | Direction |
|---|---|---|
| Customers (legal name, tax ID, tax regime, billing address, credit) | The ERP for tax data and credit; the sales system for contacts and follow-up | Both ways, each field with a single owner |
| Products, SAT codes and units | The ERP | From the ERP to the sales system |
| Prices and price lists | The ERP, or the quoting tool if your pricing rules live there | From the owner to the other, never edited in both |
| Stock by warehouse | The ERP | From the ERP to the store or portal |
| Orders | The sales system, store or portal | From the sales system to the ERP |
| CFDI 4.0 invoices | The ERP, where they are stamped | Back from the ERP: series, UUID, PDF and XML for the customer |
| Payments and payment complements | The ERP or the bank | From the ERP to the sales system, so salespeople and customers see the balance |
The rule that prevents most problems: no record is edited on both sides. If a price can be changed in the ERP and in the store, sooner or later they disagree and nobody knows which one is right.
A common pattern: the store or portal takes the order, the ERP invoices and stamps it, and the invoice with its UUID goes back to the portal for the customer to download. The CFDI is issued in one place only.
How CONTPAQi integrates
CONTPAQi Comercial Premium is a desktop system: it is installed on your company's computers or server. For remote use, CONTPAQi offers Escritorio Virtual, which hosts that same system in a remote environment. That shapes how it connects.
- The SDK. CONTPAQi publishes a development kit, with its reference manual, for Comercial Premium and Factura Electrónica. It is a set of functions an external program uses to read and change the system's data while following its business rules and handling several users at once. It is the right route for writing into CONTPAQi: creating customers, creating orders or issuing documents.
- Where it runs. The SDK needs the system installed, either single-user or as a workstation. In practice the integration includes a small service on a Windows computer or server on your network that talks to CONTPAQi on one side and to your store or portal on the internet on the other.
- Licences. According to the SDK manual, some functions, such as issuing and stamping documents, require a licence with a certain number of users. Check it with your reseller before getting the integration quoted.
- Versions. CONTPAQi warns that the SDK version must match the system's. Every CONTPAQi update is a moment to test the integration.
- What it already includes. Comercial Premium integrates with CONTPAQi Mi Factura, so your customers request their invoices through a portal, and sends its documents to CONTPAQi Contabilidad without re-keying. If that covers what you need, there is nothing to build.
If you use Comercial Start or Pro, ask your reseller what can be connected in your edition: the SDK manual is written for Premium and Factura Electrónica.
How Aspel integrates
Aspel, now Siigo Aspel, solves several connections inside its own systems, and they are worth checking before building anything:
- Online stores. Aspel SAE includes integration with Mercado Libre, Amazon and Claro Shop: it downloads the store's orders and records them as orders in SAE, with automatic sync every 30 to 120 minutes, or manual.
- Interfaces between Aspel systems. SAE with COI turns purchases and sales into accounting entries, and there are similar interfaces with BANCO, NOI and CAJA. They are included in each system's subscription.
- SAE Móvil. An app for taking orders and quotes and checking customers and inventory from a phone. Each simultaneous session counts as a user.
To connect SAE with a system of your own (your dealer portal, your quoting tool, a store that is not on that list), Aspel's public documentation shows no general developer API. The routes left are reading and writing SAE's database, which in version 10.0 runs on Firebird or SQL Server, using a third-party connector, or exchanging files.
Reading an ERP's database to check stock or prices is reasonable. Writing straight into its tables, without going through the system, bypasses its rules and is what breaks most often on an update. If a proposal does it that way, ask how it protects against that.
How Odoo integrates
Odoo is the most open of the three, because it was born as a web application:
- External API. Since Odoo 19 the main API is JSON-2: your system sends it requests over the internet with an API key, and Odoo applies the same permissions the key's user would have. Each call is its own transaction, so an order with its lines has to be designed so it never ends up half-written.
- XML-RPC and JSON-RPC. These are the earlier APIs, still used by many integrations. Odoo has announced it will remove them in Odoo 22. If your integration is new, build it on JSON-2; if you already have one, ask when it will be migrated.
- Webhooks. Odoo's automation rules can notify another system when something changes (an order confirmed, an invoice paid) and receive notifications from outside. It saves asking every minute whether there is anything new.
- The plan. On Odoo Online the external API is only available on the Custom plan, not on Standard or the free one. On Odoo installed on your own server or on Odoo.sh, check with your partner.
Odoo can also be extended with your own modules inside Odoo itself. That is another way to integrate, but it ties your work to every version upgrade; it is worth it when the logic truly belongs in the ERP.
The integration routes, with their trade-offs
Whatever your ERP, systems integration ends up as one of these routes, or a mix of them:
| Route | How it works | It fits when | Watch out for |
|---|---|---|---|
| The ERP's API or SDK | Your system talks to the ERP through the channel the vendor publishes | The ERP offers one and you need to write into it (orders, customers) | Licences, versions and, on desktop, the machine it runs on |
| Staging database | Both systems drop and pick up data in a holding database or table | The ERP has no API or should not be exposed to the internet | Someone has to watch that pending items really get processed |
| Files (CSV, Excel, XML) | One exports, the other imports, by hand or on a schedule | Low volume, a first stage or data that rarely changes | Formats that change and errors nobody sees until month-end |
| iPaaS (Make, Zapier, n8n) | A platform links services with ready-made flows | Both systems are in the cloud and have a connector (n8n, for one, ships an Odoo node) | Cost by volume, and business logic scattered across flows that are hard to review |
| Off-the-shelf connector | A product built for your pair of systems | Your case is the standard one: a well-known store with a well-known ERP | Whatever it does not cover stays manual, and you depend on its upkeep |
With CONTPAQi or Aspel installed in your office, Zapier-type platforms cannot reach them on their own: something installed next to the ERP has to act as the bridge. With Odoo in the cloud, they can connect directly.
The decisions that make a good integration
- One way or both. Sending orders to the ERP is one way. Having the invoice, order status and collections come back too is both ways, and has more rules: what happens if an order is edited after it was sent, or if a customer is changed on both sides.
- Real time or in batches. Stock for a store with thin inventory needs to travel almost instantly. Prices or the catalogue can go hourly or nightly. Not everything has to be immediate, and immediate costs more to build and to watch.
- What happens when something fails. The ERP will be off, being updated, or will reject an order because of a mistyped tax ID. A good integration does not lose that order: it queues it, retries it and alerts a person when it needs fixing.
- How it is reconciled. A periodic report comparing both sides (orders sent against orders recorded, store stock against ERP stock) tells you whether the integration is healthy without waiting for a customer to complain.
- Who looks after it. Someone has to see the error alerts and know what to do. If nobody owns that, errors pile up silently.
Off-the-shelf connector or custom integration
If your case is standard, start with what already exists: the integration your ERP includes (like Aspel's online stores or CONTPAQi's Mi Factura) or an off-the-shelf connector for your pair of systems. It is faster and someone else maintains it.
A custom integration makes sense when:
- One of the two systems is your own: your dealer portal, your quoting tool or your production system.
- Your rules do not fit the connector: per-customer pricing, several warehouses, split orders, approvals before invoicing.
- You need control over errors and reconciliation, not just “it syncs”.
- The connector covers half the way and the other half is still done in Excel.
Built to fit, the integration is your code, documented, with logs of what was sent and when. It is what you would ask of any software: that you own it and another provider could maintain it.
How to scope it and what to ask a provider
To get a concrete quote for an integration, have this ready. It is the same logic as the guide on what to prepare before asking for a software quote, applied to two systems:
- Which ERP and exact version you use, where it is installed (your server, Escritorio Virtual, the cloud) and how many users your licence has.
- Which data goes in each direction, with its source of truth, using the table above.
- How often each one has to travel, and the volume on a normal day and on a peak day.
- One real example end to end: an order, how it is invoiced and how it is collected.
- Who on your team will see the errors, and what they do today when something does not match.
And what is worth asking the provider, whoever you hire:
- Which route will you use with my ERP (API, SDK, database, files), and why that one?
- Which licences, extra users or ERP plan do I need for it to work? Ask your ERP reseller or partner too.
- What happens to an order when the ERP is down or rejects it? Who finds out, and how?
- How will I know both systems match? Is there a reconciliation report?
- What happens when I update the ERP? Who tests the integration and who adjusts it?
- Are the code and the access in my company's name?
A serious proposal starts with a diagnosis of both systems and delivers in stages: first whatever costs the most hours today, usually the order into the ERP, then the rest.
Frequently asked questions
How much does it cost to integrate my system with the ERP?
It depends on the route and the scope. What drives the cost most: whether the ERP has an API or SDK, how much data travels and in how many directions, how often, and how much error handling and reconciliation you need. Add the licences or plan your ERP requires, which is worth asking your reseller about from the start.
Can CONTPAQi be connected to an online store?
Yes. The route CONTPAQi publishes is its SDK, which runs on a computer or server with the system installed and talks to your store from there. Check with your reseller which licence the functions you will use require, especially issuing and stamping documents.
Where is the invoice stamped, in the ERP or in my store?
The sensible choice is usually the ERP, which already stamps invoices, keeps the series and feeds accounting. The store or portal sends the order with correct tax data and gets back the UUID, PDF and XML for the customer to download.
Will Zapier, Make or n8n do?
For a cloud ERP with a connector, like Odoo, and moderate volume, they can be a good first step. With a desktop ERP they need a bridge installed next to it. And once the logic grows, it is better in reviewable code than scattered across many flows.
What happens to the integration when I update the ERP?
It has to be tested. ERPs change their SDK, API or database between versions, and Odoo has already announced the retirement of its older APIs. Ask that the proposal states who tests and adjusts the integration on every update.
Has your operation outgrown spreadsheets?
Tell us how you sell, quote and serve today. We'll tell you what we would build, and in what order.