To do a partial refund, you would just specify the amount that you want to refund. Later, if you would like to refund the remaining portion, you can do so by specifying the remaining amount. In any refund transaction, you would reference the transaction id and transaction tag of the initial purchase or pre-authorization completion transaction.