Connecting your accounting software to your online store means orders, payments and stock move between the two systems automatically under written rules, instead of an employee copying them every day. The two systems do not talk in the first place because each was built separately, with its own database, codes and definitions. The fix is not one "integration" but three decisions: which system is the reference for each type of data, how and when data moves, and what happens when a transfer fails.
This guide explains why systems stay disconnected and how APIs work in an integration, compares the available integration methods in a table, then sets out sync rules for each type of data, how to handle failures, a pre-launch checklist, and how we approach these projects at HBS.
Why doesn't the accounting software talk to the online store?
An online store is designed to sell fast, and accounting software is designed to record accurately. The problem starts from that difference:
- Two separate databases. Each system keeps its own copy of customers and items, and neither knows the other exists.
- Different codes for the same thing. A product has an SKU in the store and another item code in accounting, and a customer is known by email in the store and by an account number in accounting.
- Different definitions. A store order can be cancelled, partly shipped or partly refunded, while accounting needs an invoice, journal entries, tax and a credit note for each case.
- Different timing. The store runs minute by minute, while accounting closes by the day or the month.
- Limited interfaces. Some software offers no API at all, or offers one for only a few operations or on a higher plan.
The familiar result: an employee exports orders from the store to a spreadsheet and keys them into accounting again, store stock does not match the warehouse, and the monthly reconciliation takes days.
How do APIs work when connecting accounting software to a store?
An API is a documented door a system offers to other software, with clear rules for what can be read, created or changed. Data moves through it in one of three ways:
- Instant notifications (webhooks). The store sends a notification the moment something happens, such as a new order or a refund, and the integration processes it right away.
- Regular polling. The integration asks at intervals for anything new since the last check. It is slower, but useful as a safety net.
- Batch files. Exports and imports on a schedule, suited to large volumes of data that do not need to be instant.
Do not assume notifications always arrive exactly once. Shopify's documentation, for example, states that the same webhook can arrive more than once after a timeout or a retry, and recommends processing that gives the same result however often a notification repeats, plus a periodic reconciliation job that retrieves anything missed. The same principle applies to any platform you connect.
Before any integration, read each system's API documentation: which operations are really available, the limits on how many requests are allowed, and how the vendor announces changes in new versions. An undocumented API, or one that changes without notice, makes any integration fragile however well it is built, and it is a question to put to the vendor before you buy.
Which integration methods are available, and which suits you?
| Method | When it fits | Advantages | Limits |
|---|---|---|---|
| A ready-made connector from one of the vendors | A common store platform and accounting package, with standard processes | Fast to set up with a low starting cost | Covers only what the vendor decided and is hard to change |
| No-code automation platforms | Limited order volume and simple rules | Flexible at the start without a development team | Get complicated with exceptions, and cost rises with the number of operations |
| A custom middleware layer | More than two systems, or rules specific to your business | Full control over rules, logs and alerts | Needs to be built, maintained and documented |
| Direct integration inside a custom system | You have a custom system and want the integration to be part of it | No extra layer and data in one place | Depends on the quality of the system itself and its team |
If you have not chosen your store platform yet, its ability to integrate is an important criterion in the comparison we set out in e-commerce store cost: Shopify vs WooCommerce vs custom.
Which sync rules should you write before any integration?
The most important decision in the whole project is that each type of data has one reference, meaning one system whose number counts when the two disagree. Here is an example of common rules you can adapt to your business:
| Data type | Reference system | Direction | Timing |
|---|---|---|---|
| Items and prices | Accounting or the inventory system | To the store | On every change |
| Stock levels | The inventory system | To the store | Instantly or at short intervals |
| Orders | The store | To accounting | On order confirmation or shipping, depending on your policy |
| Customers | The store, for online customers | To accounting, with duplicates prevented | With the first order |
| Payments and settlements | The payment gateway | To accounting | Daily, with the settlement report |
| Returns and refunds | The store | To accounting as a credit note | When the refund is approved |
| Tax invoices | Accounting | To the e-invoicing platform | At issue |
The last row matters in Egypt in particular. As things stand (November 2026), if your company is required to issue e-invoices, the store integration must end in a valid invoice on the platform, as we explained in our guide to e-invoicing in Egypt and connecting it to your system. For choosing and reconciling a payment gateway, see our guide to integrating Egyptian payment gateways.
What happens when the integration fails?
Every integration will fail one day: a dropped connection, an update to the store platform, or a new item with no code in accounting. The difference between a good integration and a bad one is what happens after the failure:
- Retries with limits. The system retries automatically a few times, then stops and raises an alert instead of repeating forever.
- Duplicate prevention. Every order carries a unique ID, so it is never recorded in accounting twice, even if its notification arrives twice.
- A queue. If the accounting software goes down, orders wait in a queue until it is back, and nothing is lost.
- A log of every operation. What was sent, when, and what came back, so the cause of any error can be found in minutes.
- A daily reconciliation report. The number and total value of orders in the store against accounting, with a list of differences.
- A manual review screen. Cases the rules do not cover go to a named person who reviews them and decides.
None of this is a technical luxury. It is what lets your accountant trust the numbers that arrive without checking every order by hand, and what lets you add a new sales channel later without starting from scratch.
When do you not need an automated integration at all?
An automated integration is not always the right first step. Organised manual entry or a weekly file import may be enough in these cases:
- Order volume is low. If one employee can move the orders quickly with almost no errors, the cost of building and maintaining an integration may exceed what it saves.
- One of the systems is about to change. Do not build an integration for software you plan to replace within months. Plan the integration with the new system instead.
- The accounting software includes a store, or the other way round. Some platforms combine both, and moving to one may be simpler than connecting two separate systems.
- The data itself is disorganised. If codes are duplicated and items are a mess, organise them first, because an integration will only move the mess faster.
What should you check before switching the integration on?
- Map the fields between the two systems in writing. Every store field, its match in accounting, and what happens when it is missing.
- Unify item codes. Every item in the store must match exactly one item in accounting.
- Test the hard cases, not only the normal ones. A discount coupon, shipping fees, cash on delivery, a partial refund and an order cancelled after payment.
- Decide what happens to old data. Are past orders migrated, or does the integration start from a set date?
- Name who watches the alerts. An integration with nobody reading its alerts will fail in silence.
- Run both ways in parallel for a short period. Compare the integration's results with manual entry before you stop it.
- Document everything. The rules, the fields and how to rerun failed operations, so the integration does not depend on one person.
- Review performance after launch. Check the reconciliation report and the number of failed operations weekly in the first month, then monthly once the numbers settle.
How does HBS approach API integration projects?
At HBS we start with a discovery phase in which we map your systems, your data and the flows that matter most. We then write the sync rules and design the integration architecture before writing any code, build and test on a preview environment, and document what we deliver. Security is part of the design: API-key or OAuth 2.0 authentication, HTTPS encryption, input validation, rate limiting and an audit log for every integration.
A clear example from our work: in the Ali Bambozya academy dashboard we connected Kashier payments and Bunny Stream video to the analytics layer, so every enrolment is linked to the payment behind it, and the failed-payments table shows each student's latest attempt and automatically excludes anyone who later paid for the same course. In the systems of Labib Demian Youssef & Co., website inquiries flow straight into the sales pipeline in the LDY CMS dashboard as tracked opportunities, and the website content management system shares users, roles and permissions with the CRM, so each employee has one identity across both systems. Rules like these are what make the numbers and records in two different systems tell the same story.
Legal details and fees in this article reflect the situation in November 2026 and may change; check the official source before you decide.
If your team still moves orders from the store to accounting by hand, or your balances do not match at month end, tell us which systems you use. Our team will sit down with you in a free discovery session and write the right integration rules with you, and you can learn more about HBS API and systems integration services.





