有赞新零售社区

发帖
API使用问题»交易结构中找不到是否退货字段

交易结构中找不到是否退货字段

70247812ed23 2017-06-02 2087 浏览 1 评论 | 只看楼主 [打印]
接口相关
店铺名称: 季yi
Q1:做退款时,选择了退货退款,但是从交易结构上找不到是否退货的字段 。
Q2:未找到API上描述的退款ID, refund_id字段

  1. {
  2.   "trade": {
  3.     "num": 3,
  4.     "goods_kind": 2,
  5.     "num_iid": "339027764",
  6.     "price": "0.01",
  7.     "pic_path": "https://img.yzcdn.cn/upload_files/2017/05/31/Fqtn91S2kLmJVzuZl-SBAmom2IAD.png",
  8.     "pic_thumb_path": "https://img.yzcdn.cn/upload_files/2017/05/31/Fqtn91S2kLmJVzuZl-SBAmom2IAD.png?imageView2/2/w/200/h/0/q/75/format/png",
  9.     "title": "YZ测试商品01",
  10.     "type": "FIXED",
  11.     "discount_fee": "0.00",
  12.     "order_type": "0",
  13.     "status": "WAIT_BUYER_CONFIRM_GOODS",
  14.     "status_str": "已发货",
  15.     "refund_state": "PARTIAL_REFUNDING",
  16.     "shipping_type": "express",
  17.     "post_fee": "0.01",
  18.     "total_fee": "0.03",
  19.     "refunded_fee": "0.03",
  20.     "payment": "0.04",
  21.     "created": "2017-05-31 16:44:12",
  22.     "update_time": "2017-06-01 19:39:52",
  23.     "pay_time": "2017-05-31 16:44:35",
  24.     "pay_type": "ALIPAY",
  25.     "consign_time": "2017-06-01 19:34:52",
  26.     "sign_time": "",
  27.     "buyer_area": "上海市上海市",
  28.     "seller_flag": 0,
  29.     "buyer_message": "绿的买了两件",
  30.     "orders": [
  31.       {
  32.         "alias": "3epatd7b9hpa7",
  33.         "oid": 18100766,
  34.         "outer_sku_id": "A2",
  35.         "outer_item_id": "A",
  36.         "title": "YZ测试商品01",
  37.         "seller_nick": "季yi",
  38.         "fenxiao_price": "0.00",
  39.         "fenxiao_payment": "0.00",
  40.         "price": "0.01",
  41.         "total_fee": "0.02",
  42.         "payment": "0.02",
  43.         "discount_fee": "0.00",
  44.         "sku_id": "36157908",
  45.         "sku_unique_code": "33902776436157908",
  46.         "sku_properties_name": "颜色:绿",
  47.         "pic_path": "https://img.yzcdn.cn/upload_files/2017/05/31/Fqtn91S2kLmJVzuZl-SBAmom2IAD.png",
  48.         "pic_thumb_path": "https://img.yzcdn.cn/upload_files/2017/05/31/Fqtn91S2kLmJVzuZl-SBAmom2IAD.png?imageView2/2/w/200/h/0/q/75/format/png",
  49.         "item_type": 0,
  50.         "buyer_messages": [],
  51.         "order_promotion_details": [],
  52.         "state_str": "退款成功",
  53.         "allow_send": 1,
  54.         "is_send": 1,
  55.         "item_refund_state": "PARTIAL_REFUND",
  56.         "is_virtual": 0,
  57.         "is_present": 0,
  58.         "refunded_fee": "0.02",
  59.         "unit": "件",
  60.         "num_iid": "339027764",
  61.         "num": "2"
  62.       },
  63.       {
  64.         "alias": "3epatd7b9hpa7",
  65.         "oid": 18100767,
  66.         "outer_sku_id": "A1",
  67.         "outer_item_id": "A",
  68.         "title": "YZ测试商品01",
  69.         "seller_nick": "季yi",
  70.         "fenxiao_price": "0.00",
  71.         "fenxiao_payment": "0.00",
  72.         "price": "0.01",
  73.         "total_fee": "0.01",
  74.         "payment": "0.01",
  75.         "discount_fee": "0.00",
  76.         "sku_id": "36157907",
  77.         "sku_unique_code": "33902776436157907",
  78.         "sku_properties_name": "颜色:红",
  79.         "pic_path": "https://img.yzcdn.cn/upload_files/2017/05/31/Fqtn91S2kLmJVzuZl-SBAmom2IAD.png",
  80.         "pic_thumb_path": "https://img.yzcdn.cn/upload_files/2017/05/31/Fqtn91S2kLmJVzuZl-SBAmom2IAD.png?imageView2/2/w/200/h/0/q/75/format/png",
  81.         "item_type": 0,
  82.         "buyer_messages": [],
  83.         "order_promotion_details": [],
  84.         "state_str": "退款成功",
  85.         "allow_send": 0,
  86.         "is_send": 0,
  87.         "item_refund_state": "FULL_REFUND",
  88.         "is_virtual": 0,
  89.         "is_present": 0,
  90.         "refunded_fee": "0.01",
  91.         "unit": "件",
  92.         "num_iid": "339027764",
  93.         "num": "1"
  94.       }
  95.     ],
  96.     "fetch_detail": null,
  97.     "coupon_details": [],
  98.     "promotion_details": [],
  99.     "adjust_fee": {
  100.       "change": "0.00",
  101.       "pay_change": "0.00",
  102.       "post_change": "0.00"
  103.     },
  104.     "sub_trades": [],
  105.     "weixin_user_id": "0",
  106.     "button_list": [
  107.       {
  108.         "tool_icon": "https://img.yzcdn.cn/upload_files/2015/08/28/FjeHlaPYCjO0KAgbJliv1FwCFSoj.png",
  109.         "tool_title": "查看物流",
  110.         "tool_value": "",
  111.         "tool_type": "goto_webview:web",
  112.         "tool_parameter": "{\"detail_url\":\"https://h5.youzan.com/v2/kdtapp/order/expresslist?order_no=E20170531164412049387683&kdt_id=19042303\",\"required_keys\":[\"access_token\"]}",
  113.         "new_sign": "0",
  114.         "create_time": ""
  115.       },
  116.       {
  117.         "tool_icon": "https://img.yzcdn.cn/upload_files/2015/08/28/FpO1UIXyOEZO026tWIgUOm9uZnT2.png",
  118.         "tool_title": "备注",
  119.         "tool_value": "",
  120.         "tool_type": "goto_native:trade_memo",
  121.         "tool_parameter": "{}",
  122.         "new_sign": "0",
  123.         "create_time": ""
  124.       }
  125.     ],
  126.     "feedback_num": 0,
  127.     "trade_memo": "卖家同意退款",
  128.     "fans_info": {
  129.       "fans_nickname": "禾子么么",
  130.       "fans_id": "3382827748",
  131.       "buyer_id": "326958137",
  132.       "fans_type": "2"
  133.     },
  134.     "buy_way_str": "",
  135.     "pf_buy_way_str": "运费到付",
  136.     "send_num": 1,
  137.     "user_id": "326958137",
  138.     "kind": 1,
  139.     "relation_type": "",
  140.     "relations": [],
  141.     "out_trade_no": [],
  142.     "group_no": "",
  143.     "outer_user_id": "1722898990",
  144.     "offline_id": "20605638",
  145.     "shop_id": "0",
  146.     "shop_type": "1",
  147.     "points_price": 0,
  148.     "delivery_start_time": 0,
  149.     "delivery_end_time": 0,
  150.     "tuan_no": "",
  151.     "is_tuan_head": 0,
  152.     "delivery_time_display": "",
  153.     "hotel_info": "",
  154.     "order_mark": "",
  155.     "qr_id": 0,
  156.     "buyer_nick": "禾子么么",
  157.     "tid": "E20170531164412049387683",
  158.     "buyer_type": "2",
  159.     "buyer_id": "3382827748",
  160.     "receiver_city": "上海市",
  161.     "receiver_district": "黄浦区",
  162.     "receiver_name": "季忆",
  163.     "receiver_state": "上海市",
  164.     "receiver_address": "蒙自路169号1号楼504室",
  165.     "receiver_zip": "",
  166.     "receiver_mobile": "18721812816",
  167.     "feedback": 110,
  168.     "outer_tid": "2017053121001004780220429227",
  169.     "transaction_tid": "201705311644167642417683",
  170.     "period_order_detail": null,
  171.     "service_phone": ""
  172.   }
  173. }
复制代码



本帖最后由 17898810072 于 2017-6-1 19:50 编辑
用手机打开
收藏 ··· 回复
    有赞-饭团   游客   2017-06-03 | 只看该作者
    1、当主订单状态为status=WAIT_SELLER_SEND_GOODS并且feedback=101维权处理中时,属于待发货且申请退款的订单
    当主订单状态为status=WAIT_BUYER_CONFIRM_GOODS或TRADE_BUYER_SIGNED并且feedback=101维权处理中时,属于已发货且申请退款退货的订单
    2、代码里直接execute或用测试工具测试,是有refund_id的,"refund_id":"W1706011938143925"

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

      本版积分规则

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

      • 评分

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

      复制成功