Qeasy Cloud
Get Started

Authoritative Tutorial on Supplier Inventory Outbound Query Interface for VansysHealth

· 系统管理员· Engineering Best Practices· 10 views· 4 min read
万序健康Kingdee Cloud供应商主数据医药供应链QUERY_ONLY轻易云

What Problem Does This Interface Solve

The VansysHealth sccp.sup.insout.download is the Supply Chain Control Platform (SCCP) supplier inventory outbound download interface. It pulls outbound details of drugs and consumables from VansysHealth. In pharmaceutical supply chain integration scenarios, it handles the one-way aggregation of "supplier → hospital" outbound data, commonly used for reconciliation, reporting, near-expiry alerts, batch tracing, and downstream mapping to Kingdee Cosmic material master data. It is a zero-write-risk "safe data source" under QUERY mode.

Interface Capability Overview

  • Authentication: In private deployment, dual-factor validation based on tenant key and IP whitelist; API access must be applied in advance in the VansysHealth console.
  • Request Structure: POST format, with pagination parameters (page number, page size) and time window (outbound date range) in the body; supports incremental by stkinsoutid or stkinsoutno.
  • Response Structure: JSON array, each record contains 26 core fields including hoscode, goodscode, qty, money, lotno, etc., as detailed in the table below.
  • Pagination/Incremental Mode: Standard pagination (pageNum/pageSize) combined with insoutdate time window incremental; polling every 10 minutes (*/10 * * * *), with metadata id configured as stkinsoutid and number configured as stkinsoutno.
  • Write Constraint: This strategy is QUERY_ONLY, strictly prohibited from writing to Kingdee Cosmic, only serving as a data source reference for subsequent integration solutions.

Typical Field Mappings

Field NameTypeMeaningPractical Notes
stkinsoutidstringOutbound document primary keyConfigure as id in metadata for downstream deduplication
stkinsoutnostringOutbound document business numberConfigure as number in metadata, business-unique
hoscodestringHospital codeOrganizational dimension in multi-zone scenarios
hosdeptcodestringDepartment codeAlign with organization master data
supcodestringSupplier codeUsed to map Kingdee FSupplierId
goodscodestringHospital material codeUsed to map Kingdee material code
goodsnamestringHospital material nameNote Chinese/English/aliases
specstringSpecificationAlign with material master data
unitstringUnitMinimum packaging unit
manufactorstringManufacturerDetermines qualification certificate association
lotnostringBatch numberKey for GSP traceability
mfdatestringManufacture dateNote timezone and date format
expirestringExpiry dateCore for near-expiry alerts
snnostringSerial numberRequired for high-value consumables
qtystringQuantityString, needs conversion to numeric
sellpricestringSales unit priceConfirm tax-included/excluded with upstream
moneystringAmountVerify with qty * sellprice
insoutdatestringOutbound dateTime anchor for incremental pull
ordercdstringOrder codeLinked to purchase order
orderdcdstringOrder detail codeLine-level traceability
ulappdnostringRequisition numberIn-hospital process traceability
insouttypestringOutbound typeDistinguish purchase/requisition/transfer

How to Configure on Qeasy

On the Qeasy data integration platform, this interface is usually encapsulated with an "HTTP Adapter + Field Mapper" combination: the adapter side fills in the VansysHealth API address, tenant key, and whitelist IP; the field mapper automatically identifies stkinsoutid/stkinsoutno as the primary key and business number, landing them in Qeasy's metadata table; the incremental strategy uses "outbound date + primary key deduplication" double insurance, and the platform's built-in pagination cycler automatically turns pages without manual scripting. The target side (this strategy) is set to "null operation" to ensure zero write.

Cross-Solution Practical Points

  1. Metadata Dual Anchors: Always configure stkinsoutid as id and stkinsoutno as number; no adjustments needed when reusing the same interface in subsequent solutions.
  2. Time Window + Primary Key Dual Incremental: Using only time window will miss backfill documents; using only primary key will miss historical data. The safe approach is "time window pull + primary key deduplication" combination.
  3. Supplier and Material Master Data First: Before pulling outbound details, be sure to establish mapping tables in Qeasy between supcode and Kingdee FSupplierId, and between goodscode and material code.
  4. Multi-Zone Parallel Strategies: Each zone (e.g., Nanqi, Sanshui) opens a separate strategy, distinguished by Sequence numbers (A/B/C), non-interfering.
  5. Batch/Expiry Fields Must Penetrate: In the pharmaceutical industry, lotno, mfdate, expire must penetrate to downstream reports; otherwise compliance audits will fail.
  6. Clean String-Type Numeric Values: qty, sellprice, money are all strings; Qeasy's field mapper needs to attach a "type converter" to convert to Decimal, avoiding downstream rounding errors.

Lessons Learned

  • Pitfall 1: Mistakenly using goodscode (hospital code) as goodscd (internal serial number), causing material mapping misalignment. The safe approach is to only use goodscode to align with Kingdee materials.
  • Pitfall 2: Incremental pull only by insoutdate, missing cross-day backfill documents. Fixed by switching to "time window + stkinsoutid deduplication" double insurance.
  • Pitfall 3: Forgetting to update IP whitelist in private environment, getting 403 after server migration. Be sure to sync whitelist updates every time the server migrates.
  • Pitfall 4: Inconsistent expire field format (some yyyy-MM-dd, some with timestamps). Attach a date standardization converter in Qeasy to unify as yyyy-MM-dd.
  • Pitfall 5: Accidentally changing the QUERY_ONLY strategy to "write to Kingdee", triggering downstream dirty data. Be sure to check the "prohibit write" hard switch in strategy configuration.

When to Use

This interface is suitable for "one-way aggregation, reconciliation, and reporting of supplier inventory outbound data" scenarios; it is not suitable for business flows that require writing back documents or modifying inventory status. If the downstream needs to trigger inbound or transfer, please use VansysHealth's inbound/transfer write-type interface and open a separate strategy to avoid mixing with QUERY_ONLY and causing data pollution.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/engineering/hb-p2-045-aa23

Comments