API
查询头程服务
更新时间: 2019-10-16 20:13:39 访问次数:13980

接口说明

通过该接口查询app_key可下单的入库Winit产品。
注意:自有ERP的卖家可以查询一次多次使用;第三方ERP需要根据卖家的app_key进行调用,获得卖家可下单的Winit产品

接口名称

winit.wh.pms.getWinitProducts

请求说明

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

请求入参

名称 类型 必填 说明 示例
productType String(20) Y 产品类型
OW0101:标准海外仓入库
OW0102:直发国内验入库
OW0103:直发海外验入库
OW0101

请求示例

  1. {
  2. "action": "winit.wh.pms.getWinitProducts",
  3. "app_key": "rebecca",
  4. "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
  5. "client_sign":"0277A3A8C6317C328F3DEE000F67E0D9",
  6. "data": {
  7. "productType": "OW0101"
  8. },
  9. "format": "json",
  10. "language": "zh_CN",
  11. "platform": "OWNERERP",
  12. "sign": "E1C24A580130083B26F9783BE058705C",
  13. "sign_method": "md5",
  14. "timestamp": "2016-09-09 10:08:14",
  15. "version": "1.0"
  16. }

返回出参

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

名称 类型 必传 说明 示例
productCode String(10) Y Winit产品编码 OW01010343
productName String(60) Y Winit产品名称 空运-普货
description String(255) Y Winit产品描述

返回示例

  1. {
  2. "code": "0",
  3. "msg": "操作成功",
  4. "data": [
  5. {
  6. "productCode": "OW01011505",
  7. "description": "",
  8. "productName": "空运-电商清关"
  9. },
  10. {
  11. "productCode": "OW01010343",
  12. "description": "",
  13. "productName": "空运-普货"
  14. },
  15. {
  16. "productCode": "OW01011607",
  17. "description": "",
  18. "productName": "海运整柜散装40HQ-DE传统清关"
  19. },
  20. {
  21. "productCode": "OW01011589",
  22. "description": "",
  23. "productName": "海运整柜散装20GP-DE传统清关"
  24. },
  25. {
  26. "productCode": "OW01011493",
  27. "description": "",
  28. "productName": "海运整柜散装-40HQ-电商清关"
  29. },
  30. {
  31. "productCode": "OW01011066",
  32. "description": "",
  33. "productName": "海运整柜散装-40HQ"
  34. },
  35. {
  36. "productCode": "OW01011496",
  37. "description": "",
  38. "productName": "海运整柜散装-20GP-电商清关"
  39. },
  40. {
  41. "productCode": "OW01010345",
  42. "description": "",
  43. "productName": "海运整柜散装-20GP"
  44. },
  45. {
  46. "productCode": "OW01011063",
  47. "description": "",
  48. "productName": "海运整柜-40HQ"
  49. },
  50. {
  51. "productCode": "OW01011499",
  52. "description": "",
  53. "productName": "海运整柜-20GP-电商清关"
  54. },
  55. {
  56. "productCode": "OW01011075",
  57. "description": "",
  58. "productName": "海运整柜-20GP"
  59. },
  60. {
  61. "productCode": "OW01011502",
  62. "description": "",
  63. "productName": "海运散货-电商清关"
  64. },
  65. {
  66. "productCode": "OW01011586",
  67. "description": "",
  68. "productName": "海运散货-DE传统清关"
  69. },
  70. {
  71. "productCode": "OW01010334",
  72. "description": "",
  73. "productName": "海运散货"
  74. },
  75. {
  76. "productCode": "OW01011748",
  77. "description": "",
  78. "productName": "智能分仓-海运散货"
  79. }
  80. ]
  81. }