Skip to content

Table bookings

Bookings use India Standard Time: dates as YYYY-MM-DD and times as 24-hour HH:mm. A booking starts and ends on the same day and can last up to 4 hours. Bookings can be made from now up to 60 days ahead.

With a publishable key, one phone number can hold at most 2 upcoming bookings at a restaurant.

A table is free for a time slot when no booking on that table and date overlaps it. Bookings added by staff in ALWS RESTRO count too.

GET /reservations/availability?date=2026-12-05&from=19:30&to=21:00 · publishable or secret key

{
"date": "2026-12-05",
"from": "19:30",
"to": "21:00",
"availableCount": 1,
"tables": [
{ "tableId": "-O4AKRdeH6", "tableNumber": 1, "floorId": "-O4AKRZk1n", "floorName": "Ground floor", "available": false },
{ "tableId": "-O4AKRdeH7", "tableNumber": 2, "floorId": "-O4AKRZk1n", "floorName": "Ground floor", "available": true }
]
}

ALWS RESTRO does not store seats per table, so availability is per table, not per party size. You can send a party size with the booking: it is saved and returned by the API, but the Reservations screen in ALWS RESTRO does not show it yet.

POST /reservations · publishable or secret key · send an Idempotency-Key header

{
"date": "2026-12-05",
"from": "19:30",
"to": "21:00",
"partySize": 4,
"customer": { "name": "Ravi Kumar", "phone": "+91 98765 00000", "email": "ravi@example.com" },
"notes": "Birthday dinner"
}
Field Required Notes
date, from, to Yes from must be before to.
customer.name, customer.phone Yes As for orders.
tableId No Book this table. Leave it out to get the first free table (lowest number first, per floor).
partySize No 1 to 100. Saved and returned by the API (not shown on the Reservations screen yet).
notes No Up to 500 characters. Saved and returned by the API (not shown on the Reservations screen yet).

Response 201:

{
"id": "-OCxA2mVb7",
"status": "confirmed",
"date": "2026-12-05",
"from": "19:30",
"to": "21:00",
"table": { "tableId": "-O4AKRdeH7", "tableNumber": 2, "floorId": "-O4AKRZk1n" },
"partySize": 4,
"customer": { "name": "Ravi Kumar", "phone": "+91 98765 00000", "email": "ravi@example.com" },
"notes": "Birthday dinner",
"accessToken": "Zk3n9…"
}

If the chosen table is taken you get 409 table_unavailable; if no table is free, 409 no_table_available. A booking longer than 4 hours gets 422 slot_too_long; a third upcoming booking for the same phone (publishable key) gets 422 too_many_bookings. Two customers booking the same table at the same moment cannot both succeed.

The booking appears immediately in ALWS RESTRO under Reservations.

GET /reservations/{id} · secret key, or publishable key with X-Reservation-Token: <accessToken>

POST /reservations/{id}/cancel · secret key, or publishable key with X-Reservation-Token

Allowed until the booking’s start time. The booking is removed from ALWS RESTRO and the table becomes free. The response is the booking with "status": "cancelled"; after that, reading it returns 404.

If the restaurant deletes a booking in ALWS RESTRO, reading it through the API returns 404.