This guide will be removed on April 29, 2022. Please use our new, easier-to-use Toast technical documentation site. All updated content is on the new site.

Restaurant opening and closing times

In the response to the GET request to the /restaurants/{restaurantGUID} endpoint of the restaurants API, the schedules value contains information about when the restaurant is open for business.

The following example shows the schedules value with the opening and closing time values.

Example of daily opening and closing times in the response from the restaurants API

"schedules": {
  "daySchedules": {
    "1495000000000023": {1
      "scheduleName": "Weekdays",
      "services": [
        
        [contents omitted]
      ],
      "openTime": "06:00:00.000",2
      "closeTime": "02:00:00.000"3
    },
    "1495000000000024": {4
      "scheduleName": "Weekends",
      "services": [
        
        [contents omitted]
        
      ],
      "openTime": "11:00:00.000",5
      "closeTime": "05:00:00.000"6
    }
  },
  "weekSchedule": {
    "monday": "1495000000000023",7
    "tuesday": "1495000000000023",
    "wednesday": "1495000000000023",
    "thursday": "1495000000000023",
    "friday": "1495000000000023",
    "saturday": "1495000000000024",8
    "sunday": "1495000000000024"
  }
}

1

The identifier of a one-day schedule configured for a restaurant. Each schedule can then be assigned to one or more days of the week.

2

The time that the restaurant opens on days that use this day schedule. Times are expressed in 24-hour format. For days that use this schedule, the restaurant opens at 6:00 AM.

3

The time that the restaurant closes on days that use this day schedule. Times are expressed in 24-hour format. For days that use this schedule, the restaurant closes at 2:00 AM.

4

The identifier of another one-day schedule configured for a restaurant.

5

The time that the restaurant opens on days that use this day schedule. Times are expressed in 24-hour format. For days that use this schedule, the restaurant opens at 11:00 AM.

6

The time that the restaurant closes on days that use this day schedule. Times are expressed in 24-hour format. For days that use this schedule, the restaurant closes at 5:00 AM.

7

The identifier of the day schedule that is used on this day of the week. The day of the week is determined by the local time zone of the restaurant.

8

The identifier of the day schedule that is used on this day of the week. The day of the week is determined by the local time zone of the restaurant.