https://api.weixin.qq.com/channels/ec/product/add
视频号小店添加商品 前几天是已经调通了的 今天返回了商品参数缺少必填参数 我拿文档的例子把运费模板相关的参数改了直接请求接口 也返回的是这个 对比文档 必传参数都传了
{
"title": "任天堂 Nintendo Switch 国行续航增强版 NS家用体感游戏机掌机 便携掌上游戏机 红蓝主机",
"sub_title": "随时随地,一起趣玩。",
"head_imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
],
"desc_info": {
"imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
],
"desc": "物美价廉"
},
"cats": [
{
"cat_id": "6033"
},
{
"cat_id": "6057"
},
{
"cat_id": "6091"
}
],
"attrs": [
{
"attr_key": "商品毛重",
"attr_value": "380g"
},
{
"attr_key": "商品产地",
"attr_value": "中国大陆"
}
],
"express_info":{
"template_id":"xxxx",
"weight":1
},
"skus": [
{
"thumb_img": "https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ",
"sale_price": 1300,
"stock_num": 100,
"sku_code": "A24525252",
"sku_attrs": [
{
"attr_key": "选择颜色",
"attr_value": "红蓝主机"
},
{
"attr_key": "选择套装",
"attr_value": "主机+保护套"
}
]
}
]
}
{
"errcode": 10020097,
"errmsg": "商品参数缺少必填参数"
}
可能是类目信息导致的,需要看下你使用的类目有哪些必填属性,根据类目的属性设置
https://developers.weixin.qq.com/doc/channels/API/category/getcategorydetail.html