cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HughBP
Frequent Visitor

Help with Xero HTTP GET

Hello everyone,

I am struggling with API GET request authentication. I have successfully set up an authorisation flow, and now I am going crazy trying to run a simple GET request.. 

 

My access token has the following scope: 

openid profile email accounting.transactions accounting.contacts accounting.settings payroll.payruns payroll.payslip payroll.timesheets payroll.settings payroll.employees payroll.employees.read offline_access
 
When setting up the request headers, I model it after the Xero API Explorer: https://api-explorer.xero.com/payrollau/employees/getemployees

 

HughBP_4-1652232373222.png

 

 

Despite all that, the result is always the same:

HughBP_3-1652229414381.png

 

I am also using Postman and everything there is working exactly as it should. 

 

Any help would be appreciated. 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
HughBP
Frequent Visitor

Solved. The issue was the apostrophe and + sign

View solution in original post

1 REPLY 1
HughBP
Frequent Visitor

Solved. The issue was the apostrophe and + sign

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,458)