Invoice Update (Put) fails
The Invoice update ("Put") API call fails if the Invoice has already been Paid.
https://api.wildapricot.org/v2.2/accounts/{accountId}/invoices/{invoiceID}
The call fails with "Invalid paid amount." I tried to change "IsPaid" to "False" and the "PaidAmount" to "0.0" to resolve the error, but the API call still fails with the same message.
I tried to remove the "settlement" of the payment against the invoice using the following API call:
https://api.wildapricot.org/v2.2/accounts/{accountId}/payments/{paymentId}/UnallocateFromPayment
This successfully removed the Invoice from the list of settlements, however the invoice itself still shows as "Paid" and I am still unable to change it. Additionally, because the invoice is still marked as "Paid" I am unable to re-settle it against the payment through the API or through the Website!
How can we use the API to update an invoice that has already been marked as "paid" and then re-settle the payment amount?