API
库存溯源查询
更新时间: 2025-07-09 14:11:25 访问次数:10

接口说明

通过本接口用户可以查询库存溯源数据。

接口名称

winit.inventoryOrderTraceback.queryList

请求说明

请求内容 说明
URL https://openapi.winit.com.cn/openapi/service
接口测试 https://sandboxopenapi.winit.com.cn/openapi/service
验证方法 Token,md5
格式 json
字符编码 UTF-8
http请求方式 http
请求数限制 默认每分钟200,有需要可申请加大。

请求入参

名称 类型 必填 说明 示例
merchandiseCode String Y 商品编码 SKU001
specification String N 规格
docNo String Y 扣减库存单据号
支持出库单,调拨单,库存调整单等
WO123456789
warehouseCode String Y 仓库编码

请求示例

  1. {
  2. "action": "winit.inventoryOrderTraceback.queryList",
  3. "app_key": "rebecca",
  4. "data": {
  5. "merchandiseCode": "商品编码",
  6. "specification": "规格",
  7. "docNo": "单号",
  8. "warehouseCode": "仓库编码"
  9. },
  10. "format": "json",
  11. "language": "zh_CN",
  12. "platform": "sw",
  13. "sign": "00000000000000000000000000000000",
  14. "sign_method": "md5",
  15. "timestamp": "2021-10-25 09:58:35",
  16. "version": "1.0"
  17. }

返回出参

返回参数说明:正确的返回编码code:0及结果data,错误的返回错误码及错误信息msg。

名称 类型 必传 说明 示例
docNo String Y 扣减库存的单号
docType String N 单据类型
merchandise Code String Y 商品编码
specification String N 规格
merchandiseSerno String Y 商品条码
warehouseCode2 String Y 入库仓库
qty Integer Y 数量
refDocNo2 String Y 最初的入库单据
reInboundDate2 Date Y 最初入库时间
itemBarcodes List N 单品条码信息

返回示例

  1. {
  2. "code": "0",
  3. "msg": "操作成功",
  4. "data": [
  5. {
  6. "docNo": "WO00000000057",
  7. "docType": null,
  8. "merchandiseCode":"SKU001",
  9. "specification":"",
  10. "merchandiseSerno": "M010000000006893264",
  11. "warehouseCode2": null,
  12. "qty": 1,
  13. "refDocNo2": "RT16000000000012CN",
  14. "refDocType2": "INBOUND_RETURN",
  15. "reInboundDate2": "2025-07-07 14:57:53",
  16. "itemBarcodes": [
  17. "S500077000535268835"
  18. ]
  19. }
  20. ]
  21. }
关键词