Page 1 of 1

Updating a voided invoice

Posted: Sat Mar 16, 2024 6:07 pm
by stuart007
I am trying to update the status of a void invoice. Not the original invoice, but the actually invoice that has a "Type" of "Void" and shows in the UI as Void Invoice #123456

I have tried both the following API endpoints with PATCH: (FYI, doing a get on these does indeed retrieve the information)

/companies/0/invoices/23164/creditNotes/123456

companies/0/creditNotes/123456

Regardless of which one I use, I get back a 422 Unprocessable Entity, with a error message in the body of: "message": "Unable to create credit note."

Not even sure why it thinks I am trying to CREATE a credit note, as I am definitely using PATCH.

Re: Updating a voided invoice

Posted: Mon Mar 18, 2024 12:52 am
by Sindre
Hi Stuart.
It's not possible to edit a void invoice through the API, only credit notes.

In regards to the error messages returned we are aware that some of these are not correct and are working on this. Could you please send me a private message with the client build name where you see this error message and I will confirm what version you are currently on.

Regards