数据大屏概览
返回大屏展示的汇总指标:订单、销售、库存等。
| 请求方式 | GET/POST |
| 接口路径 | /api/dataScreen/overview |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
curl 调用
curl -s 'https://www.8shu8.com/api/dataScreen/overview' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"todaySalesAmount": 0.0,
"todayOrderCount": 1,
"yesterdayOrderCount": 1,
"todayInboundCount": 1,
"yesterdayInboundCount": 1,
"stockSkuCount": 1,
"last7DaysInboundCount": 1,
"last7DaysOrderCount": 1,
"todayShipmentCount": 1,
"pendingShipment": 1,
"last7DaysTrend": [
{
"date": "...",
"dayLabel": "...",
"orderCount": "..."
}
],
"platformStats": [
{
"platformName": "...",
"orderCount": "...",
"percent": "..."
}
],
"warehouseTop5": [
{
"warehouseName": "...",
"shippedOrderCount": "..."
}
],
"recentOrders": [
{
"time": "...",
"tradeNo": "...",
"goodsName": "...",
"platformName": "...",
"warehouseName": "...",
"statusDesc": "..."
}
],
"stockSituation": {
"highPriceCount": 1,
"highPricePercent": 0.0,
"junkPercent": 0.0,
"estimatedValue": 0.0
}
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
todaySalesAmount | BigDecimal | 今日店铺销售额 |
todayOrderCount | Long | 今日订单量 |
yesterdayOrderCount | Long | 昨日订单量(用于环比) |
todayInboundCount | Long | 今日入库册数 |
yesterdayInboundCount | Long | 昨日入库册数 |
stockSkuCount | Long | 近7日入库 SKU 种数 |
last7DaysInboundCount | Long | 近7日入库册数 |
last7DaysOrderCount | Long | 近7日订单量 |
todayShipmentCount | Long | 今日发货订单数(库存流水关联订单,按 delivery_time,仓库归属过滤) |
pendingShipment | Long | 待发货订单数 |
last7DaysTrend | 对象数组 | - |
last7DaysTrend[].date | String | 日期 yyyy-MM-dd |
last7DaysTrend[].dayLabel | String | 星期标签,如 周一 |
last7DaysTrend[].orderCount | Long | - |
platformStats | 对象数组 | - |
platformStats[].platformName | String | - |
platformStats[].orderCount | Long | - |
platformStats[].percent | Integer | 占比 0-100 |
warehouseTop5 | 对象数组 | - |
warehouseTop5[].warehouseName | String | - |
warehouseTop5[].shippedOrderCount | Long | - |
recentOrders | 对象数组 | - |
recentOrders[].time | String | - |
recentOrders[].tradeNo | String | - |
recentOrders[].goodsName | String | - |
recentOrders[].platformName | String | - |
recentOrders[].warehouseName | String | - |
recentOrders[].statusDesc | String | - |
stockSituation | 对象 | 我的库存情况 |
stockSituation.highPriceCount | Long | 高价书 SKU 数(业务数据 均价 ≥ 30 元) |
stockSituation.highPricePercent | Double | 高价书占库存 SKU 比例 0-100 |
stockSituation.junkPercent | Double | 垃圾书占库存 SKU 比例 0-100(3月销量<3 且均价<5) |
stockSituation.estimatedValue | BigDecimal | 货值预估(元,库存 × 业务数据 均价) |