Updating a voided invoice

Wish the API had something it doesn't? Post here!
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
User avatar
stuart007
Posts: 16
Joined: Sat Jan 21, 2023 12:48 am
Location: Toronto, Canada
Contact:

Updating a voided invoice

Post by stuart007 » 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.
Sindre
Posts: 493
Joined: Wed Apr 20, 2022 4:51 am
Location: Brisbane

Re: Updating a voided invoice

Post by Sindre » Mon Mar 18, 2024 12:52 am

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
Sindre
API Developer | Simpro Software Group
Post Reply