有赞新零售社区

发帖
API使用问题»订单查询失败的问题

[API调用-会员/营销] 订单查询失败的问题

078bbcd306b8 06-15 1280 浏览 4 评论 | 只看楼主 [打印]
在调用youzan.trade.order.out.create.3.0.1 外部订单开单接口,他返回给我创建订单完成,并返回给我有赞的订单id

但我紧接着就拿该订单id tradeGet去查询有赞的订单数据,  却被返回 订单查询失败

tradeGet根据有赞订单id查询数据;返回:{"code":5000,"data":{"custom_item_infos":[],"delivery_order":[],"full_order_info":{"child_info":{"child_orders":[]},"orders":[],"pay_info":{"phase_payments":[]}},"order_promotion":{"item":[],"order":[],"order_paid_promotion":[]},"refund_order":[]},"message":"订单查询失败","success":false,"trace_id":"zan-open-sdk-b8630a09-5b89-4c16-98d6-bc6cc38912e3"}

这一单是12号的单子,但我今天14号查询这个单子 -tradeGet根据有赞订单id查询数据;请求:E20240612145616085300055

他返回给我

- tradeGet根据有赞订单id查询数据;返回:{"code":200,"data":{"custom_item_infos":[],"delivery_order":[],"full_order_info":{"address_info":{"address_extra":"{}","delivery_address":"","delivery_city":"","delivery_district":"","delivery_postal_code":"","delivery_province":"","receiver_name":"","receiver_tel":"","self_fetch_info":"$wODXQVslZcZeF07CzPE1eZgJbj0Bc0QVegz0Z1adAnNJMZ2izFntTTI/6ncimUTKAfkFs5WEVVI9BRk/UV4c8s+/zBWCNXEn5/EYe92l0BDpmgzSq+86u56WOwnLLWgdaZ/rARZd9LotFW/YaSVfJwFSrOgB1NLkwlnU60FeKrGx9KdhhRgGi68Pl04D2G9S$1$"},"buyer_info":{"buyer_phone":"$2u8F94jGYcHcQeyGz142sA==$1$","fans_id":0,"fans_nickname":"","fans_type":0,"outer_user_id":"","yz_open_id":"a6edZZOh688229627025436672"},"child_info":{"child_orders":[]},"order_info":{"channel_type":100,"close_type":0,"created":1718175319000,"express_type":1,"is_retail_order":false,"node_kdt_id":154887006,"order_extra":{"buyer_name":"$LdcS6BehlDPFDLXKQDiLbA==$1$","is_from_cart":"false","open_source":"{\"tradeChannel\":{\"commonChannel\":\"POS\"},\"tradeMark\":\"POS\"}"},"order_tags":{"is_member":true,"is_payed":true,"is_secured_transactions":true},"pay_time":1718175369000,"pay_type":203,"pay_type_desc":"外部支付","pay_type_str":"OUTSIDE_PAYMENT","refund_state":0,"root_kdt_id":105481348,"shop_display_no":"RSTM002","shop_name":"RESIMPLE特卖(厦门SM)","status":"TRADE_SUCCESS","status_str":"已完成","success_time":1718175377000,"team_type":0,"tid":"E20240612145616085300055","type":0,"update_time":1718175444000},"orders":[{"alias":"26vrwe5gosjckcw","buyer_messages":"","cross_border_trade_mode":"","customs_code":"","discount_price":"0.00","fenxiao_payment":"0.00","fenxiao_price":"0.00","goods_date":"","goods_snapshot":"https://h5.youzan.com/v2/showcase/goodsSnap?order_no=E20240612145616085300055&alias=26vrwe5gosjckcw&goods_id=2718910105&snap_key=","goods_url":"https://h5.youzan.com/v2/showcase/goods?alias=26vrwe5gosjckcw","is_cross_border":"","is_pre_sale":"","is_present":false,"is_price_calendar":"","item_barcode":"","item_id":2718910105,"item_no":"IPD0700312","item_props":"[]","item_sales_staff":["



所以我怀疑 是不是在刚创建完订单的几秒内 去查询订单 会有概率是订单查询失败的?
用手机打开
收藏 ··· 回复
    尊敬的有赞用户 您好,我们已收到您的问题,并已安排相关技术支持正在处理中,请耐心等待。建议您留言邮箱地址,问题进度将通过邮件提醒方式触达,减少论坛等待时间。

    核实中,有结论论坛回复

      已经核实:非实时接口,可以延迟一会再进行查询

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

        本版积分规则

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

        • 评分

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

        复制成功