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 add the discount, you add an AppliedDiscounts
object
to the MenuItemSelection
object or to the Check
object.
The AppliedDiscounts
object contains an
AppliedDiscount
object for each discount to apply. The
AppliedDiscount
object specifies the discount GUID.
"appliedDiscounts": [ { "discount": { "guid": "f66bd37f-8814-4f3a-a8ec-536d359dc1b7" } } ]
For an open amount discount, the AppliedDiscount
object
also contains a discountAmount
value that specifies the
amount of the discount.
"appliedDiscounts": [ { "discount": { "guid": "462c68a3-40ce-41ab-89e2-e26aaa41696e" }, "discountAmount": 2.0 } ]