Hi, i am trying to connect to NS Rest API using po...
# suitetalkapi
b
Hi, i am trying to connect to NS Rest API using postman. I got all set up and i am still getting the error:
Copy code
"detail": "Invalid login attempt. For more details, see the Login Audit Trail in the NetSuite UI at Setup > Users/Roles > User Management > View Login Audit Trail.",
            "o:errorCode": "INVALID_LOGIN"
I verified that the role i have is admin so i have the rest web services permission which is the one i used to create a new integration and token. Anything else you think i am missing? Thank you so much!!!
a
headers? auth?
b
I have CONSUMER_KEY, CONSUMER_SECRET, TOKEN_ID, TOKEN_SECRET. I created that with my admin role.
a
right, so I think with OAuth you'd use those 4 to make one request and get a bearer token back, and then you'd use the token until it expires at which point you'd generate a new bearer token with the 4 items again. its been a while, I can't remember exactly how you have to set that up in Postman, I think its pretty straight-forward though. umm and you used to have to pass the realm/accountid... but maybe that's just in the URL these days? Surprised no one more familiar hasn't answered you tbh.
🙌 1
b