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. Bookings can be made from now up to 60 days ahead.

A table is free for a time slot when no booking on that table and date overlaps it. Bookings made in ALWS RESTRO by staff count too, so the website and the counter never book the same table for the same time.

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. If you take a party size, send it with the booking so the restaurant can see it.

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. Shown to the restaurant.
notes No Up to 500 characters.

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. 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 changes or deletes a booking in ALWS RESTRO, the API reflects that: a deleted booking returns 404.