How do I delete an Invoice in Xero from fmAccounting Link?
You don’t actually delete an invoice by calling a script to run a delete command on the Xero API for an Invoice (you do for Payments and other items though).
You delete an Invoice by changing the Status of the Invoice to ‘DELETED’ and uploading the Invoice to Xero. There are some rules around this (same ones that apply in the Xero web app):
- you can delete a DRAFT or SUBMITTED invoice by updating the Status to DELETED
- If an invoice has been AUTHORISED it cannot be deleted but you can set it’s status to VOIDED.