简要描述:
- 订单详情
请求URL:
POST/wapapi/order/orderDetail
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
order_id | 是 | int | 订单id |
返回示例:
正确时返回:
{
"code": 1,
"message": "获取成功",
"data": {
"order_id": 2506,
"order_no": "20190912161318595447",
"shop_name": "tim",
"shop_id": 0,
"order_status": 1,
"offline_pay": 0,
"payment_type_name": "余额支付+余额支付",
"payment_type": 5,
"promotion_status": false,
"order_refund_status": 0,
"is_evaluate": 0,
"first_money": "10.00",
"final_money": "90.00",
"first_real_money": "¥ 10.00",
"final_real_money": "¥ 90.00",
"order_money": 100,
"order_real_money": "¥ 100",
"goods_money": 100,
"shipping_fee": 0,
"promotion_money": 0,
"create_time": 1568275998,
"pay_time": 1568277453,
"consign_time": 0,
"finish_time": 0,
"receiver_name": "发放",
"receiver_mobile": "18539772378",
"receiver_province": "广东省",
"receiver_city": "广州市",
"receiver_district": "天河区",
"receiver_address": "水电费",
"buyer_message": "",
"group_id": 0,
"group_record_id": 0,
"store_id": 0,
"card_store_id": 0,
"verification_code": "",
"verification_qrcode": "",
"presell_status": 2,
"order_type": 7,
"deduction_money": "0.00",
"order_point": 0,
"can_presell_pay": "",
"can_presell_pay_reason": "",
"is_virtual": 0,
"member_operation": [],
"no_delivery_id_array": [
2556
],
"goods_packet_list": [],
"goods_type": "1",
"order_goods": [
{
"order_goods_id": 2556,
"goods_id": 722,
"goods_name": "商城商品",
"sku_id": 994,
"sku_name": "",
"price": "100.00",
"goods_point": 0,
"num": "1",
"refund_status": 0,
"spec": [],
"pic_cover": "https://vslai-com-cn.oss-cn-hangzhou.aliyuncs.com/upload/26/common/1562296685.jpg",
"member_operation": [
{
"no": "refund",
"name": "退款",
"icon_class": "icon icon-blacklist-l"
}
]
}
],
"unrefund": 0,
"unrefund_reason": "",
"invoice": {
"type": 1,//1电子普通发票 2 增值税专用发票
"title": 1,//发票抬头 1个人 2 公司
"title_name": "个人",//抬头名称
"taxpayer_no": 88888888,//税号
"content": "黑色 HUAWEI p30",//发票内容
},
"invoice_tax": 20 //商品总税费
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
order_detail | array | 订单详情 |
custom_order | string | 自定义表单内容 |
order_id | int | 订单id |
order_no | string | 订单序号 |
shop_name | string | 店铺名 |
shop_id | int | 店铺id |
order_status | int | 订单状态 |
payment_type_name | string | 支付方式名称 |
promotion_status | bool | 优惠状态 true:享受了优惠(在售后的时候必须整单退货/退款,不能单个商品) false:没有 |
is_evaluate | int | 0:没有评价 1:已经评价 2:已经追评 |
order_money | string | 订单金额 |
goods_money | string | 商品原金额 |
shipping_fee | string | 订单应付邮费(已经算在order_money里面了) |
promotion_money | float | 所有优惠总额 |
receiver_name | string | 收货人名称 |
receiver_mobile | string | 收货人手机 |
receiver_province | string | 收货省份 |
receiver_city | string | 收货城市 |
receiver_district | string | 收货地区 |
receiver_address | string | 收货详细地址 |
buyer_message | string | 买家留言 |
member_operation | array | 卖家操作列表 |
no | string | 操作no |
name | string | 操作名称 |
no_delivery_id_array | array | 未发货order_goods_id |
goods_packet_list | array | 已发货内容 |
packet_name | string | 包裹名称 |
expTextName | string | 物流公司名称申通快递 |
mailNo | string | 物流编号 |
dataSize | int | 物流内容大小 |
data | array | 物流数据 |
time | string | 事件时间 |
context | string | 事件内容 |
order_goods | array | 订单商品列表 |
order_goods_id | int | 主键id |
goods_id | int | 商品id |
goods_name | string | 商品名称 |
sku_id | int | sku_id |
sku_name | string | sku名称 |
price | string | 商品价格 |
num | int | 购买数目 |
refund_status | int | 售后属性 1:买家申请退款 2:等待买家退货 3:等待卖家确认收货 4:等待卖家确认退款 5:退款已成功 -1:退款已拒绝 0:退款已关闭 -3:退款申请不通过 |
status_name | string | 售后属性名称 |
spec | array | 商品规格内容 |
order_refund_status | int | 值的意义和refund_status一样,只是将里面的数据提取出来,仅作用于promotion_status = true 时,显示订单需要对应的售后操作 |
unrefund | int | 是否能够退款,为1不能退款 |
timelimit | string | 距离拼团结束还有多久 |
store_id | int | 门店id |
verification_code | string | 核销码 |
verification_qrcode | string | 核销二维码 |
deduction_money | int | 抵扣金额 |
invoice | string | 发票助手参数数组 |
invoice_tax | string | 税费总额 |
发票助手
参数名 | 类型 | 说明 | |
---|---|---|---|
invoice | string | 订单发票 如果是{} 表示"不开具发票" |
|
is_upload | int | 是否上传了 0 未上传 1已上传 2已上传pdf到微信 3已添加到微信卡包 | |
type | int | 0不显示 1电子普通发票 2 增值税专用发票 | |
title | int | 发票抬头 1个人 2 公司 | |
title_name | string | 抬头名称 | |
taxpayer_no | string | 纳税人识别号 | |
content | string | 发票内容 | |
company_name | string | 公司名称 | |
company_addr | string | 公司地址 | |
bank | string | 开户银行 | |
card_no | string | 银行账户 | |
mobile | string | 注册电话 |
备注:
- 更多返回错误代码请看首页的错误代码描述