有赞新零售社区

发帖
API使用问题»商品更新失败

[API调用-商品/交易] 商品更新失败

Alex 2023-03-29 734 浏览 2 评论 | 只看楼主 [打印]  关闭
调用youzan.item.full.sku.update全量更新商品,返回:{"code":221130005,"message":"商品库商品-与规格定义中的笛卡尔积不相符","success":false,"trace_id":"yz7-0ae85be5-1680074604164-644298"},请问失败原因是什么,我把商品库里的尺码名称从国际码改为尺码,也不行


调用参数:
{"aPIParams":{"channel_sku_params":[{"channel":0,"channel_sku_list":[{"channel_sku_props":[{"prop_name":"颜色","prop_value_name":"白色"},{"prop_name":"尺码","prop_value_name":"M"}],"price":500000},{"channel_sku_props":[{"prop_name":"尺码","prop_value_name":"XXS"},{"prop_name":"颜色","prop_value_name":"白色"}],"price":280000,"sku_id":9885034533},{"channel_sku_props":[{"prop_name":"颜色","prop_value_name":"白色"},{"prop_name":"尺码","prop_value_name":"S"}],"price":500000},{"channel_sku_props":[{"prop_name":"颜色","prop_value_name":"白色"},{"prop_name":"尺码","prop_value_name":"L"}],"price":500000},{"channel_sku_props":[{"prop_name":"尺码","prop_value_name":"XS"},{"prop_name":"颜色","prop_value_name":"白色"}],"price":500000,"sku_id":9885034534}]},{"channel":1,"channel_sku_list":[{"channel_sku_props":[{"prop_name":"尺码","prop_value_name":"XXS"},{"prop_name":"颜色","prop_value_name":"白色"}],"price":390000,"sku_id":13670112113},{"channel_sku_props":[{"prop_name":"尺码","prop_value_name":"XS"},{"prop_name":"颜色","prop_value_name":"白色"}],"price":390000,"sku_id":13670112114}]}],"item_id":2028941580,"item_type":0,"sku_list":[{"barcode":"8500590120774","cost_price":500000,"is_sku_stock_num_edited":true,"price":500000,"sku_no":"8500590120774","sku_props":[{"prop_name":"颜色","prop_value_name":"白色"},{"prop_name":"尺码","prop_value_name":"M"}],"stock_num":0},{"barcode":"8500590120334","cost_price":280000,"delivery_price":0,"is_sku_stock_num_edited":false,"price":280000,"sku_id":9885034533,"sku_no":"8500590120334","sku_props":[{"prop_name":"尺码","prop_value_name":"XXS"},{"prop_name":"颜色","prop_value_name":"白色"}],"standard_price":0,"stock_num":2},{"barcode":"8500590120842","cost_price":500000,"is_sku_stock_num_edited":true,"price":500000,"sku_no":"8500590120842","sku_props":[{"prop_name":"颜色","prop_value_name":"白色"},{"prop_name":"尺码","prop_value_name":"S"}],"stock_num":0},{"barcode":"8500590120264","cost_price":500000,"is_sku_stock_num_edited":true,"price":500000,"sku_no":"8500590120264","sku_props":[{"prop_name":"颜色","prop_value_name":"白色"},{"prop_name":"尺码","prop_value_name":"L"}],"stock_num":0},{"barcode":"8500590120925","cost_price":500000,"delivery_price":0,"is_sku_stock_num_edited":false,"price":500000,"sku_id":9885034534,"sku_no":"8500590120925","sku_props":[{"prop_name":"尺码","prop_value_name":"XS"},{"prop_name":"颜色","prop_value_name":"白色"}],"standard_price":0,"stock_num":3}],"sku_picture_display_config":false,"sku_value_props":[]},"gateway":"https://open.youzanyun.com","headers":{},"httpMethod":"POST","name":"youzan.item.full.sku.update","oAuthType":"TOKEN","paramModelClass":"com.youzan.cloud.open.sdk.gen.v1_0_0.model.YouzanItemFullSkuUpdateParams","version":"1.0.0"}

用手机打开
收藏 ··· 回复
    千寻   有赞云团队   2023-03-30 | 只看该作者
    您好,该商品只发布了网店渠道,channel传0,或者不传,商品发了网店和门店渠道的,两者都需要传

      千寻   有赞云团队   2023-04-13 | 只看该作者
      您好,由于工单长时间未收到反馈,暂时置为完结状态,如果问题未解决,可以继续追问,如果有新的问题咨询,可以重新提交工单,感谢您的理解与支持。

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

        本版积分规则

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

        • 评分

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

        复制成功