Getting information about a specific restaurant

Send a GET request to the /restaurants/v1/restaurants/{restaurantGUID} endpoint of the restaurants API to obtain configuration information for a specific restaurant. The endpoint returns a RestaurantInfo object that contains the following objects and their information:

  • General object: general information about the restaurant:

    • name is the restaurant's guest-facing name. For example: West End Grille.

    • locationName is a name used externally to differentiate multiple locations. For example, Davis Square might be the location of one of the restaurants in a restaurant group in a city.

    • locationCode is a code used internally to differentiate multiple locations. It is typically a 3 or 4 letter code.

    • description is a description of the restaurant. This description appears on Toast's website.

    • timeZone is the name of the restaurant's time zone in the IANA (Internet Assigned Numbers Authority) time zone database.

    • closeoutHour is the business day cutoff, which is the hour of the day that ends the current business day and starts the next. The value is 0-12 (midnight to noon) and is in the restaurant's time zone. For example, a value of 4 means that 4:00 AM is the close of the current business day. Note that this value is different from the closeTime value for a day schedule.

    • managementGroupGuid is the GUID of the restaurant management group.

    • archived indicates whether the restaurant has been made inactive on the Toast platform. An example reason that a restaurant is archived is that it was created in error.

    Note that the name, timeZone, and closeoutHour values are always populated, but the other values may be null.

  • URLs object: web addresses for the restaurant:

    • website is the restaurant's primary (independently-hosted) website.

    • facebook is the restaurant's Facebook page.To

    • twitter is the restaurant's Twitter feed.

    • orderOnline is the restaurant's online ordering page, where guests can place takeout or delivery orders.

    • purchaseGiftCard is the restaurant's website where guests can purchase gift cards. This value is populated only if the location has Toast gift cards (not a gift card integration).

    • checkGiftCard is the restaurant's website where guests can find balances and other information about gift cards. This value is populated only if the location has Toast gift cards (not a gift card integration).

  • Location object: information about the physical location of the restaurant:

    • address1 is the first line of the restaurant's street address.

    • address2 is the second line of the restaurant's street address.

    • city is the restaurant's city or town.

    • stateCode is the two-letter abbreviation of the restaurant's state, such as CA for California.

    • zipCode is the restaurant's ZIP or postal code.

    • country is the two-letter abbreviation of the restaurant's country, such as US for United States.

    • phone is the restaurant's 10-digit phone number.

    • latitude is the restaurant's north/south geographical coordinate in decimal degrees.

    • longitude is the restaurant's east/west geographical coordinate in decimal degrees.

  • Schedules object: information about the restaurant services (such as lunch and dinner) and the schedules for those services over a one-week period. For details on the Schedules object, see Restaurant configuration settings that affect order wait time.

  • Delivery object: information about the Toast delivery service provided by the restaurant:

    • enabled indicates whether the restaurant provides a Toast delivery service.

    • minimum is minimum order price that qualifies for delivery.

    • area is the geographic area in which the restaurant provides delivery service. The delivery area is represented by an encoded set of latitude and longitude coordinates that describe a polygon area on a map. The coordinates are encoded using the Google maps encoded polyline algorithm format.

  • OnlineOrdering object: information about the restaurant's online ordering service, including payment options for online orders. For details on the OnlineOrdering object, see Online ordering configuration.

  • PrepTimes object: information about the scheduled availability of dining options that are provided by the restaurant. For details on the PrepTimes object, see Restaurant configuration settings that affect order wait time.

The following example curl command sends a GET request to the /restaurants/v1/restaurants/{restaurantGUID} endpoint.

Get configuration of a specific restaurant

curl -X GET \
-H "Authorization: Bearer eyJzI1NiJ9hbGciOiJSU.eyJhd9yaXR5Ij
oiQ1JVTkNIVElNRSIsInJzR3VpZCI6IjE4YzQ5YWJlLWFlODItNGFlYy04ND
M1LWJhYTRjMjVlYTY2MiIsInNjb3BlIjpbImxWQiOlsidG9hc3QiXSwibmFt
aW5nQXV0aGhYm9yIiwib3JkZXJzIiwidXNlcm1nbXQiXSwiZXhwIjoxNDg0M
zg5ODUwLCJqdGkiOiJlMDYzZjJkMy1jNGYyLTRiZjItODJmNi01MTg1NWMzZ
DAxM2YiLCJjbGllbnRfaWQiOiJjcnVuY2h0aW1lIn0.X1_0y9Hzj5F9gdOw2
o6VSYTyZwooAJiFMDmNakbZrtiUdYwLzuLwLpCMQzX5pKYtOqDUz_cetGJL3
txKL1L-K2j1Enoq8An8hEM6e8J0KdAiwrYFO3W3CmWedaoz95K9ghNZVCs28
Td2Sp3Ix3fObxbrvanocx9_OT8S9uM8hdSXmBI_ykTWvOVgK4hO24V3DJy4b
9bz1FtgOvrClhELxCe8dJy7jiwAR60xczlCF5rna98RMLN6zY4ffjmljKFZ6
QV0KkVppWjEiJn7oFHiIylCX1sSg7sddrGatj0xJzts3GJ8u8_lryUNHaEvJ
dWq4Yzwo007AMgxjH9d241Y-g" \
-H "Toast-Restaurant-External-ID: 76cb1b05-cb1e-4adf-863a-b2a94a5ecdcf" \1
https://[toast-api-hostname]/restaurants/v1/restaurants/76cb1b05-cb1e-4adf-863a-b2a94a5ecdcf2

1

Use the Toast-Restaurant-External-ID request parameter to specify the GUID of the restaurant from which to retrieve configuration information.

2

Use the same restaurant GUID in the /restaurants/v1/restaurants/{restaurantGUID} endpoint.


The following example shows the JSON response data for a GET request to the /restaurants/v1/restaurants/{restaurantGUID} endpoint.

Get restaurant configuration return data

{
  "guid": "76cb1b05-cb1e-4adf-863a-b2a94a5ecdcf",1
  "general": {2
    "archived": false,
    "name": "Trattoria Roma",
    "locationName": Fenway,
    "locationCode": "",
    "description": "Italian food in a casual atmosphere",
    "timeZone": "America/New_York",
    "closeoutHour": 6,
    "managementGroupGuid": "ae6c32fe-f4d2-4dcc-aa82-f30edac96296"
  },
  "urls": {3
    "website": "https://www.example.com",
    "facebook": "",
    "twitter": "https://twitter.com/",
    "orderOnline": "https://www.toasttab.com/trattoria-roma/onlineorders",
    "purchaseGiftCard": "https://www.toasttab.com/trattoria-roma/giftcards",
    "checkGiftCard": "https://www.toasttab.com/trattoria-roma/findcard"
  },
  "location": {4
    "address1": "401 Park Drive",
    "address2": "",
    "city": "Boston",
    "stateCode": "MA",
    "zipCode": "02215",
    "country": "US",
    "phone": "1112223333",
    "latitude": 42.344552,
    "longitude": -71.102756
  },
  "schedules": {5
    "daySchedules": {
      "1495000000000023": {
        "scheduleName": "Weekdays",
        "services": [
          {
            "name": "Lunch",
            "hours": {
              "startTime": "12:00:00.000",
              "endTime": "15:59:00.000"
            },
            "overnight": false
          },
          {
            "name": "Dinner",
            "hours": {
              "startTime": "16:00:00.000",
              "endTime": "22:00:00.000"
            },
            "overnight": false
          }
        ],
        "openTime": "12:00:00.000",
        "closeTime": "22:00:00.000"
      },
      "1495000000000024": {
        "scheduleName": "Weekends",
        "services": [
          {
            "name": "Lunch",
            "hours": {
              "startTime": "12:00:00.000",
              "endTime": "15:59:00.000"
            },
            "overnight": false
          },
          {
            "name": "Dinner",
            "hours": {
              "startTime": "16:00:00.000",
              "endTime": "22:00:00.000"
            },
            "overnight": false
          }
        ],
        "openTime": "12:00:00.000",
        "closeTime": "22:00:00.000"
      }
    },
    "weekSchedule": {
      "monday": "1495000000000023",
      "tuesday": "1495000000000023",
      "wednesday": "1495000000000023",
      "thursday": "1495000000000023",
      "friday": "1495000000000023",
      "saturday": "1495000000000024",
      "sunday": "1495000000000024"
    }
  },
  "delivery": {6
    "enabled": true,
    "minimum": null,
    "area": ""
  },
  "onlineOrdering": {7
    "enabled": true,8
    "scheduling": false,
    "specialRequests": true,
    "specialRequestsMessage": "No substitutes",
    "paymentOptions": {
      "delivery": {
        "cash": true,
        "ccSameDay": true,
        "ccFuture": false
      },
      "takeout": {
        "cash": true,
        "ccSameDay": true,
        "ccFuture": false,
        "ccInStore": true
      },
      "ccTip": true
    }
  },
  "prepTimes": {9
    "deliveryPrepTime": 60,
    "deliveryTimeAfterOpen": 0,
    "deliveryTimeBeforeClose": 0,
    "takeoutPrepTime": 30,
    "takeoutTimeAfterOpen": 0,
    "takeoutTimeBeforeClose": 0,
    "takeoutThrottlingTime": 0,
    "deliveryThrottlingTime": 0
  }
}

1

The GUID of the restaurant from which configuration information is retrieved.

2

General information about the restaurant. The name of this sample restaurant is Trattoria Roma.

3

The web addresses for the restaurant.

4

The physical location of the restaurant.

5

The schedules and services provided by the restaurant. This sample restaurant has two day schedules, named Weekdays and Weekends. Each day schedule has an openTime value that designates when the first service of the day begins and a closeTime value for when the last service of the day ends.

6

The delivery service of the restaurant. In this sample restaurant, a delivery service is available.

7

The online ordering service provided by the restaurant. In this sample restaurant, a delivery service is available, orders are fulfilled as soon as possible, and both cash and credit card payments are accepted for takeout and delivery orders.

8

The enabled value in the OnlineOrdering object will always be true after the restaurant does their initial setup for Toast Online Ordering.

9

The scheduled availability of the dining options provided by the restaurant.