简要描述:

请求域名:

  • http://xx.com

请求URL:

plugin.debt-shop.frontend.refund-apply.index

参数:

参数名 是否必须 类型 说明
order_id int 订单ID
member_type int 身份类型 1债权人 2债务人采购订单 3VIP 4债务人网店订单

返回示例:

正确时返回:

{
result: 1,
msg: "成功",
data: {
order: {
id: 22300,
status: 2,
plugin_id: 0,
goods_price: "1.00",
order_goods_price: "1.00",
price: 0,
refund_id: 0,
dispatch_price: "0.00",
fee_amount: "0.00",
service_fee_amount: "0.00",
dispatch_type_name: "",
status_name: "待收货",
pay_type_name: "",
button_models: [ ],
process: [ ],
has_one_pay_type: null,
order_goods: [
{
id: 22488,
uniacid: 1,
goods_id: 158,
pay_sn: "",
total: 1,
create_at: 0,
price: "1.00",
goods_sn: "",
uid: 164935,
thumb: "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5d5feaadb110164c2aa168ec76c677a1.jpg",
title: "xu",
goods_price: "1.00",
goods_option_id: 0,
goods_option_title: "",
product_sn: "",
created_at: "2022-04-08 14:50:40",
updated_at: "2022-04-08 14:50:40",
discount_price: "0.00",
comment_status: 0,
change_price: "0.00",
comment_id: 0,
goods_market_price: "2.00",
goods_cost_price: "0.50",
vip_price: "1.00",
coupon_price: "0.00",
payment_amount: "0.00",
deduction_amount: "0.00",
need_address: 0,
order_express_id: null,
is_refund: 0,
buttons: [ ],
order: {
id: 22300,
uniacid: 1,
uid: 164935,
order_sn: "SN220408145007A024",
price: "0.00",
goods_price: "1.00",
goods_total: 1,
status: 2,
create_time: "2022-04-08 14:50:40",
is_deleted: 0,
is_member_deleted: 0,
finish_time: "1970-01-01 08:00:00",
pay_time: "2022-04-08 14:50:58",
send_time: "2022-04-08 15:41:22",
cancel_time: "1970-01-01 08:00:00",
created_at: 1649400640,
updated_at: 1649403682,
deleted_at: 0,
cancel_pay_time: "1970-01-01 08:00:00",
cancel_send_time: "1970-01-01 08:00:00",
dispatch_type_id: 1,
dispatch_price: "0.00",
discount_price: "1.00",
pay_type_id: 54,
order_goods_price: "1.00",
deduction_price: "0.00",
refund_id: 0,
is_plugin: 0,
change_price: "0.00",
change_dispatch_price: "0.00",
comment_status: 0,
order_pay_id: "27959",
is_virtual: 0,
plugin_id: 0,
mark: "0",
is_pending: 0,
note: null,
cost_amount: "0.50",
shop_name: "芸信商城11",
no_refund: 0,
need_address: 0,
invoice_type: 0,
rise_type: 1,
collect_name: "",
company_number: null,
invoice: null,
auto_receipt: 0,
fee_amount: "0.00",
service_fee_amount: "0.00",
is_all_send_goods: 0,
close_reason: null,
vip_order_goods_price: "1.00",
status_name: "待收货",
pay_type_name: "确认",
process: [ ],
has_one_pay_type: {
id: 54,
name: "确认",
plugin_id: 0,
code: "confirmPay",
type: 2,
unit: "元",
updated_at: "2020-08-24 11:11:38",
created_at: "2020-08-24 11:11:38",
deleted_at: null,
setting_key: "pay",
need_password: 0,
group_id: 0
},
has_one_behalf_pay: null
}
}
],
has_one_behalf_pay: null
},
refundTypes: [
{
name: "退款(仅退款不退货)",
value: 0,
desc: "未收到货或者不用退货只退款",
icon: "icon-fontclass-daizhifu",
reasons: {
not_received: [
"拍错/多拍/不想要",
"货物破损",
"快递送货问题",
"差价",
"其他原因"
],
received: [
"货物破损",
"少件、漏发",
"差价",
"商品质量问题",
"其他原因"
]
}
},
{
name: "退款退货",
value: 1,
desc: "已收到货,需要退款退货",
icon: "icon-fontclass-daishouhuo",
reasons: {
not_received: [ ],
received: [
"包装或商品破损、少商品",
"质量问题",
"配送问题",
"拍错/多拍/不想要",
"其他原因(可填)"
]
}
},
{
name: "换货",
value: 2,
desc: "已收到货,需要更换",
icon: "icon-fontclass-daifahuo",
reasons: {
not_received: [ ],
received: [ ]
}
}
],
refundable_freight: "0.00",
refundable_other: "0.00",
support_batch: true,
send_back_way: [
{
code: "self_send",
value: 0,
name: "自行寄回"
}
]
}
}

错误时返回:

  {
  }

返回参数说明:

参数名 类型 说明
名称 类型 说明