Updating a voided invoice
Posted: Sat Mar 16, 2024 6:07 pm
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.
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.