有赞新零售社区

发帖
API使用问题»零售单点-新增商品报错

[API调用-商品/交易] 零售单点-新增商品报错

Alex 2023-11-17 1007 浏览 5 评论 | 只看楼主 [打印]
调用接口:youzan.item.add.1.0.1
返回:  {"code":301000004,"message":"请求参数非法 零售商品条码关联商品不存在","success":false,"trace_id":"yz7-0a350a45-1700200199954-380088"}

参数:
{"aPIParams":{"param":{"category_param":{"category_properties":{"leaf_category_id":3983}},"desc":"<img src=\"http://img-oscs.opechk.com/good_img/28ca42bcfb82b2f4865bbbc53e1634cf.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/b43637df4a01ee692c2b639041153d55.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/6446d210fe58895d0ee9ebee785f8189.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/31e15a8aa2c501d29acbc19f2e5f4067.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/291b2645e65ea666bb7faae7efffc691.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/e22a45e4349b01215f6cf35a53e47ba4.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/66847fa9bdba20a9af02961428f05ae5.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/ea83e62a5d8010ff2e5336444c201d35.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/72ea4b3d9a00c56295e80bcd8d6175cf.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/ca36def6e2e19ce2db72651d20f37a24.JPG\" />","extra_param":{"retail_param":{"is_multi_unit":true,"sell_type":1}},"hide_stock":1,"image_ids":[6931293549,6651437042,6931293560,6651437212,6651437179],"is_display":0,"item_delivery_param":{"delivery_setting":{"city_delivery":false,"express":true,"self_pick":false},"postage":0},"item_no":"32F8GF5M2B-CLEMENTINE","item_price_param":{"price":999},"item_type":0,"join_level_discount":1,"sell_point":"MICHAEL KORS 女士棕色单肩包 32F8GF5M2B-CLEMENTINE","sku_list":[{"barcode":"8500033401249","cost_price":83400,"price":99900,"sku_no":"8500033401249","sku_props":[{"prop_name":"颜色","prop_value_name":"棕色"},{"prop_name":"尺码","prop_value_name":"均码"}],"stock_num":3}],"summary":"MICHAEL KORS 女士棕色单肩包 32F8GF5M2B-CLEMENTINE","title":"MICHAEL KORS 女士棕色单肩包 32F8GF5M2B-CLEMENTINE"}},"gateway":"https://open.youzanyun.com","headers":{},"httpMethod":"POST","name":"youzan.item.add","oAuthType":"TOKEN","paramModelClass":"com.youzan.cloud.open.sdk.gen.v1_0_0.model.YouzanItemAddParams","version":"1.0.0"}
用手机打开
收藏 ··· 回复
    smile   黄金   2023-11-18 | 只看该作者
    您好,可以参考:https://doc.youzanyun.com/resource/doc/5220/5220再试一下
    • Alex 2023-11-20
      按照文档里的参数 加上之后,还是这个报错
    • Alex 回复 Alex 2023-11-20
      {"aPIParams":{"param":{"category_param":{"category_properties":{"leaf_category_id":3983}},"desc":"<img src=\"http://img-oscs.opechk.com/good_img/28ca42bcfb82b2f4865bbbc53e1634cf.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/b43637df4a01ee692c2b639041153d55.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/6446d210fe58895d0ee9ebee785f8189.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/31e15a8aa2c501d29acbc19f2e5f4067.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/291b2645e65ea666bb7faae7efffc691.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/e22a45e4349b01215f6cf35a53e47ba4.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/66847fa9bdba20a9af02961428f05ae5.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/ea83e62a5d8010ff2e5336444c201d35.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/72ea4b3d9a00c56295e80bcd8d6175cf.JPG\" /><img src=\"http://img-oscs.opechk.com/good_img/ca36def6e2e19ce2db72651d20f37a24.JPG\" />","extra_param":{"retail_param":{"is_multi_unit":true,"sell_type":1}},"hide_stock":1,"image_ids":[6931293549,6651437042,6931293560,6651437212,6651437179],"is_display":0,"item_delivery_param":{"delivery_setting":{"city_delivery":false,"express":true,"self_pick":false},"postage":0},"item_no":"32F8GF5M2B-CLEMENTINE","item_price_param":{"price":999},"item_type":0,"join_level_discount":1,"post_sale_param":{"refund_param":{"refund_type":1}},"sell_point":"MICHAEL KORS 女士棕色单肩包 32F8GF5M2B-CLEMENTINE","sku_list":[{"barcode":"8500033401249","cost_price":83400,"price":99900,"sku_no":"8500033401249","sku_props":[{"prop_name":"颜色","prop_value_name":"棕色"},{"prop_name":"尺码","prop_value_name":"均码"}],"stock_num":1}],"stock_deduct_mode":1,"summary":"MICHAEL KORS 女士棕色单肩包 32F8GF5M2B-CLEMENTINE","title":"MICHAEL KORS 女士棕色单肩包 32F8GF5M2B-CLEMENTINE"}},"gateway":"https://open.youzanyun.com","headers":{},"httpMethod":"POST","name":"youzan.item.add","oAuthType":"TOKEN","paramModelClass":"com.youzan.cloud.open.sdk.gen.v1_0_0.model.YouzanItemAddParams","version":"1.0.0"}

    Alex 白银   2023-11-23 | 只看该作者
    微商城转为零售单店  还要改哪些参数呢

      Alex 白银   2023-11-24 | 只看该作者
      调用youzan.retail.open.spu.create成功之后,再调用item.add还是这个报错

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

        本版积分规则

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

        • 评分

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

        复制成功