Get Booking Analytics
Retrieve comprehensive booking analytics for restaurant management.
**Analytics Include:**
- 📊 **Booking Statistics** - Total, confirmed, cancelled bookings
- 👥 **Customer Insights** - Party size patterns, repeat customers
- ⏰ **Time Analysis** - Popular time slots, peak hours
- 🔌 **Provider Performance** - Success rates by booking method
- 💰 **Revenue Impact** - Estimated revenue, average spend
- 📈 **Trends** - Period-over-period comparisons
**Time Periods:**
- **Day** - Last 24 hours
- **Week** - Last 7 days
- **Month** - Last 30 days (default)
- **Year** - Last 365 days
- **Custom** - Specify startDate and endDate
Path parameters
restaurantId
Restaurant identifier
Query parameters
period
Analytics time period
Allowed values:
startDate
Custom period start date
endDate
Custom period end date
Response
Analytics data retrieved successfully
success
restaurantId
period
analytics
