Refunds. Location does not have a transaction with ID

I tried to use order_id with the transaction API in this case.

Our system is still using the transaction API and it works for the moment. So, could you advise, how is it possible to:

  1. How to refund payment which is done with the transaction API?
  2. How to handle webhooks for payments done with transaction API?