Skip to content

Booking Capacity

Aggregated booking and capacity metrics grouped by venue, capacity plan, scenario, and business date.

Storage Location

{customer_id}/booking_capacity/{year}/{month}/{yyyymmdd}.json

Fields

FieldTypeRequiredDescription
customer_idintegerYesReference to Customer (parent or child)
customer_namestringYesCustomer name (denormalized)
venue_idintegerYesReference to BookingVenue
venue_namestringYesVenue name (denormalized)
capacity_plan_idintegerYesReference to BookingResourcePlan
capacity_plan_namestringYesCapacity plan name (denormalized)
scenario_idintegerNoReference to BookingScenario (null for no scenario)
scenario_namestringNoScenario name (denormalized)
business_datedateYesBusiness date (adjusted for over-midnight operations)
gross_capacityintegerYesTotal physical capacity (sum of table capacities)
capacity_plan_adjustedintegerYesCapacity after applying plan capacity cap percentage
arrival_capacity_plan_adjustedintegerYesArrival capacity after applying plan arrival cap percentage
plan_capacity_cap_pctfloatNoCapacity cap percentage from plan
plan_arrival_cap_pctfloatNoArrival cap percentage from plan
scenario_capacity_allottedintegerNoScenario capacity allotment limit
scenario_capacity_maxintegerNoScenario maximum capacity limit
scenario_arrival_allottedintegerNoScenario arrival allotment limit
scenario_arrival_maxintegerNoScenario arrival maximum limit
scenario_allocate_capacitystringNoWhether scenario allocates capacity (Y/N)
scenario_use_plan_limit_gueststringNoWhether scenario uses plan guest limit (Y/N)
scenario_use_plan_limit_arrivalstringNoWhether scenario uses plan arrival limit (Y/N)
effective_capacityintegerYesFinal effective capacity considering all limits
effective_arrival_capacityintegerYesFinal effective arrival capacity considering all limits
total_reservationsintegerYesCount of non-cancelled bookings
total_guestsintegerYesSum of adult guests (excludes cancelled bookings)
total_guests_kidsintegerYesSum of child guests (tracked separately, not in capacity)
on_waitlistintegerYesCount of bookings on waitlist (status 90)
cancelledintegerYesCount of cancelled bookings (status 320)
no_show_countintegerYesCount of no-show bookings (status 310)
total_revenuefloatYesTotal gross revenue from sales orders linked to bookings
bookings_with_salesintegerYesCount of bookings with associated sales orders
capacity_utilization_pctfloatYesPercentage of capacity plan adjusted capacity used

Booking Status Codes

CodeDescription
90Waitlist
100Confirmed
300Completed
310No-show
320Cancelled

Note: Cancelled bookings (320) are excluded from guest counts and capacity utilization calculations.

Example - Dinner Service

json
{
  "customer_id": 12345,
  "customer_name": "Restaurant Group AB",
  "venue_id": 101,
  "venue_name": "Downtown Location",
  "capacity_plan_id": 5,
  "capacity_plan_name": "Dinner Service",
  "scenario_id": 12,
  "scenario_name": "Weekend Service",
  "business_date": "2024-12-03T00:00:00",
  "gross_capacity": 120,
  "capacity_plan_adjusted": 108,
  "arrival_capacity_plan_adjusted": 96,
  "plan_capacity_cap_pct": 90.0,
  "plan_arrival_cap_pct": 80.0,
  "scenario_capacity_allotted": 100,
  "scenario_capacity_max": 110,
  "scenario_arrival_allotted": 90,
  "scenario_arrival_max": 95,
  "scenario_allocate_capacity": "Y",
  "scenario_use_plan_limit_guest": "Y",
  "scenario_use_plan_limit_arrival": "Y",
  "effective_capacity": 100,
  "effective_arrival_capacity": 90,
  "total_reservations": 42,
  "total_guests": 95,
  "total_guests_kids": 12,
  "on_waitlist": 3,
  "cancelled": 2,
  "no_show_count": 1,
  "total_revenue": 28450.75,
  "bookings_with_sales": 38,
  "capacity_utilization_pct": 88.0
}

Example - Lunch Service (No Scenario)

json
{
  "customer_id": 12345,
  "customer_name": "Restaurant Group AB",
  "venue_id": 101,
  "venue_name": "Downtown Location",
  "capacity_plan_id": 3,
  "capacity_plan_name": "Lunch Service",
  "scenario_id": null,
  "scenario_name": null,
  "business_date": "2024-12-03T00:00:00",
  "gross_capacity": 80,
  "capacity_plan_adjusted": 80,
  "arrival_capacity_plan_adjusted": 80,
  "plan_capacity_cap_pct": null,
  "plan_arrival_cap_pct": null,
  "scenario_capacity_allotted": null,
  "scenario_capacity_max": null,
  "scenario_arrival_allotted": null,
  "scenario_arrival_max": null,
  "scenario_allocate_capacity": null,
  "scenario_use_plan_limit_guest": null,
  "scenario_use_plan_limit_arrival": null,
  "effective_capacity": 80,
  "effective_arrival_capacity": 80,
  "total_reservations": 18,
  "total_guests": 52,
  "total_guests_kids": 3,
  "on_waitlist": 0,
  "cancelled": 1,
  "no_show_count": 0,
  "total_revenue": 8920.50,
  "bookings_with_sales": 17,
  "capacity_utilization_pct": 65.0
}
  • Bookings - Individual booking transactions
  • BookingVenue - Venue configuration (masterdata)
  • BookingResourcePlan - Capacity plans and resource assignments (masterdata)
  • BookingScenario - Scenario configuration and limits (masterdata)
  • Customer - Parent customer/tenant (masterdata)
  • Orders - Sales orders linked to bookings

Version History

VersionDateChanges
1.0.02024-01Initial release

Technical documentation for partners and integrators