Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Create new invoice & got message Invoice not of valid status for modification

Started by Dipesh Patel -   in API Endpoints

Create new invoice with AUTHORISED. I am getting message from xero 44:"Invoice not of valid status for modification".
Hi Dipesh,

Authorised invoice can be created and updated later on via API. Have you checked if the invoice has been paid? If an invoice has been paid, you will get this error.

Paid invoices are not allowed to be edited, you can only void it after you have voided the payment itself.
 

Jenks Guo (Xero Staff)