WanliNiu Sales Outbound Order to Chanjet T+ Sales Invoice Sync: A Single-Strategy Tutorial
What This Strategy Solves
A retail enterprise operating across multiple channels generates online sales outbound orders from its front-end e-commerce system, while the back-end financial system needs sales invoices for revenue recognition and invoicing. It looks like a simple document transfer, but the two document types differ in header, lines, tax rate, warehouse, and customer master data. Once the definitions drift, the two ledgers stop matching within three months. This strategy pushes online sales outbound orders into the target financial system under unified rules, serving as the single source of truth for downstream accounting.
Data Flow and Field Mapping
The data flow is: WanliNiu (source) → Qeasy data integration platform (middleware) → Chanjet T+ (target).
The source document is the online sales outbound order, and the target lands as an online sales invoice. The main bodies are consistent; the differences lie mainly in field naming and additional master data.
| Dimension | WanliNiu (Source) | Middleware Mapping | Chanjet T+ (Target) |
|---|---|---|---|
| Document type | Online sales outbound order | Tagged as "online" channel | Sales invoice (online) |
| Document number | Outbound order number | Passed through | Sales invoice number |
| Document date | Outbound date | Passed through | Document date |
| Customer master | Member / platform buyer | Code mapping lookup | Customer code |
| Item master | SKU code | Code mapping lookup | Inventory code |
| Warehouse | Outbound warehouse | Code mapping lookup | Warehouse code |
| Quantity, unit price, amount | Line fields | Passed through | Quantity, unit price, amount |
| Tax rate | Platform settlement tax rate | Default fallback | Tax rate |
Key point: Code mapping for item, customer, and warehouse masters must be completed in advance; otherwise documents will fail to land because the target cannot resolve the referenced master data.
How to Configure on Qeasy
We use the Qeasy data integration platform to handle this sync. A typical configuration has four parts.
1. Data source registration Register the source via WanliNiu's open API and register the target via Chanjet T+'s open platform credentials. The middleware connectors are pre-built in Qeasy; you only need to fill in the tenant, key, and data source identifier in the console.
2. Centralized code mapping management Qeasy provides a dedicated master mapping table where we centrally maintain source SKU codes, buyer IDs, and warehouse codes against target inventory codes, customer codes, and warehouse codes. All subsequent document strategies share this table, so one change propagates everywhere—a common pattern among Qeasy customers.
3. Phased header and line processing Step one pushes the document header first, verifying document number, customer, date, and warehouse. Step two pushes the document lines, writing quantity, unit price, amount, and tax rate row by row. This makes it easy to distinguish "header passed, lines failed" from "lines passed, header failed" during troubleshooting.
4. Write strategy Use an upsert logic for sales invoices based on the document number as the unique key. Failure retries are handled by Qeasy's run center, where common rate limits and timeouts are visualized.
Implementation Steps
Online sales outbound orders have high volume and fast pace, so we adopt a dual-track scheduling of incremental and full sync—another common practice among Qeasy customers.
- T0 (Initialization): Run a one-time full historical backfill to lock the start timestamp. Use Qeasy's full sync task to catch up all historical documents before the start point in one shot.
- T1 (Cold start): Switch to incremental mode with the timestamp set to the end of the full sync. Recommended schedule: every 10-15 minutes, avoiding peak settlement windows of the e-commerce platform.
- T2 (Steady state): After observing one stable week, adjust to every 5-10 minutes. During order surges, switch to manual trigger for catch-up.
- T3 (Exception fallback): Configure a daily early-morning full reconciliation task that only verifies document numbers and total amounts, without writing back, producing only a discrepancy report.
Pitfall Recap
-
Code mapping not centrally managed. A typical mistake is hard-coding mapping logic into scripts. Three months later the two ledgers stop matching, and after a week of investigation you discover the source SKU code was given an alias. The safe approach is to maintain it centrally via Qeasy's mapping table.
-
No tax rate fallback. The source settlement document occasionally has an empty tax rate field. Without a default value, the target rejects the document. The safe approach is to default to 13% and flag abnormal documents for manual entry.
-
Document date and number misalignment. Outbound date and document number are not in the same transaction. If the number is fetched first and then the date is written, retries in between can cause the number to be used while the date drifts. The safe approach is to keep number fetching and date writing within the same atomic operation.
-
Retry storm overwhelming the target API. During online promotions, failure rates rise, and automatic retries multiply the pressure on the target API. The safe approach is to configure an exponential backoff strategy in Qeasy's run center, lengthening the interval between failed retries.
-
Ignoring cancellation and re-creation scenarios. E-commerce outbound orders are frequently cancelled and re-created due to stockouts. Without an upsert on document number, this results in two sales invoices. The safe approach is to always use the document number as the unique key.
When This Applies and When It Doesn't
Applies: High-volume online retail outbound orders with strict reconciliation timeliness, where the sales invoice serves as the single source of truth for accounting.
Doesn't apply: Offline wholesale outbound orders, scenarios requiring batch-level cost accounting, or scenarios where the target requires a custom approval workflow that writes back state—these need a separate strategy.