discount object contains information about a discount, including its id, code, amount, savings, and type. Note that this object will display a value only if it's accessed in notifications or in the Order Printer app.
discount object has the following attributes:
Returns the id of the discount.
Returns the title or discount code of the discount.
Returns the title or discount code of the discount. Same as
Returns the amount of the discount. Use one of the money filters to return the value in a monetary format.
Returns the type of the discount. The possible values of