Practical Guide: Syncing Sales Delivery Orders from eCommerce ERP to Finance ERP
What This Strategy Solves
In a supply chain integration scenario for a retail enterprise, the front-end eCommerce ERP handles store and online order fulfillment, while the back-end finance ERP handles cost accounting and receivables confirmation. Both sides need to see the "sales delivery order," but their definitions don't naturally match: the eCommerce side organizes documents by store, batch, and platform order number, while the finance side organizes by customer, inventory item, and warehouse. If both sides enter data independently, quantities and amounts will inevitably mismatch within three months, and the monthly financial close will grind to a halt.
This strategy does only one thing: it syncs audited sales delivery orders from the front end to the back-end finance ERP using an "association" logic, generating corresponding delivery orders there as the single source of truth for downstream accounting.
Data Flow and Field Mapping
The data flow is unidirectional: eCommerce ERP (source) → Qeasy data integration platform (middleware, responsible for transformation, mapping, association, and enrichment) → Finance ERP (target).
The table below shows the key field mapping we settled on in a real project, covering both header and line-level fields:
| Semantics | Source (eCommerce ERP) | Middleware Handling | Target (Finance ERP) |
|---|---|---|---|
| Document number | Platform order number | Pass through | Document number (association key) |
| Document status | Audited | Only sync "Audited" | Document status |
| Store/platform code | Store code | Centralized mapping table | Customer code |
| Warehouse code | Warehouse code | Centralized mapping table | Warehouse code |
| Product code | SKU code | Centralized mapping table | Inventory code |
| Quantity | Delivery quantity | Pass through | Actual delivered quantity |
| Tax-inclusive price/amount | Tax-inclusive price | Recalculated per target convention | Unit price, amount |
| Batch/serial number | Batch number | Pass through | Batch/serial number |
| Remarks/logistics | Remarks, carrier, tracking no. | Concatenated | Remarks |
The word "association" is the lifeline of this strategy: the two sides establish a one-to-one relationship through the platform order number, which prevents duplicate generation and enables reverse traceability during reconciliation.
How to Configure on Qeasy
We use the Qeasy data integration platform to carry this pipeline. A typical configuration has four parts.
1. Source data source: Configure the eCommerce ERP API credentials and the fetch strategy, subscribing only to "Audited" sales delivery orders. The incremental condition uses a dual filter of "last modified time + document status" to avoid pulling in drafts and voided documents.
2. Centralized code mapping: Maintain three categories of mappings—store→customer, SKU→inventory, warehouse→warehouse—in Qeasy's mapping tables rather than embedding them in each strategy. This is one of the most common patterns among Qeasy customers: centralized mapping means adding a new store or SKU later doesn't require changing the strategy, only the mapping.
3. Conversion scripts with header and body phased separately: Separate header and line transformations. Headers are converted first; if header conversion fails, the whole document is dropped. Lines are converted row by row; if a line fails, only that row is dropped and logged. This way, a missing SKU mapping won't block an entire document.
4. Target system writeback: Call the finance ERP's save interface to generate the sales delivery order, and use the "platform order number" as the association key for writeback to ensure idempotency—reruns will not generate duplicates.
Implementation Steps
We usually proceed in three phases: "incremental starting point → full-volume backfill → scheduling frequency."
Phase 1: Incremental starting point. Freeze a point in time, such as 00:00 on the go-live day, and use all newly generated, audited sales delivery orders after that point as the incremental starting point. The source-side filter is fixed as modify_time >= start AND status = Audited.
Phase 2: Full-volume trigger. Before go-live, historical audited documents usually need to be backfilled in one pass. The safe approach is to run it in batches, slicing by month based on document date, and reconcile the totals and amounts after each batch before running the next. Only after the full-volume run completes should scheduling switch to incremental mode.
Phase 3: Scheduling frequency. Incremental scheduling is typically set to every 5–10 minutes—close enough to real time while leaving a window for mapping changes. If the business is sensitive to latency, it can be compressed to 1 minute, but you must monitor the source API's rate limits.
Pitfall Retrospective
Pitfall 1: Using "creation time" instead of "last modified time" as the incremental condition. In eCommerce ERPs, documents are often unaudited and then modified; the creation time stays the same, but the last modified time changes. The result: documents with adjusted prices never make it to the back end. This is a common trap. The safe approach is the dual filter "last modified time + document status."
Pitfall 2: Converting headers and lines together. A typical mistake: a line-level failure causes the entire document to be dropped, and operations has to call IT for a rerun. Phased handling—header failure drops the whole document, line failure drops only that line—dramatically reduces ticket volume.
Pitfall 3: Mapping changes not going through a process. New store launches, SKU replacements, and warehouse splits are routine. If the mapping table allows business users to edit it directly, you easily end up with "the source code changed but the target was forgotten." The safe approach is to bring mapping changes under change management, with version history and rollback supported on the Qeasy side.
Pitfall 4: Weak idempotency key design. Relying only on the document number as the idempotency key leads to duplicate writes when the source allows document duplication. The combination key "platform order number + document type" should be used, with duplicates rejected at the source.
Pitfall 5: Ignoring voucher writeback in the finance ERP. Once the finance ERP generates a delivery order, it pushes down a receivables document. If the sync strategy fails but the receivables have already been generated, the two sides will never reconcile. A "voucher pushed" flag should be recorded on the target side, and failed reruns should reverse first before rewriting.
Applicable and Non-applicable Scenarios
Applicable: the front end is an eCommerce or retail ERP, the back end is a finance or supply chain ERP, both sides have a sales delivery concept, and document-level reconciliation and accounting are required.
Not applicable: the back end is only a BI or data warehouse (no transaction-level association needed); the front end is manual Excel entry from small stores (poor ROI); or the document definitions on both sides are completely inconsistent and master data needs to be rebuilt—clean up master data first, then talk about sync.