This is all done automatically for you by the shop system. If there are any rebates available for an item, you will see a small table labeled "rebate" on the product information page. As you raise your order quantity, the shop will calculate and display your rebate accordingly.