|
正确参考如下:
sku_stocks:新接口重新组装成一个大JSON,传入一定要按照这个格式:
[ { "price":10000, "quantity":100, "item_no":"ATC-002", "skus":[ { "k":"颜色", "kid":1, "v":"绿色", "vid":1217 }, { "k":"尺寸", "kid":2, "v":"l", "vid":1367 }, { "k":"内存", "kid":41, "v":"1024G", "vid":303435 } ] }, { "price":10000, "quantity":100, "item_no":"ATC-002", "skus":[ { "k":"颜色", "kid":1, "v":"绿色", "vid":1217 }, { "k":"尺寸", "kid":2, "v":"l", "vid":1367 }, { "k":"内存", "kid":41, "v":"16G", "vid":6356 } ] } ]
注意:sku_stocks数量=规格1数量 * 规格2数量 * 规格3数量;
商品sku扩展信息,组装成一个JSON,与sku_stocks参数匹配。如上面传入的sku_stocks,则s1为颜色对应的vid,传入一定要按照这个格式 [ { "cost_price":2000, //成本价 "s1":1217,规格层级1对应的规格属性ID "s2":1367, "s3":303435, "s4":0, "s5":0 }, { "cost_price":2000, "s1":1217, "s2":1367, "s3":6356, "s4":0, "s5":0 } ]
详情参考文档:https://open.youzan.com/v3/apice ... /youzan.item.update |
|
有赞-技术支持
|
|
|
|
|