- 商城
- 账号
- 上传文件
- 购物车
- 收货地址
- 商品
- 分销
- 营销
- 首页
- 订单
- 售后
- 收藏
- 用户
- 评论
- 广告
- 分享
- 菜单
- 消息订阅
- 消息中心
- 足迹气泡
- 短信
- 地区
- pc端接口
订单详情
GET
/api/order/detail
请求参数
Query 参数
id
string
订单id
Header 参数
token
string
可选
默认值:
{{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/order/detail' \
--header 'token: {{token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
id
integer
必需
order_sn
string
订单编号
order_type
integer
必需
order_status
integer
必需
pay_way
integer
必需
pay_time
string
支付时间
consignee
string
必需
mobile
string
必需
delivery_type
integer
必需
goods_price
string
商品金额
order_amount
string
实付金额
discount_amount
string
必需
integral_amount
string
必需
total_amount
string
订单总额
total_num
integer
必需
shipping_price
string
运费
shipping_time
string
发货时间
user_remark
string
用户备注
confirm_take_time
string
必需
cancel_time
string
取消时间
refund_status
integer
必需
settle_id
integer
必需
settle_amount
null
必需
use_integral
integer
必需
refund_amount
null
必需
create_time
string
下单时间
update_time
null
必需
coupon_list_id
null
必需
team
object
必需
order_goods
array [object {22}]
订单商品
delivery_address
string
收货地址
pay_btn
integer
必需
cancel_btn
integer
必需
delivery_btn
integer
必需
take_btn
integer
必需
del_btn
integer
必需
order_cancel_time
integer
订单自动取消时长
pay_way_text
string
必需
show
integer
必需
time
string
必需
示例
{
"code": 1,
"msg": "获取成功",
"data": {
"id": 6,
"order_sn": "202101151014326716",
"order_type": 2,
"order_status": 0,
"pay_way": 1,
"pay_time": "",
"consignee": "测试先生",
"mobile": "13104997825",
"delivery_type": 1,
"goods_price": "1250.00",
"order_amount": "1250.00",
"discount_amount": "0.00",
"integral_amount": "0.00",
"total_amount": "1250.00",
"total_num": 25,
"shipping_price": "0.00",
"shipping_time": "",
"user_remark": "",
"confirm_take_time": "",
"cancel_time": "",
"refund_status": 0,
"settle_id": 0,
"settle_amount": null,
"use_integral": 0,
"refund_amount": null,
"create_time": "2021-01-15 10:14:32",
"update_time": null,
"coupon_list_id": null,
"team": {
"need": 2,
"join": 1,
"joins": [
{
"avatar": "http://www.likeshopv2.localhost/uploads/user/avatar/259dd42fa8f6b7f34669f51d803c83eb.jpeg",
"nickname": "momo",
"is_found": 1
}
],
"notice": "您正在参与2人团"
},
"order_goods": [
{
"id": 5,
"order_id": 6,
"goods_id": 10,
"item_id": 10,
"goods_name": "顺丰包邮 12期免息日本PILOT百乐Justus 95钢笔14K金尖FJ-3MR可调书写软硬金笔成人书法练字商务办公送礼盒装",
"goods_num": 25,
"goods_price": "50.00",
"total_price": "1250.00",
"total_pay_price": "1250.00",
"discount_price": "0.00",
"integral_price": "0.00",
"spec_value_ids": "10",
"delivery_id": 0,
"refund_status": 0,
"is_comment": 0,
"is_seckill": 0,
"goods_info": "{\"item_id\":10,\"goods_id\":10,\"goods_name\":\"顺丰包邮 12期免息日本PILOT百乐Justus 95钢笔14K金尖FJ-3MR可调书写软硬金笔成人书法练字商务办公送礼盒装\",\"status\":1,\"del\":0,\"image\":\"\\/uploads\\/images\\/background\\/20201210\\/6768915899c1f445e43c886ad5e8668a.png\",\"stock\":2369,\"free_shipping_type\":1,\"free_shipping\":\"0.00\",\"free_shipping_template_id\":0,\"spec_image\":\"\",\"spec_value_str\":\"默认\",\"spec_value_ids\":\"10\",\"goods_price\":\"50.00\",\"volume\":2,\"weight\":2,\"third_category_id\":15,\"original_price\":\"1680.00\",\"team_id\":1,\"image_str\":\"http:\\/\\/www.likeshopv2.localhost\\/uploads\\/images\\/background\\/20201210\\/6768915899c1f445e43c886ad5e8668a.png\",\"goods_num\":\"25\"}",
"create_time": 1610676872,
"comment_btn": 0,
"refund_btn": 0,
"spec_value": "默认",
"image": "http://www.likeshopv2.localhost/uploads/images/background/20201210/6768915899c1f445e43c886ad5e8668a.png"
}
],
"delivery_address": "北京北京市东城区测试小区",
"pay_btn": 1,
"cancel_btn": 1,
"delivery_btn": 0,
"take_btn": 0,
"del_btn": 0,
"order_cancel_time": 1610678672,
"pay_way_text": "微信支付"
},
"show": 0,
"time": "0.339484"
}