I can see that the updated_since parameter has been added to all relevant endpoints, and that’s awesome. We regularly download our data from FreeAgent for analysis and this parameter helps us keep below the rate limit. However, there doesn’t seem to currently be any way to monitor items that have been deleted.
For instance, when I create an invoice it will show up in the invoice endpoint with the updated_since parameter set to 24 hrs previous. I can then store that invoice in my database. If that invoice is modified, again I can detect that modification and change the record in my database. However, if that invoice is deleted it will not be returned by any endpoint and so will remain in my database incorrectly.
The only way to correct this and remove the deleted invoice is to page through ALL invoices and overwrite the entire database table. We’re now back to the issue of rate limiting.
It would be great for each API endpoint to return record IDs of deleted items with the attribute ‘deleted’ included. Or create an entirely new history endpoint which would return a list of creations, modifications and deletions from a given point in time across all models.