Logo PopinaPopina API

Get available tables for a specified slot

By sending a slot, the POS can fetch all the available tables during that slot, to allow the user to pick one.

POST/v1/availability/tables
authorization<token>

To get an API key, please contact us. We'll be happy to help you.

In: header

slot
bookingIdToExclude?string

Response Body

application/json

curl -X POST "http://localhost:4008/v1/availability/tables" \  -H "Content-Type: application/json" \  -d '{    "slot": {      "startsAt": "2025-01-16T12:30:00.000Z",      "endsAt": "2025-01-16T13:30:00.000Z"    }  }'
[
  {
    "id": "2636dddb-f34a-4556-8c23-6e229c207907",
    "name": "Table 1",
    "seatCount": 2,
    "roomId": "ea012923-b678-4715-8c24-c64a2390b417",
    "booked": false,
    "guestCount": null
  },
  {
    "id": "a35b95b8-6383-4e8c-9c59-37a75e8c5e4b",
    "name": "Table 3",
    "seatCount": 4,
    "roomId": "ea012923-b678-4715-8c24-c64a2390b417",
    "booked": true,
    "guestCount": 4
  },
  {
    "id": "b5b8e2c2-4f9d-4b5a-8c0f-6c2b2f0f9f7e",
    "name": "Table 4",
    "seatCount": 4,
    "roomId": "ea012923-b678-4715-8c24-c64a2390b417",
    "booked": true,
    "guestCount": 2
  },
  {
    "id": "c5b8e2c2-4f9d-4b5a-8c0f-6c2b2f0f9f7e",
    "name": "Table 5",
    "seatCount": 6,
    "roomId": "ea012923-b678-4715-8c24-c64a2390b417",
    "booked": false,
    "guestCount": null
  },
  {
    "id": "d5b8e2c2-4f9d-4b5a-8c0f-6c2b2f0f9f7e",
    "name": "Table 6",
    "seatCount": 6,
    "roomId": "ea012923-b678-4715-8c24-c64a2390b417",
    "booked": false,
    "guestCount": null
  },
  {
    "id": "e5b8e2c2-4f9d-4b5a-8c0f-6c2b2f0f9f7e",
    "name": "Table 7",
    "seatCount": 8,
    "roomId": "ea012923-b678-4715-8c24-c64a2390b417",
    "booked": false,
    "guestCount": null
  },
  {
    "id": "f5b8e2c2-4f9d-4b5a-8c0f-6c2b2f0f9f7e",
    "name": "Table 8",
    "seatCount": 8,
    "roomId": "ea012923-b678-4715-8c24-c64a2390b417",
    "booked": false,
    "guestCount": null
  },
  {
    "id": "g5b8e2c2-4f9d-4b5a-8c0f-6c2b2f0f9f7e",
    "name": "Table 9",
    "seatCount": 10,
    "roomId": "ea012923-b678-4715-8c24-c64a2390b417",
    "booked": false,
    "guestCount": null
  },
  {
    "id": "h5b8e2c2-4f9d-4b5a-8c0f-6c2b2f0f9f7e",
    "name": "Table 10",
    "seatCount": 2,
    "roomId": "ea012923-b678-4715-8c24-c64a2390b417",
    "booked": false,
    "guestCount": null
  }
]