v1

latestOpenAPI 3.0.02026-07-1398671635.1 KB
Restaurants
publicly-accessible

Get all availabilities

Get all availabilities on the restaurant's menu

get/restaurants/{tenant}/{restaurantId}/catalogue/availabilities

Path parameters

tenantstring required

Request tenant.

restaurantIdstring required

The restaurant Id.

Query parameters

limitinteger required

The maximum number of availabilities to fetch.

afterstring

Value representing a cursor - position to use when retrieving the next page of data. If provided, the value of this parameter must be URL encoded.

Response

Request succeeded.

Example response

{
  "availabilities": [
    {
      "id": "1-lunch-delivery",
      "name": "Delivery Lunch",
      "description": "Menu items available for delivery during weekdays for lunch.",
      "serviceTypes": [
        "delivery"
      ],
      "times": [
        {
          "daysOfTheWeek": [
            "monday",
            "tuesday",
            "wednesday",
            "thursday",
            "friday",
            "saturday",
            "sunday"
          ],
          "fromDateTime": "11:30:00",
          "toDateTime": "14:30:00"
        }
      ]
    },
    {
      "id": "1-dinner-delivery",
      "name": "Delivery Dinner",
      "description": "Menu items available for delivery during weekdays for dinner.",
      "serviceTypes": [
        "delivery"
      ],
      "times": [
        {
          "daysOfTheWeek": [
            "monday",
            "tuesday",
            "wednesday",
            "thursday",
            "friday",
            "saturday",
            "sunday"
          ],
          "fromDateTime": "16:30:00",
          "toDateTime": "22:00:00"
        }
      ]
    }
  ],
  "paging": {
    "cursors": {
      "after": "NDMyNzQyODI3OTQw"
    }
  }
}