This guide is for owners, finance leads and e-commerce managers whose bank deposits stopped matching store sales, and for teams choosing between a ready connector and a custom sync. It sits under the enterprise systems integration guide and describes work Netbase delivers as systems and API integration.
In this guide
- Why don't store sales match the bank deposits?
- Which entry does each store event create?
- Per order, daily summary or per payout?
- How to roll out the sync step by step
- Where AI fits
- What delivery record exists, and what does not?
- Which alternative fits: connector, middleware or custom sync?
- When should you not build a custom sync?
- What are the limits of this guide?
- Frequently asked questions
- Next step
Why don't store sales match the bank deposits?
Store sales and bank deposits never match line by line because a payment provider does not pay out order by order. It collects many captured payments, subtracts its fees, refunds and disputes, and pays the net amount as one batch on its own schedule. A ledger that books one deposit per order will therefore always disagree with the bank.
Stripe's payout reconciliation report shows this directly: each automatic payout is broken down into the charges, refunds, fees and other balance movements it contains. PayPal publishes a daily settlement report with the same purpose. The accounting design has to accept that batching instead of fighting it.
Three gaps cause most of the trouble:
- Timing. An order on the 31st can be paid out on the 2nd, so sales and deposits fall in different months.
- Netting. The deposit is sales minus fees minus refunds minus disputes; booking it as revenue understates both sales and costs.
- Identity. The store knows the order number, the provider knows its charge id, and the bank knows only a payout reference. Without a cross-reference nobody can trace one to the other.
Which entry does each store event create?
The core of the design is a posting map: every event from the store or the payment provider creates one known accounting entry. The clearing account (often called "payments in transit" or "undeposited funds") holds money the provider owes you until it lands in the bank.
-
Order paid
- Source system
- Store and provider
- Accounting entry
- Debit clearing, credit sales and tax payable, credit shipping income
-
Partial or full refund
- Source system
- Store, linked to the order line
- Accounting entry
- Debit sales returns and tax payable, credit clearing
-
Processor fee
- Source system
- Provider balance transaction
- Accounting entry
- Debit payment fees expense, credit clearing
-
Chargeback and dispute fee
- Source system
- Provider dispute
- Accounting entry
- Debit chargebacks and fees, credit clearing; reverse if the dispute is won
-
Payout to bank
- Source system
- Provider payout, bank line
- Accounting entry
- Debit bank, credit clearing
When the map is right, the clearing account returns to zero after each payout, apart from payments still in transit. A balance that drifts is the single most useful alarm in the whole integration.
Stripe documents that a dispute immediately reverses the payment and debits the amount plus a dispute fee from the merchant's balance, which is why chargebacks need their own line rather than being treated as refunds. Gift cards, store credit and multi-currency payouts add rows to the same map; they do not change its shape.
Per order, daily summary or per payout?
The second decision is the level of detail the accounting system receives. More detail is not automatically better: thousands of order invoices can slow the books without helping anyone close the month.
| Level of detail | Strength | Risk | Choose it when |
|---|---|---|---|
| One entry per order and refund | Full audit trail per customer, invoices visible in accounting | High volume, more sync failures, slower month-end | Low volume, B2B orders that need invoices, or tax rules that require per-invoice records |
| Daily summary by account and tax code | Light ledger, simple review | The order-level trail stays in the store and provider reports | Higher-volume consumer stores where the store remains the record of each order |
| One summary per payout | Each entry already matches a bank deposit, so reconciliation is almost automatic | Sales recognised on payout timing unless accrued separately | Most stores paid by one or two providers, where matching the bank is the main pain |
Many stores combine them: B2B orders sync one by one, consumer orders sync as payout summaries. Whatever the mix, the decision rule is the same. Pick the level your accountant needs for tax and audit, then let the clearing account absorb timing.
How to roll out the sync step by step
-
Agree the chart of accounts
Separate sales, shipping income, sales returns, payment fees, chargebacks, gift card liability and each tax code. Your accountant signs this off before any code is written.
-
Write the posting map
One row per event, as in the table above, including partial refunds, refunds across a month end, discounted shipping and currency conversion.
-
Decide which system owns each record
The store owns orders and refunds, the provider owns charges, fees and payouts, and the accounting system owns invoices, credit notes and the ledger.
-
Build payouts before orders
Import provider payouts and their itemised transactions first, so the clearing account can be tested against real bank lines.
-
Make every write idempotent
Store the order, refund or payout id on each created entry and check it before writing again. Shopify's webhook guidance warns that events can arrive more than once or out of order, and recommends reconciliation jobs as a backstop.
-
Run a month in parallel
Keep the old bookkeeping process alongside the sync for one closing cycle and compare totals by account.
-
Reconcile daily, close monthly
A daily job compares order counts, gross sales, refunds, fees and payouts between store, provider and ledger, and reports differences instead of silently fixing them.
Where AI fits
Netbase works with the major commercial and open-source AI tools and models, chosen per project. The postings themselves stay rule-based; AI helps around them. Each item below states how mature it is at Netbase.
What the engineers still check: the posting map, every tax code and every rule that writes to the ledger. AI may suggest a match; a person or a deterministic rule books it.
- In delivered work
Product recommendation engine
Built for 4over4's online printing store from browsing and purchase history; it is not an accounting tool, but it is the named delivered-AI proof this guide can cite.
- In delivered work
Document AI platform
Document AI delivered for a client that is not named; the same extract-then-review pattern reads supplier invoices and marketplace statements that arrive as PDFs rather than through an API.
- Available capability
AI on reconciliation exceptions
Suggesting the likely cause of an unmatched payout line, or drafting the note to the accountant, is a pattern Netbase is growing capability in; it is not yet tied to a published reconciliation case.
What delivery record exists, and what does not?
- ERP and accounting modules. Netbase's ERP work includes Odoo consultancy and customization, cloud ERP development and modules for finance and accounting, sales orders and inventory, plus e-commerce integration with ERP through API sync of catalogs, inventory, orders and customer data.
- Payments in delivered platforms. Netbase built an online classifieds platform with Stripe and PayPal payments for a founder who is not named, and RB Marketplace with vendor earnings, commission deductions and payout requests.
- Commerce stack. Netbase has delivered on WooCommerce, Magento 2, Laravel and headless commerce, and names Shopify and Odoo among the wider stack.
What does not exist. No published Netbase record names a QuickBooks, Xero or other accounting-package integration, and no reconciliation time saved, error rate or volume figure is claimed. The posting map and steps above are a delivery view from ERP, payment and integration work, checked against the cited provider documentation, not a measured outcome from one project.
Which alternative fits: connector, middleware or custom sync?
| Route | Strength | Choose it when |
|---|---|---|
| Native connector of the store or accounting package | Quick to switch on, maintained by the vendor | One store, one provider, standard tax, and the connector's posting model matches your accountant's |
| Accounting middleware that summarises payouts | Payout-level entries and fee handling built in | Several channels or providers, consumer volume, and no unusual business rules |
| Custom sync through an integration layer | Your own posting map, B2B invoices, ERP and multi-entity rules in one place | Several stores or entities, an ERP in the loop, or rules no connector supports |
Selection criteria: how many stores, providers and currencies you run; whether an ERP or only accounting software sits behind the store; whether B2B customers need invoices; and who will own the mapping when tax rules change. Most Netbase projects run on fixed-price contracts, and Netbase can also extend an existing connector rather than replace it.
When should you not build a custom sync?
Do not build one when a single store with a single provider is well served by a native connector or a payout-summary tool and the books already reconcile. Do not build one before the chart of accounts and posting map are agreed, because code written against an unsettled map is rewritten at the first close. And do not move refunds into the accounting system as their starting point unless finance truly issues them; refunds usually start in the store, the order management system or the ERP.
Multi-vendor stores are a different problem: seller balances, commissions and seller payouts belong in a marketplace ledger, covered in marketplace payouts, commissions and settlement. Recurring revenue has its own design in building subscription billing and entitlement systems, and the wider store, ERP and CRM picture is in ERP, CRM and e-commerce integration architecture.
What are the limits of this guide?
- It describes integration design, not accounting or tax advice; revenue recognition, sales tax and VAT treatment are decided with your accountant.
- Provider behaviour cited here comes from Stripe, PayPal and Shopify documentation as accessed on 2026-12-01; other providers name and batch things differently.
- It does not compare accounting packages or connector vendors by feature or score.
Plan the next step with a Netbase consultant
Frequently asked questions
Not always. Per-order invoices give a full audit trail but add volume and sync failures. Many consumer stores post daily or payout-level summaries and keep the order-level record in the store, while B2B orders that need invoices sync one by one.
A payment provider pays out batches of captured payments net of its fees, refunds and disputes, on its own schedule. Book sales and payouts separately and match them through a clearing account, and the difference becomes explainable line by line.
Link the refund to the original order line, post a credit note or refund entry for that line only, and reduce the clearing account by the refunded amount. A partial refund should never cancel the whole order in the ledger.
AI can suggest likely matches and explain exceptions, but the postings should stay rule-based and reviewed. Netbase uses AI around the rules, not instead of them, and keeps a person responsible for what reaches the ledger.
Next step
Send us your store, payment providers and current chart of accounts, and we will book a solution review to draft the posting map and the sync route that fits. You can also see the integration hub solution or the ERP and CRM development service.
Related services and solutions
API integration services that keep your systems in agreement and ready for AI Netbase provides API integration services for commerce and operations teams that need e-commerce, ERP, CRM, shipping and payment systems to agree, so data moves once and AI services can act on it, with retries, monitoring and reconciliation on every API and webhook. According to its published client record, Netbase has worked with 500+ businesses across 80 countries since 2012.
Learn More
AI-enabled ERP and CRM development connected to your commerce Netbase provides custom ERP and CRM development for growing companies to run sales, operations and finance in systems shaped to how they work, connected to their ecommerce channels and using AI for document capture, forecasting and sales follow-up. We build on proven modules, including Smart ERP Light and Cloodo Workspace, and work with Odoo or Salesforce where one fits.
Learn More
Enterprise integration hub ready for AI agents: one monitored layer for commerce, ERP and CRM data An enterprise integration hub is a central layer that moves orders, customers, stock and invoices between your commerce, ERP and CRM systems, with monitoring, retries and replay in one place, and scoped APIs that AI agents can call safely. Netbase builds it as a custom layer on the stack you already run, starting from the flows that break most often.
Learn More
Work with Netbase remotely
Every Netbase engagement is delivered remotely, so clients in any country and any industry can work with us; Netbase has worked with clients in 80 countries. Contracts and invoices are issued by Netbase JSC, and payment is made by bank transfer to Netbase JSC's company account or PayPal Business. Talk to the CEO, Huy Nguyen (David), on WhatsApp or by email.
Discuss a project
Netbase JSC helps organizations design, build, modernize, and operate digital products and AI-enabled business systems.project@netbasejsc.com
+84 937 869 689
91 Nguyen Chi Thanh, Dong Da, Hanoi, Vietnam
Get in touch
Tell us what you want to build, modernize, or operate.