有赞新零售社区

发帖
API使用问题»商品接口调用失败,后再调用又成功

[API调用-商品/交易] 商品接口调用失败,后再调用又成功

fc4898255e41 09-30 429 浏览 1 评论 | 只看楼主 [打印]


后台日志可以查到找不到商品,现在再调用,又是正常,不知道什么原因

curl -X POST -H 'content-type: application/json'  -d '{"item_id":"3111823644"}'  "https://open.youzanyun.com/api/youzan.item.detail.get/1.0.1?access_token=35fb708040e502d44474450435cfd7c"
{"trace_id":"yz7-0ae85be5-1727668821429-550192","code":200,"data":{"hide_stock":1,"post_sale_param":{"support_unconditional_return":false,"is_return_msg":false,"is_support_barter":0},"item_type":0,"category_properties":{"publics":[],"privates":[]},"item_barcode":"P240730880392553","need_customs_check":false,"created_time":1722327138000,"tag_ids":[277420801],"images":[{"image_url":"https://img01.yzcdn.cn/upload_files/2024/08/22/FkBTG5XFTftkwynRN9YvOXdfy1f-.JPG","image_id":7187727480}],"biz_code":"000000000000","sku_picture_display_config":false,"purchase_permission":{"quota_cycle":0,"purchase_right":false,"buy_quota":0},"stock_deduct_mode":0,"item_delivery_param":{"postage":0,"delivery_setting":{"city_delivery":false,"self_pick":false,"express":true,"heavy_continued":false},"delivery_template_id":3326708},"goods_platform":0,"channels":[],"spu":{"spu_id":14749327251},"messages":[],"root_item_id":3111827142,"item_page_setting_model":{"item_page_mode":""},"root_kdt_id":155694306,"extra_param":{"item_channel_extra":{"category_id":74894057}},"is_display":1,"cid":0,"desc":"","ability_mark_codes":[10038,10005,40003,30002,40008,10022,10012,20001,10021,40002,30007,40005,40016,40013,10020,10023],"item_props":[],"is_virtual":0,"template":{"template_title":"普通版","template_id":0},"detail_url":"https://h5.youzan.com/v2/showcase/goods?alias=1yjd9w31zgykcpg&from=wsc&kdtfrom=wsc","auto_listing_time":0,"item_price_param":{"origin":""},"title":"藏青色套装女大童21冬C121423803","join_level_discount":true,"buy_btn_label":"","item_no":"C121423803","actual_tag_ids":[277421774,278903614],"kdt_id":139516316,"alias":"1yjd9w31zgykcpg","need_customs_info":false,"summary":"","need_customs_info_with_picture":false,"quantity":170,"item_id":3111823644,"sku_value_props":[],"sold_num":0,"size_group":{"sizes":[]},"buy_btn_config":0,"start_sale_num":1,"sku_list":[{"sku_no":"C12142380370104","price":53900,"stock_num":70,"sku_created_time":1722327138000,"sku_id":14749327246,"sku_barcode":"C12142380370104","sku_modified_time":1726801612000,"sku_props":[{"prop_name":"颜色","prop_value_id":733,"prop_value_name":"藏青色","prop_name_id":1},{"prop_name":"尺码","prop_value_id":726,"prop_value_name":"120","prop_name_id":12}],"sold_num":0},{"sku_no":"C12142380370105","price":53900,"stock_num":39,"sku_created_time":1722327138000,"sku_id":14749327247,"sku_barcode":"C12142380370105","sku_modified_time":1726801612000,"sku_props":[{"prop_name":"颜色","prop_value_id":733,"prop_value_name":"藏青色","prop_name_id":1},{"prop_name":"尺码","prop_value_id":727,"prop_value_name":"130","prop_name_id":12}],"sold_num":0},{"sku_no":"C12142380370106","price":53900,"stock_num":29,"sku_created_time":1722327138000,"sku_id":14749327248,"sku_barcode":"C12142380370106","sku_modified_time":1726801612000,"sku_props":[{"prop_name":"颜色","prop_value_id":733,"prop_value_name":"藏青色","prop_name_id":1},{"prop_name":"尺码","prop_value_id":728,"prop_value_name":"140","prop_name_id":12}],"sold_num":0},{"sku_no":"C12142380370107","price":53900,"stock_num":19,"sku_created_time":1722327138000,"sku_id":14749327249,"sku_barcode":"C12142380370107","sku_modified_time":1726801612000,"sku_props":[{"prop_name":"颜色","prop_value_id":733,"prop_value_name":"藏青色","prop_name_id":1},{"prop_name":"尺码","prop_value_id":662,"prop_value_name":"150","prop_name_id":12}],"sold_num":0},{"sku_no":"C12142380370108","price":53900,"stock_num":13,"sku_created_time":1722327138000,"sku_id":14749327250,"sku_barcode":"C12142380370108","sku_modified_time":1726801612000,"sku_props":[{"prop_name":"颜色","prop_value_id":733,"prop_value_name":"藏青色","prop_name_id":1},{"prop_name":"尺码","prop_value_id":6231,"prop_value_name":"160","prop_name_id":12}],"sold_num":0}],"video_id":0},"success":true,"message":"successful"}


用手机打开
收藏 ··· 回复
    商品id:3111823644的商品用  迪迪鹿新品店 分店的token就可以获取到商品
    如果用总部的token,查询总部的商品,没有该商品就报商品不存在

    所以报商品不存在原因是token用错了,用迪迪鹿新品店 token查询商品id为3111823644 的商品

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

      本版积分规则

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

      • 评分

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

      复制成功