Logo PopinaPopina API

Get booking window for a specific datetime

This endpoint allows the POS to fetch the booking window for a specific datetime. This endpoint takes exceptions and the location closing into account.

GET/v1/booking-windows/
authorization<token>

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

In: header

Query Parameters

datestring
Formatdate-time

Response Body

application/json

curl -X GET "http://localhost:4008/v1/booking-windows/?date=2019-08-24T14%3A15%3A22Z"
{
  "durationPerGuestCount": {
    "1": 45,
    "2": 60,
    "3": 75,
    "4": 90,
    "5": 105,
    "6": 120,
    "7": 120,
    "8": 120
  },
  "startsAt": "0000-00-00T12:00:00.000Z",
  "endsAt": "0000-00-00T14:30:00.000Z",
  "generalBookingWindowId": "d6b68aac-ccaf-44e5-af0c-8c73120fc2fd",
  "locationId": "69f71998-0553-40b2-ba3c-952f8b7eb6c2",
  "maxGuestsPerBooking": 8,
  "name": "Week Lunch Service",
  "onFriday": false,
  "onMonday": true,
  "onSaturday": false,
  "onSunday": false,
  "onThursday": false,
  "onTuesday": true,
  "onWednesday": true,
  "reservationInterval": 15,
  "totalGuestCapacity": 80,
  "useAutomaticPlacement": true,
  "useOnlineReservations": true,
  "isBookingAllowed": true,
  "isWithinClosingPeriod": false
}