Q1:做退款时,选择了退货退款,但是从交易结构上找不到是否退货的字段 。
Q2:未找到API上描述的退款ID, refund_id字段
- {
- "trade": {
- "num": 3,
- "goods_kind": 2,
- "num_iid": "339027764",
- "price": "0.01",
- "pic_path": "https://img.yzcdn.cn/upload_files/2017/05/31/Fqtn91S2kLmJVzuZl-SBAmom2IAD.png",
- "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",
- "title": "YZ测试商品01",
- "type": "FIXED",
- "discount_fee": "0.00",
- "order_type": "0",
- "status": "WAIT_BUYER_CONFIRM_GOODS",
- "status_str": "已发货",
- "refund_state": "PARTIAL_REFUNDING",
- "shipping_type": "express",
- "post_fee": "0.01",
- "total_fee": "0.03",
- "refunded_fee": "0.03",
- "payment": "0.04",
- "created": "2017-05-31 16:44:12",
- "update_time": "2017-06-01 19:39:52",
- "pay_time": "2017-05-31 16:44:35",
- "pay_type": "ALIPAY",
- "consign_time": "2017-06-01 19:34:52",
- "sign_time": "",
- "buyer_area": "上海市上海市",
- "seller_flag": 0,
- "buyer_message": "绿的买了两件",
- "orders": [
- {
- "alias": "3epatd7b9hpa7",
- "oid": 18100766,
- "outer_sku_id": "A2",
- "outer_item_id": "A",
- "title": "YZ测试商品01",
- "seller_nick": "季yi",
- "fenxiao_price": "0.00",
- "fenxiao_payment": "0.00",
- "price": "0.01",
- "total_fee": "0.02",
- "payment": "0.02",
- "discount_fee": "0.00",
- "sku_id": "36157908",
- "sku_unique_code": "33902776436157908",
- "sku_properties_name": "颜色:绿",
- "pic_path": "https://img.yzcdn.cn/upload_files/2017/05/31/Fqtn91S2kLmJVzuZl-SBAmom2IAD.png",
- "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",
- "item_type": 0,
- "buyer_messages": [],
- "order_promotion_details": [],
- "state_str": "退款成功",
- "allow_send": 1,
- "is_send": 1,
- "item_refund_state": "PARTIAL_REFUND",
- "is_virtual": 0,
- "is_present": 0,
- "refunded_fee": "0.02",
- "unit": "件",
- "num_iid": "339027764",
- "num": "2"
- },
- {
- "alias": "3epatd7b9hpa7",
- "oid": 18100767,
- "outer_sku_id": "A1",
- "outer_item_id": "A",
- "title": "YZ测试商品01",
- "seller_nick": "季yi",
- "fenxiao_price": "0.00",
- "fenxiao_payment": "0.00",
- "price": "0.01",
- "total_fee": "0.01",
- "payment": "0.01",
- "discount_fee": "0.00",
- "sku_id": "36157907",
- "sku_unique_code": "33902776436157907",
- "sku_properties_name": "颜色:红",
- "pic_path": "https://img.yzcdn.cn/upload_files/2017/05/31/Fqtn91S2kLmJVzuZl-SBAmom2IAD.png",
- "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",
- "item_type": 0,
- "buyer_messages": [],
- "order_promotion_details": [],
- "state_str": "退款成功",
- "allow_send": 0,
- "is_send": 0,
- "item_refund_state": "FULL_REFUND",
- "is_virtual": 0,
- "is_present": 0,
- "refunded_fee": "0.01",
- "unit": "件",
- "num_iid": "339027764",
- "num": "1"
- }
- ],
- "fetch_detail": null,
- "coupon_details": [],
- "promotion_details": [],
- "adjust_fee": {
- "change": "0.00",
- "pay_change": "0.00",
- "post_change": "0.00"
- },
- "sub_trades": [],
- "weixin_user_id": "0",
- "button_list": [
- {
- "tool_icon": "https://img.yzcdn.cn/upload_files/2015/08/28/FjeHlaPYCjO0KAgbJliv1FwCFSoj.png",
- "tool_title": "查看物流",
- "tool_value": "",
- "tool_type": "goto_webview:web",
- "tool_parameter": "{\"detail_url\":\"https://h5.youzan.com/v2/kdtapp/order/expresslist?order_no=E20170531164412049387683&kdt_id=19042303\",\"required_keys\":[\"access_token\"]}",
- "new_sign": "0",
- "create_time": ""
- },
- {
- "tool_icon": "https://img.yzcdn.cn/upload_files/2015/08/28/FpO1UIXyOEZO026tWIgUOm9uZnT2.png",
- "tool_title": "备注",
- "tool_value": "",
- "tool_type": "goto_native:trade_memo",
- "tool_parameter": "{}",
- "new_sign": "0",
- "create_time": ""
- }
- ],
- "feedback_num": 0,
- "trade_memo": "卖家同意退款",
- "fans_info": {
- "fans_nickname": "禾子么么",
- "fans_id": "3382827748",
- "buyer_id": "326958137",
- "fans_type": "2"
- },
- "buy_way_str": "",
- "pf_buy_way_str": "运费到付",
- "send_num": 1,
- "user_id": "326958137",
- "kind": 1,
- "relation_type": "",
- "relations": [],
- "out_trade_no": [],
- "group_no": "",
- "outer_user_id": "1722898990",
- "offline_id": "20605638",
- "shop_id": "0",
- "shop_type": "1",
- "points_price": 0,
- "delivery_start_time": 0,
- "delivery_end_time": 0,
- "tuan_no": "",
- "is_tuan_head": 0,
- "delivery_time_display": "",
- "hotel_info": "",
- "order_mark": "",
- "qr_id": 0,
- "buyer_nick": "禾子么么",
- "tid": "E20170531164412049387683",
- "buyer_type": "2",
- "buyer_id": "3382827748",
- "receiver_city": "上海市",
- "receiver_district": "黄浦区",
- "receiver_name": "季忆",
- "receiver_state": "上海市",
- "receiver_address": "蒙自路169号1号楼504室",
- "receiver_zip": "",
- "receiver_mobile": "18721812816",
- "feedback": 110,
- "outer_tid": "2017053121001004780220429227",
- "transaction_tid": "201705311644167642417683",
- "period_order_detail": null,
- "service_phone": ""
- }
- }
复制代码
本帖最后由 17898810072 于 2017-6-1 19:50 编辑
|