ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**简要描述:** - 订单详情 **请求URL:** - `/shopapi/order/detail` **请求方式:** - GET **参数:** |参数名 |必选 |类型 |说明 | |:----- |:----- | :----- |:----- | |id |是 |int |订单id | **返回示例** ``` { "code": 1, "show": 0, "msg": "获取成功", "data": { "id": 76, "user_id": 9, "order_sn": "202106241725577992", "order_type": 0, "order_source": 1, "order_status": 1, "pay_status": 1, "pay_time": 1624526757, "shipping_status": 0, "pay_way": 3, "order_amount": "2888.00", "goods_price": "2888.00", "shipping_price": "0.00", "discount_amount": "0.00", "member_amount": null, "create_time": "2021-06-24 17:25:57", "consignee": "测试先生", "mobile": "13104997825", "province": 110000, "city": 110100, "district": 110101, "address": "测试小区", "user_remark": "", "order_goods": [ { "id": 76, "order_id": 76, "goods_id": 10, "item_id": 42, "goods_name": "平板电脑", "goods_price": "2888.00", "spec_value": "默认", "image": "http://likeshopb2b2c.yixiangonline.com//uploads/images/20210624152954c02428489.jpg", "goods_num": 1, "is_comment": 0, "refund_status": 0, "commission_ratio": null, "total_pay_price": "2888.00" } ], "user": { "id": 9, "sn": "42942317", "nickname": "mofung1", "avatar": "uploads/user/avatar/c8eb832ac025e51e34cd7a6b9baf948d.jpeg", "level": 7, "mobile": "13104997825", "sex": "未知", "create_time": "2021-06-24 15:25:57" }, "shop_cancel_btn": 1, "edit_address_btn": 1, "to_ship_btn": 1, "take_btn": 0, "delivery_btn": 0, "del_btn": 0, "order_status_text": "待发货", "pay_way_text": "余额支付", "delivery_address": "北京北京市东城区测试小区", "order_type_text": "普通订单", "order_source_text": "小程序商城", "pay_status_text": "已支付" } } ``` **返回参数** |参数名 |类型 |说明 | |:----- |:----- | :----- |:----- | | id | int | 订单id | | order_sn | string | 订单编号 | | order_type | int | 订单类型;0-普通订单 | | order_type_text | string | 订单类型 | | order_source | int | 订单来源;1-小程序;2-h5;3-ios;4-安卓 | | order_source_text | string | 订单来源 | | order_status | int | 订单状态;0-待付款;1-待发货;2-待收货;3-已完成;4-已关闭 | | order_status_text | string | 订单状态 | | pay_status | int | 支付状态;0-待支付;1-已支付;2-已退款;3-拒绝退款 | | pay_status_text | string | 支付状态 | | pay_way | int | 支付方式;1-微信支付 2-支付宝支付 3-余额支付 4-线下支付 | | pay_way_text | string | 支付方式 | | pay_time | string | 支付时间 | | order_amount | float | 应付款金额 | | goods_price | float | 订单商品总价 | | shipping_price | float | 运费 | | discount_amount | float | 优惠金额 | | member_amount | float | 会员价优惠金额 | | create_time | string | 下单时间 | | consignee | string | 收件人 | | mobile | string | 收件人手机号 | | delivery_address | string | 收货地址 | | user_remark | string | 买家留言 | | shop_cancel_btn | int | 取消订单按钮 0-隐藏;1-显示 | | edit_address_btn | int | 修改地址按钮 0-隐藏;1-显示 | | to_ship_btn | int | 去发货按钮 0-隐藏;1-显示 | | take_btn | int | 确认收货按钮 0-隐藏;1-显示 | | delivery_btn | int | 查看物流按钮 0-隐藏;1-显示 | | del_btn | int | 删除订单按钮 0-隐藏;1-显示 | | order_goods | array | 订单商品 | | --id | int | 订单商品id | | --order_id | int | 订单id | | --goods_id | int | 商品id | | --item_id | int | 规格id | | --goods_name | string | 商品名称 | | --goods_price | float | 商品价格 | | --spec_value | string | 商品规格值 | | --image | string | 商品主图 | | --goods_num | int | 商品数量 | | --is_comment | int | 是否已评论;0-否;1-是 | | --refund_status | int | 售后状态;0-未申请退款;1-申请退款;2-等待退款;3-退款成功; | | --commission_ratio | int | 抽成比例 | | --total_pay_price | float | 实际支付商品金额 | | user | array | 买家 | | --sn | string | 买家编号 | | --nickname | string | 买家昵称 | | --mobile | string | 买家手机号 |