Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Unexpected "DELETED" Invoice Status From API

Started by James McFall -   in API Endpoints

I have built some API middleware that pulls Xero invoice statuses back into our internal ops system. In my logs I’m seeing a bunch of invoices pulling back the status of DELETED, however when I look at those invoices in Xero they’re not deleted.

For example, this invoice is sent and has been paid in full. The history is below.

Is there a reason I’m missing the API is returning this as a deleted invoice? I haven’t found anything relevant in the docs.

Invoice History

* Paid - 13 Dec 2018 1:03 p.m. - Payment received from ________ on 12 December 2018 for 767.05. This invoice has been fully paid.
* Reminders - 12 Dec 2018 7:51 a.m. System Generated - Invoice reminder sent for invoice 900530 to ________
* Invoice viewed - 4 Dec 2018 1:28 p.m. System Generated - This invoice has been viewed online
* Invoice sent 4 Dec 2018 1:22 p.m. - This invoice has been sent to ________.
* Approved - 30 Nov 2018 4:42 p.m. 900530 to ________ for 767.05.
* Created 30 Nov 2018 4:42 p.m. Imported from Xero file