有赞新零售社区

发帖
API使用问题»创建商品提示“请求参数非法 零售扩展参数为空”

[API调用-商品/交易] 创建商品提示“请求参数非法 零售扩展参数为空”

? ? ? 2023-08-10 540 浏览 3 评论 | 只看楼主 [打印]  关闭
入参:{"title":"\u95ea\u5ba2\u7535\u70ed\u868a\u9999\u7247\u5bb6\u7528\u9152\u5e97\u5bbe\u9986\u65e0\u5473\u9a71\u868a\u7247\u901a\u7528\u52a0\u70ed\u5668\u7ec4\u5408\u88c5\u5382\u5bb6","type":"0","out_num_iid":"615981231831","template_id":{"id":3213730,"setting":{"express":true}},"approve_status":"1","item_price_param":{"price":2100},"pic_path":[6448135976,6448135982,6515579973,6515580086,6515580150],"desc":"<div id=\"offer-template-0\"><\/div>,\r<p>\u00a0<\/p>\r<div style=\"font-size: 0;line-height: 0;\" title=\"SHOPTOOL_POSITION_TOP_BEGIN\">\u00a0<\/div>\r<div style=\"font-size: 0;line-height: 0;\" title=\"SHOPTOOL_\u5173\u8054\u8425\u9500_333861_BEGIN\">\u00a0<\/div>\r<p><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FsJz2LQ3TTIgT2wTxjJt1dz7TAD5.jpg\" alt=\"\u67ef\u5eb7\u9632\u868a\u6db2_1\"\/><br class=\"img-brk\"\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FhIROwmizVbefrhTxpHmOGhsTBeC.jpg\" alt=\"\u67ef\u5eb7\u9632\u868a\u6db2_2\"\/><br class=\"img-brk\"\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FvC5-3obkC5zoUCwIbsb1CKWDVfr.jpg\" alt=\"USB_06\"\/><br\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FvsX-tY6T9LfkW46bJC2Hr9rgQaQ.jpg\" alt=\"\u7535\u868a\u9999\u72472_03\"\/><br\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FjfV5aDVltEMB--Tttpd5yKbGHww.jpg\" alt=\"\u7535\u868a\u9999\u72472_04\"\/><br\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FgC6sDdqz2_zgIDKd4rt7_XL6qQV.jpg\" alt=\"\u7535\u868a\u9999\u72472_05\"\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/Fn1-_l8_THhEPtpAGPEdVbLiZIae.jpg\" alt=\"\u4e94\u5927\u4f18\u52bf1\"\/><br\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FvgSvcXk691AC2UZb7WzuuHB4IYQ.jpg\" alt=\"\u4e94\u5927\u4f18\u52bf\"\/><br\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FplhaS-Why7PJVc__d6nK6A9kN-b.jpg\" alt=\"\u7535\u868a\u9999\u72472_08\"\/><br\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FhZOye8o2amPLbTpHRnfVsvBqcNI.jpg\" alt=\"\u4e94\u5927\u4f18\u52bf2\"\/><br\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FpRzPwMBoA8jeMMiOYmmCyT-UY9n.jpg\" alt=\"\u7535\u868a\u9999\u72472_10\"\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FuE4bJ7iT5AdtDJlxEMiIrDpR16D.jpg\" alt=\"\u4e94\u5927\u4f18\u52bf3\"\/><br\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FqAygV_ui_TW7vLPqvp5YDyrLRHt.jpg\" alt=\"USB_11\"\/><br\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FrI_KJ8t2V3bmwQp7BuSSwEhJZIH.jpg\" alt=\"USB_12\"\/><br\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/Fmi4Z1UiPh4QZbGVIj4jrOll44dY.jpg\" alt=\"USB_13\"\/><br\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FoXMhjvvkeyzjclpXOyrMOuCjUUs.jpg\" alt=\"\u7535\u868a\u9999\u72472_17\"\/><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/Fmvcsy7nXpV6UIXAEPTf0McWv9rc.jpg\" alt=\"1\"\/><\/p>\r<p><img src=\"https:\/\/img01.yzcdn.cn\/upload_files\/2023\/08\/08\/FhqWcI_fGHQuZsCjvVtwlaT-aEQm.jpg\" alt=\"d9f78c5baf77ea1facffd70d4c03f3\"\/><br class=\"img-brk\"\/><br class=\"img-brk\"\/><\/p>","cid":"2007","cat_name":"\u5783\u573e\u888b","weight":1,"num":3999996,"props":null,"category_param":{"category_properties":{"leaf_category_id":2007,"publics":[],"privates":[]}},"post_sale_param":{"support_unconditional_return":false},"presale_param":{"pre_sale_type":-1},"sku_value_props":[{"attributeValue":"\u5355\u4e2a\u868a\u9999\u7247\u52a0\u70ed\u5668","img_id":6515580489,"attributeValueId":100000},{"attributeValue":"3\u76d2\u868a\u9999\u7247+1\u52a0\u70ed\u5668","img_id":6448136556,"attributeValueId":100001},{"attributeValue":"5\u76d2\u868a\u9999\u7247+2\u4e2a\u52a0\u70ed\u5668","img_id":6515580703,"attributeValueId":100002},{"attributeValue":"\u5355\u76d2\u868a\u9999\u7247","img_id":6448136723,"attributeValueId":100003}],"sku_picture_display_config":true,"sku_list":[{"attributes":[{"attributeValue":"\u5355\u4e2a\u868a\u9999\u7247\u52a0\u70ed\u5668","attributeName":"\u989c\u8272","isMainProp":"1","propVersion":"1","attributeId":3216,"attributeValueId":100000}],"amountOnSale":999999,"price":2200,"cargoNumber":"0622-1","skuImageUrl":6515580489},{"attributes":[{"attributeValue":"3\u76d2\u868a\u9999\u7247+1\u52a0\u70ed\u5668","attributeName":"\u989c\u8272","isMainProp":"1","propVersion":"1","attributeId":3216,"attributeValueId":100001}],"amountOnSale":999999,"price":3000,"cargoNumber":"0622-1","skuImageUrl":6448136556},{"attributes":[{"attributeValue":"5\u76d2\u868a\u9999\u7247+2\u4e2a\u52a0\u70ed\u5668","attributeName":"\u989c\u8272","isMainProp":"1","propVersion":"1","attributeId":3216,"attributeValueId":100002}],"amountOnSale":999999,"price":3900,"cargoNumber":"0622-1","skuImageUrl":6515580703},{"attributes":[{"attributeValue":"\u5355\u76d2\u868a\u9999\u7247","attributeName":"\u989c\u8272","isMainProp":"1","propVersion":"1","attributeId":3216,"attributeValueId":100003}],"amountOnSale":999999,"price":2100,"cargoNumber":"0622-1","skuImageUrl":6448136723}],"access_token":"f43332bfcdbfec9a0532211db89c4b7","retail_param":{"sell_type":1,"is_multi_unit":false}}
用手机打开
收藏 ··· 回复
    千寻   有赞云团队   2023-08-10 | 只看该作者
    您好,这个错误是系统没有读取到retail_param 字段的相关信息,这边查询到retail_param 不是在extra_param 字段下的,即层级不对。需要您仔细阅读文档,把相关的字段层级入参正确
    您使用的版本是youzan.item.add.1.0.0
    参考文档https://doc.youzanyun.com/detail/API/0/1113

    1跳至
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    复制链接
    新浪微博
    QQ空间
    微信扫码
    • 回复

    • 评分

    客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

    复制成功