共同体统计数据查询(门店月度交易数据)
接口路径:
https://gateway-smart.shouqianba.com/api/platform/v1/community/transaction
限流
5 次/秒
说明
- 应用接入方可以通过该接口获取月度门店交易数据,包括店均交易金额、笔数及客单价
请求参数
| 字段 | 类型 | 必须 | 示例值 | 说明 |
|---|---|---|---|---|
| month | String | 否 | 202503 | 月份,不传则返回最近 12 个月的 |
返回参数
| 字段 | 类型 | 必须 | 示例值 | 说明 |
|---|---|---|---|---|
| month | String | 是 | 202503 | 月份 |
| cntActiveStores | Number | 是 | 150 | 当月交易活跃门店数量 |
| avgTransactionsPerStore | Number | 是 | 3467 | 门店平均交易笔数 |
| avgAmountPerStore | Number | 是 | 2080000 | 门店平均交易金额 |
| avgAmountPerTransaction | Number | 是 | 258 | 客单价 |
请求数据示例
示例 1
入参
{
"month": "202402"
}
出参
注意返回的是数组
[
{
"month": "202402",
"cntActiveStores": 150,
"avgTransactionsPerStore": 3467,
"avgAmountPerStore": 2080000,
"avgAmountPerTransaction": 600
}
]
示例 2
入参
{
"month": null
}
出参
注意返回的是数组
[
{
"month": "202403",
"cntActiveStores": 155,
"avgTransactionsPerStore": 3742,
"avgAmountPerStore": 2432258,
"avgAmountPerTransaction": 650
},
{
"month": "202402",
"cntActiveStores": 150,
"avgTransactionsPerStore": 3467,
"avgAmountPerStore": 2080000,
"avgAmountPerTransaction": 600
},
{
"month": "202401",
"cntActiveStores": 145,
"avgTransactionsPerStore": 3310,
"avgAmountPerStore": 1820690,
"avgAmountPerTransaction": 550
},
{
"month": "202312",
"cntActiveStores": 138,
"avgTransactionsPerStore": 3986,
"avgAmountPerStore": 2192029,
"avgAmountPerTransaction": 550
},
{
"month": "202311",
"cntActiveStores": 125,
"avgTransactionsPerStore": 3360,
"avgAmountPerStore": 1848000,
"avgAmountPerTransaction": 550
},
{
"month": "202310",
"cntActiveStores": 120,
"avgTransactionsPerStore": 3042,
"avgAmountPerStore": 1520833,
"avgAmountPerTransaction": 500
}
]