Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Partner Program >

Payroll API

Started by Amit Arora -   in Partner Program

Hi Xero Teams,

We are using Php "https://github.com/calcinai/xero-php" SDK to fetch the
data from Xero for Partner Application.

Our Xero_Auth_Url is
"https://api.xero.com/oauth/Authorize?scope=payroll.payitems,payroll.leaveapplications&oauth_token=XXXXXXXXXXXXXXXXX",
we are able to get the Access Token and Secret Token which is working
fine for us.
We are able to fetch the
"$xero->load('Accounting\Organisation')->execute()" Organisation or
other accounting data successfully.

But, when we are going to fetch the data for
"$xero->load('PayrollAU\PayItem')->execute()" we are getting "Invalid
authorization credentials".

The role assigned to Xero account is: Adviser + Payroll Administration.

Thanks,
Amit Arora