To return a rejected good you need an E-Way Bill. However, you need to reject the goods 72 hours before the generation of bills.