just openapi from the code. Do not edit it by hand: to change who may call an endpoint, change the permission check in its handler.
How to read it
- A tick means a person holding that role can call the endpoint.
- A role counts where it is held. A venue role works at its venue. Brand and organisation roles also cover the venues under them.
- Machine key is the key a Billy Q box or the Site Server signs in with.
- Where says which venue the role must cover. “Staff roles do not apply” means the endpoint is not tied to a venue, so no venue, brand or organisation role is enough.
Bookings
| Endpoint | Manager | Sales | Host | Game Host | Finance | Viewer roles | Admin roles | Machine key | Where |
|---|---|---|---|---|---|---|---|---|---|
List bookingsGET /bookings | With venue_booking_platform_id: any staff role with access to that platform’s venue. Without it: any staff role at any venue. | ||||||||
Create a bookingPOST /bookings | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
Get a booking by payment intentGET /bookings/payment-intent/{payment_intent_id} | The booker. Otherwise any staff role with access to the booking’s venue, or the machine key. | ||||||||
Get today’s bookings on a pool tableGET /bookings/table/{table_id}/today | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Get a bookingGET /bookings/{id} | The booker, any staff role with access to the booking’s venue and the machine key receive the whole booking. Any other signed-in customer receives the reduced view. | ||||||||
Convert a booking back to a leadPOST /bookings/{id}/convert-to-lead | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
Toggle the corporate flag on a bookingPATCH /bookings/{id}/corporate | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
End a booking’s sessionPOST /bookings/{id}/end | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | |||
Toggle the event flag on a bookingPATCH /bookings/{id}/event | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
Extend a bookingPOST /bookings/{id}/extend | ✓ | ✓ | The venue it belongs to | ||||||
Get a booking’s extension optionsGET /bookings/{id}/extend-options | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Set the kiosk ordering override on a bookingPATCH /bookings/{id}/kiosk-ordering | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
Toggle booking lock statusPATCH /bookings/{id}/lock | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
Preview the price of moving a bookingPOST /bookings/{id}/reprice-preview | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
Start a booking’s sessionPOST /bookings/{id}/start | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | |||
Replace all table assignments for a bookingPOST /bookings/{id}/tables | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Sessions
| Endpoint | Manager | Sales | Host | Game Host | Finance | Viewer roles | Admin roles | Machine key | Where |
|---|---|---|---|---|---|---|---|---|---|
List session tablesGET /session-tables | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
List sessionsGET /sessions | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Get the session on a pool tableGET /sessions/table/{id} | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Get a sessionGET /sessions/{id} | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Session players
| Endpoint | Manager | Sales | Host | Game Host | Finance | Viewer roles | Admin roles | Machine key | Where |
|---|---|---|---|---|---|---|---|---|---|
List session playersGET /session-players | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The organisation, brand or venue asked for |
Add a guest to a sessionPOST /session-players/guest | ✓ | ✓ | ✓ | The venue it belongs to | |||||
Delete a session playerDELETE /session-players/{id} | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | |||
Get a session playerGET /session-players/{id} | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Update a session playerPATCH /session-players/{id} | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Games
| Endpoint | Manager | Sales | Host | Game Host | Finance | Viewer roles | Admin roles | Machine key | Where |
|---|---|---|---|---|---|---|---|---|---|
List the games on a booking’s tablesGET /bookings/{id}/table-games | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Create a gamePOST /games | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
Create a game with its teams and playersPOST /games/with-teams | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
Update a gamePATCH /games/{id} | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
End a gamePOST /games/{id}/end | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
Start a gamePOST /games/{id}/start | ✓ | ✓ | ✓ | ✓ | The venue it belongs to | ||||
List venue game typesGET /venue-game-types | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The organisation, brand or venue asked for |
Get a venue game typeGET /venue-game-types/{id} | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Game shots
| Endpoint | Manager | Sales | Host | Game Host | Finance | Viewer roles | Admin roles | Machine key | Where |
|---|---|---|---|---|---|---|---|---|---|
List game shotsGET /game-shots | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The organisation, brand or venue asked for |
Create a game shotPOST /game-shots | ✓ | ✓ | The venue it belongs to | ||||||
Delete a game shotDELETE /game-shots/{id} | ✓ | ✓ | The venue it belongs to | ||||||
Get a game shotGET /game-shots/{id} | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Update a game shotPATCH /game-shots/{id} | ✓ | ✓ | The venue it belongs to | ||||||
List a team player’s game shotsGET /team-players/{id}/shots | ✓ | Staff roles do not apply | |||||||
Get a user’s latest ratingGET /users/{id}/latest-rating | ✓ | Staff roles do not apply | |||||||
List a user’s game shotsGET /users/{id}/shots | ✓ | Staff roles do not apply |
Stats
| Endpoint | Manager | Sales | Host | Game Host | Finance | Viewer roles | Admin roles | Machine key | Where |
|---|---|---|---|---|---|---|---|---|---|
List game type stat mappingsGET /game-type-stat-mappings | ✓ | Staff roles do not apply | |||||||
Get a game type stat mappingGET /game-type-stat-mappings/{id} | ✓ | Staff roles do not apply | |||||||
List stat typesGET /stat-types | ✓ | Staff roles do not apply | |||||||
Get a stat typeGET /stat-types/{id} | ✓ | Staff roles do not apply | |||||||
List team player statsGET /team-player-stats | ✓ | Staff roles do not apply | |||||||
Create or replace a team player statPOST /team-player-stats | ✓ | Staff roles do not apply | |||||||
Delete a team player statDELETE /team-player-stats/{id} | ✓ | Staff roles do not apply | |||||||
Get a team player statGET /team-player-stats/{id} | ✓ | Staff roles do not apply | |||||||
Update a team player statPATCH /team-player-stats/{id} | ✓ | Staff roles do not apply | |||||||
List user statsGET /user-stats | ✓ | Staff roles do not apply | |||||||
Create a user statPOST /user-stats | ✓ | Staff roles do not apply | |||||||
Delete a user statDELETE /user-stats/{id} | ✓ | Staff roles do not apply | |||||||
Get a user statGET /user-stats/{id} | ✓ | Staff roles do not apply | |||||||
Update a user statPATCH /user-stats/{id} | ✓ | Staff roles do not apply |
Pool tables
| Endpoint | Manager | Sales | Host | Game Host | Finance | Viewer roles | Admin roles | Machine key | Where |
|---|---|---|---|---|---|---|---|---|---|
List pool tablesGET /pool-tables | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The organisation, brand or venue asked for |
Get a pool tableGET /pool-tables/{id} | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Floor plan
| Endpoint | Manager | Sales | Host | Game Host | Finance | Viewer roles | Admin roles | Machine key | Where |
|---|---|---|---|---|---|---|---|---|---|
List a venue’s floor plan itemsGET /floor-plan-items | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Get a floor plan itemGET /floor-plan-items/{id} | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | The venue it belongs to |
Achievements
| Endpoint | Manager | Sales | Host | Game Host | Finance | Viewer roles | Admin roles | Machine key | Where |
|---|---|---|---|---|---|---|---|---|---|
List a user’s achievementsGET /users/{id}/achievements | ✓ | Staff roles do not apply |