简要描述:
请求域名:
请求URL:
GET:route=plugin.package-deliver.frontend.order.detail.index
参数:
参数名 |
是否必须 |
类型 |
说明 |
order_id |
是 |
int |
订单 ID |
返回示例:
正确时返回:
{
"result":1,
"msg":"ok",
"data":{
"id":14222,
"order_sn":"SN20190524150818s4",
"price":"100000.00",
"goods_price":"300.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,
"dispatch_price":"0.00",
"discount_price":"0.00",
"pay_type_id":0,
"order_goods_price":"300.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":"",
"is_virtual":1,
"plugin_id":0,
"mark":"",
"is_pending":0,
"note":null,
"cost_amount":"50.00",
"shop_name":"亚太美购",
"no_refund":0,
"need_address":1,
"invoice_type":null,
"rise_type":null,
"collect_name":null,
"company_number":null,
"invoice":null,
"auto_receipt":0,
"fee_amount":"100000.00",
"status_name":"待付款",
"pay_type_name":"未支付",
"button_models":[
{
"name":"支付",
"value":1,
"api":"order.operation.pay",
"type":""
},
{
"name":"取消订单",
"value":9,
"api":"order.operation.close",
"type":""
}
],
"has_many_order_goods":[
{
"id":14572,
"uniacid":1,
"goods_id":747,
"pay_sn":"",
"total":1,
"create_at":0,
"price":"300.00",
"goods_sn":"",
"uid":17,
"thumb":"https://yataimeigou.oss-cn-beijing.aliyuncs.com/images/1/2018/12/UDd1DrT16BP1pbR7fA717B8PHtrrHX.jpg",
"title":"1212报名,超声刀、自体脂肪填充二选一加观摩会门票",
"goods_price":"300.00",
"goods_option_id":0,
"goods_option_title":"",
"product_sn":"",
"created_at":"2019-05-24 15:08:18",
"updated_at":"2019-05-24 15:08:18",
"discount_price":"0.00",
"comment_status":0,
"change_price":"0.00",
"comment_id":0,
"goods_market_price":"1212.00",
"goods_cost_price":"50.00",
"vip_price":"0.00",
"coupon_price":"0.00",
"payment_amount":"300.00",
"deduction_amount":"0.00",
"need_address":1,
"buttons":[
],
"store_id":null,
"is_course":0,
"diyform_data":[]
}
],
"order_deduction":[
],
"order_discount":[
{
"id":56935,
"uid":17,
"order_id":14222,
"discount_code":"singleEnoughReduce",
"name":"单品满减优惠",
"amount":"0.00",
"is_indirect":0,
"updated_at":"2019-05-24 15:08:18",
"created_at":"2019-05-24 15:08:18",
"deleted_at":null
},
{
"id":56936,
"uid":17,
"order_id":14222,
"discount_code":"enoughReduce",
"name":"全场满减优惠",
"amount":"0.00",
"is_indirect":0,
"updated_at":"2019-05-24 15:08:18",
"created_at":"2019-05-24 15:08:18",
"deleted_at":null
},
{
"id":56937,
"uid":17,
"order_id":14222,
"discount_code":"coupon",
"name":"优惠券优惠",
"amount":"0.00",
"is_indirect":0,
"updated_at":"2019-05-24 15:08:18",
"created_at":"2019-05-24 15:08:18",
"deleted_at":null
},
{
"id":56938,
"uid":17,
"order_id":14222,
"discount_code":"package",
"name":"商品套餐优惠",
"amount":"0.00",
"is_indirect":0,
"updated_at":"2019-05-24 15:08:18",
"created_at":"2019-05-24 15:08:18",
"deleted_at":null
}
],
"order_fees":[
{
"id":2,
"uid":17,
"order_id":14222,
"fee_code":"goods_fee",
"name":"商品手续费",
"amount":"100000.00",
"updated_at":"2019-05-24 15:08:19",
"created_at":"2019-05-24 15:08:19",
"deleted_at":null
}
],
"order_coupon":[
],
"process":[
],
"invoice_state":1,
"address_info":[
]
}
}
错误时返回:
{
"result": 0,
"msg": "缺少访问参数",
"data": []
}
{
"result": 0,
"msg": "未找到数据",
"data": []
}
返回参数说明:
参数名 |
类型 |
说明 |
id |
int |
订单 ID |
order_sn |
string |
订单号 |
price |
int |
订单金额(实际支付) |
goods_price |
int |
商品金额 |
goods_total |
int |
所有商品的数量 |
goods_option_title |
int |
规格标题 |
status_name |
string |
订单状态 |
invoice_type |
int |
发票类型(0:电子发票,1:纸质发票) |
rise_type |
int |
发票抬头(0:单位,1:个人) |
call |
string |
称呼 |
ncompany_numberote |
string |
单位识别号 |
invoice_state |
int |
发票状态 (0:未开启,1:已开启) |
button_models |
array |
按钮 |
has_many_order_goods |
array |
该订单下的商品列表 |
dispatch_type_id |
int |
订单配送方式(1快递, 2自提, 3门店配送) |
button_models |
类型 |
说明 |
name |
string |
按钮文字 |
api |
string |
按钮关联的 API 路径 |
value |
int |
显示在 HTML 表单的 Value 值 |
button_models key |
按钮名 |
|
1 |
支付 |
|
5 |
确认收货 |
|
8 |
查看物流 |
|
9 |
取消订单 |
|
10 |
评论 |
|
12 |
删除订单 |
|
13 |
申请退款 |
|
18 |
已退款/退款中 |
|
19 |
已评价 |
|
20 |
确认核销 |
|
21 |
转账信息 |
|
27 |
查看卡密 |
|
41 |
联系客服 |
|
101 |
自定义申请退款 |
|
has_many_order_goods |
类型 |
说明 |
goods_id |
int |
商品 ID |
goods_price |
int |
商品价格 |
total |
int |
订单中该商品的数量 |
goods_option_title |
int |
订单中该商品的规格标题 |
price |
int |
实际支付的该商品的总价 |
title |
string |
商品名称 |
thumb |
string |
商品图片 |
diyform_data |
自定义表单数据 |
|
order_fees |
类型 |
说明 |
name |
int |
手续费名 |
amount |
float |
手续费金额 |
addres_info参数名 |
类型 |
说明 dispatch_type_id 为 1 , 是快递 |
address |
string |
地址 |
realname |
string |
姓名 |
mobile |
string |
手机号 |
addres_info参数名 |
类型 |
说明 dispatch_type_id 为 2 或者 3 , 是自提和门店配送 |
store_address |
string |
地址 |
member_mobile |
string |
手机号 |
member_realname |
string |
姓名 |
| is_course | int | 0:不是课程商品 1:是课程商品 |
备注:
by 腾昌 18/12/14 修改(dispatch_type_id配送方式不同, address_info也不同)