Retrieving the payout reporting data by payment is a two-step process. You must:
-
Send a
POST
request to the/era/v1/payout/payments/day
endpoint to create a request for payout reporting data organized by payment for the restaurants in a management group. The response is thereportRequestGuid
, the unique request identifier.Note
The analytics API currently only supports retrieving payout by payments reporting data for the
day
time range.For more information, see Creating a request for payout reporting data by payments.
-
Send a
GET
request to the/era/v1/payout/payments/{requestReportGuid}
endpoint to retrieve the payout reporting data organized by payments. For more information, see Retrieving the payout reporting data by payments.
Send a POST
request to the
/era/v1/payout/payments/{timeRange}
endpoint to request
payout reporting data organized by payments 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 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 payments, include the following:
-
The
startDate
value in the message body, inYYYYMMDD
format. This identifies the start date for the range of included payments. This value must match theendDate
value. -
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. -
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/payments/day
endpoint.
curl -i -X POST \ 'https://[toast-api-hostname]/era/v1/payout/payments/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 payments 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 payments 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/payments/day
endpoint.
"62bd5cf3-26c5-4fa8-8f51-15b3dd4d2e09"
The GUID for the payout reporting data by payments
request, also called the |
For an example that shows how to retrieve the payout reporting data by payments, see Retrieving the payout reporting data by payments.
Send a GET
request to the
/era/v1/payout/payments/{reportRequestGuid}
endpoint to
retrieve payout reporting data organized by payments. 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/payments/{reportRequestGuid}
endpoint.
curl -X GET \ 'https://[toast-api-hostname]/era/v1/payout/payments/bc5279b0-a46d-4707-94e6-614edd31f2b3' \
-H 'Authorization: Bearer [token]'
Send a |
|
Include the GUID for the payout reporting data organized
by payments 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/payments/{reportRequestGuid}
endpoint.
[ { "restaurantGuid": "95a96d7b-dbf5-46d3-98c5-c65c8ad18021", "restaurantName": "Grove Place Cafe", "restaurantLocationName": null, "restaurantLocationCode": "", "orderGuid": "e9b858ca-0694-4948-b97b-f80e0d2e72a1", "checkGuid": "05c8b87f-abb7-4c30-9b74-b936ee02162d", "paymentGuid": "36fdb0b7-5b66-49e3-b360-e0c10a497612", "settledDate": 20240702, "orderOpenDateTime": null, "paidDateTime": "2024-07-01 08:14:06", "paymentCardBrand": "Visa", "paymentCardType": "Credit", "tipAmount": 0.0, "gratuityAmount": 0.0, "paymentSubtotal": 1.39, "paymentTotal": 1.39 }, { "restaurantGuid": "95a96d7b-dbf5-46d3-98c5-c65c8ad18021", "restaurantName": "Grove Place Cafe", "restaurantLocationName": null, "restaurantLocationCode": "", "orderGuid": "7f0d83dc-04cc-4c0f-98ab-fb3fe34dae77", "checkGuid": "01f7500c-add4-42f6-96c0-ad6f2c9832cf", "paymentGuid": "01f7500c-add4-42f6-96c0-ad6f2c9832cf", "settledDate": 20240702, "orderOpenDateTime": null, "paidDateTime": "2024-07-01 22:57:44", "paymentCardBrand": "AMEX", "paymentCardType": "Credit", "tipAmount": 0.01, "gratuityAmount": 0.0, "paymentSubtotal": 1.39, "paymentTotal": 1.4 }, { "restaurantGuid": "95a96d7b-dbf5-46d3-98c5-c65c8ad18021", "restaurantName": "Grove Place Cafe", "restaurantLocationName": null, "restaurantLocationCode": "", "orderGuid": "7ddda484-72e6-4c6b-bdf2-10ab4f4bf66c", "checkGuid": "415fc617-9a52-43a2-b9d0-938f0d4ae2c7", "paymentGuid": "eb2f462a-d442-4707-94a3-38b2d93146e1", "settledDate": 20240702, "orderOpenDateTime": null, "paidDateTime": "2024-07-01 21:45:41", "paymentCardBrand": "Discover", "paymentCardType": "Credit", "tipAmount": 0.01, "gratuityAmount": 0.0, "paymentSubtotal": 1.39, "paymentTotal": 1.4 } ]
Payout reporting data by payment contains objects that correspond to each available restaurant and payment 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 payments 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 payments. 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 identifier assigned by the Toast platform used to identify an order. This is the order associated with the payment. |
|
The identifier assigned by the Toast platform used to identify a check. This is the check associated with the payment. |
|
The identifier assigned by the Toast platform used to identify the payment. |
|
The date when the payouts associated with the payment were either processed or settled. |
|
The date and time when the order associated with the payment was opened. |
|
The date and time when the order associated with the payment was paid. |
|
The brand or card provider of the card used to complete the payment. |
|
The payment type used by the card completing the payment. The type can be one of the following values:
|
|
The tip amount added to the payment. |
|
The gratuity amount added to the payment. |
|
The total payment amount before tip and gratuity. |
|
The total payment amount, including tip, and gratuity. |