文档
测试

1.获取-海鼎商品资料信息

POST
http://39.108.211.149:18164/h6-wms-service/open-api/wms/{wmsCode}/product/get?lastSerialNo=上次已读海鼎商品资料通知表最大序列号

接口描述

通过此接口查询商品资料

流程图

![海鼎获取商品主数据 2.png](https://cos.easydoc.net/48578360/files/kh08zch1.png)

调用方式

>s jos EDI定时轮询发起调用 定时间隔:2小时

数据格式及编码

>iChartSet:UTF-8 Content-Type:application/json Accept:application/json

auth接口认证

Authrization Type:BASIC AUTH Username: Password:

请求参数

参数名
类型
描述
必填
wmscode
string(10)
物流中心编码
必填
lastSerailNo
long
上次获取的wow侧商品资料最大行id
必填

响应参数

参数名
类型
描述
必填
code
string(32)
示例:0
必填
message
string(255)
示例:null
必填
success
boolean
示例:true
必填
data
array
数据列表
必填
serialNo
int
序列号
必填
productCode
string(20)
商品代码(wow侧商品唯一编码)
必填
productName
string(80)
商品名称
必填
mainProductCode
string(20)
主商品代码
必填
shortName
string(80)
商品简称
可选
qpc
int
规格
必填
qpcStr
string(10)
规格说明
必填
munit
string(6)
包装单位
必填
sortCode
string(20)
类别代码
必填
brand
string(64)
品牌
必填
DISPLAYAREA
string(50)
款号/陈列代码
必填
length
int
长(cm)
可选
width
int
宽(cm)
可选
height
int
高(cm)
可选
validPeriod
object
保质期天数
可选
retailPrice
int
零售价(最小规格价)
必填
allocPrice
number
配货价(最小规格价)
必填
wholesalePrice
number
批发价(最小规格价)
必填
vendorCode
string(10)
供应商代码(默认供应商)
必填

请求示例

==测试环境== ```json GET http://39.108.211.149:18164/h6-wms-service/open-api/wms//8900/product/get?lastSerialNo=475457 HTTP/1.1 Authorization: Basic Z3Vlc3Q6Z3Vlc3Q= Content-Type: application/json; charset=utf-8 ``` ==生产环境== ```json GET http://120.79.81.130:18164/h6-wms-service/open-api/wms/8900/product/get?lastSerialNo=475457 HTTP/1.1 Authorization: Basic Z3Vlc3Q6Z3Vlc3Q= Content-Type: application/json; charset=utf-8 ```

响应示例

```json { "code":"0", "message":null, "success":true, "data":[ { "serialNo":475464, //商品资料行id "productCode":"8506092350777", //wow商品代码(商家商品编码) "productName":"芭贝拉睛致柔滑眼线液笔02黑色", //商品名称 "mainProductCode":"8506092350777", //主商品代码 "shortName":null, //商品简称 "qpc":1, //商品规则 "qpcStr":"1*1", //规则说明 "munit":"支", //包装单位 "sortCode":"850609", //类别代码 "brand":"2595", //商品品牌 "length":null, //长(cm) "width":null, //宽(cm) "height":null, //高(cm) "validPeriod":1095, //保质期天数 "retailPrice":39.9, //零售价(最小规格价) "allocPrice":0, "wholesalePrice":0, "vendorCode":"10156", "weight":null, "backLabel":"0", "DISPLAYAREA":"眼线笔/睫毛膏/眉笔[106]", //款号 "ORGGID":1000323 }, { "serialNo":475465, "productCode":"6972504311644", "productName":"芭贝拉睛致柔滑眼线液笔02黑色", "mainProductCode":"8506092350777", "shortName":null, "qpc":1, "qpcStr":"1*1", "munit":"支", "sortCode":"850609", "brand":"2595", "length":null, "width":null, "height":null, "validPeriod":1095, "retailPrice":39.9, "allocPrice":0, "wholesalePrice":0, "vendorCode":"10156", "weight":null, "backLabel":"0", "DISPLAYAREA":"眼线笔/睫毛膏/眉笔[106]", "ORGGID":1000323 } ] } ```