文档
测试

详细订单

POST
http://192.168.0.148:3000/order/detail

接口描述

查询订单详情

请求头

参数名
类型
描述
必填
code
string
示例:识别码
必填

请求参数

参数名
类型
描述
必填
order_no
string
订单号
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
data
object
数据字典
必填
id
int
订单id 示例:15
必填
order_no
string
订单号 示例:202012071610275458
必填
user_type
string
客户端类型 示例:微信小程序
必填
nick
string
用户名称 示例:Come on
必填
order_type
int
订单类型 示例:2
必填
device_id
string
设备二维码id 示例:wd1912111402
必填
seller
object
商户 示例:null
必填
start_time
string
开始时间 示例:2020年12月07日 16:10:27
必填
use_time
string
使用时间 示例:0分2秒
必填
amount
int
订单金额 示例:2
必填
free_time
int
免费次数 示例:0
必填
device_price
object
示例:null
必填
return_seller
string
归还商户 示例:
必填
return_time
string
示例:2020年12月07日 16:10:29
必填
status
int
订单状态 示例:2
必填
status_text
string
示例:已完成
必填
brokerage
array
数据列表
必填
id
int
代理id 示例:62
必填
name
string
代理名称 示例:测试代理1100
必填
type
string
代理类型示例:代理商
必填
role_type
int
角色类型 示例:1
必填
ratio
int
分成比例 示例:90
必填
pay_auth_id
int
预授权日志id示例:0
必填
msg
string
示例:订单详情
必填

说明 / 示例

{ "code": 1, "data": { "id": 9, "order_no": "202012031655003545", "user_type": "微信小程序", "nick": "Come on", "order_type": 2, "device_id": "wd1912111403", "seller": "商铺1011", "start_time": "2020年12月03日 16:55:00", "use_time": "7分13秒", "amount": 10, "free_time": 0, "billing": "元\/分钟", "device_price": null, "return_seller": "", "return_time": "2020年12月03日 17:02:13", "status": 2, "status_text": "已完成", "brokerage": [{ "id": 53, "name": "商铺管理员1011", "type": "店铺管理员", "role_type": 3, "ratio": 20 }, { "id": 52, "name": "测试业务员1010", "type": "业务员", "role_type": 2, "ratio": 40 }, { "id": 50, "name": "测试代理1000", "type": "代理商", "role_type": 1, "ratio": 30 }, { "id": 48, "name": "测试顶级代理", "type": "代理商", "role_type": 1, "ratio": 0 }], "pay_auth_id": 0 }, "msg": "订单详情" }