Refund order (partial)
This request creates a credit invoice using only the order lines in the request body. totalRefundAmount must equal the sum of the included order line totalAmount values.
An order must contain captured order lines for a refund to succeed, since ledgerId is taken from captured. To check whether refund is available, inspect availableActions on the sub-order chunk in the GET order response.