Retrieving the payout reporting data by sales date is a two-step process. You must:
-
Send a
POST
request to the/era/v1/payout/sales-date/{timeRange}
endpoint to create a request for payout reporting data organized by sales date for the restaurants in a management group. The response is thereportRequestGuid
, the unique request identifier. The analytics API supports retrieving payout reporting data for the day, week, and month time ranges. For more information, see Creating a request for payout reporting data by sales date. -
Send a
GET
request to the/era/v1/payout/sales-date/{requestReportGuid}
endpoint to retrieve the payout reporting data organized by sales date. For more information, see Retrieving the payout reporting data by sales date.
Send a POST
request to the
/era/v1/payout/sales-date/{timeRange}
endpoint to request
payout reporting data organized by sales date for that specific time
range. The timeRange
can be day
,
week
, or month
. The type of time range you
use determines the rate limit for this endpoint and method type. The
rate limit for month
time ranges is 10 requests per hour.
The rate limit for day
and week
time ranges
is 10 requests per minute and 60 requests per hour. For more
information about API rate limits for the analytics API, see Analytics API rate limits.
You can limit the reporting data to inactive restaurants only
using the onlyInactiveRestaurants
query parameter. For
more information, see Viewing inactive restaurant data.
To create a request for payout reporting data organized by sales date, include the following:
-
The
startDate
value in the message body, inYYYYMMDD
format. This identifies the start date for the range of payment sales dates. This value must match theendDate
value if using theday
time range. -
The
endDate
value in the message body, inYYYYMMDD
format. This identifies the end date for the range of payment sales dates. This value must match thestartDate
value if using theday
time range. -
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. Leave therestaurantIds
value and theexcludedRestaurantIds
value empty to include all restaurants. -
The
excludedRestaurantIds
value in the message body. This identifies the only restaurants to exclude in the returned data using the restaurant GUID. All restaurants not listed are included in the returned data. Leave theexcludedRestaurantIds
value and therestaurantIds
value empty to include all restaurants.
Important |
You can include restaurant GUIDs for either
|
The following example curl command sends a
POST
request to the
/era/v1/payout/sales-date/{timeRange}
endpoint. This
example uses the day
time range.
curl -i -X POST \ 'https://[toast-api-hostname]/era/v1/payout/sales-date/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 payout reporting data organized by sales date 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 payout reporting data by sales date request.
{ "startDate": "20240710","endDate": "20240710",
"restaurantIds": ["95a96d7b-dbf5-46d3-98c5-c65c8ad18021"],
"excludedRestaurantIds": []
}
The start date of the time range for the payout reporting
data, in |
|
The end date of the time range for the payout reporting
data, in |
|
The list of restaurant GUIDs from the management group to include in the payout reporting data. Restaurant GUIDs not listed are excluded. |
|
The list of restaurant GUIDs from the management group to
exclude from the payout reporting data organized by sales date.
In this example, restaurants are included with the
|
The following example shows the response from the
/era/v1/payout/sales-date/day
endpoint.
"bc5279b0-a46d-4707-94e6-614edd31f2b3"
The GUID for the payout reporting data organized by sales
date request, also called the |
For an example that shows how to retrieve the payout reporting data by sales date, see Retrieving the payout reporting data by sales date.
Send a GET
request to the
/era/v1/payout/sales-date/{reportRequestGuid}
endpoint to
retrieve payout reporting data organized by sales date. The rate limit
for this endpoint and method type is five requests per second and 30
requests per minute. For more information about API rate limits for
the analytics API, see Analytics API rate limits.
The following example curl command sends a
GET
request to the
/era/v1/payout/sales-date/{reportRequestGuid}
endpoint.
curl -X GET \ 'https://[toast-api-hostname]/era/v1/payout/sales-date/bc5279b0-a46d-4707-94e6-614edd31f2b3' \
-H 'Authorization: Bearer [token]'
Send a |
|
Include the GUID for the payout reporting data organized
by sales date request, also called the
|
|
Include an authentication token. For more information, see Authentication and restaurant access. |
The following example shows the response from the
/era/v1/payout/sales-date/{reportRequestGuid}
endpoint.
[ { "restaurantGuid": "95a96d7b-dbf5-46d3-98c5-c65c8ad18021", "restaurantName": "Grove Place Cafe", "restaurantLocationName": null, "restaurantLocationCode": "", "salesDate": "20240723", "settledDates": [ "20240724" ], "transactionCount": 9, "paymentAmount": 12.58, "refundAmount": 9.79, "totalFeeAmount": 1.35, "withholdingAmount": 0.0, "payoutAmount": 1.44 } ]
Payout reporting data by sales date contains objects that correspond to each available restaurant and sales date combination. You can also choose to retrieve data for currently inactive restaurants. For more information, see Viewing inactive restaurant data.
The restaurants included in the payout reporting data organized
by sales date can be limited using either the
restaurantIds
or excludedRestaurantIds
value
in the message body. You can include restaurant GUIDs for only one of
these values. Any restaurants listed with the
restaurantIds
value are included in the payout reporting
data, with any restaurants not listed excluded. Any restaurants listed
with the excludedRestaurantIds
value are excluded from
the payout reporting data, with any restaurants not listed included.
When both are left blank, all restaurants are included
automatically.
The following table specifies the returned set of values in the payout reporting data organized by sales date. The values are listed in the order they appear.
Value name |
Definition |
---|---|
|
The unique identifier assigned to the restaurant by the Toast platform. |
|
The restaurant’s name. |
|
The restaurant’s location name. |
|
The restaurant’s location code. |
|
The date when the payment was completed. |
|
The date when the payouts associated with the payment were either processed or settled. |
|
The number of transactions made on the sales date. |
|
The amount paid to the restaurant by guests using cards on the sales date. |
|
The amount refunded to guests by the restaurant for payments made on the sales date. |
|
The amount paid or owed by the restaurant in fees associated with payments made on the sales date. An example is the processing fees charged by card providers on payments. |
|
The amount owed to Toast by the restaurant for products and services. For example, this includes Toast Capital, Fundraising, and Instant Deposit. |
|
The amount to be deposited into the
restaurant’s account associated with the sales date. This
amount is calculated by subtracting the
|