Discount model and API