If your UPI fund transfer has failed and your bank has debited the funds from your bank account, your bank will reverse the funds. Please check with your bank for further clarification.
If you transfer funds from a UPI ID linked to a bank account not registered with Zerodha, your fund transfer will fail, and the amount will not be credited. Banks can take up to 72 working hours to refund the amount.