If you get the error message:
An authorisation error has occurred, please check your access permissions.
This is because Xero requires a Business Plan to use Invoicing with Xero or the employer has reached their invoice limit of 20 invoices per month.
Xero API response:
ErrorNumber 23
Type AuthorisationException