跳到主要内容

biz.merchants.get.order.statistics

按条件统计订单数量、金额

  • 请求路由: biz.merchants.get.order.statistics
  • 交互模型: Response Stream
  • 访问限制: 无

请求​

RSocket.rs({
"route" : "biz.merchants.get.order.statistics",
"args" : {
"merchantId" : "HTL10022",
"type" : "2",
"search" : {
"from" : "2022-12-01",
"to" : "2023-01-01"
}
}
});

请求参数​

名称类型必须说明
typeString否0-按天 1-按周 2-按月
merchantIdString否商户id
searchObject否条件
search.keywordString否模糊匹配关键字
search.fromString否查询起始时间,时间样式为RFC3339格式,如:2019-04-18T00:13:39.649Z
search.toString否查询终止时间,时间样式为RFC3339格式,如:2019-04-19T00:13:39.649Z

返回​

订单数量、金额统计数据

[
{
"date" : "2022-12",
"price" : 0.0,
"orderCount" : 0
},
{
"date" : "2023-01",
"price" : 0.0,
"orderCount" : 0
}
]

返回属性​

名称类型说明
dateString日期 年月日
priceNumber总价
orderCountNumber订单总数

下载结果模型定义