API
查询入库可选商品
更新时间: 2019-10-16 20:16:17 访问次数:8271

接口说明

可选商品查询,根据WINIT产品、头程类型及目的仓筛选允许下单的商品列表。

接口名称

winit.wh.mms.getAvailableMerchandise

请求说明

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

请求入参

名称 类型 必填 说明 示例
customerCode String(50) Y 客户编码
客户在WINIT的唯一编码,卖家可以进入万邑联-个人中心-系统设置-我的资料查询”Winit Account ID”
1000019
firstLegType String(20) Y 头程类型:
WC:Winit承运
NS:直发
WC
winitProductCode String(50) Y WINIT产品编码
取接口winit.wh.pms.getWinitProducts中的productCode
OW01010382
destinationWarehouseCode String(50) Y 目的仓编码
取接口winit.pms.getWarehouseList中的warehouseCode
US0001

请求示例

  1. {
  2. "action": "winit.wh.mms.getAvailableMerchandise",
  3. "app_key": "rebecca",
  4. "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
  5. "client_sign":"04DA20E6F8C3823339988C96E27AF234",
  6. "data": {
  7. "customerCode": "1000019",
  8. "firstLegType": "WC",
  9. "winitProductCode": "OW01010382",
  10. "destinationWarehouseCode": "US0001"
  11. },
  12. "format": "json",
  13. "language": "zh_CN",
  14. "platform": "OWNERERP",
  15. "sign": "29DA6662F77B4A61727B8A4E2D13B5E8",
  16. "sign_method": "md5",
  17. "timestamp": "2016-09-09 11:28:54",
  18. "version": "1.0"
  19. }

返回出参

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

名称 类型 必传 说明 示例
winitMerchandiseCode String(50) Y M码 M010000000000080947
merchandiseCode String(50) Y 商品编码 00EGS06800
merchandiseName String(100) Y 名称 Reader Writer
merchandiseNameCn String(100) Y 中文名称 磁卡读写器
specification String(50) Y 规格

返回示例

  1. {
  2. "code": "0",
  3. "msg": "操作成功",
  4. "data": [
  5. {
  6. "merchandiseNameCn": "LC28076-4 Red M",
  7. "winitMerchandiseCode": "M010000000000080947",
  8. "specification": "",
  9. "merchandiseName": "Red V-neck Foil Detail Crisscross Bandage Dress",
  10. "merchandiseCode": "1502434"
  11. },
  12. {
  13. "merchandiseNameCn": "Watch",
  14. "winitMerchandiseCode": "M010000000000498047",
  15. "specification": "",
  16. "merchandiseName": "Watch",
  17. "merchandiseCode": "216401"
  18. },
  19. {
  20. "merchandiseNameCn": "LED 工作灯",
  21. "winitMerchandiseCode": "M010000000000193708",
  22. "specification": "",
  23. "merchandiseName": "LED CAR LIGHT",
  24. "merchandiseCode": "4BAR002A"
  25. },
  26. {
  27. "merchandiseNameCn": "蓝牙耳机U6",
  28. "winitMerchandiseCode": "M010000000000202013",
  29. "specification": "",
  30. "merchandiseName": "Bluetooth headphones U6",
  31. "merchandiseCode": "E00101"
  32. },
  33. {
  34. "merchandiseNameCn": "PowerBuyerDEF456",
  35. "winitMerchandiseCode": "M010000000000469268",
  36. "specification": "",
  37. "merchandiseName": "34BayItemI34245",
  38. "merchandiseCode": "EAKKK004"
  39. },
  40. {
  41. "merchandiseNameCn": "数据线HDMI白色",
  42. "winitMerchandiseCode": "M010000000000000086",
  43. "specification": "数据线白色",
  44. "merchandiseName": "cable",
  45. "merchandiseCode": "HDMI 2M White"
  46. },
  47. {
  48. "merchandiseNameCn": "桌布",
  49. "winitMerchandiseCode": "M010000000000432966",
  50. "specification": "",
  51. "merchandiseName": "Table Cloth",
  52. "merchandiseCode": "HOM-TC-4FT1-WH"
  53. }
  54. ]
  55. }