Kingdee Cloud Xingchen V2 Customer Query API: A Field Manual & Practical Tutorial on Qeasy Cloud
What This API Solves
In retail and supply-chain integration, customer master data is the foundation for sales orders, outbound shipments, and receivables. The /jdy/v2/bd/customer endpoint retrieves customer records from Kingdee Cloud Xingchen ERP by modification time range. Across multiple projects we treat it as the upstream source of truth for syncing WDT (Wangdiantong) members and mapping customers in downstream documents.
Interface Capabilities Overview
- Auth: Kingdee Cloud Xingchen V2 OpenAPI, Access Token + business-domain scoped headers.
- Method & Path: GET
/jdy/v2/bd/customer. - Filters:
modify_start_time,modify_end_timein millisecond timestamps for incremental windows. - Pagination:
page(default 1),page_size(default 50). - Detail endpoint:
/jdy/v2/bd/customer_detailfor second-level lookups byid. - Response: list-shaped payload; each record carries
id(PK),number(code),name, and extensible invoicing/banking/address/organization fields. - Strategy type: QUERY_ONLY — no write-back; configure Target as a no-op.
- Incremental mode: incremental pull anchored on
modify_time, scheduled by crontab such as*/35 * * * *.
Typical Field Mapping
| Field | Type | Meaning | Practical Notes |
|---|---|---|---|
| id | string | Customer PK | Unique ID; recommended as cross-system mapping key |
| number | string | Customer code | Business code, often mapped to WDT member_no |
| name | string | Display name | May differ from invoice name |
| modify_time | string | Last modified | Anchor for incremental sync |
| create_time | string | Created time | Useful for audit and initial full-load fallback |
| invoice_name | string | Invoice title | Can differ from name; this is the invoice header |
| taxpayer_no | string | Tax ID | Required for B2B invoicing |
| invoice_type | string | Invoice kind | 0 none / 1 paper special / 2 paper general / 3 e-general / 4 e-special / 5 fully-digital general / 6 fully-digital special |
| rate | string | VAT rate % | e.g. 13, 9, 6 |
| bank / bank_account / account_open_addr | string | Bank info | Mind data compliance for sensitive fields |
| addr | string | Detail address | Must be combined with province/city/district |
| country_/province_/city_/district(id/number/name) | string | 4-level address | Hierarchical; preserve both code and name |
| sale_dept_(id/number/name) | string | Sales dept | Department ownership and isolation |
| saler_(id/number/name) | string | Sales rep | Owner of sales documents |
| c_level_(id/number/name) | string | Price level | Drives pricing strategy |
| group_(id/number/name) | string | Customer category | For tiered operations |
| enable | string | Active flag | 1 active / 0 inactive; map to boolean downstream |
| remark | string | Remark | Free text; may need truncation |
| custom_field | object | Custom fields | Schema depends on config; Qeasy supports nested flattening |
| bomentity | object/array | Contact list | Usually an array of name/phone |
Configuring on Qeasy Cloud
On the Qeasy Data Integration Platform, the typical pattern uses a Kingdee Cloud Xingchen V2 adapter plus a no-op write target:
- Source: select Kingdee Cloud Xingchen V2, enter tenant, AppKey/AppSecret, business domain, complete OAuth to fetch token.
- Request template: GET
/jdy/v2/bd/customer; Qeasy's built-in paginator iteratespageandpage_sizeautomatically. - Incremental strategy: use
modify_start_time/modify_end_timeas the query window, store the cursor in Qeasy's incremental cursor table and roll forward per schedule. - Field mapper: Qeasy's mapper auto-binds
id,number,nameto the target master-data model; for the four-level address quartet, an "address concat" operator composesfull_addressin one step. Forcustom_fieldandbomentitynested objects, the platform supports path-based flattening. - Target: write no-op; Qeasy only caches and broadcasts the query result, no write-back to Kingdee.
- Schedule: crontab
*/35 * * * *, matching upstream modification frequency.
Cross-Scenario Best Practices
- Use
modify_timeas the sole incremental anchor. We have seen teams usecreate_timeand miss records that were edited after creation. - Keep
idandnumberas dual keys.idfor cross-system PK mapping,numberfor business code matching — never mix them. - Always assemble the address. Downstream systems (e.g. WDT shipping address) usually need a single full address; ship province/city/district codes and names together.
- Model invoicing independently.
invoice_name,taxpayer_no,invoice_type,rateare frequently consumed by invoicing flows — split them into a dedicated sub-model in Qeasy. - Treat
bomentityas an array. One customer can have multiple contacts; downstream must process it as an array, and Qeasy's splitter handles 1-to-N expansion. - Schedule periodic full-load fallback. Pure incremental can drift due to time-zone or network blips; the safe pattern is a weekly full replay plus daily incremental.
Pitfalls & Lessons
- Assuming name equals invoice title. A retail client shipped
nameas the invoice header; individual customers requesting B2B invoices were rejected. Always distinguishnamefrominvoice_name. - Address truncation. Kingdee's
addronly holds the street detail. Downstream WDT records then showed "unknown". Always combine the four-level quartet first. - Invoice-type enum drift. Different Kingdee versions ship slightly different
invoice_typedictionaries; legacy 0/1/2 must coexist with new 5/6 fully-digital values. custom_fieldstored as raw string. Downstream lost the structure. Flatten it via schema in Qearly before writing.- Millisecond timestamp pitfall. Incremental filters require millisecond precision; passing seconds-level timestamps shifts the window. Qeasy's cursor defaults to milliseconds but verify manually once.
When to Choose
This API is a fit when Kingdee Cloud Xingchen is the customer master-data source of truth and you need to sync to WDT or other downstream systems for code mapping, document customer binding, or invoicing info. Best for retail/distribution scenarios under hundreds of thousands of customers using V2 OpenAPI with time-anchored incremental sync. Beyond millions of records or when near-real-time push is required, evaluate Kingdee's event subscription or DB-tap alternatives.