查询价格列表接口
接口名: '/product/queryProductPriceList'
入参
属性名称 | 类型 | 例子 | 说明 |
---|---|---|---|
product_skn | Number | 60000050 | 商品的skn |
shop_id | Number | 43 | 店铺Id |
brand_id | Number | 43 | 品牌id |
supplier_id | Number | 43 | 供应商Id |
is_jit | String | "N" | 是否是代销不入库 Y 或者 N |
is_auditing | Number | 200 | 商品状态 |
stock | Number | 1 | 有库存为1 无填写 0 |
gender | Number | 1 | 性别 1代表男性,2代表女性 3代表通用 |
max_sort_id | Number | 1 | 大分类的Id |
middle_sort_id | Number | 12 | 中分类Id |
small_sort_id | Number | 111 | 小分类的Id |
page | Number | 1 | 当前页数 从1开始 |
size | Number | 10 | 每页显示条数,默认10 |
返回
{
"code": 200,
"data": {
"content": [
{
"brand_id": 175,
"brand_name": "团一",
"founder": 9278,
"max_sort_id": 10,
"max_sort_name": "创意生活",
"middle_sort_id": 101,
"middle_sort_name": "文具",
"product_name": "团一复古花纹满本图案牛皮纸笔记本",
"product_pic_url": "http://img12.static.yhbimg.com/goodsimg/2011/06/24/13/02e571a64cea3ea8e734f8f0aae790fb4f.jpg?imageView/0/w/60/h/60",
"product_skn": 50000055,
"retail_price": 29,
"return_coin": 300,
"sales_price": 29,
"small_sort_id": 111,
"small_sort_name": "本子",
"supplier_id": 0,
"updateTime": "2016-02-02 10:37:43",
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 1,
"vip_price": 0
},
{
"brand_id": 187,
"brand_name": "顽",
"founder": 9278,
"max_sort_id": 8,
"max_sort_name": "服配",
"middle_sort_id": 66,
"middle_sort_name": "配饰",
"product_name": "PLAY顽植物大战僵尸坚果墙挂饰",
"product_pic_url": "http://img10.static.yhbimg.com/goodsimg/2011/06/23/05/01bda4fc443c96aa3a2e9287c3c17be87a.jpg?imageView/0/w/60/h/60",
"product_skn": 50000056,
"retail_price": 18,
"return_coin": 0,
"sales_price": 18,
"small_sort_id": 305,
"small_sort_name": "挂饰",
"supplier_id": 0,
"updateTime": "2016-02-02 10:37:43",
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 1,
"vip_price": 0
}
],
"number": 1,
"size": 2,
"totalElements": 2,
"totalPages": 1
},
"md5": "9a92b3c94d9676a8089169ee46ebce4a",
"message": "Product Price List."
}
查询所有的店铺信息
接口名: '/ShopsRest/queryAllShops'
入参
属性名称 | 类型 | 例子 | 说明 |
---|
返回
{
"code": 200,
"data": [
{
"checkStatus": 0,
"shopName": "得宝旗舰店",
"shopsId": 15,
"status": 0
},
{
"checkStatus": 0,
"shopName": ":CHOCOOLATEQ",
"shopsId": 16,
"status": 0
}
],
"message": "操作成功"
}
查询所有的品牌列表
接口名: '/erpproduct/brands/queryAllBrands'
入参
属性名称 | 类型 | 例子 | 说明 |
---|
返回
{
"code": 200,
"data": [
{
"brandDomain": "lily",
"brandName": "lily",
"brandNameEn": "lily",
"id": 1431,
"status": 1
},
{
"brandDomain": "test",
"brandName": "test",
"brandNameCn": "",
"brandNameEn": "test",
"id": 1430,
"status": 1
}
],
"md5": "03098c8c158c8405117daadb91ed792a",
"message": "Product Brand List."
}
查询所有的供应商列表信息
接口名: '/supplier/supplier/queryAllSupplier'
入参
属性名称 | 类型 | 例子 | 说明 |
---|
返回
{
"code": 200,
"data": [
{
"brandId": 0,
"supplierId": 1,
"supplierName": "10*1"
},
{
"brandId": 0,
"supplierId": 2,
"supplierName": "广派商业(上海)有限公司"
},
{
"brandId": 0,
"supplierId": 3,
"supplierName": "广州市海珠区艺柏时装经营部"
}
],
"message": "操作成功"
}
五:查询商品是否是JIT配置 请求链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryJitConfigList 请求参数:无 响应: { "code": 200, "data": { "N": "非JIT", "Y": "是JIT" }, "md5": "47b9033a2b45f1f51739d7c8ca2b2e29", "message": "Jit Config List." }
六:查询商品状态的配置 请求链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryProductStatusConfigList 请求参数:无 响应: { "code": 200, "data": { "0": "下架", "200": "上架" }, "md5": "3e1f4e393d82140086f3b11342196cb6", "message": "Status Config List." }
六:查询商品库存情况的配置 请求链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryProductStockConfigList 请求参数:无 响应: { "code": 200, "data": { "0": "无库存", "1": "有库存" }, "md5": "b5fdee6640106a6eff445b8181a7e96b", "message": "Stock Config List." }
七:查询商品所属性别分类信息 请求链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryGenderConfigList 请求参数:无 响应: { "code": 200, "data": { "1": "男", "2": "女", "3": "通用" }, "md5": "454312b4aadbcd602078c175631f20ea", "message": "Gender Config List." }
八:查询所有的一级分类列表 请求链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryAllMaxSortList 请求参数:无 响应:(备注: id 和 sortName 有用) { "code": 200, "data": [ { "booleanStatus": true, "createTime": 0, "gender": 3, "id": 365, "isHot": "N", "orderBy": 0, "parentId": 0, "sortCode": "365,0,0", "sortInitials": "潮童", "sortLevel": 1, "sortName": "潮童", "status": 1, "updateTime": 1454060643 }, { "booleanStatus": false, "createTime": 0, "gender": 3, "id": 241, "isHot": "N", "orderBy": 0, "parentId": 0, "sortCode": "241,0,0", "sortInitials": "数码周边", "sortLevel": 1, "sortName": "数码周边", "status": 0, "updateTime": 0 } ], "md5": "dc2b4caace98d678cf688edcdd204675", "message": "Product Sort List." }
九:根据skn获取价格信息 请求链接 : http://172.16.6.227:8083/yohobuy-platform-web/product/getProductPrice 参数:{"param": 50000060} 响应:
{ "code": 200, "data": { "costPrice": 0, "founder": 9278, "product_skn": 50000063, "purchaseDiscount": 0, "purchasePrice": 0, "retail_price": 50, "return_coin": 9999, "sales_price": 211.22, "updateTime": "2016-02-03 13:33:15", "vip1_price": 200.66, "vip2_price": 190.1, "vip3_price": 185.87, "vip_discount_type": 1, "vip_price": 9999 }, "md5": "cfb9c7b74370346f4bd55fabb7f1deae", "message": "Product Price get success." }
备注 : costPrice 成本价 purchasePrice 进货价 purchaseDiscount 进货折扣
十:单个商品变价
请求链接 :http://172.16.6.227:8083/yohobuy-platform-web/product/updateProductPrice 参数:{ "product_skn": 50000060, "sales_price" :211.22, "vip_discount_type":5, "founder":9278, "return_coin":88, "vip_price":99} 备注 :productSkn 商品标识 数字型 salesPrice 销售价格 数字型 vipDiscountType 折扣类型 1、2、3、4、5 founder : 操作人标识 数字型 returnCoin :返回币数 整型 vipPrice : vip价格 vipDiscountType 为4时必填 vip1Price vip2Price vip3Price 折扣类型为5时必填
响应: { "code": 200, "data": [], "md5": "d751713988987e9331980363e24189ce", "message": "Product Price update success." }
备注 :code 为200代表成功