Retrieving the payout reporting data by settled date is a two-step process. You must:
-
Send a
POST
request to the/era/v1/payout/{timeRange}
endpoint to create a request for payout reporting data organized by settled 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 settled date. -
Send a
GET
request to the/era/v1/payout/{requestReportGuid}
endpoint to retrieve the payout reporting data organized by settled date. For more information, see Retrieving the payout reporting data by settled date.
Send a POST
request to the
/era/v1/payout/{timeRange}
endpoint to request payout
reporting data organized by settled 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 settled date, include the following:
-
The
startDate
value in the message body, inYYYYMMDD
format. This identifies the start date for the range of payout settled 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 payout settled 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/{timeRange}
endpoint. This example uses
the day
time range.
curl -i -X POST \ 'https://[toast-api-hostname]/era/v1/payout/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 settled 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 settled 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 by settled date. In this
example, restaurants are included with the
|
The following example shows the response from the
/era/v1/payout/day
endpoint.
"bc5279b0-a46d-4707-94e6-614edd31f2b3"
The GUID for the payout reporting data by settled date
request, also called the |
For an example that shows how to retrieve the payout reporting data by settled date, see Retrieving the payout reporting data by settled date.
Send a GET
request to the
/era/v1/payout/{reportRequestGuid}
endpoint to retrieve
payout reporting data organized by settled 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/{reportRequestGuid}
endpoint.
curl -X GET \ 'https://[toast-api-hostname]/era/v1/payout/bc5279b0-a46d-4707-94e6-614edd31f2b3' \
-H 'Authorization: Bearer [token]'
Send a |
|
Include the GUID for the payout reporting data organized
by settled 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/{reportRequestGuid}
endpoint.
[ { "restaurantGuid": "95a96d7b-dbf5-46d3-98c5-c65c8ad18021", "restaurantName": "Grove Place Cafe", "restaurantLocationName": null, "restaurantLocationCode": "", "settledDate": "20240710", "salesPeriodStartDateTime": "2024-07-09 12:53:55", "salesPeriodEndDateTime": "2024-07-09 22:47:59", "transactionCount": 19, "paymentAmount": 26.54, "refundAmount": 23.74, "totalFeeAmount": 2.85, "withholdingAmount": 0.0, "payoutAmount": -0.05, "payoutStatus": "CAPTURED" } ]
Payout reporting data by settled date contains objects that correspond to each available restaurant and settled payout 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 settled 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 settled date. The values are listed in the order they appear in the response.
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 payout was either processed or settled. |
|
The date and time of the first payment included in the payout amount. |
|
The date and time of the last payment included in the payout amount. |
|
The number of transactions included in the payout. |
|
The amount paid to the restaurant by guests using cards that contributes towards the payout amount. |
|
The amount refunded to guests by the restaurant that contributes towards the payout amount. |
|
The amount paid or owed by the restaurant in fees that contributes towards the payout amount. 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. This amount is calculated by
subtracting the |
|
The status of the payout. The status can be:
|