Can you please confirm that if an order is "Rejected" then it means there was something wrong with the order itself (for instance, passing a non 5 paisa interval for LMT price) and hence if an order is rejected, we should not try to pass the order again to Z?
There could be other reasons like insufficient margin etc .
https://support.zerodha.com/category/console/portfolio/holdings/articles/why-is-my-order-getting-rejected
If you get InputException when placing orders,then that means there is something wrong with the order parameters.
https://kite.trade/docs/connect/v3/exceptions/#example
But anyways,if an order is rejected, you should read the reason.
Solve the issue and then only retry that order.