The Refund Transaction API allows merchants to cancel UPI registration from their end. After registration is cancelled, amount will be released then there is no way to restore it and customer has to register fresh mandate with merchant.
Refund Transaction API to cancel UPI OTM
PayU’s Refund API is only used for cancellation a UPI One Time Mandate transaction. For more information, refer to Refund Transaction API.