文档
测试

编辑商品

POST
http://manage.51zheli.com/productApi/updateProduct

接口描述

编辑商品:渠道商可编辑商品和商品属性,编辑商品之前需下架商品

请求头

参数名
类型
描述
必填
channelCode
string
示例:FL,渠道商编码纷来平台统一分配
必填
sign
string
示例:f76943d078c79d55dca2b52688a8acc6
必填
Content-Type
string
application/json
必填

请求参数

参数名
类型
描述
必填
brandId
number
示例:3281, 品牌ID对应纷来平台品牌库
必填
categoryId
number
示例:281 ,分类ID对应纷来平台分类库
必填
channelProductCode
string
示例:FL013,渠道商商品编码,唯一性(必填)
必填
delivery
string
示例:深圳,南山区 ,发货地址
必填
name
string
示例:ERP测试商品002,商品名称(搜索关键字不为空时,必填)
必填
noSendProvince
string
示例:新疆,不配送区域
必填
oversea
number
示例:0 ,0=普通商品,1=海淘商品(必填)
必填
parentCategoryId
number
示例:5,上级分类ID对应纷来平台父级分类库
必填
postageTemplateId
string
示例:邮费模板ID对应纷来平台邮费模板,不填默认包邮
必填
productApiImagesVoList
array
商品banner图,可多个(全量更新,覆盖之前的图片)
必填
imageUrl
string
示例:https://img.51zheli.com/product/admin_undefined_1573531732600.jpg
必填
productDescriptionApiVo
object
商品图文描述(全量更新,覆盖之前的描述)
必填
detail
string
示例:测试图文详情描述001
必填
imagesStr
string
示例:https://img.51zheli.com/product/admin_undefined_1573531736553.jpg,https://img.51zheli.com/product/admin_undefined_1573465240497.jpg
必填
productSkuApiVos
array
商品SKU(增量更新,只修改传入的sku)
必填
channelSkuCode
string
示例:SKU00013,渠道商商品SKU编码,唯一性(必填)
必填
formatJson
string
示例:{"规格":"SS","型号":"2019"},渠道商商品SKU规格,同一个商品不可重复,json字符串(必填)
必填
marketPrice
number
示例:500, 划线价(单位分)
必填
memberPrice
number
示例:200 ,销售价(单位分)
必填
name
string
示例:测试 ,sku名称
必填
productApiImagesVoList
array
数据列表
必填
imageUrl
string
示例:https://img.51zheli.com/product/admin_undefined_1573531732600.jpg
必填
shareProfitMoney
number
示例:60
必填
skuCode
string
示例:testsku001
必填
stock
number
示例:10
必填
remark
string
示例:测试备注
必填
searchKeyWord
string
示例:ERP,测试,商品搜索关键字必须包含在商品名称中多个用英文逗号隔开
必填
sellPoint
string
示例:这是卖点001,展示在商品页面突出商品优势介绍
必填
storeId
number
示例:2,对应纷来平台店铺ID(必填)
必填
supplierId
string
示例:2c928ae96ac3794c016ac475b9930006,对应纷来平台供应商ID(必填)
必填
taxCode
string
示例:4SADKS555AAA,商品税编码开发票使用,(非海淘商品必填)
必填
taxRate
number
示例:9.5 ,税率,开发票使用 (非海淘商品必填)
必填
title
string
示例:ERP测试商品001 (商品名称)
必填
weight
string
示例:5KG,商品重量
必填

响应参数

参数名
类型
描述
必填
code
string
示例:0 响应状态码,0代表成功,非0代表失败
必填
msg
string
示例:success,提示语
必填
data
object
示例:https://h5.51zheli.com/pages/store/product/product?productId=110225, 商品H5预览地址,响应数据
必填

说明 / 示例

请求header Content-Type:application/json channelCode:FL sign:f76943d078c79d55dca2b52688a8acc6 请求入参body ```json { "brandId": 3292, "categoryId": 183, "channelProductCode": "SHDL-P-002", "delivery": "深圳", "name": "上海底捞大酱(销量第一)", "noSendProvince": "台湾", "oversea": 0, "parentCategoryId": 5, "postageTemplateId": "5fd1c56a144fc03487cb38b4", "productApiImagesVoList": [ { "imageUrl": "https://img.51zheli.com/product/admin_undefined_1573531732600.jpg" } ], "productDescriptionApiVo": { "detail": "非常正宗", "imagesStr": "https://img.51zheli.com/product/admin_undefined_1573531736553.jpg,https://img.51zheli.com/product/admin_undefined_1573465240497.jpg" }, "productSkuApiVos": [ { "channelSkuCode": "SHDL-S-002-01", "formatJson": "{\"规格\":\"特辣\",\"型号\":\"小包\"}", "marketPrice": 400, "memberPrice": 200, "name": "规格1", "productApiImagesVoList": [ { "imageUrl": "https://img.51zheli.com/product/admin_undefined_1573531732600.jpg" } ], "shareProfitMoney": 60, "skuCode": "SHDL-S-002-01", "stock": 10 }, { "channelSkuCode": "SHDL-S-002-02", "formatJson": "{\"规格\":\"微辣\",\"型号\":\"中包\"}", "marketPrice": 500, "memberPrice": 300, "name": "规格2", "productApiImagesVoList": [ { "imageUrl": "https://img.51zheli.com/product/admin_undefined_1573531732600.jpg" } ], "shareProfitMoney": 60, "skuCode": "SHDL-S-002-02", "stock": 10 } ], "remark": "建议冷藏", "searchKeyWord": "大酱", "sellPoint": "销量榜第一", "storeId": 45, "supplierId": "7a13baee4f144d7eaa97c27ccfe18c83", "taxCode": "1234567890", "taxRate": 9.0, "title": "上海底捞大酱(销量第一)", "weight": "5KG" } ```