Forum Discussion

dkarzon-pinch's avatar
12 hours ago

How to handle deleted invoices through the API

We have a system that syncs invoices from MYOB to allow payment on them. However, we have an issue where if an invoice is deleted within MYOB the API acts as if it never existed so searching for the invoice or getting invoices by a specific Customer does not return the invoice if it has been deleted.

Is there a way through the API to detect if an invoice was deleted in MYOB (either by the invoice Id or the number)? Any way other than checking for a 404 response on the API call for each individual invoice?