Bookings
Get booking floor
Reads the live native floor, including current parties, holds, and the next claim within 24 hours.
https://api.maple.inc/v1/locations/{locationId}/booking_floorAPI keyReads the live native floor, including current parties, holds, and the next claim within 24 hours. Requires bookings:read. Guest contact is limited to names and the last four phone digits. Read on demand or poll no more often than every 15 seconds; booking webhooks signal changes.
Authorization
Send your API key as Authorization: Bearer <key>: mpk_test_… against the sandbox (https://api.staging.maple.inc/v1), mpk_live_… against production. See Authentication. The samples read the key from MAPLE_KEY and the base URL from MAPLE_BASE, as set up in the Quickstart.
Parameters
locationIdstring required
Responses
200 OK
-
objectstring requiredAlways
booking_floor. -
location_idstring required -
livemodeboolean required -
as_ofstring required -
time_zonestring required -
tablesobject[] required -
tables[].unit_idstring required -
tables[].area_idstring required -
tables[].area_namestring required -
tables[].seatsobject required -
tables[].seats.mininteger or null required -
tables[].seats.maxinteger or null required -
tables[].listedboolean required -
tables[].statestring requiredOne of
free,seated,reserved,held,maintenance. -
tables[].currentobject or null required -
tables[].current.kindstring requiredOne of
booking,hold. -
tables[].current.booking_idstring or null required -
tables[].current.party_sizeinteger required -
tables[].current.started_atstring required -
tables[].current.ends_atstring or null required -
tables[].current.guestobject or null required -
tables[].current.guest.first_namestring or null required -
tables[].current.guest.last_namestring or null required -
tables[].current.guest.phone_last_fourstring or null required -
tables[].nextobject or null required -
tables[].next.booking_idstring or null required -
tables[].next.starts_atstring required -
tables[].next.party_sizeinteger required -
areasobject[] required -
areas[].area_idstring required -
areas[].namestring required -
areas[].capacityinteger or null required -
areas[].seats_in_useinteger required -
summaryobject required -
summary.tables_totalinteger required -
summary.tables_busyinteger required -
summary.tables_out_of_serviceinteger required -
summary.off_plan_partiesinteger required
Errors
-
400Bad request -
401Unauthorized -
403Forbidden -
404Not found -
422Unprocessable -
429Too many requests
Every error body names the error in _tag, explains it in message, and says where to report it in feedback. See Errors.
A 429 also sends Retry-After: Seconds to wait before retrying; also returned as retry_after in the body.