参考这个问题答案哈:https://developers.weixin.qq.com/community/develop/doc/000800de61039860d51f22a6051000
视频号添加商品https://developers.weixin.qq.com/doc/channels/API/product/add.html#%E6%8E%A5%E5%8F%A3%E8%B0%83%E7%94%A8%E8%AF%B7%E6%B1%82%E8%AF%B4%E6%98%8E { "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": "47428464001" }, "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":"商品参数缺少必填参数 rid: 63db777d-7480c12d-6ab83f2f"}
2023-02-02[图片] 你好,upload_type和resp_type需要填在url里面。具体参考文档:https://developers.weixin.qq.com/doc/channels/API/basics/img_upload.html
视频号小店上传图片失败?请求接口:https://api.weixin.qq.com/channels/ec/basics/img/upload?access_token=ACCESS_TOKEN 请求数据:{"upload_type":1,"img_url":"https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5d5feaadb110164c2aa168ec76c677a1.jpg","resp_type":1} 返回数据:{"errcode":10020055,"errmsg":"参数有误 rid: 63db345f-673f0671-5d101a9f"}
2023-02-02你好,可以先根据类目信息接口获取类目必填项:https://developers.weixin.qq.com/doc/channels/API/category/getcategorydetail.html 然后填入该接口的商品参数字段后提交
视频号调用添加商品接口,提示 10020097-商品缺少必要参数?接口: 添加商品(https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent/API/spu/add_spu.html) 用户Id: wx0590e5f5f32c7114 返参: { "errcode": 10020097, "errmsg": "商品缺少必要参数" } 操作时间: 2023-01-09 15:57:20 入参: { "attrs": [ { "attr_key": "产地", "attr_value": "中国大陆" }, { "attr_key": "厂名", "attr_value": "德阳心瑞食品有限公司" }, { "attr_key": "品牌", "attr_value": "米仓山" }, { "attr_key": "货号", "attr_value": "1" }, { "attr_key": "售卖方式", "attr_value": "单品" }, { "attr_key": "保质期", "attr_value": "365" }, { "attr_key": "规格", "attr_value": "500克" }, { "attr_key": "产品标准号", "attr_value": "GB/T23587" }, { "attr_key": "储藏方法", "attr_value": "放置阴凉、干燥通风处" }, { "attr_key": "套餐份量", "attr_value": "5人份" }, { "attr_key": "配料表", "attr_value": "红薯淀粉、玉米淀粉、小麦淀粉 、食用盐、水" }, { "attr_key": "食品添加剂", "attr_value": "无" }, { "attr_key": "省份", "attr_value": "四川省" }, { "attr_key": "系列", "attr_value": "红薯粉" }, { "attr_key": "生产许可证编号", "attr_value": "SC12351060300015" }, { "attr_key": "厂址", "attr_value": "四川省德阳市旌阳区孝泉镇江河村10组(原两河村四组)" }, { "attr_key": " 生产日期", "attr_value": " 2022年05月01日 至 2022年05月20日 " }, { "attr_key": "套餐周期", "attr_value": "1周" }, { "attr_key": "配送频次", "attr_value": "1周2次" }, { "attr_key": "厂家联系方式", "attr_value": "028-87657848" } ], "cats": [ { "cat_id": 7419 }, { "cat_id": 7439 }, { "cat_id": 7446 } ], "descInfo": { "imgs": [ "https://mmecimage.cn/p/wx0590e5f5f32c7114/HFj4a56ULm_Y3LlXR7mFY1yVrKV8Q_pCG5aa0ehKkCM", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HAeWsUtCoat2-61o7zu4-0JZerWUtDtippjYsUzCpRY", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HCqLN09z9A7d5Z3PVwz6rs73WDhb3WTQcDzDbfJ_KYA", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HKTKcmYHAAjU0eim7sIYLj5ACDekc7ckPxSknCIX7Ww", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HA7rkaLPHRnS45NOM8aSg8hgyBzqLXzUnu6jSbT27bE", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HAgIEWKL-CTxTNDvBFCzaWFGNQOovNidGRCpnLYVumg", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HBvj18oh5ObQIt-IKgDIjDBD9uO6SfS7GfgosbbhOiw", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HI8KvGU0YOoiu8ZNCEGv0E7lnUmkQhXEGz5owA7ygaM", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HIAke4VjKuya6lFbjVZGo3TbkQVYU6_3jnGMnc2s2Ng", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HJ9mIIeqFphhvHkz_GtYIGC7MCkjiFS5VUlK86Ew1HY" ] }, "expressInfo": { "template_id": "168363764004" }, "headImgs": [ "https://mmecimage.cn/p/wx0590e5f5f32c7114/HEvEGoXzIGS0A_X7rh787M8H6_dE_FE7lGZBZGPvlyY", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HACjYxHGpZckeIcEITJVV3bcFBCybWV5u7_Dd8j0__U", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HMlxVDS6T4JtZ3Of0awB0jqVtANHfQA4eKH8yOTA2-E", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HP0a3jcfeB_0JbIv82UekzwQ8xii8F9SHzRatcw2D_4", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HBYBx62lCOMhl5BPd0stSTnxly2G2tmBa_wMfLeRVqY" ], "outProductId": "47354491", "params": { "sub_title": "四川红薯粉条1斤手工川粉红苕地瓜干货", "cats": [ { "$ref": "$.cats[0]" }, { "$ref": "$.cats[1]" }, { "$ref": "$.cats[2]" } ], "skus": [ { "market_price": 5500, "out_sku_id": "1612357795389243392", "sale_price": 2400, "sku_attrs": [ { "attr_key": "版本", "attr_value": "规格值" } ], "stock_num": 1000 } ], "desc_info": { "$ref": "$.descInfo" }, "out_product_id": "47354491", "title": "四川红薯粉条1斤手工川粉红苕地瓜干货粉丝麻辣烫火锅粉酸辣粉条", "express_info": { "$ref": "$.expressInfo" }, "head_imgs": [ "https://mmecimage.cn/p/wx0590e5f5f32c7114/HEvEGoXzIGS0A_X7rh787M8H6_dE_FE7lGZBZGPvlyY", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HACjYxHGpZckeIcEITJVV3bcFBCybWV5u7_Dd8j0__U", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HMlxVDS6T4JtZ3Of0awB0jqVtANHfQA4eKH8yOTA2-E", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HP0a3jcfeB_0JbIv82UekzwQ8xii8F9SHzRatcw2D_4", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HBYBx62lCOMhl5BPd0stSTnxly2G2tmBa_wMfLeRVqY" ], "attrs": [ { "$ref": "$.attrs[0]" }, { "$ref": "$.attrs[1]" }, { "$ref": "$.attrs[2]" }, { "$ref": "$.attrs[3]" }, { "$ref": "$.attrs[4]" }, { "$ref": "$.attrs[5]" }, { "$ref": "$.attrs[6]" }, { "$ref": "$.attrs[7]" }, { "$ref": "$.attrs[8]" }, { "$ref": "$.attrs[9]" }, { "$ref": "$.attrs[10]" }, { "$ref": "$.attrs[11]" }, { "$ref": "$.attrs[12]" }, { "$ref": "$.attrs[13]" }, { "$ref": "$.attrs[14]" }, { "$ref": "$.attrs[15]" }, { "$ref": "$.attrs[16]" }, { "$ref": "$.attrs[17]" }, { "$ref": "$.attrs[18]" }, { "$ref": "$.attrs[19]" } ] }, "requestMethod": "POST", "skus": [ { "$ref": "$.params.skus[0]" } ], "subTitle": "四川红薯粉条1斤手工川粉红苕地瓜干货", "title": "四川红薯粉条1斤手工川粉红苕地瓜干货粉丝麻辣烫火锅粉酸辣粉条", "url": "https://api.weixin.qq.com/channels/ec/product/add?access_token=64_Y-cVHZdDMcxtkpEOEFfN3-UCxUefrPVYFQ0xLkORvXI3iPAFILd0BsUEWyY9iQTsE_wZETWexsb2OUbLT2AFSSmxqpa_vEUQj451Ib_YZJOwsJhbkGa-Kgocq_m-QKTvbi2koKfNgWf-Av8-LKJhAJDQPO&service_id=2613854150732496900&specification_id=Advanced" }
2023-01-09保证金余额不足类目保证金应缴,无法上架商品 正在上线相关文案的补充
你好,视频号上架商品接口,未返回错误原因?https://developers.weixin.qq.com/doc/channels/API/product/listing.html 返回值: {"errcode":9401078,"errmsg":" rid: 63749f09-39c0d6cd-13057505"} 没有返回具体报错文案.. 请问这个是报的什么错
2022-11-16请更换一个out_sku_id提交
视频号小店添加商品 复制示例请求 一直返回10020051参数错误https://api.weixin.qq.com/channels/ec/product/add?access_token=ACCESS_TOKEN 请求参数示例[ 'out_product_id'=>'5756463', 'title'=>'这是个小东西', 'head_imgs'=>[ 'https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ' ], 'cats'=>[ ['cat_id'=>'135835'], ['cat_id'=>'135838'], ['cat_id'=>'128201'], ], 'skus'=>[ [ 'out_sku_id'=>'26746334', 'sale_price'=>100, 'market_price'=>1000, 'stock_num'=>10, 'sku_attrs'=>[ ['attr_key'=>'颜色','attr_value'=>'浪漫紫'] ], ] ] ]; 返回 {\"errcode\":10020051,\"errmsg\":\"参数错误 rid: 636e14e6-65cb777b-69a6f0e3\"}
2022-11-11请提供一下appid
使用标准版交易组件搜索商品接口时没有返回数据,只返回了数量,请问是怎么回事?API: https://api.weixin.qq.com/product/spu/search?access_token=xxxxxxxx - 发送数据: { "keyword": "书房", "source": 1, //默认1, 1: 小商店自营商品, 2:带货商品 "page": 1, "page_size": 10 } - 接收数据: { "spus": [], "total_num": 1 } 1.请问是怎么回事?数据是有效的,用获取商品那个接口能访问到 2.建议出一个根据分类或者类目查询商品的方法,不然后台设置那么多分类的功能没有用啊
2022-03-10收到你的建议,我们尽快完善该功能
小商店标准版交易组件,获取商品列表接口,返回图片链接是否可以拼接成缩略图?小商店标准版交易组件,同一个商品,调不同的接口,返回的图片链接不一致: 获取商品列表接口 返回的图片链接是:https://mmecimage.cn/p/wx4b68c555c1467a25/HBHx4iggCzP3oWA3qi_sTol-CRYCnaXNrG3My-Z2bA,不支持拼接缩略图; 搜索商品接口 返回的图片链接是:https://store.mp.video.tencent-cloud.com/161/20304/snscosdownload/SZ/reserved/61f1fb2e0000691e000000004f0c950b000000a000004f50,支持拼接成缩略图; 比如:https://store.mp.video.tencent-cloud.com/161/20304/snscosdownload/SZ/reserved/61f1fb2e0000691e000000004f0c950b000000a000004f50?imageView2/1/w/53/format/webp= 图片是原图而不是缩略图,会影响加载速度和浪费流量; https://mmecimage.cn/p 域名的图片是否支持缩略图,或者是否有接口可以直接转成https://store.mp.video.tencent-cloud.com域名的图片???
2022-02-22你好,请重试一下。
添加商品接口返回-216?添加商品接口返回{"errcode":-216,"errmsg":" rid: 620f963c-4defb8dc-7e4f5efe"},这是什么问题? 参数:{"sub_title":"","cats":[{"level":"1","cat_id":"1653"},{"level":"2","cat_id":"1654"},{"level":"3","cat_id":"1668"}],"skus":[{"out_sku_id":"1026154012398","stock_num":58,"market_price":80700,"out_product_id":"309981939184","thumb_img":"https://mmecimage.cn/p/wxca0b6ca9cfc44e7b/HBa-5q29o2kvhNJdjJawLskb1ctIVFI8OJH-qTMhOkg","sale_price":80700,"sku_code":"","barcode":"","sku_attrs":[{"attr_key":"尺寸","attr_value":"布料5.3成品5米高2.8打孔"}]},{"out_sku_id":"1026155468147","stock_num":64,"market_price":95700,"out_product_id":"309981939184","thumb_img":"https://mmecimage.cn/p/wxca0b6ca9cfc44e7b/HEkTk8gUKRYSUYCaYYTp86_B2nh-PuDb-yR1bZPhEVA","sale_price":95700,"sku_code":"","barcode":"","sku_attrs":[{"attr_key":"尺寸","attr_value":"布料6.3成品6.1宽高2.8打孔"}]},{"out_sku_id":"1026155468148","stock_num":64,"market_price":111600,"out_product_id":"309981939184","thumb_img":"https://mmecimage.cn/p/wxca0b6ca9cfc44e7b/HPkBs3OM5Nv6YuauhFtcWUMeArTbGbjf_CBgi9hwD4Q","sale_price":111600,"sku_code":"","barcode":"","sku_attrs":[{"attr_key":"尺寸","attr_value":"布料7.4成品7.3宽高2.8打孔"}]},{"out_sku_id":"1026156939353","stock_num":66,"market_price":131500,"out_product_id":"309981939184","thumb_img":"https://mmecimage.cn/p/wxca0b6ca9cfc44e7b/HBhz7aw6Yej5VXTDFhBfrPwIAs3fIJt6bIyfP5O-d_o","sale_price":131500,"sku_code":"","barcode":"","sku_attrs":[{"attr_key":"尺寸","attr_value":"布料8.6成品8.5宽高2.8打孔"}]}],"desc_info":{"imgs":[]},"head_img":["https://mmecimage.cn/p/wxca0b6ca9cfc44e7b/HN8UcFjAgseE2LEx1z7ofaHsOsvRFJGB5k-ZFZgNPQc"],"out_product_id":"309981939184","model":"","title":"国风成品窗帘高端无缝拼接成品窗帘中式新中式轻奢成品窗帘","express_info":{"template_id":30015157},"brand_id":2100000000,"attrs":[{"attr_key":"商品唯一编号","attr_value":"309981939184"}]}
2022-02-21请提供appid,商品id,商品图片url
自定义交易添加商品图片显示不了我们这边开发小程序自定义交易,商品上传图片后提交,等审核通过商品看不了[图片]
2021-11-04感谢反馈,我们将会更新此文档
注释有误https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent/API/spu/get_spu_list.html [图片] 文档注释有误。
2021-09-23