Refund order (full)

This request will create a credit invoice with all order lines belonging to the ledgerId parameter of the request. An order must have a captured array populated with order lines for a refund to be successful, that is where the ledgerId string is located. Whether the refund action is available on the order or not, can be determined by inspecting the availableActions array on the suborder chunk. This can be retrieved from the GET order response.