The discount_allocation object

Contains the information about how a particular discount affects a line item and how the price reduces. The object can be accessed on customer order and notification templates. Shopify Plus merchants can also access properties of the discount_allocation object in the checkout.liquid layout file.

To learn how to represent discounts in your theme using the discount_allocation object, refer to Discounts.

The discount_allocation object has the following attributes: