文档
测试

集团运营-数据统计

GET
/active/order/he/statistic/detail

接口描述

门店运营数据统计接口:/active/order/store/he/statistic/detail

请求参数

参数名
类型
描述
必填
shortcut
number
-1:自定义 0:今天 7:近7天 30:近30天 365:最近12个月 大于等于365按照月显示
必填
beginTime
date
自定义开始时间
可选
endTime
date
自定义结束时间
可选

响应参数

参数名
类型
描述
必填
code
string
示例:200
必填
result
object
数据字典
必填
amount
array
订单总额 数据列表
必填
num
array
订单数量 数据列表
必填
discount
array
优惠总额 数据列表
必填
time
array
时间轴 数据列表
必填
success
boolean
示例:true
必填
timestamp
string
示例:2020-02-08 02:12:17
必填

说明 / 示例

**按日显示** { "code": "200", "result": { "amount": [0,0,440,0,0,0,0,0], "num": [[0,0,1,0,0,0,0,0], "discount": [0,0,160,0,0,0,0,0], "time": ["2020-02-01","2020-02-02","2020-02-03","2020-02-04","2020-02-05","2020-02-06","2020-02-07","2020-02-08"] }, "success": true, "timestamp": "2020-02-08 02:16:17" } **按月显示** { "code": "200", "result": { "amount": [0,0,0,0,0,0,0,0,0,0,0,440], "num": [0,0,0,0,0,0,0,0,0,0,0,1], "discount": [0,0,0,0,0,0,0,0,0,0,0,160], "time": ["2019-03","2019-04","2019-05","2019-06","2019-07","2019-08","2019-09","2019-10","2019-11","2019-12","2020-01","2020-02"] }, "success": true, "timestamp": "2020-02-08 02:12:17" }