I am trying to perform a refund. The refund API requires a payment Id. Using the API explorer and reference I looked inside the Subscription and Invoice but I cannot find a payment ID to send to the Refund API. I have also looked for the Payment Id inside of Orders API but could not find anything.
So I create a Subscription that has an Invoice. The users asks to cancel and I need to refund the payment. How can I do this? What am I missing