Skip to main content
GET
/
v1
/
api
/
superadmin
/
analytics
/
bookings
Get booking analytics: by status, delivery rate, cancellation rate, avg delivery time
curl --request GET \
  --url http://localhost:3091/v1/api/superadmin/analytics/bookings \
  --header 'Authorization: Bearer <token>'
{
  "bookingsByPeriod": [
    {
      "period": "<string>",
      "count": 123,
      "amount": 123
    }
  ],
  "bookingsByStatus": {},
  "deliveryRate": 123,
  "cancellationRate": 123,
  "averageDeliveryTimeHours": 123
}

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Query Parameters

period
string
default:monthly
startDate
string<date-time>
endDate
string<date-time>

Response

Booking analytics retrieved

bookingsByPeriod
object[]
bookingsByStatus
object
deliveryRate
number<double>
cancellationRate
number<double>
averageDeliveryTimeHours
number<double>