Qeasy Cloud
Get Started

Querying Transfer Orders in Practice: Inventory Transfer Sync from YonBIP to Wangdiantong

· Integration Solutions· 9 views· 4 min read
WDT用友BIP调拨单同步轻易云供应链集成Incremental Sync

What This Strategy Solves

When transfer documents flow between multiple warehouses, the upstream ERP and the downstream retail system often work in silos: a transfer request is issued on one side, while the other side waits for manual entry. The "Querying Transfer Orders" strategy extracts transfer documents from the upstream YonBIP incrementally by time window, and lands them on the Wangdiantong side through the Qeasy data integration platform, keeping both sides in sync and avoiding long-term discrepancies between store stock-outs and upstream accounting.

Data Flow and Field Mapping

The overall flow is YonBIP (source) → Qeasy Integration Platform (middleware) → Wangdiantong (target). The source side is a paginated query API, the target side is a document-write API, and the middleware only performs field remapping and deduplication without persisting business data.

DimensionSource (YonBIP query API)Middleware HandlingTarget (Wangdiantong write API)
Document numbercode (e.g., DBDD0003)Passed through as idempotency keyprovider_no and other business numbers
PaginationpageSize=100, pageIndex starts at 1Loop pagination until an empty page—
Time windowopen_vouchdate_begin / open_vouchdate_endDynamically composed by scheduler based on last successful time—
Document dateopen_vouchdateNormalized to yyyy-MM-dd HH:mm:ssWritten into business date field
Warehouse/Orginwarehouse and other warehouse codesTranslated via centralized code mapping tableLanded as Wangdiantong-side warehouse code
Line itemsNested array (material lines)Header and body staged: header first, then bulk push of bodyWritten into line item fields

In practice, code mapping must be managed centrally, never scattered across scripts; header and body are best split into two steps, as stuffing everything into one large array across public-cloud links tends to drop packets.

How to Configure on Qeasy

In the Qeasy data integration platform's strategy canvas, this strategy is a "query + write" combination. Key configuration points:

  1. Data source registration: Register the source as YonBIP, fill in its platform identifier and authorization (tenant and credentials are managed by the user side, the platform does not store them); register Wangdiantong as the target.
  2. Source action: Choose QUERY type, point the API to the paginated query interface, method=POST, idCheck=true, take the document number as the number field, and the row-unique key as the id field.
  3. Target action: Choose EXECUTE type, point the API to the supplier/document write interface, method=POST, and use placeholders like {{code}} and {{name}} in the request body to reference source fields.
  4. Field mapping: Source field on the left, target field on the right. Constant fields (such as minimum purchase quantity, arrival cycle, etc.) are hard-coded on the target side, while business fields go through mapping.
  5. Deduplication and idempotency: Use the document number as the idempotency key, the platform automatically skips records that have already been successfully landed.
  6. Response parsing: Enable autoFillResponse to automatically merge paginated results, avoiding hand-written loops in scripts.

Implementation Steps

We typically break a single strategy into three phases:

Phase 1: Determine the incremental starting point Do not do a full historical backfill on the first run. First, set a business-approved starting point using open_vouchdate_begin (e.g., the last 7 days), confirm the document numbers match on both sides and no fields are missing, then consider extending the window further back.

Phase 2: Full trigger and reconciliation The full trigger is usually executed once during off-peak hours (early morning). After landing, sample 5–10 transfer orders and compare fields one by one between source and target. Differences should be corrected in the mapping table, never patched directly in production data.

Phase 3: Schedule frequency and monitoring The source strategy's schedule is registered as */10 * * * * in the metadata, i.e., every 10 minutes. We recommend running incremental and full loads on dual tracks: the full load job should have its own independent time window, never concurrent with the incremental job, to avoid pagination cursors interfering with each other. Monitor three indicators — API success rate, average latency, and idempotency hit rate — and alert on any anomaly.

Pitfall Retrospective

  1. Pagination cursor not persisted: pageIndex is hard-coded to 1, so data after the second page is never fetched. The safe approach is to write the code or max date to storage after each page flip so the job can resume from the breakpoint after an interruption.
  2. Time window condition left empty: To save effort, some teams omit open_vouchdate_begin/end, causing the first run to pull the entire history and instantly flood the target. Incremental tasks must have a time window — this is a hard rule.
  3. Code mapping scattered everywhere: Warehouse, organization, and customer code translations are hard-coded in scripts, so every change requires a redeployment. On Qeasy, use a centralized mapping table (the platform's built-in lookup transformer) — one change on the business side takes effect across the chain.
  4. Header and body stuffed together: Putting the body array into the header request body over a long cross-cloud link causes failures that force a full re-run. Staged pushing is the lesson learned.
  5. Wrong field used as idempotency key: Some teams use the line item id as the idempotency key, causing the same header to be repeatedly created. Always use the document-level number (e.g., code) as the idempotency key.

Applicable and Non-applicable Scenarios

Applicable: Multi-organization, multi-warehouse scenarios where upstream ERP transfer/reallocation documents need to be synchronized to downstream retail or WMS systems in near real-time, with stable document numbering.

Non-applicable: Scenarios where the transfer logic itself has custom workflows on both ends and bidirectional writes are required with mutual primary keys; as well as systems where the source does not support time-window queries and second-level real-time performance is required.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-wdt-bip-6322-ys-v-c86ad504

Comments