How can I get my subscription invoices refunded using the API?
You’ll need to get the
payment_id for the invoices you want to refund then use the Refunds API to refund the payments.
To get the
payment_id you’ll need to take the
order_id for the invoices you want to refund and call BatchRetrieveOrders with those
order_ids. In the orders response will be the
payment_ids for the invoices. You’ll then pass those IDs in the CreateRefund request.