# Analytics

GET `/stores/{store_id}/analytics`

This endpoint lets you get store analytics.

**Headers**

| Header          | Type   | Description   |
| --------------- | ------ | ------------- |
| `Authorization` | string | Bearer token. |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "success": true,
    "message": "Store analytics retrieved successfully",
    "data": {
        "overview": {
            "totalRevenue": 0,
            "totalOrders": 0,
            "averageOrderValue": 0,
            "totalProducts": 4,
            "totalCustomers": 0
        },
        "orderStatus": {},
        "revenueTrend": [],
        "topProducts": [],
        "customerInsights": {
            "totalCustomers": 0,
            "averageOrdersPerCustomer": 0,
            "averageLifetimeValue": 0
        },
        "recentOrders": []
    }
}
```

{% endtab %}
{% endtabs %}
