开放平台

扒书 ERP Open API

数据大屏概览

返回大屏展示的汇总指标:订单、销售、库存等。

请求方式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)

字段类型说明
todaySalesAmountBigDecimal今日店铺销售额
todayOrderCountLong今日订单量
yesterdayOrderCountLong昨日订单量(用于环比)
todayInboundCountLong今日入库册数
yesterdayInboundCountLong昨日入库册数
stockSkuCountLong近7日入库 SKU 种数
last7DaysInboundCountLong近7日入库册数
last7DaysOrderCountLong近7日订单量
todayShipmentCountLong今日发货订单数(库存流水关联订单,按 delivery_time,仓库归属过滤)
pendingShipmentLong待发货订单数
last7DaysTrend对象数组-
last7DaysTrend[].dateString日期 yyyy-MM-dd
last7DaysTrend[].dayLabelString星期标签,如 周一
last7DaysTrend[].orderCountLong-
platformStats对象数组-
platformStats[].platformNameString-
platformStats[].orderCountLong-
platformStats[].percentInteger占比 0-100
warehouseTop5对象数组-
warehouseTop5[].warehouseNameString-
warehouseTop5[].shippedOrderCountLong-
recentOrders对象数组-
recentOrders[].timeString-
recentOrders[].tradeNoString-
recentOrders[].goodsNameString-
recentOrders[].platformNameString-
recentOrders[].warehouseNameString-
recentOrders[].statusDescString-
stockSituation对象我的库存情况
stockSituation.highPriceCountLong高价书 SKU 数(业务数据 均价 ≥ 30 元)
stockSituation.highPricePercentDouble高价书占库存 SKU 比例 0-100
stockSituation.junkPercentDouble垃圾书占库存 SKU 比例 0-100(3月销量<3 且均价<5)
stockSituation.estimatedValueBigDecimal货值预估(元,库存 × 业务数据 均价)