Authoritative Tutorial on the Xiaoman OKKICRM Product Query Interface Field Handbook
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 1count: records per page, default 20start_time/end_time: incremental query by update time, formats like2019-06-01or2019-06-01 19:00:00removed: default 0; set to 1 to query deleted productsproduct_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 Name | Type | Meaning | Practical Notes |
|---|---|---|---|
| product_id | string | Product system primary key, pointed to by id in metadata | Unique identifier within Xiaoman; used for cross-system primary key mapping |
| product_no | string | Product business code, pointed to by number in metadata | Most commonly used for mapping with Kingdee material codes |
| name | string | Full product name | Source for display and mapping of product fields in business documents |
| 3444697350604 (category ID) | string | System primary key of the product's group/category | Source 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_name | string | Display name of the product group | Used for matching against Kingdee material category (group_number/group_name) |
| image | string | Product image URL | Used for CRM display and Kingdee material image sync |
| cost_with_tax | object | Cost price including tax | Declared as object; actual return may be a number or a currency/precision object; conversion needed per target system |
| fob | object | Free On Board price | Common in export trade; object type requires parsing |
| minimum_order_quantity | object | Minimum order quantity | Used 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:
-
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.
-
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_idat the mapping layer before integration. -
Object-type fields need validation:
cost_with_tax,fob,minimum_order_quantityare declared as objects but may actually be numbers, strings, or currency-bearing object structures. Always sample multiple records on first integration to verify. -
Prefer time-window for incremental strategy:
start_time/end_timeis more reliable than pure pagination. Recordlast_sync_timeper run to avoid missing or duplicate records. -
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. -
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
-
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 toproduct_category_idat the mapping layer. -
Treating object fields directly as numbers: Performing arithmetic on
cost_with_taxas 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. -
Incremental data loss: Using only
start_indexpagination 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. -
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.
-
Detail interface QPS exceeded: After pulling the list, high-frequency calls to
/v1/product/infocan 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.