Once initiated, a refund typically cannot be canceled. As an alternative, you can create a new charge for the customer in the amount of the refund to recoup the funds.
For refunds where we reach out to the customer for their bank account details through email, the refund can only be canceled before the customer submits their bank account details through the refund input link, or in case of refund attempt failure or retry.
For refunds that can still be canceled, the cancellation can be initiated through the API.