This guide will be removed on April 29, 2022. Please use our new, easier-to-use Toast technical documentation site. All updated content is on the new site.
To get information about the discounts configured for a restaurant,
send a GET
request to the /discounts
endpoint of the configuration API.
In the results, the information about each discount includes the GUID that you use to apply the discount to an order in the orders API.
The following example shows the JSON return data for a
GET
request to the /discounts
endpoint.
[ { "guid": "a96fd992-9d69-4a62-894f-b621c31127a5","entityType": "Discount", "amount": 25, "selectionType": "CHECK",
"nonExclusive": true,
"percentage": null, "name": "$25 Off", "active": true, "itemPickingPriority": "FIRST", "type": "FIXED",
"fixedTotal": null }, { "guid": "f66bd37f-8814-4f3a-a8ec-536d359dc1b7", "entityType": "Discount", "amount": null, "selectionType": "ITEM",
"nonExclusive": false, "percentage": null, "name": "Buy one, get one apple!", "active": true, "itemPickingPriority": "LEAST_EXPENSIVE",
"type": "BOGO",
"fixedTotal": null }, { "guid": "baf12b76-511a-416d-871f-8d4532d425e4", "entityType": "Discount", "amount": null, "selectionType": "ITEM", "nonExclusive": false, "percentage": 100, "name": "Comp", "active": true, "itemPickingPriority": "FIRST", "type": "PERCENT",
"fixedTotal": null }, { "guid": "23b26475-7e0a-4c0b-a2dc-9b6fcbe49e15", "entityType": "Discount", "amount": null, "selectionType": "CHECK", "nonExclusive": false, "percentage": null, "name": "ComboWingsDrinks", "active": true, "itemPickingPriority": "FIRST", "type": "FIXED_TOTAL",
"fixedTotal": 5
} ]
The |
|
The |
|
The |
|
The |
|
Because it is a BOGO discount, the Toast platform applies the discount to items that match the item specification for the discount. In this case, it applies the discount to one of each set of two apples that are included as menu item selections in the check. |
|
For BOGO discounts, the |
|
The |
|
The type value |
|
The |
|
The |