Why do partial refunds sometimes fail?

Partial refunds may only be performed against settled transactions.
So if you just make a mistake ringing up an order, or someone
returns something on the same day they bought it, you’ll need to
perform a full refund (which actually voids the original
transaction). Then do a new charge for the correct amount.