1. Read reference data
Use the catalog endpoints withCATALOG_READ to obtain restaurant IDs for
rooms, shifts, tables, prescribers and discounts. IDs belong to the key’s
restaurant. The catalog is not a list of bookable slots: it may contain
staff-only tables or inactive discounts. Availability determines what can be
booked.
GET /shifts/{id}/products, with the same scope, gives what a shift sells: its
deposit, its prepayment terms, and the formulas and add-ons a reservation can
buy. See products.
2. Search availability
WithAVAILABILITY_READ, call GET /availability using start_at_from,
start_at_to and party_size. Optional shift_id and room_id narrow the
search. Use ISO 8601 timestamps with an explicit offset; use --data-urlencode
when building query strings so a + offset is preserved.
start_at, shift_id and
the room, when present, from an actual returned slot. The response also supplies
its end_at and duration_minutes. POST /availability/check checks one exact
slot; 200 with data.available: false is a normal unavailable result.
Availability does not reserve capacity. Creation rechecks the slot and may
return 422 if it is no longer bookable.
3. Create the reservation
CallPOST /reservations with RESERVATIONS_WRITE. The following is a request
body; replace the example slot with one returned by availability.
true. Setting them to false
suppresses customer notifications and payment-link sending; it does not make the
request a dry run, prevent payment rows or disable restaurant-side
notifications. A reservation in CONFIRMED_PENDING_PAYMENT is cancelled when
its payment deadline passes: with send_payment_link: false, the customer
receives no payment link from the restaurant to pay it in time.
customer: null creates an anonymous reservation. customer: { "id": "..." }
books for an existing customer of the restaurant. Otherwise, pass the customer’s
details inline, customer.name required: the customer is found or created in
the same call, no separate customer call is needed. customer.on_match
(return_existing, update or create_new, see
customers) overrides the restaurant’s matching
setting for this call. source defaults to WEBSITE. The server always adds
the shift’s deposit: from its minimum party size, unless the reservation starts
within its deposit delay. Formulas and add-ons are sent in products (see
products). Inspect the returned status and
payments: 201 is not a promise of confirmation. total_amount_paid records
an amount in the smallest currency unit; it does not charge a customer. Privileged bypass flags and
initial_status are detailed in scopes and the
create endpoint.
Portal rules, and how to lift them
Without abypass_* flag, a create or an update follows the rules a guest meets
on the booking portal: availability, the shift’s hours, the deposit or
prepayment it asks for, and, on an update, the restaurant’s modification policy.
An integration that acts for the staff (a POS, an internal tool) lifts one rule
per flag, on both POST /reservations and PATCH /reservations/{id}:
A request that would skip a payment without
bypass_payments returns 422 with
the code PAYMENT_REQUIRED and details.required_flags: ["bypass_payments"]:
confirming a reservation that still owes its deposit, adding covers beyond the
deposit held, moving into a shift with a deposit or a mandatory prepayment,
creating on a shift whose formula is mandatory without sending one
(details.reason: PREPAYMENT_REQUIRED), or a force insert under a free shift’s
id at a time a paying shift serves. A flag sent without its scope returns
403 INSUFFICIENT_SCOPE.
Products (formulas and add-ons)
A shift can sell formulas (PREPAYMENT, a set menu that covers guests)
and add-ons (EXTRA, a cake, a bottle). A reservation buys them on
POST /reservations, with the rules of the booking portal.
Read what a shift sells
GET /shifts/{id}/products requires CATALOG_READ. All parameters are
optional:
date(YYYY-MM-DD, in the restaurant’s timezone): the shift must serve that day, otherwise422. Each product and variant then carriesstock: { remaining }, what is left that day (remaining: null: no limit at that level). Withoutdate,stockisnull.party_size: keeps only the variants open to this many guests.prescriber_id: the prescriber the reservation will carry. The products sold to it are listed, its exclusive offers included, and the public ones only if it sees them. Without it, the products sold to the public are listed.
deposit: the deposit the shift takes (amount_per_coverin the smallest currency unit,currency,mode,minimum_party_size,delay_minutesbefore which none is taken,refundable), ornull. It is collected online only when the venue has connected a payment provider.prepayment:offered,mandatory(a formula must be sent, unlessbypass_paymentswaives it) andrefundable.- Each product:
type,per_cover(sold per guest; otherwise once for the whole booking),online_payment(collected online with the booking; otherwise paid on site),deposit_percent(the share collected online),price_visible(whether the portal shows the price),minimum_delay_hours(notice needed before the start: given here, applied at creation), and its activevariantswith theirpricein the smallest currency unit,covers_per_unit(a formula for two is2),min_coversandmax_covers.
404; an unknown prescriber_id
returns 422.
Internal products are never listed nor sold here: a table formula or
add-on marked internal stays for the staff. This differs from
activities, where
audience=all reads and books internal offers with
ACTIVITIES_FORCE_INSERT.Send products with the reservation
Addproducts to the create body: up to 20 lines, each with type,
product_id, variant_id and a quantity from 1 to 100.
- the product is sold to the reservation’s audience: its
prescriber_id, or the public without one; - the variant is active and open to the party size;
- the product’s minimum delay before the start is respected;
- per-guest formulas cover the guests, and never seat more guests than the party (5 guests: three formulas for two pass, four do not);
- a product not sold per guest has
quantity: 1; - one line per variant;
- no more units of a per-guest add-on than guests;
- everything collected online (deposit and products) uses one payment mode and one currency.
422 VALIDATION_ERROR with details.reason:
A shift whose formula is mandatory, with a formula on sale to this audience
(or any create carrying a
prescriber_id, as on the booking portal),
refuses a create without one: 422 PAYMENT_REQUIRED with
details.reason: PREPAYMENT_REQUIRED. When the stock runs out between your
read and the create, the create returns 409 RESOURCE_CONFLICT with
details.reason: PRODUCT_CAPACITY_UNAVAILABLE: two simultaneous creates never
take the same last units.
The products appear in the reservation’s payments, next to the deposit,
with payment_type PREPAYMENT or EXTRA and their linked_product and
linked_variant. A line collected online is PENDING (its amount is the
deposit_percent share of the price); a line paid on site is FREE. When a
line is owed online, the reservation is CONFIRMED_PENDING_PAYMENT. An excerpt
of the 201 answer, with RESERVATIONS_READ_SENSITIVE (without it,
payments and payment_url are null):
payment_url, or you collect them or
charge them to the room. Unpaid at its deadline,
the reservation is cancelled.
With bypass_payments: true, nothing is collected: no deposit, the mandatory
formula is waived, and the products are recorded FREE (paid on site). They
still take stock. The flag requires RESERVATIONS_FORCE_CONFIRM as soon as
it waives something: a deposit due, a mandatory formula, or a product paid
online (an operational initial_status is the exception, see the create
endpoint).
An API key is not tied to any prescriber: the
prescriber_id you send
decides which products the reservation may buy, exclusive offers included.
Send the prescriber the booking really comes from.PREPAYMENT or EXTRA line not cancelled) keeps its day, time, shift
and party size: see read and update.
Recover from an uncertain result
external_id must be unique within the restaurant. Duplicates return 409, not
the original successful response. After a timeout, search GET /reservations by
external_id with RESERVATIONS_READ before creating again. Keep the same
external reference. There is no Idempotency-Key header contract on
POST /reservations, with or without products: external_id is what
protects against a double create (and a double sale of the products).
4. Read and update
GET /reservations supports filters and pagination: page starts at 1;
per_page defaults to 25 and cannot exceed 100. To sync changes, pass
updated_since: only the reservations created or modified at or after that
instant are returned, cancellations included, sorted by updated_at then id.
Keep the updated_at of the last reservation seen and pass it next time.
GET /reservations/{id} returns detail. Both require RESERVATIONS_READ; sensitive fields need the
additional scope.
PATCH /reservations/{id} requires RESERVATIONS_WRITE. Omitted fields remain
unchanged. customer: null disconnects the customer; { "id": "..." } connects
an existing customer from this restaurant. Customer fields without an ID update
the linked customer itself, which can affect other reservations referencing that
customer. If none is linked, provide a name to create and connect one. To change
a customer’s details, prefer PATCH /customers/{id}, which makes that explicit.
The guest gets an email and a WhatsApp, and the restaurant a notification, only
when the start, the party size or the room changes, or for the payment link of
CONFIRMED_PENDING_PAYMENT; send_client_notifications: false leaves the guest
to you. Moved without table_ids, the reservation gives back its tables, which
are placed again. A reservation holding payments keeps its shift. An update that
changes nothing returns the reservation as it is, and publishes no event.
A status is judged against the current one, whatever the scopes: a
REJECTED, DONE or NO_SHOW reservation keeps its status, and only a
request (PENDING, PENDING_PAYMENT) can become REJECTED; otherwise 409 RESOURCE_CONFLICT with the current status in details.status. NO_SHOW and
REJECTED give back the tables; REJECTED closes the unpaid payment lines and
sends the guest the refusal, NO_SHOW the restaurant’s no-show message five
minutes later, unless send_client_notifications: false.
POS service locks can reject updates with 409 and details.locked_fields.
Business-rule failures return 422; payments and the bypass flags follow the
portal rules. Cancellation is a separate
endpoint.
A reservation that holds products (a PREPAYMENT or EXTRA line not
cancelled), whether it was booked through the API, the portal or the
dashboard, cannot change its day, time, shift or party size: the update
returns 422 PAYMENT_REQUIRED with details.reason: HAS_PRODUCTS, whatever
the flags, bypass_payments and bypass_availability included. Products
cannot be added, removed or changed by PATCH either. To change them, cancel
the reservation and create a new one.
Hotel guests
A reservation carriesis_hotel_guest, hotel_room_number and
pms_reference: the stay and the guest in the hotel’s PMS ({ stay_id }), or null. The room and the reference are null without
RESERVATIONS_READ_SENSITIVE. POST /reservations and
PATCH /reservations/{id} take the same fields: a room or a reference implies
is_hotel_guest: true; is_hotel_guest: false, another room than the linked
stay’s, or pms_reference: null unlinks the stay.
Collect a payment
When the guest pays a line still owed outside EatNow — cash or card at the venue, a transfer, or money you took — callPOST /reservations/{id}/payments/{paymentId}/collect with PAYMENTS_WRITE,
an Idempotency-Key header and { "method": "CASH" } (CREDIT_CARD,
WIRE_TRANSFER, or PARTNER with your reference). The line becomes PAID
and a reservation awaiting its payment is confirmed. Only a charge still owed
on a booking the restaurant accepted is collected, and not while the guest is
paying it online (409, details.reason: checkout_open: retry in 15
minutes). Sending the same key and body again answers the same, even a
refusal — retry a refusal with a new key once it is resolved; another body
under the same key is refused (409). Keys are per API key and kept 30 days. EatNow never
refunds a collected line: a cancellation leaves that money to the venue.
Charge a line to the room
For a hotel guest,POST /reservations/{id}/payments/{paymentId}/room-charge
with PAYMENTS_WRITE and an Idempotency-Key header adds a line still owed to
their folio in the hotel’s PMS. The call takes no body. The venue must have
connected its PMS, and the reservation must
be linked to a stay (pms_reference) with its room number
(hotel_room_number): EatNow reads the stay again from the PMS and charges
only that very stay, if it is open to charges. For an activity, call
POST /activities/{id}/payments/{paymentId}/room-charge: the stay is the
cart’s, with the same answers.
201 and 202 return the reservation, as collect does. A replay of the key
answers the charge’s current state and never charges twice; a new attempt after
a refusal (the stay reopened, the credit limit raised) takes a new key. A line
charged to the room is refunded like a card: a cancellation within the refund
deadline reverses it on the folio.
5. Cancel
CallPOST /reservations/{id}/cancel with RESERVATIONS_CANCEL, JSON content
type and a JSON body: {} or { "reason": "Guest requested cancellation" }.
The resulting status is CANCELED_BY_RESTAURANT. An already canceled
reservation is returned without changing its existing cancellation status or
reason. POS service locks can reject cancellation with 409. So does a refund
of a CMI payment made less than 5 minutes ago (details.reason: capture_pending): retry shortly.