Sending Invoice for confirmed orders via COD

Isn’t there any way to get the pay now invoice url via some api/webhook for confirmed orders that have selected COD as the payment method.

Kindly reply to this issue.