根据sku查询商品详情
https://openapi.guanaitong.tech/commerce/product/queryProductDetailBySku
正式环境和测试环境的域名请见通用协议
POST
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
| sku_code | 是 | String | [1-16] | sku 编码 |
POST /commerce/product/queryProductDetailBySku HTTP/1.1
Host: openapi.guanaitong.tech
Content-Type: application/x-www-form-urlencoded
cache-control: no-cache
access_token=48b3b588d536ef9082223f8368a17140&sign=39c4b425ce9aaba0ff9ae2bc8fa82837b4c294d9
&sku_code=KC19102900000001×tamp=1573784826
| 参数名称 | 描述 |
| code | 返回码。详见错误代码。 |
| msg | 如果错误,返回错误信息。 |
| data | ProductDetail对象 |
| ProductDetail对象 | |
|---|---|
| spu_name | String类型,商品名称 |
| product_title | String类型,商品标题 |
| selling_point | String类型,卖点 |
| price | BigDecimal类型,售价 |
| stock | int类型,库存 |
| product_status | int类型,0-正常 2-售罄 3-下架 4-禁售 |
| brand_name | String类型,品牌名称 |
| property_list | List<Property>属性列表 |
| picture_list | List<Picture>图片列表 |
| Property对象说明 | |
| property_name | String类型,属性名称 |
| property_value | String类型,属性值 |
| Picture对象说明 | |
| picture_type | int类型,图片类型 1-商品主图 2-商品详情图 |
| picture_size_type | Integer类型,图片大小 1-小图 2-中图 3-大图 |
| picture_url | String类型,图片地址 |
| picture_index | double类型,图片显示顺序(按从小到大顺序显示)(都等于1的就是不用排序,根据接口返回顺序展示) |
{
"code": 0,
"data": {
"property_list": [{
"property_value": "16",
"property_name": "尺寸"
}, {
"property_value": "2000g",
"property_name": "重量"
}, {
"property_value": "1年",
"property_name": "是否延保"
}],
"price": 111.0,
"product_status": 0,
"selling_point": "高清屏,大内存",
"brand_name": "苹果",
"picture_list": [{
"picture_index": 1.0,
"picture_type": 1,
"picture_size_type": 3,
"picture_url": "https://img1.guanaitong.com/a4cf387c49e23f4e1a913c15c1923967.jpg"
}, {
"picture_index": 1.0,
"picture_type": 2,
"picture_size_type": 3,
"picture_url": "https://img1.guanaitong.com/254973bc0bc441dffda39ae42f27c541.jpg"
}, {
"picture_index": 1.0,
"picture_type": 2,
"picture_size_type": 2,
"picture_url": "https://img1.guanaitong.com/254973bc0bc441dffda39ae42f27c541.jpg"
}],
"stock": 110,
"spu_name": "小明的笔记本",
"product_title": "测试商品"
},
"msg": "OK"
}
{"code":1000210002,"data":null,"msg":"sign check failed!"}