Required when partially refunding a capture.

captureNumber string 50 required
Capture number to refund. This is the capture number which comes from Capture response
orderItems array of RefundOrderItem - required
Order items to refund
creditNoteNumber string 19 optional
Credit note number. The merchant may want to use internal credit note numbers, or let the AferPay generate one based on invoice to be credited.
merchantId string 50 optional
parentTransactionReference string 128 optional
parentTransactionReference is a unique reference from merchant or PSP system that can be used for future reference by the merchants
refundType enum (Refund, Return) - optional
Possible values include: 'Refund', 'Return'. Type of the refund. Please use "Return" for returned items and "Refund" for goodwill refunds.