This method will be deprecated on September 30, 2025.Replace with getDiscountRule.
Retrieves a discount.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.