更新商品至中台

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”: “添加成功”

}

发表评论

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

滚动至顶部