Ive problem where I want to make refunds of order but when it gets upto RefundPayment in Payment Processor, only parameteres are empty paymentSessionData object and refundAmount. How i would get id of order? I know its part of REST request as URL path ("POST /admin/orders/order_01J4PMH1PBCH2KPD5Y8K43J500/refund") but how I can access those ,or is there other way to achieve that?
Like seems weird how built-in admin features are behind some wall, and cant access them or modify them.
Medusa 1.20.6