Can an add-on trigger the native Awaiting Approval → Approve invoice action, including export through the account’s existing Xero integration? Is there a supported REST API or SDK method?
I have created a private add-on for updating custom fields for tracking, I want to include approving to xero when I approve the field updtes
Hi Wally,
There isn’t a supported REST API endpoint or Add-on SDK method for triggering the native invoice approval action, including export through the account’s existing Xero integration.
In the Update a Job reference, payment_processed is described as indicating whether the job has been exported to the connected accounting package, not as an approval/export command. ready_to_invoice and ready_to_invoice_stamp are both deprecated, so they’re not a supported route for this workflow either.
For your custom-field approval workflow, keep the invoice approval as a separate native step: after approving your field updates, go to Invoicing > Awaiting Approval, select the completed job and click Approve. That action starts syncing the invoice through the existing Xero integration.
You’re welcome to post API-triggered invoice approval as a feature request.
Thanks,
Cody