Qeasy Cloud
Get Started
GEThttps://api.kingdee.com/jdy/v2/bd/materialapp-token + X-Api-* 签名头

Material List Query (/jdy/v2/bd/material)

金蝶云星辰基础资料域商品(物料)列表接口,GET 分页查询商品编码、名称、规格、条码、计量单位等档案,用于商品主数据对齐与库存/订单映射。

## Overview /jdy/v2/bd/material belongs to the Cosmic-Star base-data (bd) domain and pages through material (product) master records: number, name, specification, barcode, units, reference cost and sale price. Product master data underpins order, stock and procurement flows — missing code mapping is the number-one cause of integration failure. ### Request essentials 1. Auth per the auth doc: app-token + X-Api-* signing headers + X-GW-Router-Addr. 2. Pagination: page, page_size; common filters: number (code), name (fuzzy), barcode, enable (active flag) and modify_time (incremental cursor). 3. On errcode = 0, data.rows holds the materials. Multi-unit materials expose base/auxiliary conversion rates — normalize quantities to the base unit before syncing. 4. The reverse write is POST /jdy/v2/bd/material; leaving number empty lets Cosmic-Star auto-generate the code, while updates must carry it. ### Typical pipeline Cosmic-Star materials → Qeasy normalization (code, barcode, category, unit) → creation in Jushuitan/WDT/Weimob; a daily pull validates mapping completeness (marketplace merchant code ↔ Cosmic-Star number) and alerts on unmapped SKUs before order lines fall into manual queues. ### Barcodes and auxiliary attributes For products with auxiliary attributes (color, size), stock and order lines resolve to attribute combinations, so sync the attribute fields together with the base record. Barcodes may live at product level or per attribute combination — honor the priority between the two layers, or downstream systems receive empty barcodes and scan-based warehousing breaks.

Code examples

curl
curl -G "https://api.kingdee.com/jdy/v2/bd/material" \
  --data-urlencode "page=1" --data-urlencode "page_size=100" \
  -H "X-Api-ClientID: xxx" -H "X-Api-TimeStamp: 1780000000000" \
  -H "X-Api-Nonce: 1234567" -H "X-Api-SignHeaders: X-Api-TimeStamp,X-Api-Nonce" \
  -H "X-Api-Auth-Version: 2.0" -H "X-Api-Signature: SIGN" \
  -H "app-token: TOKEN" -H "X-GW-Router-Addr: DOMAIN"

Error codes

CodeMessageMeaning
1030002006授权信息错误app-token 失效,重新获取
401验签失败重算 X-Api-Signature