Qeasy Cloud
Get Started

Authoritative Tutorial on the Xiaoman OKKICRM Product Query Interface Field Handbook

· 何金辉· Engineering Best Practices· 6 views· 5 min read
小满OKKICRM金蝶云·星空旗舰版金蝶云·星空产品接口字段手册基础资料同步轻易云

What Problem Does This Interface Solve

In real-world CRM-to-ERP master data integration scenarios, we often need to synchronize CRM-side product master data, classifications, prices, and minimum order quantities into the ERP material master. The Xiaoman OKKICRM /v1/product/list interface serves exactly this purpose—it batch-retrieves product master data and category information by product dimension. This interface is query-only (no write to target), typically used for product master data synchronization, product category mapping, product references in sales quotes and orders, and price/MOQ information alignment.

Interface Capability Overview

Authentication: Xiaoman OKKICRM uses AccessKey/Secret signature; authentication info is carried in request headers.

Request Method: HTTP GET, path /v1/product/list.

Request Parameters:

  • start_index: page number, default 1
  • count: records per page, default 20
  • start_time / end_time: incremental query by update time, formats like 2019-06-01 or 2019-06-01 19:00:00
  • removed: default 0; set to 1 to query deleted products
  • product_type: product type filter, 1=no specs, 2=multi-spec, 3=bundle

Response Structure: JSON object; core fields include product_id, product_no, name, category ID, group_name, image, cost_with_tax, fob, minimum_order_quantity, etc.

Pagination/Incremental Mode: Classic pagination + time-window incremental. We suggest using start_time/end_time as primary, start_index as auxiliary—first filter by update time window, then paginate to fetch details, ensuring completeness while avoiding missing records.

Detail Interface: For full product details, call /v1/product/info with product_no as the detail key (info_key).

Typical Field Mapping

Field NameTypeMeaningPractical Notes
product_idstringProduct system primary key, pointed to by id in metadataUnique identifier within Xiaoman; used for cross-system primary key mapping
product_nostringProduct business code, pointed to by number in metadataMost commonly used for mapping with Kingdee material codes
namestringFull product nameSource for display and mapping of product fields in business documents
3444697350604 (category ID)stringSystem primary key of the product's group/categorySource field name is a platform-internal numeric ID; conceptually maps to product_category_id or group_id; the numeric naming is very unfriendly, must be semantically renamed during integration
group_namestringDisplay name of the product groupUsed for matching against Kingdee material category (group_number/group_name)
imagestringProduct image URLUsed for CRM display and Kingdee material image sync
cost_with_taxobjectCost price including taxDeclared as object; actual return may be a number or a currency/precision object; conversion needed per target system
fobobjectFree On Board priceCommon in export trade; object type requires parsing
minimum_order_quantityobjectMinimum order quantityUsed for quantity validation in sales orders/quotes

How to Configure on Qeasy Cloud

On the Qeasy Cloud Data Integration platform, calls to this interface typically use the built-in HTTP adapter wrapper: when configuring the source system connection, fill in the Xiaoman OKKICRM AccessKey/Secret, select HTTP GET and path /v1/product/list, and map request parameters as form/query string.

Qeasy Cloud's field mapper automatically flattens the response JSON into a field tree. For object types like cost_with_tax, fob, minimum_order_quantity, the platform supports direct references via nested field paths (e.g., cost_with_tax.amount) without scripting. In the target-side configuration, you can set Target to a no-op write, making it a pure query strategy whose data lands in Qeasy Cloud's intermediate storage for downstream strategies. Qeasy Cloud's scheduler supports crontab expressions; we recommend continuing with 3 2 * * * (daily at 02:03) to avoid business peak hours.

Cross-Scenario Practical Essentials

From multiple client projects, we distilled these common lessons:

  1. Use product_no as the cross-system primary key: Although product_id is the source system primary key, cross-system integration should prefer product_no (business code) to align with Kingdee material codes for more stable semantics.

  2. Category fields must be renamed: The source system category ID field name is a string of pure digits (like 3444697350604). This naming is extremely unfriendly for metadata management—always semantically rename to product_category_id at the mapping layer before integration.

  3. Object-type fields need validation: cost_with_tax, fob, minimum_order_quantity are declared as objects but may actually be numbers, strings, or currency-bearing object structures. Always sample multiple records on first integration to verify.

  4. Prefer time-window for incremental strategy: start_time/end_time is more reliable than pure pagination. Record last_sync_time per run to avoid missing or duplicate records.

  5. Detail interface on demand: The list interface returns basic fields; complete info like prices and specs requires /v1/product/info. Balance call frequency against QPS limits when integrating.

  6. Clarify product_type filter: Multi-spec (type 2) and bundle (type 3) products have significantly different field structures. For initial sync, we suggest first pulling type=1 to validate the main flow, then handling complex types in batches.

Pitfall Recap

  1. Category ID field name is a numeric string: The category primary key returned by the source system looks like 3444697350604—engineers often mistake it for a data value when it's actually a field name. This is a common pitfall; the safe approach is to uniformly rename it to product_category_id at the mapping layer.

  2. Treating object fields directly as numbers: Performing arithmetic on cost_with_tax as if it were numeric will error out on currency-bearing object structures. The safe approach is to use nested paths or transform functions in Qeasy Cloud's field mapper to extract the numeric value first.

  3. Incremental data loss: Using only start_index pagination without a time window can miss products whose create/modify time crosses the page boundary. The safe approach is to combine time window + pagination, with a ±1 second tolerance on boundary times.

  4. Misuse of the removed field: By default, removed=0 only fetches non-deleted records. If the business needs to archive deleted products for reconciliation, you must explicitly pass removed=1.

  5. Detail interface QPS exceeded: After pulling the list, high-frequency calls to /v1/product/info can trigger source-system rate limiting. The safe approach is to configure QPS throttling (e.g., 10 QPS) in Qeasy Cloud and enable batch prefetch queues.

When to Use

This interface applies to CRM product master data synchronization into ERP material master, CRM-to-ERP product category matching, product/material references in sales quotes and orders, and price/MOQ information alignment. It is not suitable for real-time transactional data writes or modifying CRM product information. If the goal is to write into Kingdee's material master, a downstream write strategy is required—this interface only handles the query responsibility.

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

Comments