简要描述:
- 退款申请列表
请求域名:
请求URL:
GET:route=refund.list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page_size | 否 | int | 分页 - 每页数量; 默认是 20 |
page | 否 | int | 分页 - 页码 |
order_sn | 否 | string | 按订单编号搜索 |
refund_id | 否 | int | 售后ID |
order_goods_id | 否 | int | 订单商品ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"current_page": 1,
"data": [
{
"id": 5,
"refund_sn": "RN20221028100613g9",
"refund_type": 0,
"status": 0,
"price": "301.00",
"reason": "",
"images": [],
"content": "测试申请退款",
"create_time": "2022-10-28 10:06:13",
"reply": "",
"reject_reason": "",
"refund_way_type": 0,
"apply_price": "301.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": 0,
"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": 0,
"receive_status_name": "未收到货",
"refund_way_type_name": "自行寄回",
"button_models": [
{
"name": "修改申请",
"api": "refund.edit.index",
"value": 1
},
{
"name": "取消申请",
"api": "refund.operation.cancel",
"value": 4
}
],
"order": {
"id": 742,
"order_sn": "SN20200212102412KZ",
"plugin_id": 0,
"status": 1,
"refund_id": 5,
"status_name": "待发货",
"pay_type_name": "",
"process": [],
"has_one_pay_type": null,
"has_one_behalf_pay": null
},
"refund_order_goods": [
{
"id": 4,
"order_id": 742,
"refund_id": 5,
"order_goods_id": 754,
"send_num": 1,
"refund_total": 1,
"refund_price": "301.00",
"refund_type": 0,
"goods_title": "本地测试",
"goods_option_title": "",
"goods_thumb": "https://localhost/attachment/images/6/2019/09/z969R6qJJttrJ46t9jrRpYeuY46nsR.jpg"
}
]
},
{
"id": 4,
"refund_sn": "RN20221028100319yg",
"refund_type": 0,
"status": 6,
"price": "370.00",
"reason": "后台退款",
"images": [],
"content": "测试中",
"create_time": "2022-10-28 10:03:19",
"reply": "",
"reject_reason": "",
"refund_way_type": 0,
"apply_price": "370.00",
"order_price": "0.00",
"refund_proof_imgs": [],
"refund_time": "2022-10-28 10:03:20",
"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": 1,
"freight_price": "0.00",
"other_price": "0.00",
"reject_time": null,
"refund_type_name": "退款",
"status_name": "已退款",
"is_refunded": true,
"is_refunding": false,
"is_refund_fail": false,
"plugin_id": 0,
"receive_status_name": "未收到货",
"refund_way_type_name": "自行寄回",
"button_models": [],
"order": {
"id": 755,
"order_sn": "SN22102810010B7239",
"plugin_id": 0,
"status": 1,
"refund_id": 0,
"status_name": "待发货",
"pay_type_name": "",
"process": [],
"has_one_pay_type": null,
"has_one_behalf_pay": null
},
"refund_order_goods": [
{
"id": 2,
"order_id": 755,
"refund_id": 4,
"order_goods_id": 758,
"send_num": 1,
"refund_total": 1,
"refund_price": "120.00",
"refund_type": 0,
"goods_title": "123",
"goods_option_title": "",
"goods_thumb": "http://deom.yun.cn/static/upload/images/6/2022/10/A7QRIk4jnxxzcC2EZjze40E45jQ0Ru.jpg"
},
{
"id": 3,
"order_id": 755,
"refund_id": 4,
"order_goods_id": 759,
"send_num": 2,
"refund_total": 2,
"refund_price": "250.00",
"refund_type": 0,
"goods_title": "平台普通商品",
"goods_option_title": "",
"goods_thumb": "http://deom.yun.cn/static/upload/images/0/2022/04/7e0de54c6cee3ed7f7f69bc93ef34b8f.png"
}
]
}
],
"first_page_url": "http://deom.yun.cn/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://deom.yun.cn/addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://deom.yun.cn/addons/yun_shop/api.php",
"per_page": 20,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
错误时返回:
- 缺少访问参数 - 订单ID
{
"result": 0,
"msg": "缺少访问参数",
"data": [ ]
}
- 未找到数据
{
"result": 0,
"msg": "未找到数据",
"data": [ ]
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
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 | 商品图片 |