Forum Discussion

mbuckley0's avatar
2 years ago

Handling deleted invoices

We have a system that ingests invoices using the MYOB API into our own database. Other invoicing APIs we have integrated with do not have a hard delete of invoices so it is easy for us to keep track of whether an invoice has been deleted or not but with MYOB the invoice is completely removed from the system and there does not appear to be an easy way to know if an invoice has been deleted or not unless we do an API call for every invoice in our system to see if it still exists or not. Is there a better way to deal with deleted invoices?

  • Mike_James's avatar
    Mike_James
    Ultimate Cover User

    No easy way that we know of. We wish there was a soft delete process for invoices in MYOB!

  • NickAngelov's avatar
    NickAngelov
    Contributing User

    Hi mbuckley0,

     

    Unfortunately, the best you can do is get the client(s) to enable the 'Transactions cannot be changed, must be reversed' setting in preferences. You can then test it from the Company -> Preferences endpoint, refuse to run the rest of your integration and wag your finger at the client file until they switch it back on.

     

    Guaranteed to make the clients pretty unhappy though.

     

    Nick