productPrice.md 8.27 KB

一、查询价格列表接口 接口链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryProductPriceList 类型:POST请求 请求参数:{"product_skn" : 50000060, "shop_id" : 35, "brand_id" : 137, "supplier_id" : 0, "is_jit" : "N", "is_auditing" : 200, "stock" : 1, "gender": "3", "max_sort_id" : 7, "middle_sort_id": 58, "smallSortId" :161, "page": 10, "size" :100}

  参数说明:product_skn 商品的skn
            shop_id     店铺Id
            brand_id    品牌Id
            supplier_id 供应商Id
            is_jit      是否是代销不入库
            is_auditing 上下架状态 1代表上架  0代表下架
            stock        是否有库存,1代表有库存,0代表无库存
            gender      性别 1代表男性,2代表女性  3代表通用
            max_sort_id 大分类的Id
            middle_sort_id  中分类Id
            smallSortId    小分类的Id
            page : 当前页数 从1开始
            size :每页显示条数

返回 :
    {

"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." }

二: 查询所有的店铺信息

请求链接:http://172.16.6.227:8083/yohobuy-platform-web/ShopsRest/queryAllShops 请求参数:无

返回

{ "code": 200, "data": [ { "checkStatus": 0, "shopName": "得宝旗舰店", "shopsId": 15, "status": 0 }, { "checkStatus": 0, "shopName": ":CHOCOOLATEQ", "shopsId": 16, "status": 0 } ], "message": "操作成功" }

三:查询所有的品牌列表 请求链接:http://172.16.6.227:8083/yohobuy-platform-web/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." }

四:查询所有的供应商列表信息 请求链接:http://172.16.6.227:8083/yohobuy-platform-web/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代表成功