有赞新零售社区

发帖
API使用问题»货品更新报错

[API调用-商品/交易] 货品更新报错

拍子 2023-12-04 1469 浏览 5 评论 | 只看楼主 [打印]
应用名称:  江南E柜丽晶ERP接口
应用Appld:  10003590
Clientld: ac5bf085b62ba54859
相关文档地址:  https://doc.youzanyun.com/detail/API/0/3002
问题描述: 更新货品信息,提示“请求参数错误 leafCategoryld不能为空“
但是在文档写的这个字段为非必填字段,请问是怎么回事
trace id:  无返回
日志:
截图/视频:
二方系统:[系统打通]
店铺ld:  129408206
店铺名称: 江南E柜
请求参数如下:
{"param":{"itemChannelParams":[{"noSaleKdtIds":null,"channelSkuList":[{"costPrice":null,"skuProps":[{"propNameId":11,"propValueId":33,"propName":"颜色","propValueName":"蓝色"},{"propNameId":112,"propValueId":1139,"propName":"尺码","propValueName":"29"}],"deliveryPrice":null,"price":33900,"standardPrice":null,"weight":null,"minGuidePrice":null,"maxGuidePrice":null}],"joinLevelDiscount":null,"itemPriceParam":null,"displayOnKdtIds":null,"tagIds":null,"itemProps":null,"displayOffKdtIds":null,"summary":null,"sellPoint":null,"title":"我是标题11","channel":1,"measurement":null}],"categoryParam":{"cid":null,"categoryProperties":{"privates":[{"proName":null,"valNames":["2023"],"id":114884},{"proName":null,"valNames":["夏"],"id":114885}],"publics":null,"leafCategoryId":null}},"presaleParam":null,"videoId":null,"itemDeliveryParam":null,"itemWeight":null,"joinLevelDiscount":null,"desc":"我是商品详情页","startSaleNum":null,"templateId":null,"itemNo":"123","skuValueProps":null,"itemProps":null,"skuList":[{"isSkuStockNumEdited":null,"weight":null,"barcode":null,"barcodes":null,"price":33900,"maxGuidePrice":null,"costPrice":null,"skuId":14499941734,"minGuidePrice":null,"stockNum":null,"deliveryPrice":null,"skuNo":"123-0-1","standardPrice":null,"prepareTime":null}],"autoListingTime":null,"nodeKdtId":null,"barcodes":null,"skuPictureDisplayConfig":null,"extraParam":null,"sizeGroupId":null,"messages":null,"isDisplay":null,"buyBtnLabel":null,"brandId":null,"detailEdit":null,"itemId":2776838951,"postSaleParam":null,"isStockNumEdited":null,"hideStock":0,"tagIds":null,"summary":null,"stockDeductMode":null,"itemPageSettingModel":null,"title":"我是标题","barcode":null,"purchasePermission":null,"specifications":null,"categoryId":null,"sellPoint":null,"imageIds":[6681410172],"itemPriceParam":null,"buyBtnConfig":null,"quantity":null,"prepareTime":null}}

用手机打开
收藏 ··· 回复
    千寻   有赞云团队   2023-12-04 | 只看该作者
    您好,您的问题已经受理,会尽快核实并与您同步。

      请求参数用法不对,"publics":null,"leafCategoryId":null,你的java,还是HTTP的? http不能用null标识,另外leafCategoryId没有这个字段
      • 拍子 2023-12-04
        用的java版,用的官网上的方法,调更新货品提示leafCategoryld不能为空。没有这个字段的话,怎么会提示它必须填呢
      • 拍子 2023-12-04
        https://doc.youzanyun.com/detail/API/0/3002 在这个地址模糊搜索leaf会发现有这个参数,但是不是必填
      • 千寻 回复 拍子 2023-12-05
        您好,您接口入参时传了category_properties类目属性填,leaf_category_id类目id也是必填。使用【youzan.category.listchildren】接口获取类目id 必须是叶子类目

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

      本版积分规则

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

      • 评分

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

      复制成功