Bookings, free times and restaurants
These routes act on the diary itself rather than on the data hanging off it.
Writing to it needs its own scope, bookings:write, separate from
attributes:write on purpose: writing an attribute value onto a booking is a
smaller power than putting a booking in the diary or moving one, so a restaurant
can give an analytics integration the attribute scopes without also letting it
book. Asking which times are free, or which restaurant, area, table or
experience an id names, needs no scope at all, so a partner that offers times
never needs the power to take one.
| Route | Scope | What it does |
|---|---|---|
GET /bookings | bookings:read | Pages the diary |
GET /bookings/{bookingRef} | bookings:read | Reads one booking |
GET /restaurants | none (any key) | Names the restaurant ids bookings carry |
GET /restaurants/{restaurantId}/areas | none (any key) | Names the area ids bookings and free times carry |
GET /restaurants/{restaurantId}/tables | none (any key) | Names the table ids bookings carry |
GET /restaurants/{restaurantId}/experiences | none (any key) | Names the experience ids free times take |
GET /availability | none (any key) | The free start times for one date and one party size |
POST /customers | customers:write | Creates a guest, or hands back the one you already described |
POST /bookings | bookings:write | Creates a reservation |
PATCH /bookings/{bookingRef} | bookings:write | Changes one’s times, party size, status, guest, tables, notes, allergens, dietary preferences and requested area/table count |
PUT /bookings/{bookingRef}/source-identity | attributes:write | Attaches your own key to a booking |
DELETE /bookings/{bookingRef}/source-identity/{sourceSystem} | attributes:write | Removes your key from a booking |
A booking’s restaurant_id, its source_system/source_key pair and a
duration_minutes are not PATCH members: the restaurant never changes, the
pair moves through the source-identity routes (see
One key per system per record),
and a length is set by moving end_time.
The guest comes first, and you will not create a second one
Section titled “The guest comes first, and you will not create a second one”POST /bookings takes either a customer_id you already hold, or a
customer object carrying what your own system knows:
{"firstname":"Kari","lastname":"Nordmann","phone":"+4790000001"}. The second
form is resolved against the guests the restaurant already has, by the same
routine the staff app and the booking widget use — so sending the same person
twice gives you the same customer_id twice, not two guests. The exception is
a conflict on a phone another guest holds: every request repeating those
details creates one more provisional guest, so book that guest again by the
customer_id the first answer gave you. The response says which happened in
guest.created and why in guest.match_reason.
At least one of email or phone is required, and a name alone is
refused. That is not a limitation of this route: matching works on evidence, and a
guest carrying only a name can never be matched or de-duplicated against again by
anyone, including you on your next call. The name still matters — it is what
decides BETWEEN two guests an email or a phone already reached, and a name that
contradicts the one on a reached profile creates a separate guest rather than
overwriting that person.
A guest the details cannot narrow to one person is refused rather than guessed
at, and no reservation is written in that case: several guests match, or the
one guest reached cannot be confirmed, because the number or address no longer
belongs to them or because they have no name on file to check the one you sent
against. A reservation written against nobody would look complete, join no guest
history, and nothing downstream would tell you, so you are told while you can
still act on it. Sending the guest’s name alongside the channel can settle
several matches, and settles a number or address the guest has since given up.
A guest with no name on file is named by id instead: resolve the guest yourself
with POST /customers/resolve and send the customer_id you chose.
Nothing here edits a guest you did not create. A matched guest’s name, email and phone stay exactly as the restaurant holds them; what you sent is kept as this booking’s own contact details.
Which guest, and why
Section titled “Which guest, and why”guest.match_reason here, and match_reason on POST /customers, explain an
attribution without your reading the data:
newcreated a guest: nothing on file reached these details.conflictcreated one too: a profile held the channel while the name disagreed, so a separate guest was created rather than overwriting a stranger, and flagged for the venue to merge or keep apart. When the conflict is on a phone, each further request with these details adds another guest record (a card) until they decide: book that guest by thecustomer_idyou got back, and onPOST /customerssend yoursource_system/source_keypair, which is checked before any contact detail and finds the guest it was attached to. A byte-for-byte retry under the sameIdempotency-Keyreplays the first answer instead.source_keymatched thesource_system/source_keypair you have used before, which is checked before any contact detail, andsource_key_aliasa card that pair named and that has since been merged into this guest.phone_emailandphone_email_namematched on both channels, the second with the name agreeing;phone_nameandemail_nameon one channel with the full name agreeing.phone_name_partialandemail_name_partialmatched on one channel and the one name half you sent, the other half being blank on one side.phone_alias_nameandemail_alias_namematched on a number or address that belongs to a card merged into this guest, the name agreeing.phoneandemailmatched one channel reaching exactly one guest, with no name sent to check. It is accepted because nothing contradicted it; send a name to make such a match stronger.
Worth logging beside your own id: conflict means the venue now has two cards
for one address, and phone or email alone means the match rested on one
channel with no name to confirm it.
The two verdicts that prove nothing never appear there: ambiguous, where
several guests match, and insufficient_evidence, where the only match is
through a channel its guest no longer holds, or a guest with no name on file to
check yours against. They identify no guest, so the
create is refused on customer instead and you decide which guest you meant.
One request, one transaction
Section titled “One request, one transaction”POST /bookings writes the reservation, its table links, the guest its details
resolve to and its values in one transaction, so a refused request leaves no
booking and no half-made guest behind. A values map needs attributes:write
on top of bookings:write, and it is what lets one call mirror a reservation
from another system where that used to take two: a refused attribute key leaves
no reservation and no table link, so a retry with the key corrected cannot land
a second booking.
A PATCH writes the reservation’s own fields in one statement, so a refusal
writes none of them, and changed names the members it actually moved.
A reservation does not need a table
Section titled “A reservation does not need a table”Omit table_ids and the booking is created with no table attached. That is a
real reservation, not a draft — the restaurant’s own staff create them that way
when they intend to seat a party later, and the floor sees it. A waitlist entry
is one too.
Send table_ids and each one must belong to the restaurant and still be on its
floor plan, which is what an active row of
GET /restaurants/{restaurantId}/tables is (see
Areas, tables and experiences): a table the
venue has removed, or one in a removed area, answers 400 on table_ids. Each must also be free for the whole window. A table already
held is 409, the detail names the table as the floor labels it, and
nothing is written. The same applies to a PATCH that moves a booking onto a
new table: the booking keeps the tables it had.
A PATCH replaces the table set wholesale — there is no add/remove form, and
[] detaches every table. Only a table the set ADDS must still be on the floor
plan; one the reservation already holds may be sent back after the venue
removed it.
What this API does not check, and tells you about
Section titled “What this API does not check, and tells you about”A restaurant’s opening hours and its online party limit do not refuse a booking made through this API. An integration is a trusted caller rather than a member of the public, and a venue taking a party of 20 by phone for 06:00 is a real reservation that the widget would have declined.
So the two checks are reported instead of enforced:
accepted_outside_opening_hours and accepted_above_online_party_limit ride
on the 201 and on every PATCH answer. Read them. A true means the
restaurant will see a booking in a slot it does not normally sell, which is
occasionally what was wanted and is otherwise a bug in your own input.
The opening-hours flag is read on the venue’s clock, in its own timezone,
against the restaurant’s weekly schedule with its special days and mid-service
closures applied. No area’s hours are consulted, neither a schedule of its own
nor its own breaks or special hours, and a venue that has published no hours at
all reports true for every time.
Capacity is not checked either, and is not reported: a booking created or moved
WITHOUT table_ids is judged against no table, no cover limit and no
availability at all. Only a booking naming tables is checked, and only for
those tables, against the bookings already holding them. GET /availability
is advisory: its answer is not consulted when you book, and a slot names no
table. A channel that must not oversell either sends the table_ids the
reservation is to hold, so the overlap check applies, or polices capacity
itself.
A restaurant that has been closed down is a different matter and IS refused: a
disabled restaurant takes no new booking, and a demo
restaurant takes none, each a 400 on restaurant_id. The bookings a disabled
restaurant already has stay readable and fully patchable, cancelling them
included, which is what the day a venue closes calls for.
A booking status is a fixed vocabulary
Section titled “A booking status is a fixed vocabulary”Do not guess a booking status. The vocabulary is platform-fixed and published
as the BookingStatus component — completed, guest_no_show,
guest_cancelled_confirmed_booking and the rest. It governs the status
filter on GET /bookings and GET /customers/{customerRef}/bookings, the
status a booking row reports and a PATCH sets, and the status field of a
segment booking-condition. A value outside it answers 400 listing every
accepted one.
What a status change does
Section titled “What a status change does”Every status is writable, from any status, and this API enforces no transition
order. Several values do real work beyond the column, and a PATCH that moves
a booking into one from a different status does it:
booking_confirmedholds the tables, so the window is re-judged and can be refused 409.guest_arrivedandguest_seatedhold the tables the same way, and release a card guarantee held against the booking, through Stripe, as the host stand does.completedis the finished visit, and the only status the loyalty engine counts: the guest’s progress is recomputed and a reward can be issued. It releases a card guarantee only when the booking comes fromguest_arrivedorguest_seated; from any other status it releases nothing, becausecompletedalone does not show that the guest came.guest_no_showstampscancelledAt, hands a card guarantee to staff to charge or waive, and marks an already-captured deposit retained by the venue.system_closed_confirmed_bookingfrees the tables and hands a card guarantee to staff to charge or waive, as a no-show does, but leaves a captured deposit as it is and stamps nocancelledAt.guest_cancelled_confirmed_bookingandrestaurant_cancelled_confirmed_bookingstampcancelledAt, free the tables and settle the booking’s payment. A guest cancelling before the booking’s cancellation deadline has the guarantee released or the deposit refunded, and after it the guarantee goes to staff and the deposit is retained. A restaurant cancelling always releases or refunds.- the four request and waitlist values,
guest_cancelled_booking_request,restaurant_declined_booking_request,guest_cancelled_waitlist_requestandrestaurant_declined_waitlist_request, stampcancelledAtand free the tables, and touch no payment. system_closed_booking_requestandsystem_closed_waitlist_requestfree the tables, stamp nocancelledAtand touch no payment.
Only booking_confirmed, guest_arrived and guest_seated hold a table, so a
booking_requested reservation never collides with one. Moving a booking back
OUT of completed recounts its loyalty the other way, and moving it out of any
status that stamps cancelledAt clears the stamp. This API does not expose
payments today, so it cannot tell you which guarantee or deposit a booking
carries.
A create is not a transition, so its side effects are not the ones a PATCH to
the same value has, and the difference is not cosmetic. POST /bookings
defaults to booking_confirmed and accepts any of the sixteen, which is what
lets a POS backfill history as completed or guest_no_show. Creating as
completed does count towards the guest’s loyalty, while creating as a
cancelled or no-show status stamps NO cancelledAt and sends nothing, and
creating as guest_arrived releases no card hold: those are driven by
transitions, and a booking written straight into the status never made one. Set
the history you want, then PATCH it onward when you want the transition’s
effects as well.
What the guest is sent
Section titled “What the guest is sent”The venue’s own SMS and email setup decides what the guest receives, and this
API has no way to suppress it. A reservation created as booking_confirmed
sends the same confirmation one made in the app does, and one created as
booking_requested or waitlist_requested the same request-received note.
Three PATCH transitions also write to the guest, where the venue has that mail
switched on: a booking_confirmed reservation moving to either
*_cancelled_confirmed_booking, a booking_requested one moving to
restaurant_declined_booking_request, and a waitlist_requested one moving to
restaurant_declined_waitlist_request. A guest WITHDRAWING their own request
sends nothing.
Every booking you create is an API booking
Section titled “Every booking you create is an API booking”bookingType is API and channel is api on everything these routes
create, and neither is a body member — a caller claiming to be Online would
corrupt the restaurant’s own reporting, which is the one thing a partner must
never be able to do. It also means the owner can see exactly what your
integration booked, in the same breakdown that shows them their widget and their
phone bookings.
The booking you just created will be delivered back to you
Section titled “The booking you just created will be delivered back to you”If you also subscribe to booking.created, your own writes arrive at your
endpoint like any other booking. That is either the confirmation you wanted or an
echo you must drop.
Drop it by your own key. POST /bookings writes the
source_system/source_key pair you send before the booking itself, so the
booking.created it raises already carries it: a subscription that declared
your source_system receives data.booking.source_system and
data.booking.source_key set to your own pair, and a key you issued is one you
can recognise. Dropping by id works as well — the id in the delivery is the
id the 201 gave you — but it means remembering every id you created.
A subscription that declared no system, or another one, receives both members null: a key is disclosed only to the system that holds it.
Retry with an Idempotency-Key, always
Section titled “Retry with an Idempotency-Key, always”A reservation is the one thing in this API that a blind retry duplicates. A
request that times out may well have succeeded, and POST /bookings has no
natural key to collide on — two identical bookings for the same guest at the same
time are both legal, because a restaurant can genuinely take them. Send an
Idempotency-Key and a replay returns the first answer instead of making a
second booking. See “Idempotency” for the exact semantics.
Reading the diary
Section titled “Reading the diary”Every booking read returns the same object, BookingSummary: GET /bookings,
GET /bookings/{bookingRef}, GET /customers/{customerRef}/bookings (without
customer_id), the booking of a POST or PATCH answer when the key also
holds bookings:read, and the data.booking of a booking webhook. The first
two add the booking’s guest on request (see
The guest of a booking). Without
bookings:read, that booking carries the id, the pair and the reservation
itself (the first and last groups below) and none of the diary details between
them. BookingSummary carries every member a write can set:
start_time,end_time,status,guest_count,restaurant_idandcustomer_id, the reservation itself;customer_notesandstaff_notes, null when empty or only whitespace;allergensanddietary_preferences, as codes,[]when none is declared;requested_area_idandrequested_table_count, the guest’s requests, null when they made none;table_ids, the tables the booking holds, in ascending id order and[]when it holds none;id, and thesource_system/source_keypair under the rule in One key per system per record.
A PATCH replaces allergens, dietary_preferences and table_ids whole, so
to add one entry, send the list a read returned with the new entry in it.
GET /bookings pages by booking id in ascending order, at most
100 rows a page: a stable total order, so paging
never skips or repeats a row, but it is not chronological. Sort by start_time
yourself for a timeline. Its filters — restaurant_id, the from/to window
on start_time and status — are AND-ed; the window’s bounds are under
Timestamps. A bare date there
is a UTC day, not the venue’s local day. To read one venue-local day, take the
restaurant’s timezone from GET /restaurants, compute the day’s first and
last instants in that zone, and send each with the offset in force at that
instant: 18 August 2026 at a restaurant on Europe/Oslo is
from=2026-08-18T00:00:00%2B02:00&to=2026-08-18T23:59:59.999999%2B02:00, the
+ percent-encoded so the query does not read it as a space. Both bounds are
inclusive. To read only the bookings that changed since an instant,
deletions included, pass
updated_since instead of the window and status (see
Catching up with updated_since).
A booking can carry a restaurant_id that the default GET /restaurants does
not list, because its history outlives a disabled restaurant, so filtering on
such an id is valid and returns rows. A well-formed id of another tenant’s
restaurant matches nothing, and a key limited to some restaurants lists their
bookings only, so a restaurant_id outside them returns an empty page. The
listing also leaves out every booking a single read answers 404 for (see
Records this API does not acknowledge).
The guest of a booking
Section titled “The guest of a booking”GET /bookings and GET /bookings/{bookingRef} take include=customer, which
adds the booking’s guest as customer, the last member of each booking. It
needs customers:read on top of bookings:read, and a key without it answers
403 insufficient-scope. customer is the only value include takes on these
two routes: any other answers 400 validation-failed on include.
GET /customers/{customerRef}/bookings has no include, because its path
already names the guest.
customer is the guest as GET /customers/{customerRef} returns them to the
same key, without values: the id, the guest’s key from the system the
request names (?source_system= on the listing, a {system}:{key} ref’s
system on the single read, both halves null otherwise) and created_at, plus
the name, email, phone and marketing consent only when the key also holds
contacts:read; without it they are absent rather than null. It is null when the booking has no guest or
its guest is one GET /customers/{customerRef} answers 404 for, and absent
without include=customer. On an updated_since page every booking carries
it, trashed ones included, and a tombstone carries none.
One request answers a page of bookings with their guests, rather than one
GET /customers/{customerRef} per booking. A booking webhook can carry its
guest too, under the subscription’s include_customer (see
Booking events).
Restaurants and their ids
Section titled “Restaurants and their ids”GET /restaurants turns the restaurant_id a booking carries into a name a
human recognises. Any valid key may list it: it carries no personal data, and a
booking partner needs these ids for POST /bookings without holding
customers:read. It is unpaginated, like GET /segments, ordered by name, and
an empty data for a tenant with none.
The default listing holds only active restaurants, so pass
include_inactive=true to name every id this API hands you: history outlives
the restaurant that made it, and a client resolving ids against the default
listing alone finds a hole it cannot explain. With the flag the directory is
TOTAL over what /bookings can reference, and active: false marks the
disabled and demo restaurants, which are not somewhere to send new traffic.
Beside its id and name, each restaurant carries what an integration acting
for the venue needs:
timezone, the IANA zone the venue runs on. Its opening hours and thedateofGET /availabilityare read in it, and it is what turns a venue-local day into the instantsGET /bookingsfilters on (see Reading the diary).currency, the ISO 4217 code the venue trades in. An attribute withdisplay_hint: "currency"holds a bare major-unit amount, and the Nine Tables app shows it in the currency of the restaurant the user has open.address,cityandcountry, the last an upper-case ISO 3166-1 alpha-2 code, for a directory of the tenant’s locations.contact_phone, in E.164 form, andcontact_email: the contact details the venue publishes to guests in its booking widget, not an owner’s.
Every member but name and timezone is null when the venue left it blank,
never an empty string.
Areas, tables and experiences
Section titled “Areas, tables and experiences”Three directories under each restaurant name the ids that bookings and free
times carry. As with GET /restaurants, any valid key may read them, and each
answers one unpaginated data array:
GET /restaurants/{restaurantId}/areasnames therequested_area_ida booking carries and thearea_idGET /availabilitytakes. Each area says whether the venue offers it online, keeps opening hours of its own for it, and sells it by the table (sells_by_table, with the table counts a guest may ask for, which is whentable_countapplies).GET /restaurants/{restaurantId}/tablesnames thetable_idsa booking carries and sends, with the area each table stands in, the party range it seats on its own and its label on the floor plan. A booking delivery carries the same entry for each of its tables asdata.tables(see Booking events).GET /restaurants/{restaurantId}/experiencesnames theexperience_idGET /availabilitytakes, with the party range and sitting length each one is sold for and whether the venue’s widget lists it. When an experience runs is not listed:GET /availabilityanswers that per date.
An area’s or an experience’s name is the venue’s own text in the tenant’s
default language, or in another language it was written in when that one has
none, and null when it has no name at all. A table’s name is the plain label
the floor plan shows, which is also the name a 409 over a taken table uses.
The default listings hold active rows only. include_inactive=true adds what
the venue has removed, with active: false: an area or a table taken off the
floor plan, a table standing in a removed area, and an experience switched off,
cancelled or removed. With the flag, every table_ids and requested_area_id
a booking carries can be named, history included. A removed row is a name and
not a target: a table may be newly sent in table_ids, and an area as
requested_area_id, only while it is active, and an inactive experience is
refused by GET /availability. A booking that already holds a removed table or
area keeps it.
A disabled restaurant answers its directories as usual, because its existing
bookings stay patchable. A restaurantId this key cannot read, whether unknown,
another tenant’s or outside a limited key’s restaurants, answers one 400
validation-failed on restaurantId, as GET /availability refuses such an
id on restaurant_id.
Reading free times
Section titled “Reading free times”GET /availability answers the minutes a party may book at one restaurant on
one date, grouped by service period. They are the same minutes the venue’s own
booking widget offers for the same question — one implementation answers both —
so a slot returned here is one the venue would sell at the moment it was read.
It is an offer, not a hold, and POST /bookings does not consult it (see
What this API does not check).
Pass its start_time straight through as the booking’s start_time, and its
duration_minutes as the booking’s.
A period served for one area (its own schedule, or the restaurant’s hours
reshaped by that area’s own breaks or special hours) has
restaurant_wide: false and names that area in area_id; a restaurant-wide
period’s area_id is null.
Pass the id back as area_id to ask about that area alone, and send it as the
booking’s requested_area_id so the floor sees which area the guest was
offered. That member is a preference that seats nobody, and the opening-hours
flag does not read it, so a minute such an area serves outside the
restaurant’s own hours is booked with accepted_outside_opening_hours: true.
To ask about an area before any period has named it, read its id from
GET /restaurants/{restaurantId}/areas (see
Areas, tables and experiences).
experience_id, an active experience’s id from
GET /restaurants/{restaurantId}/experiences, narrows the free times to that
experience and does nothing more: POST /bookings has no experience_id
member today, so a booking made from such a slot is not attached to the
experience.
One date per call: ask again per date rather than for a range. The date is read
in the restaurant’s own time zone, which comes back as timezone, and a past
date answers no sittings, because the booking deadlines that close today’s late
minutes have long since closed it.
An empty answer is a 200, never an error. The only 400 is a query the venue
cannot be asked: a malformed parameter, a restaurant_id that names no active
restaurant this key may book at, or an experience_id that names no active
experience of that restaurant. An unknown id, another tenant’s, a disabled or
demo restaurant’s and one outside a limited key’s restaurants all answer that
same refusal, rather than an empty day, so a typo never reads as “we are closed
forever”.
Why a date has no sittings
Section titled “Why a date has no sittings”closed_reason is null whenever periods carries a sitting, and otherwise
says why there is none. The one thing a caller must not do is read every value
as “closed”:
closed— the venue keeps no opening hours on this date at all.party_size_above_online_limit— the party is larger than the venue accepts online (max_party_size_online). Nothing on any date will be offered for it; take the booking by phone or split the party.experience_party_size_out_of_range— theexperience_idyou named seats a narrower party range than you asked for. Ask again without the experience to see ordinary dining.experience_unavailable— the experience does not run on this date, or not in the area you narrowed to.online_booking_closed— the venue serves this date, but its own booking rules (minimum notice, a latest online arrival time, a daily cut-off) have closed every minute. Capacity is not the reason; a later date may well be open.no_availability— the venue serves and online booking is open, and nothing is left for this party. Compareparty_sizewithmax_seatable_gueststo tell “every table is taken” from “no table or combination here seats a party this size”.