> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics handler for business intelligence endpoints

> Analytics handler for business intelligence endpoints

### Responses

<ResponseField name="200" type="ApiResponse_DashboardMetrics">
  Dashboard metrics retrieved successfully
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.stateset.com/api/v1/analytics/dashboard' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": {
      "carts": {
        "abandoned_carts": 1,
        "active_carts": 1,
        "average_cart_value": "string",
        "converted_carts": 1,
        "total_carts": 1
      },
      "generated_at": "2026-07-24T12:00:00Z",
      "inventory": {
        "average_stock_level": 1,
        "low_stock_items": 1,
        "low_stock_threshold": 1,
        "out_of_stock_items": 1,
        "total_products": 1,
        "total_value": "string"
      },
      "sales": {
        "average_order_value": "string",
        "orders_this_month": 1,
        "orders_this_week": 1,
        "orders_today": 1,
        "revenue_this_month": "string",
        "revenue_this_week": "string",
        "revenue_today": "string",
        "total_orders": 1,
        "total_revenue": "string"
      },
      "shipments": {
        "average_delivery_time_hours": null,
        "delivered_today": 1,
        "pending_shipments": 1,
        "shipped_today": 1,
        "total_shipments": 1
      }
    },
    "errors": null,
    "message": null,
    "meta": null,
    "success": true
  }
  ```
</ResponseExample>
