This code retrieves the discount amount associated with an order by first retrieving the order ID using the order key, then using the order ID to get the order object, and finally using the order object to get the discount total.
Was this code snippet helpful?
YesNo