更新商品至中台

POST /app/product/cloud/updateCloudProduct


请求:

字段

名称

类型

是否必须

id

商品id

int

是

title

商品名称

srting

是

detail_images

商品详情

富文本

是

category1_id

中台一级分类id

int

是

category2_id

中台二级分类id

int

是

category3_id

中台三级分类id

int

是

stock

库存

int

是

price

供货价(单位分)

int

是

guide_price

指导价(单位分)

int

是

origin_price

市场价(单位分)

int

是

cost_price

成本价(单位分)

int

是

freight

运费(分)

int

否

freight_template_id

中台运费模板id

int

否

freight_type

运费类型 0统一,1模板

int

否

unit

单位

string

是

image_url

主图

string

是

gallery

组图

array

是

attr

属性

array

否

skus

规格

array

是

single_option

0多规格1单规格

int

是

code

自定义编号 

 string

否

gallery:

type

1图片 目前只有1

int

是

src

路径

string

是

attrs:

name

属性名称

string

是

value

属性值

string

是

skus:

title

规格属性名称

string

是

cost_price

成本价格(分)

int

是

origin_price

int

是

guide_price

指导价(分)

int

是

activity_price

营销价格(分)

int

否

stock

库存

int

是

options

规格详情

array

是

price

供货价(分)

int

是

weight

重量

int

否

sn

条码

 string

否

code

自定义编号

            string

否

options:

spec_name

规格名称

string

是

spec_item_name

规格名称

string

是


返回:

{

“code”: 0,

“data”: {

“id”:1111, 中台商品id

},

“msg”: “添加成功”

}

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部