Update the UpdatedDateUtc value on an invoice when an invoice is sent or unsent via the Xero web interface
Sadly this is a bug not a feature request ...
We have found and verified that invoices that are sent via the Xero web UI do not update the UpdatedDateUtc value. In the case of synchronising to an external system this makes it difficult to keep the invoice status in sync (so we can avoid expensive API calls).
Typical use case is:
- A lot of invoices are created - these sync to our local system.
- We track the latest modified date and store for future syncs.
- Invoices are sent from Xero - webhooks trigger for these.
- We then check with Xero for updates since our latest date and find none.
Workarounds are possible, e.g. periodically scanning all invoices to detect this, using the webhook payload to inspect individual invoices, but these eat into API calls which is problematic when there is a large amount of invoice activity, e.g. at the start of the month.
Details of this can be found here https://community.xero.com/developer/discussion/10165093/ we have
-
Keertika Chandola commented
Hi Bob, thanks for highlighting this. It has been passed to the relevant team.
In the mean time you can either use the API, like you mentioned in one of your comments, or you can use the New Invoicing on the web app rather than Classic. New invoicing will update the UpdateDateUTC once you mark an invoice as sent.Thanks
Keertika -
Bob Brown commented
Oh, I should add that setting the SentToContact value to 0 or 1 via the API *DOES* update the UpdatedDateUtc value.