How to retrieve payment provider transaction ID

I am implementing a custom Payment Service Plugin.
Unfortunately my provider doesnt support webhooks, and I will have to manually register the transacrtion (trigger the event). However I can’t retrieve the payment provider’s transaction ID programmatically.
I can see that the transaction ID is visible in Dashboards Payments tab, but the APIs don’t return that information.

Can anyone help?