xero-postman-oauth2 icon indicating copy to clipboard operation
xero-postman-oauth2 copied to clipboard

API call Authentication Unsucessful

Open adelinechong opened this issue 5 years ago • 7 comments

I went through all steps and is stuck at calling my first API.

I got the message 'Authentication Unsuccessful' as follows: Screenshot 2020-01-02 at 7 20 34 PM

May I know what may cause the authentication issue? I am able to retrieve my tenant id.

adelinechong avatar Jan 02 '20 11:01 adelinechong

It happens the same to me. I tried everything and don't know what's wrong

mvortizr avatar Feb 05 '20 21:02 mvortizr

I can only get invoices if I comment out the pre-request script. If I leave it there I get the error reported by @adelinechong

keithcoughtrey avatar Apr 20 '20 03:04 keithcoughtrey

Hi all. I had a similar issue with authorization, though my error message was slightly different and posted this note in #2 as well. Mine was related to a newline character being included in my tokens by following the instructions. If you triple-click to highlight the tokens in step 6, Postman includes a newline character in both tokens. See a screenshot below of what how that newline character is represented (note the ↩️):

Screen Shot 2020-06-01 at 11 04 47 AM

So in case your token has a newline, remove it and you'll be in good shape.

ajmueller avatar Jun 01 '20 18:06 ajmueller

I went through all steps and is stuck at calling my first API.

I got the message 'Authentication Unsuccessful' as follows: Screenshot 2020-01-02 at 7 20 34 PM

May I know what may cause the authentication issue? I am able to retrieve my tenant id.

in your scopes you need to add the following accounting.transactions

saied-nawaz avatar Dec 07 '20 11:12 saied-nawaz

Anyone facing this issue, you need to set xero-tenant-id from connections response

bigfuture-test avatar Oct 06 '21 00:10 bigfuture-test

#9 Please check client id & client secret.

Anyone facing this issue, you need to set xero-tenant-id from connections response

musabibnsiraj avatar Sep 14 '22 18:09 musabibnsiraj

I went through all steps and is stuck at calling my first API.

I got the message 'Authentication Unsuccessful' as follows: Screenshot 2020-01-02 at 7 20 34 PM

May I know what may cause the authentication issue? I am able to retrieve my tenant id.

https://github.com/XeroAPI/xero-postman-oauth2/issues/9#issuecomment-1247128542

musabibnsiraj avatar Sep 14 '22 18:09 musabibnsiraj