A partial refund will refund a part of an invoice. The refunded amount will be deducted from the totalInvoicedAmount.
With a partial refund, invoice lines are needed, to specify what needs te be refunded. It is not required to refund existing invoice lines. It is not possible to refund more than the total order amount.
You can use the partial refund operation after a capture or partial capture.