Send a POST
request to the
/era/v1/check/day
endpoint to request check reporting data
for a single day. The rate limit for this endpoint and method type is
five requests per minute and 60 requests per day. For more information
about API rate limits for the analytics API, see Analytics API rate limits.
You can optionally include only the data from currently inactive
restaurants using onlyInactiveRestaurants
as a query
parameter. For more information, see Viewing inactive restaurant data.
To create a request for check data, include the following:
-
The
restaurantIds
value in the message body. This identifies the only restaurants to include in the returned data using the restaurant GUID. All restaurants not listed are excluded from the returned data. This value can be left empty to include all restaurants. -
The
excludedRestaurantIds
value in the message body. This identifies the restaurants to exclude from the returned data using the restaurant GUID. All restaurants not listed are included in the returned data. This value can be left empty to include all restaurants.Important
You can only include restaurant GUIDs for either
restaurantIds
orexcludedRestaurantIds
. Listing restaurant GUIDs for both results in a 400 error or blank data. -
The
startBusinessDate
value in the message body. This identifies the start date for the return data. This value must match theendBusinessDate
value. -
The
endBusinessDate
value in the message body. This identifies the end date for the return data. This value must match thestartBusinessDate
value.
Note |
The date used to determine whether a check is within the time range or not is the date the order was initially expected to be fulfilled. |
The following example curl command sends a
POST
request to the
/era/v1/check/day
endpoint.
curl -i -X POST \ 'https://[toast-api-hostname]
/check/day' \-H 'Authorization: Bearer
[token]
' \-H 'Content-Type: application/json' \
-d @
[request-info]
.json \
Send a |
|
Include an authentication token. For more information, see Authentication and restaurant access. |
|
Set the data type of the message body to
|
|
Include details about the requested check reporting data in the message body. The following example is the message body for this curl command example. |
The following example shows the message body for creating a check reporting data request.
{ "startBusinessDate": "20230201","endBusinessDate": "20230201",
"restaurantIds": [
"95a96d7b-dbf5-46d3-98c5-c65c8ad18021" ], "excludedRestaurantIds": []
}
The start date of the time range for the check reporting
data, in |
|
The end date of the time range for the check reporting data,
in |
|
The list of restaurant GUIDs from the management group to include in the check reporting data. Restaurant GUIDs not listed are excluded. |
|
The list of restaurant GUIDs from the management group to
exclude from the check reporting data. In this example,
restaurants are included with the |
The following example shows the response from the
/era/v1/check/day
endpoint.
"83c93717-02ba-4b7c-9891-dfe090274d2d"
The GUID for the check reporting data request, also called
the |
For an example that shows how to retrieve the check reporting data, see Retrieving the check reporting data.