Now it is possible to apply a document type payment to a document type supplier refund and also a document type supplier refund to a document type prepayment. Both are available in UI and API.
Purchase To Pay: Supplier LedgerVersion 10.20
Add a supplier payment to a supplier refund, and a supplier refund to a supplier prepayment