有赞新零售社区

发帖
API使用问题»无商品信息

[API调用-商品/交易] 无商品信息

杜胜 2023-09-28 540 浏览 4 评论 | 只看楼主 [打印]

{"trace_id":"yz7-0ae85be5-1695806903820-695298","code":234002001,"success":false,"message":"无商品信息: skuCode:{0}"}

这是缺哪个字段的信息呢?

用手机打开
收藏 ··· 回复
    千寻   有赞云团队   2023-09-28 | 只看该作者
    您好,spu_id参数校验失败,参数必填,不能为空!
    • 阿胜 2023-09-28
      https://open.youzanyun.com/api/youzan.retail.open.spu.update/3.0.0?access_token=58525c73f17e037e83779701dfd7919{"skus":[{"sku_code":"694202281310400000001","sku_no":"6942022813104","specs":[{"name":"规格","value":"混款19"}],"sku_id":null,"bar_codes":null,"standard_price":"19.00","retail_price":"19.00"}],"retail_price":"19.00","category_id":"3206447","spec_define_tuple":"[{\"key\":{\"k\":\"规格\",\"kId\":3},\"values\":[{\"v\":\"混款19\",\"vId\":302}]}]","spu_code":"07030100063","unit":"个","spu_no":"694202281310407030100063","name":"琳榔头原创和纸贴纸","retail_source":"HENGKHKERP"}
    • 阿胜 2023-09-28
      不是空值,帮忙查一下,是不是之前这个spu有过删除的记录呢?
    • 千寻 回复 杜胜 2023-09-28
      您好,您的开发者入参是{
      "unit": "个",
      "skus": [
      {
      "specs": [
      {
      "name": "规格",
      "value": "混款19"
      }
      ],
      "standard_price": "19.00",
      "sku_no": "6942022813104",
      "sku_code": "694202281310400000001",
      "retail_price": "19.00"
      }
      ],
      "retail_source": "HENGKHKERP",
      "category_id": "3206447",
      "spu_code": "07030100063",
      "spu_no": "694202281310407030100063",
      "name": "琳榔头原创和纸贴纸",
      "spec_define_tuple": "[{\"key\":{\"k\":\"规格\",\"kId\":3},\"values\":[{\"v\":\"混款19\",\"vId\":302}]}]",
      "retail_price": "19.00"
      }

      没有传spu_id,spu_id是必传参数,入参时必传参数都要传,参考文档详情:https://doc.youzanyun.com/detail/API/0/226

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

    本版积分规则

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

    • 评分

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

    复制成功