简要描述:

  • 退款申请列表

请求域名:

请求URL:

GET/plugin.customer-center.frontend.controllers.customer.refund-apply

参数:

参数名 是否必须 类型 说明
pagesize int 分页 - 每页数量; 默认是 5
page int 分页 - 页码
member_id int 用户id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "total": 1,
        "per_page": "100",
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 1,
        "data": [
            {
                "id": 20,
                "refund_sn": "",
                "price": "369.00",
                "reason": "不要了",
                "images": [],
                "content": "",
                "create_time": "1970-01-01 08:00:00",
                "status": 0,
                "reply": "",
                "refund_way_type": 0,
                "apply_price": "0.00",
                "order_price": "0.00",
                "refund_type": 0,
                "refund_proof_imgs": [],
                "refund_time": "1970-01-01 08:00:00",
                "refund_address": "",
                "remark": "",
                "operate_time": "1970-01-01 08:00:00",
                "send_time": "1970-01-01 08:00:00",
                "return_time": "1970-01-01 08:00:00",
                "refund_express_company_code": "",
                "refund_express_company_name": "",
                "refund_express_sn": "",
                "refund_address_id": 0,
                "end_time": "1970-01-01 08:00:00",
                "alipay_batch_sn": "",
                "refund_type_name": "退款(仅退款不退货)",
                "status_name": "待审核",
                "order": {
                    "id": 179,
                    "order_sn": "sn1491907177",
                    "price": "369.00",
                    "goods_price": "369.00",
                    "order_goods_price": "369.00",
                    "dispatch_price": "0.00",
                    "discount_price": "0.00",
                    "deduction_price": "0.00",
                    "goods_total": 1,
                    "status": 0,
                    "cancel_pay_time": "1970-01-01 08:00:00",
                    "cancel_send_time": "1970-01-01 08:00:00",
                    "dispatch_type_id": 0,
                    "pay_type_id": 0,
                    "status_name": "待付款",
                    "pay_type_name": "未支付",
                    "button_models": [
                        {
                            "name": "付款",
                            "api": "order.operation.pay",
                            "value": 1
                        },
                        {
                            "name": "取消订单",
                            "api": "order.operation.close",
                            "value": 9
                        }
                    ],
                    "has_one_pay_type": {
                        "id": 0,
                        "name": "未支付",
                        "plugin_id": 0
                    }
                }
            }
        ]
    }
}

错误时返回:

  • 缺少访问参数 - 订单ID
{
    "result": 0, 
    "msg": "缺少访问参数", 
    "data": [ ]
}
  • 未找到数据
{
    "result": 0, 
    "msg": "未找到数据", 
    "data": [ ]
}

返回参数说明:

参数名 类型 说明
id array 退款记录id
refund_type string 退款类型名
reason array 退款理由
price decimal 退款金额
order array 订单信息
order 类型 说明

备注: