Amazon already has implemented it both with Amazon Pantry and with Amazon subscribe and save. Each of them rewards you with discounts that increase as you add more stuff.
The trickiest thing is estimating what subscription frequency to use. I barely even think about optimizing for % discount.