Refund the total amount of an invoice (specified by Invoice ID) with empty body, or partial refund by providing a body with the amount.
Upon successful refund, the refunds array will contain an item with "responseMessage": "Approved". You can pay attention also to the invoiceStatus field, if the refund was successful, the status of the invoice will be “Refund” or “PartialRefund".
If the refund amount exceeds the remaining amount for the refund, or an invalid field or value is submitted, then a status code of 400 (Bad Request) will be returned.
If non-existent payment method is submitted, a status of 404 (Not Found) will be returned.
If payment method is already bound to another merchant or a customer, a status of 422 (Unprocessable Entity) will be returned.