简要描述:

  • 售后列表

请求域名:

  • http://xx.com

请求路由:

GET/&route=plugin.store-scan-code-meals.frontend.store-after-sales.index

请求参数说明:

参数名 类型 是否必需 说明
page int 分页 - 页码
order_sn string 按订单编号搜索
refund_id int 售后ID
order_goods_id int 订单商品ID

售后详情接口请求:

GET/&route=plugin.store-scan-code-meals.frontend.store-after-sales.detail

请求参数说明:

参数名 类型 是否必需 说明
refund_id int 售后ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 32,
                "refund_sn": "RN20250819161357VB",
                "refund_type": 0,
                "status": 0,
                "price": "836.00",
                "reason": "",
                "images": [],
                "content": "123456",
                "create_time": "2025-08-19 16:13:57",
                "reply": "",
                "reject_reason": "",
                "refund_way_type": 0,
                "apply_price": "836.00",
                "order_price": "0.00",
                "refund_proof_imgs": [],
                "refund_time": null,
                "refund_address": "",
                "remark": "",
                "operate_time": null,
                "send_time": null,
                "return_time": null,
                "end_time": "1970-01-01 08:00:00",
                "alipay_batch_sn": "",
                "receive_status": 0,
                "part_refund": 3,
                "freight_price": "0.00",
                "other_price": "0.00",
                "reject_time": null,
                "refund_type_name": "退款",
                "status_name": "待审核",
                "is_refunded": false,
                "is_refunding": true,
                "is_refund_fail": false,
                "plugin_id": 32,
                "receive_status_name": "未收到货",
                "refund_way_type_name": "自行寄回",
                "button_models": [
                    {
                        "name": "驳回",
                        "api": "plugin.store-scan-code-meals.frontend.store-after-sales.reject",
                        "value": -1
                    },
                    {
                        "name": "同意退款",
                        "api": "plugin.store-scan-code-meals.frontend.store-after-sales.agree-refund",
                        "value": 6
                    },
                    {
                        "name": "手动退款",
                        "api": "plugin.store-scan-code-meals.frontend.store-after-sales.consensus",
                        "value": 7
                    }
                ],
                "order": {
                    "id": 993,
                    "order_sn": "SN250819151973EC13",
                    "plugin_id": 32,
                    "status": 3,
                    "refund_id": 32,
                    "status_name": "交易完成",
                    "pay_type_name": "",
                    "process": [],
                    "has_one_pay_type": null,
                    "has_one_behalf_pay": null
                },
                "refund_order_goods": [
                    {
                        "id": 26,
                        "order_id": 993,
                        "refund_id": 32,
                        "order_goods_id": 983,
                        "resend_id": 0,
                        "refund_total": 8,
                        "refund_price": "792.00",
                        "send_num": 8,
                        "refund_type": 0,
                        "status": 0,
                        "goods_id": 264,
                        "goods_title": "点餐商品1",
                        "goods_option_title": "",
                        "goods_thumb": "http://demo.yun.cn/static/upload/images/6/2024/05/6baa2ebdbbc03f9632011014f6b215d4.jpg"
                    },
                    {
                        "id": 27,
                        "order_id": 993,
                        "refund_id": 32,
                        "order_goods_id": 984,
                        "resend_id": 0,
                        "refund_total": 2,
                        "refund_price": "44.00",
                        "send_num": 2,
                        "refund_type": 0,
                        "status": 0,
                        "goods_id": 265,
                        "goods_title": "猪脚",
                        "goods_option_title": "大份",
                        "goods_thumb": "http://demo.yun.cn/static/upload/images/6/2024/05/6baa2ebdbbc03f9632011014f6b215d4.jpg"
                    }
                ],
                "has_one_cstore_order": null
            }
        ],
        "to": 1,
        "total": 1
    }
}
参数名 类型 说明
id int 退款记录id
refund_type int 售后类型
refund_type_name string 售后类型名
status_name string 售后状态
refund_sn string 售后编号
order array 订单信息
order.order_sn string 订单编号
order.id int 订单Id
refund_order_goods array 售后商品组
button_models array 操作按钮组
refund_order_goods 类型 说明
order_goods_id int 订单商品ID
send_num int 商家未发货数量
refund_total int 申请售后数量
goods_title string 商品名称
goods_option_title string 商品规格名称
goods_thumb string 商品图片

button_models 操作按钮说明:

按钮名称 接口API
驳回 -1 plugin.store-scan-code-meals.frontend.store-after-sales.reject
同意退款 6 plugin.store-scan-code-meals.frontend.store-after-sales.agree-refund
手动退款 7 plugin.store-scan-code-meals.frontend.store-after-sales.consensus