有赞新零售社区

发帖
API使用问题»订单里面如果有一件衣服申请退款那么自提码获取的信息错误

[API文档问题] 订单里面如果有一件衣服申请退款那么自提码获取的信息错误

c_hen 03-14 2314 浏览 8 评论 | 只看楼主 [打印]
订单里面如果有3件衣服,其中一件顾客申请了退款,那么我用自提码调用的结果里面就会没有另外两件衣服的信息
import com.youzan.open.sdk.gen.v3_0_0.api.YouzanTradeSelffetchcodeGet;
import com.youzan.open.sdk.gen.v3_0_0.model.YouzanTradeSelffetchcodeGetParams;
import com.youzan.open.sdk.gen.v3_0_0.model.YouzanTradeSelffetchcodeGetResult;

主要是调用了这3个sdk


用手机打开
收藏 ··· 回复
    请提供接口响应返回的zan-open开头的数字或者 yz7开头的数字
    • c_hen 03-14
      接口没有报错,返回结果被封装在YouzanTradeSelffetchcodeGetResult这个对象里面,只是这个对象存储的商品信息不对
    • 还是需要提供接口响应返回的zan-open开头的数字或者 yz7开头的数字,如果java无法提供,麻烦用postman测试,然后提供一下
    • c_hen 回复 风信子 03-15
      {"response":{"code":"58410439213","verify_person":"","use_time":"2024-03-12 10:27:10","total_count":0,"buy_way":10,"type":1,"tid":"E20240312102042073206213","extra_info":"","trade":{"consign_time":"2024-03-12 10:27:10","buyer_area":"江苏省扬州市","original_post_fee":"0.00","contract_id":2996697945940033582,"num":1,"adjust_fee":{"pay_change":"0.00","change":"0.00","post_change":"0.00"},"relation_type":"","type":"FIXED","order_mark":"","buyer_id":"11755185144","tid":"E20240312102042073206213","send_num":1,"feedback":101,"delivery_start_time":0,"outer_user_id":"oqLL05bNJpIJ6gm54LcWHbNOyoqs","qr_id":0,"price":"469.00","button_list":[{"tool_parameter":"{}","tool_type":"goto_native:trade_memo","create_time":"","tool_value":"","tool_title":"备注","new_sign":"0","tool_icon":"https://img.yzcdn.cn/upload_files/2015/08/28/FpO1UIXyOEZO026tWIgUOm9uZnT2.png"}],"total_fee":"1407.00","payment":"938.00","order_type":"0","weixin_user_id":"0","is_tuan_head":0,"lat":32.78427,"sub_trades":[],"delivery_time_display":"","buyer_message":"","delivery_end_time":0,"lng":119.48699,"created":"2024-03-12 10:20:42","kind":2,"delivery_list":[],"offline_id":"0","goods_kind":1,"status_str":"已完成","close_time":"","pay_time":"2024-03-12 10:20:51","group_no":"","shop_id":"0","out_trade_no":[],"points_price":0,"user_id":"9648039644","tuan_no":"","orders":[{"is_virtual":0,"outer_item_id":"812342801","pic_thumb_path":"https://img.yzcdn.cn/upload_files/2023/08/22/Fg9AilV4hSfkgCqbH3_v5beZCyKh.jpg?imageView2/2/w/200/h/0/q/75/format/jpg","item_type":0,"num":"1","refunded_fee":"0.00","num_iid":"3337682319","oid":0,"title":"笛莎Deesha 童装女童外套2023新款二合一羽绒内胆牛仔外套","fenxiao_payment":"0.00","discount_fee":"0.00","buyer_messages":[],"is_present":0,"price":"469.00","fenxiao_price":"0.00","total_fee":"469.00","alias":"2fvebmszan1szhb","payment":"469.00","outer_sku_id":"81234280135130","sku_unique_code":"333768231924733393606","is_send":1,"total_price":"312.67","item_id":"3337682319","sku_id":"24733393606","sku_properties_name":"颜色分类:牛仔兰35;身高参考:130cm","pic_path":"https://img.yzcdn.cn/upload_files/2023/08/22/Fg9AilV4hSfkgCqbH3_v5beZCyKh.jpg","item_refund_state":"NO_REFUND","state_str":"退款成功","unit":"件","order_promotion_details":[],"allow_send":1,"seller_nick":"笛莎公主衣橱"}],"promotion_details":[],"refund_state":"PARTIAL_REFUNDED","status":"TRADE_BUYER_SIGNED","post_fee":"0.00","pic_thumb_path":"https://img.yzcdn.cn/upload_files/2023/08/22/Fg9AilV4hSfkgCqbH3_v5beZCyKh.jpg?imageView2/2/w/200/h/0/q/75/format/jpg","invoice_title":"","receiver_city":"扬州市","shipping_type":"fetch","refunded_fee":"312.67","num_iid":"3337682319","title":"笛莎Deesha 童装女童外套2023新款二合一羽绒内胆牛仔外套","discount_fee":"0.00","buy_way_str":"","hotel_info":"","is_divided":"0","kdt_dimension_combine_id":"","pf_buy_way_str":"运费到付","receiver_state":"江苏省","update_time":"2024-03-12 10:28:07","coupon_details":[],"receiver_zip":"","receiver_name":"张丽","pay_type":"WEIXIN_DAIXIAO","fans_info":{"fans_type":"12991","buyer_id":"9648039644","fans_nickname":"桃之夭夭","fans_id":"11755185144"},"delivery_third_party_supported":false,"fetch_detail":{"shop_id":58881521,"fetcher_name":"张丽","shop_state":"江苏省","shop_mobile":"18360329991","shop_city":"扬州市","shop_district":"高邮市","fetcher_mobile":"18012313533","shop_name":"笛莎(江苏扬州高邮吾悦店)","shop_address":"(自提)(自提)高邮新城吾悦广场笛莎门店自提","fetch_time":"请按约定时间提货"},"transaction_tid":"2403121020432627340184","buyer_type":"12991","receiver_district":"高邮市","box_price":"0.00","pic_path":"https://img.yzcdn.cn/upload_files/2023/08/22/Fg9AilV4hSfkgCqbH3_v5beZCyKh.jpg","feedback_num":0,"receiver_mobile":"18012313533","sign_time":"2024-03-12 10:27:44","seller_flag":0,"buyer_nick":"桃之夭夭","service_phone":"0514-85761901","shop_type":"1","receiver_address":"(自提)(自提)高邮新城吾悦广场笛莎门店自提","trade_memo":"","relations":[],"outer_tid":"4200002153202403122260380538"},"can_fetch":1,"current_count":0,"pay_type":"微信支付","status":1}}   接口返回的信息 没有你说的这个两个值
    • 没有找到你提供相关日志,需要根据日志查询具体的问题
      提供接口响应返回的zan-open开头的数字或者 yz7开头的数字,如果java无法提供,麻烦用postman测试,然后提供一下

      并且您提供的日志跟你提供的接口返回参数数据对不上:
      import com.youzan.open.sdk.gen.v3_0_0.api.YouzanTradeSelffetchcodeGet;
      import com.youzan.open.sdk.gen.v3_0_0.model.YouzanTradeSelffetchcodeGetParams;
      import com.youzan.open.sdk.gen.v3_0_0.model.YouzanTradeSelffetchcodeGetResult;
    • c_hen 回复 风信子 03-18
      我就是用的Postman测试,难道我不能直接把自提码和对应的token发你们 你们自己测一下不就行了?
    • 这个接口确实有问题,但是这个接口在有赞官网已查询不到,所以暂不优化了
      如果查询订单核销状态,用该接口:https://doc.youzanyun.com/detail/API/0/939
      如果查询订单哪个商品已经退款,用该接口查询:
      1.youzan.trade.get.4.0.2获取订单退款的refund_id
      2.然后根据refund_id查询退款的商品:youzan.trade.refund.get.3.0.1
      3.oid参数判断退款的商品
    加载更多

    c_hen 青铜   03-18 | 只看该作者


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

      本版积分规则

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

      • 评分

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

      复制成功