You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also all being lowercase as well, but I still get the AuthorizationUnsuccessful error. I'm able to access all of these endpoints using the API Previewer so I'm assuming its not a Xero setting / issue, but I can't see anywhere in the Salesforce side that should be limiting the endpoints available.
Any ideas or is this one for Xero support?
Kind Regards
Jon
The text was updated successfully, but these errors were encountered:
I've figured this out, I needed to add accounting.settings to the default scopes in the Auth. Provider. I also needed to disconnect the App in Xero and connect it again by saving the Named Credential.
Hi Ben,
I'm trying to connect to the Items endpoint and keep getting the following Error:
{"Type":null,"Title":"Unauthorized","Status":401,"Detail":"AuthorizationUnsuccessful","Instance":"3e2b3bc7-21dc-4c20-8943-bb84bb16db39","Extensions":{}}
I've written a new wrapper class and added a method into XeroAPI (basically copied the invoice one), but I get the same even if I just run:
XeroCalloutService.executeCallout('GET','Items');
The following works:
XeroCalloutService.executeCallout('GET','Invoices');
Which is suggesting its not the actual authorisation, so I've tried:
XeroCalloutService.executeCallout('GET','Accounts');
XeroCalloutService.executeCallout('GET','Organisation');
XeroCalloutService.executeCallout('GET','Users');
Also all being lowercase as well, but I still get the AuthorizationUnsuccessful error. I'm able to access all of these endpoints using the API Previewer so I'm assuming its not a Xero setting / issue, but I can't see anywhere in the Salesforce side that should be limiting the endpoints available.
Any ideas or is this one for Xero support?
Kind Regards
Jon
The text was updated successfully, but these errors were encountered: